/* Ayllu Avisa: identidad de la chakana tejida (cochinilla, mostaza, índigo sobre papel). */
:root {
  --papel: oklch(97.2% .011 85);
  --papel-2: oklch(94.6% .014 85);
  --blanco: oklch(99.3% .004 85);
  --tinta: oklch(30% .1 270);
  --tinta-2: oklch(44% .06 270);
  --tinta-3: oklch(58% .035 270);
  --linea: oklch(30% .1 270 / .1);
  --linea-2: oklch(30% .1 270 / .18);
  --cochinilla: oklch(50% .17 27);
  --mostaza: oklch(77% .14 75);
  --cielo: oklch(55% .12 250);
  --noche: oklch(23% .07 270);
  --noche-2: oklch(28% .075 270);
  --naranja: oklch(71% .17 55);
  --naranja-suave: oklch(92% .06 65);
  --naranja-tinta: oklch(42% .13 45);
  --amarillo: oklch(86% .15 95);
  --rojo: oklch(55% .2 27);
  --wa: oklch(42% .08 170);
  --wa-burbuja: oklch(93.5% .05 145);
  --wa-fondo: oklch(94% .02 90);
  --sombra: 0 1px 2px oklch(35% .05 270 / .08), 0 12px 32px oklch(35% .05 270 / .12);
  --vidrio: oklch(99% .004 85 / .8);
  --r: 6px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ancho: 1200px;
  font-family: "Figtree", ui-sans-serif, sans-serif;
  color: var(--tinta);
  background: var(--papel);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-size: 15px; line-height: 1.45;
  /* textura: trama tejida muy suave sobre el papel */
  background-color: var(--papel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' shape-rendering='crispEdges'%3E%3Cg fill='%23243072' fill-opacity='.035'%3E%3Crect x='12' y='4' width='4' height='4'/%3E%3Crect x='8' y='8' width='12' height='4'/%3E%3Crect x='4' y='12' width='20' height='4'/%3E%3Crect x='8' y='16' width='12' height='4'/%3E%3Crect x='12' y='20' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E");
}
body::after { /* grano de papel */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cochinilla); outline-offset: 2px; }
.ph-light, .ph-fill { font-size: 1.15em; vertical-align: -.15em; }
.n, dd, .cifra-n, .leyenda li b, select, .aviso-num, .paso-n, code, .dato-n, .cifra-g-n, .vivo { font-variant-numeric: tabular-nums lining-nums slashed-zero; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 28px; }

/* Barra */
.barra { display: flex; align-items: center; gap: 36px; padding: 0 24px; height: 60px; border-bottom: 1px solid var(--linea); background: oklch(97.2% .011 85 / .86); backdrop-filter: blur(12px) saturate(1.3); position: sticky; top: 0; z-index: 50; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.marca-svg { width: 26px; height: 30px; transition: transform .35s var(--ease); }
.marca:hover .marca-svg { transform: rotate(-8deg) scale(1.06); }
.barra nav { display: flex; gap: 26px; height: 100%; }
.barra nav a { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--tinta-2); font-weight: 600; position: relative; transition: color .15s; }
.barra nav a i { color: var(--tinta-3); transition: color .15s; }
.barra nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--cochinilla) 0 33%, var(--mostaza) 33% 66%, var(--tinta) 66%); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.barra nav a:hover, .barra nav a[aria-current="true"] { color: var(--tinta); }
.barra nav a[aria-current="true"] i { color: var(--cochinilla); }
.barra nav a[aria-current="true"]::after { transform: scaleX(1); }
.vivo { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); border: 1px solid var(--linea-2); background: var(--blanco); padding: 5px 13px; border-radius: 99px; transition: box-shadow .3s; }
.vivo b { color: oklch(45% .13 150); font-weight: 700; letter-spacing: .02em; }
.vivo-sep { width: 1px; height: 12px; background: var(--linea-2); }
.vivo.refresco { box-shadow: 0 0 0 4px oklch(62% .14 150 / .18); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: oklch(62% .16 150); animation: latido 2s ease-out infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 oklch(62% .16 150 / .55); } 70%, 100% { box-shadow: 0 0 0 8px oklch(62% .16 150 / 0); } }

