/* Portal de validación · Rutagrama 360 · identidad Tur Bus (kit FutureBrand)
   Verde 362C #4D9C2D (60 %) · Lima 382C #C3D500 (20 %) · Azul 314C #00657F (20 %) · Cool Gray 8C #8A8A8D
   Tipografía institucional: Antártida Rounded. */

@font-face { font-family: "Antartida"; src: url("marca/antartida-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Antartida"; src: url("marca/antartida-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Antartida"; src: url("marca/antartida-mediumitalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Antartida"; src: url("marca/antartida-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Antartida"; src: url("marca/antartida-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Antartida"; src: url("marca/antartida-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --verde: #4d9c2d;
  --verde-osc: #3a7a20;
  --verde-sombra: #2c5e18;
  --lima: #c3d500;
  --azul: #00657f;
  --azul-osc: #004b5f;
  --gris: #8a8a8d;
  --tinta: #1f2b2e;
  --tinta-2: #4a5659;
  --linea: #dfe5dc;
  --fondo: #f3f5f0;
  --papel: #ffffff;
  --rojo: #d62828;
  --ambar: #e8a200;
  --r: 18px;
  --sombra: 0 1px 2px rgba(20, 40, 20, .06), 0 8px 28px rgba(20, 40, 20, .08);
  --fuente: "Antartida", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: var(--fuente); font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--azul); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.oculto { display: none !important; }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 50;
  background: var(--verde); color: #fff;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.barra .logo { height: 26px; width: auto; }
.barra .sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .45); }
.barra .producto { font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.barra .producto b { font-weight: 900; }
.barra nav { margin-left: auto; display: flex; gap: 4px; }
.barra nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.barra nav a:hover { background: rgba(255, 255, 255, .14); }
.barra nav a.activo { background: #fff; color: var(--verde-osc); }
.barra .yo {
  border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.barra .yo:hover { background: rgba(255, 255, 255, .26); }

/* ---------- portada ---------- */
.portada {
  position: relative; overflow: hidden; color: #fff;
  background: var(--azul-osc);
  min-height: 360px;
}
.portada .fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.portada::after { /* cinta verde de la marca: el camino */
  content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px;
  border: 38px solid var(--verde); border-left-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; transform: rotate(18deg); opacity: .95;
}
.portada .dentro { position: relative; z-index: 2; padding: 56px clamp(16px, 5vw, 64px) 44px; max-width: 1200px; }
.portada .eyebrow {
  display: inline-block; background: var(--lima); color: var(--tinta);
  font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px;
}
.portada h1 { font-size: clamp(34px, 5.4vw, 62px); margin: 18px 0 8px; }
.portada h1 em { font-style: normal; color: var(--lima); }
.portada p.bajada { font-size: clamp(16px, 1.8vw, 20px); font-weight: 300; max-width: 720px; margin: 0; }
.portada .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px;
}
.chip b { font-weight: 900; font-size: 17px; }

/* ---------- contenedor ---------- */
.pagina { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 80px; }
.tarjeta { background: var(--papel); border-radius: var(--r); box-shadow: var(--sombra); }
.titulo-sec { scroll-margin-top: 80px; flex-wrap: wrap; row-gap: 4px; display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.titulo-sec h2 { font-size: 26px; }
.titulo-sec .nota { color: var(--tinta-2); font-weight: 500; font-size: 14px; }

/* aviso de validación por excepción */
.aviso {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-left: 8px solid var(--lima);
}
.aviso .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.aviso h3 { font-size: 18px; }
.aviso p { margin: 4px 0 0; color: var(--tinta-2); font-size: 15px; }
.aviso .plazo { text-align: right; }
.aviso .plazo b { display: block; font-size: 22px; font-weight: 900; color: var(--azul); }
.aviso .plazo span { font-size: 13px; color: var(--tinta-2); }

/* progreso */
.progreso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.kpi { padding: 16px 18px; }
.kpi .n { font-size: 34px; font-weight: 900; line-height: 1; }
.kpi .t { font-size: 14px; color: var(--tinta-2); margin-top: 6px; font-weight: 700; }
.kpi.ok .n { color: var(--verde); }
.kpi.obs .n { color: var(--ambar); }
.kpi.cam .n { color: var(--rojo); }
.kpi.pen .n { color: var(--azul); }
.barra-prog { height: 10px; border-radius: 99px; background: #e7ece4; overflow: hidden; display: flex; margin-top: 14px; }
.barra-prog i { display: block; height: 100%; }

/* selector de sentido */
.sentido { display: inline-flex; background: #e6ebe3; border-radius: 999px; padding: 4px; gap: 4px; }
.sentido button {
  border: 0; background: transparent; padding: 9px 18px; border-radius: 999px;
  font-weight: 900; font-size: 14px; color: var(--tinta-2); cursor: pointer;
}
.sentido button.activo { background: var(--verde); color: #fff; box-shadow: 0 2px 8px rgba(77, 156, 45, .35); }

/* mapa + lista */
.explorar { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; }
.lista { display: flex; flex-direction: column; gap: 10px; max-height: 720px; overflow: auto; padding: 2px 6px 6px 2px; }
.item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--papel); box-shadow: var(--sombra);
  text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
.item:hover, .item.foco { border-color: var(--verde); transform: translateY(-1px); }
.item .num {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--azul); color: #fff; font-weight: 900; font-size: 17px;
}
.item .num.prop { background: var(--lima); color: var(--tinta); }
.item h4 { font-size: 15.5px; font-weight: 900; }
.item .meta { font-size: 13px; color: var(--tinta-2); margin-top: 3px; }
.riesgo { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; color: #fff; vertical-align: 2px; }
.riesgo.ALTO { background: var(--rojo); }
.riesgo.MEDIO { background: var(--ambar); color: #2b2000; }
.riesgo.BAJO { background: var(--verde); }
.estado { font-size: 12px; font-weight: 900; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.estado.pendiente { background: #e8eef0; color: var(--azul); }
.estado.aprobado { background: #e3f1dc; color: var(--verde-osc); }
.estado.observaciones { background: #fff2cc; color: #7a5600; }
.estado.cambios { background: #fde0e0; color: #9b1c1c; }
.mapa { height: 720px; border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); position: relative; background: #0d2329; }
.mapa .leyenda {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; background: rgba(255, 255, 255, .94);
  border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; display: grid; gap: 4px;
}
.mapa .leyenda i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; margin-right: 8px; vertical-align: 3px; }
.marca-punto {
  width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: #fff;
  border: 3px solid #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); cursor: pointer;
}
.marca-punto.ALTO { background: var(--rojo); }
.marca-punto.MEDIO { background: var(--ambar); color: #2b2000; }
.marca-punto.prop { outline: 3px dashed var(--lima); outline-offset: 2px; }
.maplibregl-popup-content { font-family: var(--fuente); border-radius: 12px !important; padding: 12px 14px !important; }

/* ---------- escena ---------- */
.migas { font-size: 14px; font-weight: 700; color: var(--tinta-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.migas a { text-decoration: none; }
.cabecera-escena {
  position: relative; overflow: hidden; border-radius: var(--r); color: #fff; margin-top: 14px;
  background: var(--azul-osc); min-height: 300px; display: flex; align-items: flex-end;
}
.cabecera-escena img.fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cabecera-escena::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 40, 50, .92) 0%, rgba(0, 40, 50, .65) 45%, rgba(0, 40, 50, 0) 75%);
}
.cabecera-escena .dentro { position: relative; z-index: 2; padding: 30px 32px; max-width: 760px; }
.cabecera-escena .eyebrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.etiqueta { display: inline-block; background: var(--lima); color: var(--tinta); font-weight: 900; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; }
.etiqueta.azul { background: #fff; color: var(--azul); }
.cabecera-escena h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 12px 0 8px; }
.cabecera-escena p { margin: 0; font-weight: 300; font-size: 17px; }
.navescena { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 900; font-size: 14px;
  cursor: pointer; text-decoration: none; background: var(--verde); color: #fff;
}
.btn:hover { background: var(--verde-osc); }
.btn.sec { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 2px #d4e0e3; }
.btn.sec:hover { box-shadow: inset 0 0 0 2px var(--azul); }
.btn.azul { background: var(--azul); }
.btn.azul:hover { background: var(--azul-osc); }
.btn.mini { padding: 7px 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: default; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-ficha { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .grid-ficha { grid-template-columns: 1fr; } }
.ubic { padding: 16px 18px; border-top: 6px solid var(--verde); }
.ubic.critico { border-top-color: var(--rojo); }
.ubic.fin { border-top-color: var(--azul); }
.ubic h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-2); }
.ubic .coord { font-size: 17px; font-weight: 900; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ubic .sub { font-size: 13px; color: var(--tinta-2); }
.ubic .acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.medidas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border-radius: 14px; overflow: hidden; }
.medidas div { background: #fff; padding: 12px 14px; }
.medidas b { display: block; font-size: 22px; font-weight: 900; }
.medidas span { font-size: 12.5px; color: var(--tinta-2); font-weight: 700; }
.perfil { padding: 16px 18px; }
.perfil svg { width: 100%; height: 190px; display: block; }
.verif { margin-top: 10px; font-size: 13.5px; color: var(--tinta-2); display: flex; gap: 8px; }
.verif::before { content: "✓"; color: var(--verde); font-weight: 900; }
.verif.duda::before { content: "?"; color: var(--ambar); }

.vista3d { height: 420px; border-radius: var(--r); overflow: hidden; position: relative; background: #0d2329; }
.vista3d .ctrl { position: absolute; z-index: 3; left: 12px; top: 12px; display: flex; gap: 8px; }

/* storyboard */
.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cuadro { overflow: hidden; display: flex; flex-direction: column; }
.cuadro .pantalla { aspect-ratio: 16/9; position: relative; overflow: hidden; background: #0b1c21; color: #fff; }
.cuadro .pie { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cuadro .fase { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); }
.cuadro .fase b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #fff; margin-right: 6px; font-size: 12px; }
.cuadro h4 { font-size: 16px; }
.cuadro p { margin: 0; font-size: 14px; color: var(--tinta-2); }
.cuadro blockquote { margin: 0; padding: 10px 12px; background: #f1f6ee; border-left: 4px solid var(--verde); border-radius: 0 10px 10px 0; font-style: italic; font-size: 14px; color: var(--tinta); }
/* mini pantallas */
.p-antesala { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; }
.p-antesala .izq { background: var(--verde); padding: 8% 7%; display: flex; flex-direction: column; gap: 6px; }
.p-antesala .izq small { font-size: 9px; font-weight: 900; letter-spacing: .1em; opacity: .85; }
.p-antesala .izq strong { font-size: 13px; font-weight: 900; line-height: 1.1; }
.p-antesala .izq .r { align-self: flex-start; font-size: 8px; font-weight: 900; background: var(--rojo); padding: 2px 6px; border-radius: 4px; }
.p-antesala .izq .m { margin-top: auto; background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 5px 6px; font-size: 8.5px; line-height: 1.25; }
.p-antesala .der { background-size: cover; background-position: center; }
.p-aereo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.p-aereo .rot { position: absolute; left: 6%; top: 8%; background: rgba(0, 0, 0, .55); border-left: 3px solid var(--lima); padding: 4px 8px; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.p-aereo .sub { position: absolute; left: 8%; right: 8%; bottom: 7%; text-align: center; font-size: 8.5px; background: rgba(0, 0, 0, .6); padding: 4px 6px; border-radius: 4px; }
.p-cabina { position: absolute; inset: 0; background: linear-gradient(#5f8db0 0%, #a9c6d6 46%, #6b7560 47%, #3d4438 100%); }
.p-cabina .camino { position: absolute; left: 50%; bottom: 0; width: 80%; height: 54%; transform: translateX(-50%); background: #3a3d40; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
.p-cabina .camino::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2%; transform: translateX(-50%); background: repeating-linear-gradient(#e9d500 0 8%, transparent 8% 16%); }
.p-cabina .portal { position: absolute; left: 50%; top: 40%; width: 26%; height: 22%; transform: translateX(-50%); border: 2px solid var(--lima); border-bottom: 0; border-radius: 6px 6px 0 0; box-shadow: 0 0 12px var(--lima); }
.p-cabina .hud { position: absolute; left: 4%; right: 4%; bottom: 4%; display: flex; justify-content: space-between; align-items: flex-end; }
.p-cabina .vel { background: rgba(0, 0, 0, .65); border-radius: 8px; padding: 4px 8px; font-weight: 900; font-size: 15px; line-height: 1; }
.p-cabina .vel small { display: block; font-size: 7px; opacity: .8; }
.p-cabina .aviso-h { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); background: var(--ambar); color: #2b2000; font-size: 8px; font-weight: 900; padding: 3px 8px; border-radius: 5px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.p-cabina .ret { background: rgba(0, 0, 0, .65); border-radius: 8px; padding: 4px 8px; font-size: 8px; font-weight: 900; }
.p-eval { position: absolute; inset: 0; background: var(--azul); padding: 7% 7%; display: flex; flex-direction: column; gap: 5px; }
.p-eval small { font-size: 8px; font-weight: 900; letter-spacing: .1em; color: var(--lima); }
.p-eval strong { font-size: 10.5px; line-height: 1.2; }
.p-eval span { font-size: 8px; background: rgba(255, 255, 255, .14); border-radius: 5px; padding: 3px 6px; }
.p-eval span.ok { background: var(--verde); }
.p-eval .nota { position: absolute; right: 6%; top: 7%; width: 26px; height: 26px; border-radius: 50%; background: var(--lima); color: var(--tinta); display: grid; place-items: center; font-weight: 900; font-size: 13px; }

/* bloques de texto de la escena */
.bloque { padding: 20px 22px; }
.bloque h3 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.bloque h3 .n { width: 30px; height: 30px; border-radius: 9px; background: var(--verde); color: #fff; display: grid; place-items: center; font-size: 14px; }
.bloque ul { margin: 0; padding-left: 20px; }
.bloque li { margin: 4px 0; }
.ficha { display: grid; grid-template-columns: 170px 1fr; gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--linea); }
.ficha > div { padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.ficha > div:nth-child(odd) { background: #f5f8f3; font-weight: 900; font-size: 13.5px; color: var(--tinta-2); }
.ficha > div:nth-last-child(-n+2) { border-bottom: 0; }
.medida { font-size: 18px; font-weight: 900; color: var(--azul); }
.vel-ref { display: inline-flex; align-items: center; gap: 10px; }
.vel-ref .disco { width: 58px; height: 58px; border-radius: 50%; border: 6px solid var(--rojo); background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--tinta); flex: 0 0 auto; }
.tabla-portales { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-portales th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); padding: 8px 10px; border-bottom: 2px solid var(--linea); }
.tabla-portales td { padding: 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-portales td:first-child { width: 24%; }
.tabla-portales td:nth-child(2) { width: 20%; }
.tabla-portales td b { font-weight: 900; }
.tabla-portales .ok { color: var(--verde-osc); }
.tabla-portales .err { color: #9b1c1c; }
.opciones { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.opciones li { padding: 10px 14px; border-radius: 10px; background: #f3f6f1; font-weight: 700; }
.opciones li.correcta { background: #e3f1dc; box-shadow: inset 4px 0 0 var(--verde); }

/* preguntas y validación */
.preg { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--linea); background: #fff; }
.preg + .preg { margin-top: 10px; }
.preg .q { font-weight: 900; font-size: 15.5px; }
.preg .prop { margin-top: 6px; font-size: 13.5px; color: var(--tinta-2); }
.preg .prop b { color: var(--azul); }
.preg form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.preg .resp { margin-top: 10px; font-size: 13.5px; display: grid; gap: 6px; }
.preg .resp div { background: #f1f6ee; border-radius: 10px; padding: 8px 10px; }
.preg .resp div.vieja { background: #f4f4f4; color: var(--tinta-2); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.preg.respondida { border-color: #cfe3c4; }
.campo { border: 1.5px solid #cdd8d0; border-radius: 10px; padding: 9px 12px; background: #fff; min-width: 0; }
.campo:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(77, 156, 45, .18); }
textarea.campo { width: 100%; min-height: 84px; resize: vertical; }
.opcion-radio { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: #eef3ec; font-weight: 700; font-size: 14px; cursor: pointer; }
.opcion-radio input { accent-color: var(--verde); }
.validar { padding: 22px; border: 3px solid var(--verde); }
.validar .botones { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.validar .botones button { flex: 1 1 200px; border: 2px solid var(--linea); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; }
.validar .botones button b { display: block; font-size: 16px; font-weight: 900; }
.validar .botones button span { font-size: 13px; color: var(--tinta-2); }
.validar .botones button.sel[data-e="aprobado"] { border-color: var(--verde); background: #eef7e9; }
.validar .botones button.sel[data-e="observaciones"] { border-color: var(--ambar); background: #fff8e3; }
.validar .botones button.sel[data-e="cambios"] { border-color: var(--rojo); background: #fdeeee; }
.hilo { display: grid; gap: 10px; margin-top: 16px; }
.ev { display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.ev .av { width: 38px; height: 38px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.ev .cuerpo { background: #f6f8f5; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ev .cuerpo .quien { font-weight: 900; font-size: 13px; }
.ev .cuerpo .cuando { font-weight: 500; color: var(--tinta-2); font-size: 12px; margin-left: 6px; }
.ev .cuerpo p { margin: 4px 0 0; white-space: pre-wrap; }

/* historial */
.tabla-hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-hist th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); padding: 10px; border-bottom: 2px solid var(--linea); background: #fff; }
.tabla-hist td { padding: 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.vacio { padding: 40px; text-align: center; color: var(--tinta-2); }

/* diálogo de identificación */
.velo { position: fixed; inset: 0; z-index: 100; background: rgba(10, 30, 35, .55); display: grid; place-items: center; padding: 16px; }
.dialogo { width: min(480px, 100%); padding: 26px; }
.dialogo h3 { font-size: 22px; }
.dialogo p { color: var(--tinta-2); margin: 8px 0 16px; font-size: 15px; }
.dialogo label { display: block; font-weight: 900; font-size: 13px; margin: 10px 0 4px; }
.dialogo .campo { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--sombra); }

.pie-pagina { text-align: center; color: var(--gris); font-size: 13px; padding: 30px 16px 40px; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .explorar { grid-template-columns: 1fr; }
  .mapa { height: 460px; order: -1; }
  .lista { max-height: none; }
  .story { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .barra { gap: 10px; flex-wrap: wrap; }
  .barra .producto, .barra .sep { display: none; }
  .barra nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .barra .yo { margin-left: auto; }
  .portada::after { width: 300px; height: 300px; border-width: 24px; right: -110px; }
  .progreso { grid-template-columns: 1fr 1fr; }
  .aviso { grid-template-columns: 1fr; }
  .aviso .plazo { text-align: left; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .medidas { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: 1fr; }
  .ficha > div:nth-child(odd) { border-bottom: 0; padding-bottom: 2px; }
  .tabla-portales thead { display: none; }
  .tabla-portales tr { display: grid; border-bottom: 1px solid var(--linea); padding: 8px 0; }
  .tabla-portales td { border: 0; padding: 4px 6px; }
  .cabecera-escena .dentro { padding: 22px 18px; }
  .tabla-hist thead { display: none; }
  .tabla-hist tr { display: grid; border-bottom: 1px solid var(--linea); padding: 8px 0; }
  .tabla-hist td { border: 0; padding: 3px 6px; }
}
