@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --ink: #1a1814;
  --muted: #7a7268;
  --paper: #f3efe8;
  --card: #fbf8f3;
  --line: #ddd4c6;
  --paint: #c45c3a;
  --paint-d: #9a3e26;
  --forest: #2e3d34;
  --guinda: #4a1524;
  --guinda-d: #2f0e18;
  --cream: #f6efe8;
  --sun: #c4b49a;
  --water: #3d6b7a;
  --shadow: 0 18px 50px rgba(26, 24, 20, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(196, 92, 58, .07), transparent 55%),
    var(--paper);
  letter-spacing: .01em;
}
h1, h2, h3, .brand, .display, .logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: .02em;
}
a { color: var(--paint-d); text-decoration: none; }
a:hover { color: var(--paint); }
button, input, textarea, select { font-family: inherit; }

.kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 10px;
  font-weight: 500;
}

/* LOGIN */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  color: var(--ink);
}
.logo img,
.login-logo {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 12px;
}
.login-logo {
  margin: 0;
  width: 48px;
  height: 48px;
  box-shadow: 0 6px 16px rgba(17, 17, 17, .16);
}
.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
}

body.login-page { overflow-x: hidden; }
.login-page {
  min-height: 100vh;
  background: var(--guinda-d);
}
.login-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 22px 40px;
  overflow: auto;
}
.login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 239, 232, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 232, .14) 1px, transparent 1px);
  background-size: 28px 28px;
}
.login-wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(560px, 780px) minmax(140px, 1fr);
  align-items: center;
  gap: 18px;
}
.login-card {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.05fr);
  min-height: 520px;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 6px 18px rgba(26, 24, 20, .10),
    0 22px 56px rgba(26, 24, 20, .16);
}
.login-form {
  padding: 40px 36px 32px;
  text-align: left;
  color: #111;
  background: #fff;
}
.login-form .login-kicker {
  color: var(--muted);
  margin: 0 0 8px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.login-brand h1 {
  margin: 0;
  font-size: 34px;
  color: #111;
  font-weight: 600;
}
.login-brand em {
  font-style: italic;
  color: var(--guinda);
  font-weight: 500;
}
.login-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
}
.login-hero {
  position: relative;
  min-height: 100%;
}
.login-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(160deg, rgba(74, 21, 36, .35), rgba(47, 14, 24, .62));
  color: var(--cream);
}
.login-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
}
.login-hero-copy h2 {
  margin: 0;
  font-size: 28px;
  color: var(--cream);
  font-weight: 500;
}
.login-script {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  line-height: .95;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}
.login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: left;
}
.login-field svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-field:focus-within {
  border-color: var(--guinda);
}
.login-field:focus-within svg { stroke: var(--guinda); }
.login-card .input {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 13px 0;
  font-size: 16px;
  color: #111;
}
.login-card .input::placeholder { color: #aaa; }
.login-card .input:focus {
  outline: none;
}
.login-card .btn {
  width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--guinda);
  border-color: var(--guinda);
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(74, 21, 36, .22);
}
.login-card .btn:hover {
  background: var(--guinda-d);
  border-color: var(--guinda-d);
  color: var(--cream);
}
.login-card .hint { color: var(--muted); text-align: center; }
.login-card .hint a { color: var(--guinda); font-weight: 500; }
.login-card .alert { text-align: left; }