/* Cinta de avisos en vivo */
.cinta { display: flex; align-items: stretch; height: 36px; background: var(--noche); color: oklch(92% .015 260); font-size: 13px; position: sticky; top: 60px; z-index: 40; overflow: hidden; }
.cinta-t { display: flex; align-items: center; gap: 7px; padding: 0 16px 0 22px; font-weight: 800; letter-spacing: .08em; font-size: 11.5px; background: var(--cochinilla); color: var(--blanco); position: relative; z-index: 1; }
.cinta-t::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, var(--cochinilla) 50%, var(--mostaza) 50%); }
.cinta-vista { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.cinta-pista { display: flex; width: max-content; height: 100%; align-items: center; animation: cinta 90s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.cinta-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; white-space: nowrap; border-right: 1px solid oklch(99% 0 0 / .1); }
.cinta-item b { font-weight: 700; }
.cinta-item .nv { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cinta-item .est { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: oklch(75% .03 260); }
.cinta-item .est.vigente { color: oklch(80% .14 150); }

/* Tablero */
.tablero { display: grid; grid-template-columns: minmax(300px, 340px) 1fr minmax(340px, 410px); height: calc(100vh - 96px); min-height: 720px; }
.col-aviso { padding: 22px 26px; border-right: 1px solid var(--linea); overflow-y: auto; overflow-x: hidden; min-width: 0; display: flex; flex-direction: column; background: oklch(97.2% .011 85 / .7); }
.col-mapa { position: relative; overflow: hidden; background: var(--noche); }
.col-distrito { padding: 18px 20px; border-left: 1px solid var(--linea); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: oklch(97.2% .011 85 / .7); min-width: 0; }

.selector { display: grid; gap: 5px; margin-bottom: 22px; }
.selector span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-3); display: flex; align-items: center; gap: 6px; }
.selector span i { color: var(--cielo); }
.selector select { width: 100%; min-width: 0; text-overflow: ellipsis; font: inherit; font-weight: 600; color: var(--tinta); background: var(--blanco); border: 1px solid var(--linea-2); border-radius: 10px; padding: 9px 11px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.selector select:hover { border-color: var(--tinta-3); }
.selector select:focus-visible { box-shadow: 0 0 0 4px oklch(50% .17 27 / .15); }
.selector small { color: var(--tinta-3); font-size: 12px; }

.aviso-num { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 600; color: var(--tinta-2); flex-wrap: wrap; }
.pildora { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 4px 11px 4px 9px; border-radius: 99px; color: var(--naranja-tinta); background: var(--naranja-suave); border: 1px solid oklch(71% .17 55 / .5); }
.pildora::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); animation: alerta 2s ease-out infinite; }
.pildora:empty::before { display: none; }
@keyframes alerta { 0% { box-shadow: 0 0 0 0 oklch(71% .17 55 / .7); } 70%, 100% { box-shadow: 0 0 0 7px oklch(71% .17 55 / 0); } }
.pildora[data-nivel="AMARILLO"] { background: oklch(95% .07 95); color: oklch(42% .1 90); border-color: oklch(86% .15 95); }
.pildora[data-nivel="AMARILLO"]::before { background: var(--amarillo); }
.pildora[data-nivel="ROJO"] { background: oklch(92% .05 27); color: oklch(42% .16 27); border-color: var(--rojo); }
.pildora[data-nivel="ROJO"]::before { background: var(--rojo); }
.aviso h1 { font-size: 27px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 800; text-wrap: balance; }
.aviso-fechas { margin: 0 0 10px; color: var(--tinta-2); font-size: 16px; font-weight: 500; }
.enlace { font-size: 13px; color: var(--tinta-2); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.enlace-logo { height: 16px; }
.enlace:hover { color: var(--tinta); }

.cifra { margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--linea); position: relative; }
.cifra p { margin: 0; }
.cifra-n { font-size: 96px; line-height: .86; font-weight: 900; letter-spacing: -.05em; color: var(--cochinilla); }
.cifra-l { font-size: 16px; font-weight: 700; margin-top: 10px !important; display: flex; gap: 6px; align-items: center; }
.cifra-l i { color: var(--cochinilla); }
.cifra-sub { font-size: 13px; color: var(--tinta-2); margin-top: 6px !important; text-wrap: pretty; }
.cifra-sub b { color: var(--tinta); }

/* Cadena: la línea va por debajo de los números */
.cadena { list-style: none; margin: auto 0 0; padding: 0; position: relative; isolation: isolate; }
.cadena::before, .cadena::after { content: ""; position: absolute; left: 13px; top: 14px; width: 2px; z-index: -1; border-radius: 2px; }
.cadena::before { bottom: 30px; background: var(--linea-2); }
.cadena::after { height: var(--avance, 0px); background: linear-gradient(var(--cochinilla), var(--mostaza)); transition: height .6s var(--ease); }
.cadena li { position: relative; display: grid; grid-template-columns: 28px 26px 1fr; gap: 12px; align-items: start; padding: 0 0 17px; }
.cadena li:last-child { padding-bottom: 0; }
.cadena .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--papel); color: var(--tinta); border: 2px solid var(--linea-2); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.cadena li > i { font-size: 24px; color: var(--tinta-3); margin-top: 1px; transition: color .25s; }
.cadena b { display: block; font-size: 14.5px; font-weight: 700; }
.cadena small { display: block; color: var(--tinta-3); font-size: 12.5px; margin-top: 2px; }
.cadena li[data-hecho] .n { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.cadena li[data-hecho] > i { color: var(--tinta-2); }
.cadena li[data-actual] .n { background: var(--cochinilla); border-color: var(--cochinilla); color: var(--blanco); transform: scale(1.12); box-shadow: 0 0 0 6px oklch(50% .17 27 / .16); }
.cadena li[data-actual] > i { color: var(--cochinilla); }

/* Mapa */
.mapa { position: absolute; inset: 0; }
.velo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, oklch(23% .07 270 / .38) 100%), linear-gradient(180deg, oklch(97% .01 85 / .25), transparent 18%); }
.maplibregl-ctrl-attrib { font-size: 10px; background: oklch(99% .004 85 / .7) !important; backdrop-filter: blur(6px); }
.etiqueta { font-weight: 700; font-size: 13px; color: var(--tinta); text-shadow: 0 0 3px var(--blanco), 0 0 8px var(--blanco), 0 0 1px var(--blanco); white-space: nowrap; pointer-events: none; }
.etiqueta::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--tinta); margin-right: 6px; vertical-align: 2px; box-shadow: 0 0 0 2px var(--blanco); }
.etiqueta.agua { font-style: italic; font-weight: 500; color: oklch(42% .08 235); letter-spacing: .08em; }
.etiqueta.agua::before { display: none; }
.pin { pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.pin-et { background: var(--tinta); color: var(--blanco); border-radius: 99px; padding: 6px 13px 6px 10px; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 7px; box-shadow: 0 8px 22px oklch(23% .07 270 / .4); white-space: nowrap; animation: pinEntra .4s var(--ease) both; }
.pin-et i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--naranja)); box-shadow: 0 0 0 2px oklch(99% 0 0 / .9); }
.pin-tallo { width: 2px; height: 28px; background: linear-gradient(var(--tinta), oklch(30% .1 270 / .15)); transform-origin: top; animation: tallo .35s .15s var(--ease) both; }
.pin-base { width: 14px; height: 14px; border-radius: 50%; background: var(--cochinilla); border: 2px solid var(--blanco); position: relative; margin-top: -2px; }
.pin-base::before, .pin-base::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--cochinilla); animation: onda 2s ease-out infinite; }
.pin-base::after { animation-delay: 1s; }
@keyframes onda { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes pinEntra { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes tallo { from { transform: scaleY(0); } }
.maplibregl-popup.tip .maplibregl-popup-content { font-family: inherit; font-size: 13px; color: var(--tinta); border-radius: 10px; box-shadow: var(--sombra); padding: 9px 12px; background: var(--vidrio); backdrop-filter: blur(10px); border: 1px solid oklch(99% 0 0 / .6); }
.maplibregl-popup.tip .maplibregl-popup-tip { display: none; }
.tip b { display: block; font-size: 14px; }
.tip span { color: var(--tinta-2); }
.tip em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-weight: 600; }
.tip em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.controles { position: absolute; top: 16px; right: 16px; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 99px; background: var(--vidrio); backdrop-filter: blur(12px) saturate(1.2); box-shadow: var(--sombra); border: 1px solid oklch(99% 0 0 / .6); }
.controles button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--tinta); display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; transition: background .15s, transform .12s var(--ease); }
.controles button i { font-size: 18px; }
.controles button:hover { background: oklch(30% .1 270 / .08); }
.controles button:active { transform: scale(.94); }
.controles button[aria-pressed="true"] { background: var(--tinta); color: var(--blanco); }
.controles .sep { height: 1px; margin: 3px 8px; background: var(--linea-2); }
.leyenda { position: absolute; left: 16px; bottom: 26px; z-index: 5; background: var(--vidrio); backdrop-filter: blur(12px) saturate(1.2); border: 1px solid oklch(99% 0 0 / .6); border-radius: 14px; box-shadow: var(--sombra); padding: 12px 14px; width: 252px; }
.leyenda-t { margin: 0 0 8px; font-weight: 800; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.barra-prop { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.barra-prop span { height: 100%; transform-origin: left; animation: crece .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 250ms); }
@keyframes crece { from { transform: scaleX(0); } }
.leyenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.leyenda li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.leyenda li i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(30% .1 270 / .15); }
.leyenda li b { font-weight: 700; }
.leyenda-aviso { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--linea); font-size: 12px; color: var(--tinta-2); display: flex; align-items: center; gap: 8px; }
.leyenda-aviso svg { color: oklch(64% .18 50); flex: none; }
.fuentes-mapa { position: absolute; right: 16px; bottom: 30px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 99px; background: var(--vidrio); backdrop-filter: blur(12px); box-shadow: var(--sombra); border: 1px solid oklch(99% 0 0 / .6); }
.fuentes-mapa img { height: 22px; }
.mapa-estado { position: absolute; z-index: 6; top: 18px; left: 50%; transform: translateX(-50%); background: var(--vidrio); backdrop-filter: blur(12px); box-shadow: var(--sombra); border-radius: 99px; padding: 9px 18px; margin: 0; font-size: 13.5px; max-width: 80%; text-align: center; animation: pinEntra .25s var(--ease); }