.carrusel-frame {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.slide.on { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carrusel-lado {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.dots-izq { grid-column: 1; grid-row: 1; }
.dots-der { grid-column: 3; grid-row: 1; }
.carrusel-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dots-izq .carrusel-item { justify-content: flex-end; }
.dots-der .carrusel-item { justify-content: flex-start; }
.carrusel-txt {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(246, 239, 232, .42);
  transition: color .35s ease;
}
.dots-izq .carrusel-txt { text-align: right; }
.dots-der .carrusel-txt { text-align: left; }
.carrusel-item.on .carrusel-txt { color: var(--cream); }
.carrusel-lado button {
  width: 8px;
  height: 8px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--cream);
  background: transparent;
  cursor: pointer;
}
.carrusel-lado button.on { background: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f6f1ea;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 13px 20px;
  cursor: pointer;
  width: auto;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #f6f1ea; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.alert {
  background: #f4e6e1; color: #8a1c12; padding: 10px 12px; font-size: 14px; margin-bottom: 12px;
}
.alert.ok { background: #e4efe8; color: #145c38; }
.hint { font-size: 13px; color: var(--muted); margin-top: 16px; font-weight: 300; overflow-wrap: break-word; }
.hint code { background: #efe6d8; padding: 1px 5px; word-break: break-all; }

/* APP SHELL */
html { height: 100%; }
body.app {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.page { flex: 1; overflow: auto; padding: 22px 18px 40px; max-width: 1180px; width: 100%; margin: 0 auto; }
.page.form-page { max-width: none; width: 100%; padding: 16px 20px 28px; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 22px;
  background: rgba(251, 248, 243, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--ink);
  position: relative;
  z-index: 10000;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(26, 24, 20, .14);
}
.brand {
  color: var(--ink);
  font-size: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.brand:hover { color: var(--paint-d); }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: flex-end; }
.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 56px;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-link.on, .nav-link:hover { color: var(--paint-d); background: transparent; }
.nav-link.on { box-shadow: inset 0 -2px 0 var(--paint); }
.nav-ico { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.who {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--paint);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: 8px;
  min-width: 56px;
}
.who .nav-ico { width: 18px; height: 18px; }
.nav-link.out { color: var(--ink); box-shadow: none; }

.map-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
}
#mapa { position: relative; }
.map-wrap #mapa {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #d5cbbd;
  z-index: 1;
}
.maplibregl-map { width: 100%; height: 100%; }
.maplibregl-popup-content {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 14px;
  color: #1a1814;
}
.btn-3d {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  border: 0;
  background: #f6efe8;
  color: #111;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 24, 20, .18);
}
.btn-3d.off { background: #fff; color: #7a7268; }
.fab {
  position: absolute; right: 18px; bottom: 24px; z-index: 5000;
  width: auto; padding: 14px 22px;
  box-shadow: var(--shadow);
}
.form-campos .btn,
.form-atender .btn { width: 100%; }
.form-page h1 { margin: 8px 0 8px; font-size: 36px; }
.lead-form { color: var(--muted); margin: 0 0 18px; font-weight: 300; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
}
.form-mapa {
  position: sticky;
  top: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
}
.form-mapa h2 { margin: 0 0 8px; font-size: 26px; }
.form-mapa .btn { width: 100%; margin: 8px 0 4px; }
.form-mapa .lbl-campo { margin-top: 12px; }
.texto-grande {
  width: 100%;
  min-height: 280px;
  font-size: 20px;
  line-height: 1.5;
  padding: 16px;
}
.lbl-campo {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
}
.input-grande {
  font-size: 18px;
  padding: 14px 16px;
  min-height: 52px;
}
.form-atender {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  max-width: 760px;
}
.form-atender .lbl-campo:first-of-type { margin-top: 0; }
.form-atender select.input-grande {
  font-size: 18px;
  min-height: 56px;
  line-height: 1.4;
}
.texto-nota {
  width: 100%;
  min-height: 200px;
  font-size: 18px;
  line-height: 1.5;
  padding: 16px;
}
.checks-2 { grid-template-columns: 1fr 1fr; }
.paso {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  margin: 0 0 14px;
}
.paso h2 { margin: 0 0 8px; font-size: 24px; }
.mapa-mini {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
}
.punto-ok { color: var(--forest); font-weight: 500; font-size: 14px; }
.sheet { z-index: 20; }
.sheet {
  position: absolute; left: 16px; top: 16px; z-index: 20;
  width: min(380px, calc(100% - 32px));
  background: rgba(251, 248, 243, .94);
  padding: 18px;
  max-height: calc(100% - 32px);
  overflow: auto;
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 6px 18px rgba(26, 24, 20, .10),
    0 22px 56px rgba(26, 24, 20, .18),
    0 0 72px 12px rgba(26, 24, 20, .10);
}
.sheet h2 { margin: 0 0 8px; font-size: 28px; }
.sheet p.lead { margin: 0 0 14px; color: var(--muted); font-weight: 300; }
.sheet .lbl-campo {
  font-size: 20px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.sheet select.input-grande {
  font-size: 18px;
  min-height: 52px;
}
.checks { display: grid; gap: 8px; margin: 10px 0 14px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); padding: 10px;
  cursor: pointer; background: #fff;
}
.check input { margin-top: 3px; }
.check b { display: block; }
.check span { font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
textarea, .input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
textarea:focus, .input:focus {
  outline: none;
  border-color: var(--paint);
}
.lista { display: grid; gap: 12px; }
.card-rep {
  background: var(--card);
  border-left: 3px solid var(--paint);
  padding: 14px;
}
.card-rep h3 { margin: 0 0 6px; font-size: 22px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; background: var(--sun); color: var(--ink);
}
.badge.en_atencion { background: var(--water); color: #fff; }
.badge.resuelta { background: var(--forest); color: #fff; }
.badge.no_procede { background: #888; color: #fff; }
.badge.recibida { background: var(--paint); color: #fff; }
.bola {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(26, 24, 20, .2);
}
.bola-rojo { background: #c0392b; }
.bola-amarillo { background: #d4a017; }
.bola-verde { background: #2e7d4f; }
.bola-gris { background: #888; }
.leyenda-bolas { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 0; }
.leyenda-bolas span { display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); }
.folio-den { font-weight: 600; margin-right: 8px; }
.logos-rep {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.mini-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
}
.pin-denuncia {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(26, 24, 20, .22));
}
.pin-cuerpo {
  display: flex;
  align-items: flex-start;
}
.pin-asta {
  width: 2px;
  height: 28px;
  background: #3a2a22;
  flex-shrink: 0;
}
.pin-bandera {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin-left: -1px;
  padding: 0 7px 0 5px;
  border-left: 2px solid var(--paint);
  border-radius: 0 3px 3px 0;
  white-space: nowrap;
  transform-origin: left center;
  animation: pin-viento 2.1s ease-in-out infinite;
  background-image:
    repeating-linear-gradient(
      92deg,
      rgba(255, 255, 255, 0) 0 3px,
      rgba(26, 24, 20, .05) 3px 5px,
      rgba(255, 255, 255, .22) 5px 8px
    );
  background-color: #fff;
}
.pin-rojo .pin-bandera { background-color: #f8ece9; }
.pin-amarillo .pin-bandera { background-color: #f8f1d8; }
.pin-verde .pin-bandera { background-color: #e8f2ea; }
.pin-gris .pin-bandera { background-color: #eeeeee; }
.pin-marca {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.pin-logo {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 3px;
}
.pin-mas {
  position: absolute;
  right: -4px;
  top: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--guinda);
  color: var(--cream);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
@keyframes pin-viento {
  0%, 100% { transform: skewY(0deg) skewX(0deg) scaleX(1); }
  22% { transform: skewY(-5deg) skewX(-3deg) scaleX(1.1); }
  48% { transform: skewY(2.4deg) skewX(2deg) scaleX(.95); }
  74% { transform: skewY(-3.6deg) skewX(-1.6deg) scaleX(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .pin-bandera { animation: none; }
}
.pin-clavo {
  width: 5px;
  height: 5px;
  margin: -2px 0 0 -1.5px;
  background: #3a2a22;
  border-radius: 50%;
}
.pin-folio { font-size: 11px; font-weight: 600; color: var(--ink); }
.maplibregl-popup-content { font-family: Outfit, system-ui, sans-serif; font-size: 14px; line-height: 1.4; }
.maplibregl-popup-content b.folio-pop { display: block; font-size: 16px; margin-bottom: 4px; }
.badge.sla { margin-left: 6px; letter-spacing: .08em; }
.badge.sla-vencida { background: var(--guinda); color: var(--cream); }
.badge.sla-cerca { background: #c0392b; color: #fff; }
.badge.sla-a_tiempo { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.card-rep.vencida { background: #f7efe8; }
.aviso-sla {
  background: var(--guinda);
  color: var(--cream);
  padding: 10px 12px;
  font-size: 15px;
}
.media-thumb {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #1a1814;
  margin: 12px 0;
}
#caja-resuelto { margin-top: 4px; }
.timeline { border-left: 2px solid var(--paint); padding-left: 14px; margin-top: 12px; }
.timeline li { margin: 0 0 12px; list-style: none; }
.muted { color: var(--muted); font-size: 14px; font-weight: 300; }
.lugar-den {
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: var(--card);
  border-left: 3px solid var(--guinda);
}
.lugar-den .kicker { margin-bottom: 8px; }
.lugar-den dl {
  margin: 0;
  display: grid;
  gap: 10px 28px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.lugar-den dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lugar-den dd { margin: 2px 0 0; font-size: 17px; }
.volver {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}
.volver a { font-size: inherit; }

.form-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px 18px;
  margin: 8px 0 28px;
}
.form-sec h2 { margin: 0 0 4px; font-size: 26px; }
.form-sec .full { grid-column: 1 / -1; }
.form-sec-acciones { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-sec-acciones .btn { width: auto; }
.color-row { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.input-color {
  width: 56px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.tabla-sec {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
.tabla-sec th,
.tabla-sec td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tabla-sec th {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.color-muestra {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
}
.acciones {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.acciones form { margin: 0; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--paint-d);
  cursor: pointer;
  font: inherit;
}
.link-btn:hover { color: var(--paint); }

.menu-reportes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}
.card-rep-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
  color: var(--ink);
  text-decoration: none;
  min-height: 150px;
}
.card-rep-menu:hover,
.card-rep-menu.on {
  border-color: var(--guinda);
  color: var(--ink);
}
.card-rep-menu.on { box-shadow: inset 0 -3px 0 var(--guinda); }
.card-rep-menu .kicker { margin-bottom: 6px; }
.card-rep-menu b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}
.card-rep-menu .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  line-height: 1;
  margin: 12px 0 4px;
  color: var(--guinda);
}
.barra-rep {
  height: 8px;
  background: #efe6d8;
  margin-top: 8px;
  overflow: hidden;
}
.barra-rep span {
  display: block;
  height: 100%;
  background: var(--guinda);
}
.grid-estatus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card-estatus {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
}
.card-estatus .num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  color: var(--guinda);
  margin: 10px 0 8px;
}
.busca {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.busca .input { flex: 1 1 220px; min-width: 0; }
.busca .btn { width: auto; margin: 0; }
.sheet .busca { margin-top: 12px; }
.sheet .busca .input-grande { min-height: 44px; font-size: 16px; padding: 10px 12px; }

.rep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.rep-toolbar h2 { margin: 0; }

body.pdf-doc {
  background: #fff;
  color: #111;
  padding: 28px 36px 48px;
  max-width: 920px;
  margin: 0 auto;
}
.pdf-cabeza {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--guinda);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.pdf-cabeza img { width: 48px; height: 48px; }
.pdf-cabeza h1 { margin: 0; font-size: 28px; }
.pdf-cabeza p { margin: 2px 0 0; }
.pdf-meta { margin-left: auto; text-align: right; font-size: 13px; color: #555; }
.pdf-acciones { margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-doc .tabla-sec { background: #fff; }

@media print {
  .no-print,
  .top,
  .menu-reportes,
  .lead-form,
  .pdf-acciones { display: none !important; }
  body.app,
  body.pdf-doc {
    background: #fff;
    overflow: visible;
    height: auto;
    padding: 0;
  }
  .page { max-width: none; overflow: visible; padding: 0; }
  .pdf-cabeza { border-bottom-color: #4a1524; }
}

.maplibregl-ctrl-attrib { font-size: 10px; }
.pt-pin {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

@media (max-width: 860px) {
  .login-stage { padding: 28px 16px 36px; }
  .login-wrap { grid-template-columns: 1fr; gap: 14px; width: 100%; }
  .login-card,
  .dots-izq,
  .dots-der { grid-column: 1; }
  .login-card {
    grid-row: 1;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .login-hero { min-height: 220px; height: 36vh; }
  .dots-izq { grid-row: 2; }
  .dots-der { grid-row: 3; }
  .carrusel-lado { flex-direction: row; justify-content: space-between; }
  .login-script { font-size: 36px; }
  .login-form { padding: 28px 22px 24px; }
  .carrusel-txt { font-size: 17px; color: rgba(246, 239, 232, .7); }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 58%; }
  .form-grid { grid-template-columns: 1fr; min-height: 0; }
  .form-sec { grid-template-columns: 1fr; }
  .menu-reportes,
  .grid-estatus { grid-template-columns: 1fr 1fr; }
  .form-mapa { position: static; height: auto; min-height: 0; }
  .checks-2 { grid-template-columns: 1fr; }
  .mapa-mini { min-height: 300px; height: 360px; }
  .form-mapa .btn,
  .form-mapa .input-grande { min-height: 52px; font-size: 18px; }
}