/* Ficha */
.buscador { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linea-2); border-radius: 99px; padding: 0 14px; background: var(--blanco); transition: border-color .15s, box-shadow .15s; }
.buscador:focus-within { border-color: var(--tinta-2); box-shadow: 0 0 0 4px oklch(30% .1 270 / .07); }
.buscador i { color: var(--tinta-3); }
.buscador input { border: 0; outline: 0; font: inherit; padding: 9px 0; width: 100%; background: transparent; color: var(--tinta); }
.ficha h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; line-height: 1; font-weight: 900; }
.ficha-lugar { margin: 7px 0 14px; color: var(--tinta-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ficha-lugar > i { color: var(--tinta-3); }
.riesgo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tinta); padding: 2px 10px 2px 8px; border-radius: 99px; background: color-mix(in oklch, var(--c, var(--naranja)) 20%, transparent); }
.riesgo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--naranja)); }
.riesgo:empty { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.stats div { padding: 11px 0 11px 12px; border-left: 1px solid var(--linea); display: flex; flex-direction: column; gap: 2px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { order: -1; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stats div:nth-child(2) dd { color: var(--cochinilla); }
.stats dt { font-size: 12px; color: var(--tinta-2); display: flex; gap: 4px; align-items: flex-start; line-height: 1.25; }

/* Chat al estilo WhatsApp */
.chat { border: 1px solid var(--linea-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; flex: 1; box-shadow: var(--sombra); background: var(--wa-fondo); }
.chat-cab { display: flex; gap: 10px; align-items: center; padding: 9px 14px; background: var(--wa); color: var(--blanco); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--papel); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 20px; height: 23px; }
.chat-cab b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.chat-cab b i { color: oklch(85% .14 150); font-size: 15px; }
.chat-cab small { font-size: 12px; opacity: .82; }
.chat-iconos { margin-left: auto; display: flex; gap: 14px; font-size: 19px; opacity: .85; }
.pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 8px 10px 0; background: oklch(30% .1 270 / .07); border-radius: 99px; }
.pestanas button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--tinta-2); padding: 6px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.pestanas button:hover { color: var(--tinta); }
.pestanas button[aria-selected="true"] { background: var(--tinta); color: var(--blanco); box-shadow: 0 2px 6px oklch(30% .1 270 / .25); }
.pestanas button span { font-weight: 400; opacity: .8; }
.chat-cuerpo { padding: 4px 12px 12px; overflow-y: auto; flex: 1; scroll-behavior: smooth;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' shape-rendering='crispEdges'%3E%3Cg fill='%2322306b' fill-opacity='.05'%3E%3Crect x='16' y='8' width='4' height='4'/%3E%3Crect x='12' y='12' width='12' height='4'/%3E%3Crect x='16' y='16' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E"); }
.chat-fecha { text-align: center; margin: 8px 0 10px; }
.chat-fecha span { font-size: 11.5px; background: var(--blanco); color: var(--tinta-2); padding: 3px 10px; border-radius: 8px; box-shadow: 0 1px 1px oklch(30% .05 270 / .08); }
.burbuja { position: relative; background: var(--wa-burbuja); border-radius: 0 12px 12px 12px; padding: 9px 12px 20px; font-size: 14px; line-height: 1.48; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 1px 1px oklch(35% .05 150 / .15); max-width: 97%; color: oklch(22% .02 260); }
.burbuja::before { content: ""; position: absolute; left: -7px; top: 0; border: 7px solid transparent; border-top-color: var(--wa-burbuja); border-right-color: var(--wa-burbuja); border-width: 0 7px 9px 0; }
.burbuja strong { font-weight: 700; }
.burbuja em { font-style: italic; color: oklch(38% .03 260); }
.burbuja .hora { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: oklch(48% .03 200); display: inline-flex; align-items: center; gap: 3px; }
.burbuja .hora i { color: oklch(60% .13 230); font-size: 15px; }
.burbuja .ln { display: block; animation: linea .32s var(--ease) both; animation-delay: calc(var(--k) * 28ms); }
.burbuja .ln:empty { height: .7em; }
#m-ia .ln { display: block; white-space: normal; }
#m-ia .ln:empty { height: .7em; }
@keyframes linea { from { opacity: 0; transform: translateY(4px); } }
/* Estado de redacción */
.redactando { background: var(--blanco); border-radius: 0 12px 12px 12px; padding: 12px 14px; box-shadow: 0 1px 1px oklch(35% .05 150 / .15); position: relative; }
.redactando::before { content: ""; position: absolute; left: -7px; top: 0; border-style: solid; border-color: transparent var(--blanco) transparent transparent; border-width: 0 7px 9px 0; }
.red-barra { height: 4px; border-radius: 99px; background: var(--linea); overflow: hidden; margin-bottom: 12px; }
.red-barra span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, .04)); background: linear-gradient(90deg, var(--cochinilla), var(--mostaza), var(--cielo)); background-size: 200% 100%; animation: flujo 1.6s linear infinite; transition: transform .6s var(--ease); }
@keyframes flujo { to { background-position: -200% 0; } }
.red-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--tinta-3); }
.red-pasos li { display: flex; align-items: center; gap: 8px; transition: color .25s; }
.red-pasos li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--linea-2); display: grid; place-items: center; flex: none; font-style: normal; font-size: 11px; transition: background .25s, border-color .25s; }
.red-pasos li.activo { color: var(--tinta); font-weight: 600; }
.red-pasos li.activo i { border-color: var(--cochinilla); border-top-color: transparent; animation: gira .8s linear infinite; }
.red-pasos li.hecho { color: var(--tinta-2); }
.red-pasos li.hecho i { background: oklch(62% .16 150); border-color: oklch(62% .16 150); }
.red-pasos li.hecho i::before { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes gira { to { transform: rotate(360deg); } }
.escribiendo { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--tinta-2); }
.puntos { display: inline-flex; gap: 3px; }
.puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--tinta-3); animation: salto 1s ease-in-out infinite; }
.puntos i:nth-child(2) { animation-delay: .15s; } .puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes salto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.acciones-msg { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.accion { font: inherit; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--linea-2); background: var(--blanco); color: var(--tinta); cursor: pointer; text-decoration: none; transition: border-color .15s, transform .12s var(--ease), background .15s; }
.accion:hover { border-color: var(--tinta-2); }
.accion:active { transform: scale(.96); }
.accion.ok { background: oklch(93% .06 150); border-color: oklch(62% .16 150); }
.respuestas-rapidas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 14px; }
.respuestas-rapidas small { width: 100%; text-align: right; font-size: 11.5px; color: var(--tinta-3); }
.respuestas-rapidas span { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; border: 1px solid oklch(42% .08 170 / .35); color: var(--wa); background: var(--blanco); display: inline-flex; align-items: center; gap: 5px; }
.chat-nota { font-size: 12px; color: var(--tinta-3); margin: 0; padding: 8px 14px 10px; display: flex; gap: 6px; align-items: flex-start; border-top: 1px solid var(--linea); background: var(--blanco); }
.chat-nota:empty { display: none; }
.chat-nota.error { color: var(--rojo); }
.chat-nota.ok::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: oklch(62% .16 150) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Esqueletos */
.esq:empty { display: inline-block; height: .9em; border-radius: 4px; background: linear-gradient(90deg, var(--papel-2), oklch(91% .014 85), var(--papel-2)); background-size: 200% 100%; animation: brillo 1.2s linear infinite; vertical-align: middle; }
.w4:empty { width: 4ch; } .w6:empty { width: 6ch; } .w8:empty { width: 8ch; } .w10:empty { width: 10ch; } .w11:empty { width: 11ch; } .w12:empty { width: 100%; }
.tarjeta-datos > .esq:empty, .capa .esq:empty { display: block; margin: 8px 0; height: 12px; }
@keyframes brillo { to { background-position: -200% 0; } }
.pildora.esq:empty { padding: 0; width: 70px; height: 22px; border: 0; animation: brillo 1.2s linear infinite; }

/* Separador tejido (franja de awayu con la chakana) */
.tejido { height: 30px; position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' shape-rendering='crispEdges'%3E%3Crect width='60' height='30' fill='%2322306b'/%3E%3Crect y='0' width='60' height='3' fill='%23b3312a'/%3E%3Crect y='27' width='60' height='3' fill='%23b3312a'/%3E%3Cg fill='%23e3a52e'%3E%3Crect x='27' y='6' width='6' height='3'/%3E%3Crect x='21' y='9' width='18' height='3'/%3E%3Crect x='15' y='12' width='30' height='6'/%3E%3Crect x='21' y='18' width='18' height='3'/%3E%3Crect x='27' y='21' width='6' height='3'/%3E%3C/g%3E%3Cg fill='%23b3312a'%3E%3Crect x='27' y='12' width='6' height='6'/%3E%3C/g%3E%3Cg fill='%232f74b5'%3E%3Crect x='3' y='12' width='6' height='6'/%3E%3Crect x='51' y='12' width='6' height='6'/%3E%3C/g%3E%3Cg fill='%23fbf8f1'%3E%3Crect x='0' y='6' width='3' height='3'/%3E%3Crect x='57' y='21' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 60px 30px;
  animation: teje 40s linear infinite; }
@keyframes teje { to { background-position: 600px 0; } }
.tejido-oscuro { filter: saturate(1.1); }

/* Secciones */
.sec-cab { max-width: 780px; margin: 0 0 56px; }
.sec-cab.centro { margin: 0 auto 60px; text-align: center; }
.sec-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--cochinilla); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 7px; }
.sec-cab h2 { font-size: clamp(32px, 2.4vw + 16px, 54px); line-height: 1.02; letter-spacing: -.04em; font-weight: 900; margin: 0 0 18px; text-wrap: balance; }
.sec-bajada { font-size: 18px; color: var(--tinta-2); margin: 0 auto; max-width: 62ch; text-wrap: pretty; }
.sec-cab:not(.centro) .sec-bajada { margin: 0; }

.impacto { padding: 110px 0 100px; }
.cifras { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0; border-top: 1px solid var(--linea-2); border-bottom: 1px solid var(--linea-2); }
.cifra-g { padding: 36px 32px; text-align: center; border-left: 1px solid var(--linea-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cifra-g:first-child { border-left: 0; }
.cifra-g > i { font-size: 30px; color: var(--cielo); }
.cifra-g-n { font-size: clamp(52px, 4.5vw, 84px); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.cifra-g.destacada .cifra-g-n { color: var(--cochinilla); font-size: clamp(64px, 6vw, 108px); }
.cifra-g.destacada > i { color: var(--cochinilla); }
.cifra-g p { margin: 0; color: var(--tinta-2); max-width: 28ch; font-size: 15px; text-wrap: balance; }
.nota-fuente { text-align: center; font-size: 13px; color: var(--tinta-3); margin: 18px 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }

.metodo { padding: 110px 0 100px; }
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 90px; }
.demo { margin: 0; }
.demo video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; display: block; background: var(--noche); box-shadow: var(--sombra); border: 1px solid var(--linea); }
.demo figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 600; font-size: 14.5px; }
.demo figcaption span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--tinta); color: var(--blanco); }
.demo:nth-child(2) figcaption span { background: var(--cochinilla); }
.demo:nth-child(3) figcaption span { background: var(--mostaza); color: var(--tinta); }
.pasos { list-style: none; margin: 0; padding: 0; position: relative; isolation: isolate; }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 27px; top: 10px; width: 2px; z-index: -1; border-radius: 2px; }
.pasos::before { bottom: 10px; background: var(--linea-2); }
.pasos::after { height: var(--prog, 0px); background: linear-gradient(var(--cochinilla), var(--mostaza), var(--tinta)); }
.paso { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 56px; padding: 0 0 80px 80px; position: relative; }
.paso:last-child { padding-bottom: 0; }
.paso::before { content: ""; position: absolute; left: 19px; top: 6px; width: 18px; height: 18px; border-radius: 4px; background: var(--papel); border: 2px solid var(--tinta); transform: rotate(45deg); transition: background .3s, border-color .3s, box-shadow .3s; }
.paso.visto::before { background: var(--cochinilla); border-color: var(--cochinilla); box-shadow: 0 0 0 6px oklch(50% .17 27 / .14); }
.paso-n { font-family: var(--mono); font-size: 12.5px; color: var(--cochinilla); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; }
.paso h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.06; margin: 8px 0 12px; font-weight: 900; }
.paso-txt p { margin: 0; color: var(--tinta-2); font-size: 16px; max-width: 46ch; text-wrap: pretty; }
.paso-logo { height: 34px; margin-top: 18px; }
.paso-logos { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.paso-logos img { height: 34px; }
.tarjeta-datos { background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; box-shadow: var(--sombra); padding: 18px 20px; font-size: 14px; }
.tarjeta-datos table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarjeta-datos th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-3); font-weight: 700; padding: 0 10px 8px 0; border-bottom: 1px solid var(--linea); }
.tarjeta-datos td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--linea); }
.tarjeta-datos tr:last-child td { border-bottom: 0; }
.tarjeta-datos td.num, .tarjeta-datos th.num { text-align: right; }
.tarjeta-datos tbody tr { transition: background .15s; }
.tarjeta-datos tbody tr:hover { background: var(--papel); }
.chip-n { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.chip-n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fila-campo { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linea); }
.fila-campo:last-child { border-bottom: 0; }
.fila-campo span { font-family: var(--mono); font-size: 12px; color: var(--tinta-3); padding-top: 2px; }
.fila-campo b { font-weight: 600; }
.datos-top { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.dato-n { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; display: block; }
.datos-top div:nth-child(2) .dato-n { color: #9c2f2b; }
.datos-top div:nth-child(3) .dato-n { color: #c96a2a; }
.datos-top small { color: var(--tinta-2); font-size: 12.5px; }
.capas { display: grid; gap: 10px; }
.capa { border-radius: 16px; padding: 14px 16px; white-space: pre-line; font-size: 14px; line-height: 1.5; }
.capa p { margin: 6px 0 0; }
.capa-t { font-size: 12px; font-weight: 800; display: flex; gap: 6px; align-items: center; text-transform: uppercase; letter-spacing: .06em; }
.capa-codigo { background: var(--noche); color: oklch(94% .01 240); font-family: var(--mono); font-size: 13px; }
.capa-codigo .capa-t { color: var(--mostaza); font-family: "Figtree", sans-serif; }
.capa-ia { background: var(--wa-burbuja); border: 1px solid oklch(62% .1 150 / .25); }
.capa-ia .capa-t { color: oklch(38% .08 160); }
.reglas { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13.5px; color: var(--tinta-2); }
.reglas i { color: oklch(55% .15 150); margin-right: 4px; }
.vacio { color: var(--tinta-2); display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.vacio i { font-size: 22px; color: var(--tinta-3); }

.datos { padding: 110px 0 110px; background: var(--noche); color: oklch(94% .01 260); position: relative; overflow: hidden; }
.datos::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' shape-rendering='crispEdges'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Crect x='20' y='8' width='4' height='4'/%3E%3Crect x='16' y='12' width='12' height='4'/%3E%3Crect x='12' y='16' width='20' height='8'/%3E%3Crect x='16' y='24' width='12' height='4'/%3E%3Crect x='20' y='28' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E"); }
.datos .contenedor { position: relative; }
.datos .sec-kicker { color: var(--mostaza); }
.datos .sec-bajada { color: oklch(80% .025 260); }
.fuentes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fuente { min-width: 0; padding: 22px; border-radius: 18px; background: oklch(99% 0 0 / .045); border: 1px solid oklch(99% 0 0 / .1); display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.fuente:hover { transform: translateY(-4px); border-color: oklch(77% .14 75 / .5); background: oklch(99% 0 0 / .07); }
.fuente-logo { height: 46px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--blanco); align-self: flex-start; margin-bottom: 6px; }
.fuente-logo img { height: 30px; }
.fuente-logo svg { width: 24px; height: 28px; }
.fuente-logo small { color: var(--tinta); font-weight: 800; font-size: 12px; }
.fuente b { font-size: 20px; letter-spacing: -.02em; font-weight: 800; }
.fuente p { margin: 0 0 8px; color: oklch(80% .025 260); font-size: 14px; flex: 1; }
.ruta { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 12px; border-radius: 10px; background: oklch(99% 0 0 / .06); border: 1px solid oklch(99% 0 0 / .1); transition: background .15s, border-color .15s; }
.ruta:hover { background: oklch(99% 0 0 / .12); border-color: oklch(77% .14 75 / .6); }
.ruta i:first-child { color: var(--mostaza); }
.ruta i:last-child { margin-left: auto; }
.ruta code { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.descargas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; justify-content: center; }
.boton { font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px; border: 0; cursor: pointer; background: var(--mostaza); color: var(--noche); transition: transform .12s var(--ease), filter .15s, box-shadow .2s; box-shadow: 0 6px 20px oklch(77% .14 75 / .25); }
.boton:hover { filter: brightness(1.06); box-shadow: 0 10px 28px oklch(77% .14 75 / .35); }
.boton:active { transform: scale(.97); }
.boton-sec { background: transparent; color: oklch(94% .01 260); box-shadow: inset 0 0 0 1px oklch(99% 0 0 / .3); }
.boton-sec:hover { box-shadow: inset 0 0 0 1px oklch(77% .14 75 / .7); }

/* Pie */
.pie { background: var(--noche-2); color: oklch(82% .02 260); padding: 64px 0 46px; text-align: center; border-top: 1px solid oklch(99% 0 0 / .08); }
.pie-in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pie-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blanco); font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.pie-marca svg { width: 30px; height: 34px; }
.pie-lema { margin: 0 0 18px; font-size: 16px; color: oklch(86% .02 260); }
.pie-t { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--mostaza); font-weight: 800; }
.pie-logos { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 4px 0 18px; }
.pie-logos a { background: var(--blanco); padding: 10px 16px; border-radius: 12px; display: grid; place-items: center; transition: transform .2s var(--ease); }
.pie-logos a:hover { transform: translateY(-3px); }
.pie-logos img { height: 34px; }
.pie-mini { margin: 0; font-size: 12.5px; color: oklch(72% .02 260); max-width: 76ch; text-wrap: pretty; }

/* Entradas y revelado */
.col-aviso > *, .col-distrito > * { animation: sube .3s var(--ease) both; }
.col-aviso > *:nth-child(2) { animation-delay: 60ms; } .col-aviso > *:nth-child(3) { animation-delay: 120ms; } .col-aviso > *:nth-child(4) { animation-delay: 180ms; }
.col-distrito > *:nth-child(2) { animation-delay: 120ms; } .col-distrito > *:nth-child(3) { animation-delay: 180ms; }
.cadena li { animation: sube .3s var(--ease) both; animation-delay: calc(220ms + var(--i, 0) * 50ms); }
@keyframes sube { from { opacity: 0; transform: translateY(8px); } }
.revela { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.revela.visto { opacity: 1; transform: none; }
.fuentes.revela .fuente, .cifras.revela .cifra-g, .demos.revela .demo { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.revela.visto .fuente, .revela.visto .cifra-g, .revela.visto .demo { opacity: 1; transform: none; }
.revela.visto > :nth-child(2) { transition-delay: 90ms; } .revela.visto > :nth-child(3) { transition-delay: 180ms; } .revela.visto > :nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revela, .revela .fuente, .revela .cifra-g, .revela .demo { opacity: 1 !important; transform: none !important; }
}

/* Pantallas medianas y móvil */
@media (max-width: 1180px) {
  .tablero { grid-template-columns: 320px 1fr; grid-template-rows: auto auto; height: auto; }
  .col-mapa { min-height: 640px; }
  .col-distrito { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--linea); display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .col-distrito .buscador { grid-column: 1 / -1; }
  .fuentes { grid-template-columns: 1fr 1fr; }
  .demos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .paso { grid-template-columns: 1fr; gap: 20px; padding-left: 52px; padding-bottom: 56px; }
  .pasos::before, .pasos::after { left: 13px; } .paso::before { left: 5px; }
  .cifras { grid-template-columns: 1fr; }
  .cifra-g { border-left: 0; border-top: 1px solid var(--linea-2); }
  .cifra-g:first-child { border-top: 0; }
  .demos { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  .barra { padding: 0 16px; gap: 12px; }
  .barra nav { display: none; }
  .vivo { font-size: 12px; padding: 4px 10px; }
  .vivo-sep, #vivo-t { display: none; }
  .tablero { display: flex; flex-direction: column; min-height: 0; }
  .col-aviso { display: contents; }
  .col-aviso > * { margin-left: 16px !important; margin-right: 16px !important; }
  .selector { order: 1; margin-top: 18px; margin-bottom: 18px; }
  .aviso { order: 2; }
  .cifra { order: 3; margin: 16px 0 18px; padding-top: 16px; }
  .cifra-n { font-size: 76px; }
  .col-mapa { min-height: 460px; order: 4; }
  .col-distrito { order: 5; display: flex; align-items: stretch; padding: 18px 16px; border-top: 0; }
  .cadena { order: 6; margin-top: 8px; margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--linea); }
  .cadena::before, .cadena::after { top: 34px; }
  .leyenda { left: 10px; bottom: 12px; width: 200px; padding: 10px 12px; }
  .leyenda-aviso, .fuentes-mapa { display: none; }
  .controles { top: 10px; right: 10px; }
  .contenedor { padding: 0 16px; }
  .impacto, .metodo, .datos { padding: 72px 0; }
  .sec-cab.centro { margin-bottom: 36px; }
  .fuentes { grid-template-columns: 1fr; }
  .reglas { grid-template-columns: 1fr; }
  .fila-campo { grid-template-columns: 1fr; gap: 0; }
  .chat { min-height: 420px; }
}

/* Inscripción por WhatsApp (paso 4) */
.alta { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 46ch; counter-reset: alta; }
.alta li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--tinta-2); }
.alta code { font: 700 13px/1 var(--mono); color: var(--wa); background: var(--wa-burbuja); padding: 6px 9px; border-radius: var(--r); justify-self: start; white-space: nowrap; }
.alta-nota { margin: 16px 0 0 !important; font-size: 13.5px !important; color: var(--tinta-3) !important; }
.alta-nota i { margin-right: 6px; vertical-align: -2px; }
.alta-nota a { color: var(--cochinilla); }

/* Pruebas: registro de mediciones */
.pruebas { padding: 40px 0 120px; }
.registro { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea-2); }
.registro li { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.revela.visto.registro li { animation: sube .26s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes sube { from { opacity: 0; transform: translateY(6px); } }
.reg-n { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-variant-numeric: tabular-nums lining-nums slashed-zero; }
.reg-n b { font-size: 76px; line-height: .86; letter-spacing: -.05em; font-weight: 900; }
.reg-n span { font-size: 13px; font-weight: 700; color: var(--tinta-3); text-transform: uppercase; letter-spacing: .08em; }
.registro h3 { margin: 4px 0 8px; font-size: 21px; letter-spacing: -.02em; font-weight: 800; display: flex; gap: 9px; align-items: center; }
.registro h3 i { font-size: 22px; color: var(--cochinilla); }
.registro p { margin: 0; color: var(--tinta-2); max-width: 62ch; text-wrap: pretty; }
.reg-falla .reg-n b { color: var(--naranja-tinta); }
.reg-falla h3 i { color: var(--naranja-tinta); }
.reg-pie { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 28px 0 0; font-size: 14px; }
.reg-pie a { display: inline-flex; gap: 6px; align-items: center; color: var(--tinta); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--linea-2); padding-bottom: 2px; }
.reg-pie a:hover, .reg-pie a:focus-visible { border-color: var(--cochinilla); color: var(--cochinilla); }
.reg-pie span { color: var(--tinta-3); flex-basis: 100%; }
@media (max-width: 720px) {
  .registro li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .reg-n b { font-size: 60px; }
  .alta li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .revela.visto.registro li { animation: none; } }
