/* Landing: plano vectorial + videos. Usa los tokens y componentes de style.css (--ink, --brand, .btn, .wrap-wide). */
.l-k { margin: 0 0 8px; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }

/* Mapa a pantalla completa bajo el hero; cards de videos a la izquierda y el video como card a la derecha (como el panel del sitio) */
.l-escena { --rep: clamp(340px, calc((100dvh - 196px) * .5625 + 32px), 460px); position: relative; height: 100dvh; min-height: 680px; border-bottom: 1px solid var(--line); background: #E7F0FF; }
.l-mapa { position: absolute; inset: 0; }
#l-mapa { position: absolute; inset: 0; }
.l-lista, .l-reproductor { position: absolute; z-index: 6; top: 86px; bottom: 16px; background: #fff; border-radius: 14px; overflow: auto;
  box-shadow: 0 10px 30px -14px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.07); }
.l-lista { left: 16px; width: 336px; }
.l-lista-k { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
  font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.l-lista-in { padding: 18px 20px 20px; }
.l-lista h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.l-lista-in > p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.l-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.l-cards button { width: 100%; display: grid; grid-template-columns: 36px 1fr 16px; grid-template-areas: "ic t ch"; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.l-cards button:hover { border-color: #C9D3E3; box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.l-cards button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,111,224,.14); }
.l-cards .l-ic { grid-area: ic; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #EEF4FD; color: var(--brand); }
.l-cards button[aria-pressed="true"] .l-ic { background: var(--brand); color: #fff; }
.l-cards svg, .l-cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-cards .l-t { grid-area: t; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.l-cards .l-d { grid-area: d; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.l-cards .l-m { grid-area: m; margin-top: 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.l-cards .l-ch { grid-area: ch; color: #9AA3B2; }
.l-cards .l-ch svg { width: 16px; height: 16px; }

.l-reproductor { right: 16px; width: var(--rep); display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; overflow: hidden; }
.l-reproductor[hidden] { display: none; }
.l-rep-cab { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.l-rep-k { margin: 0 0 2px; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.l-rep-cab h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.l-cerrar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; }
.l-cerrar:hover { background: var(--line); color: var(--ink); }
.l-video { flex: 1; min-height: 0; display: flex; justify-content: center; background: #0b0f19; border-radius: 12px; overflow: hidden; }
.l-video video { display: block; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #0b0f19; }
.l-ahora { padding: 12px 14px; border: 1px solid #d6e3f8; border-radius: 12px; background: #EEF4FD; }
.l-ahora .l-tag { margin: 0 0 4px; font: 600 10.5px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.l-ahora h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; color: var(--ink); }
.l-ahora p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.l-ahora .l-fuente { margin-top: 6px; font-size: 12px; color: var(--muted); }
.l-escena .maplibregl-ctrl-top-right { top: 76px; right: 6px; transition: right .2s; }
.l-escena.con-video .maplibregl-ctrl-top-right { right: calc(var(--rep) + 22px); }

/* Sobre el mapa */
.l-aviso { position: absolute; top: 100px; left: 368px; right: 60px; z-index: 5; margin: 0; }
.l-aviso:not(:empty) { width: fit-content; padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px -14px rgba(15,27,45,.35); font-size: 14px; color: var(--ink-2); }
.l-leyenda { position: absolute; right: 16px; bottom: 16px; z-index: 5; width: 272px; max-height: calc(100% - 180px); overflow-y: auto; overscroll-behavior: contain;
  padding: 9px 12px 8px; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 12px;
  box-shadow: 0 10px 30px -14px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.07); color: var(--ink-2); }
.l-escena.con-video .l-leyenda { right: calc(var(--rep) + 32px); }
.l-leyenda summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink); }
.l-leyenda summary::-webkit-details-marker { display: none; }
.l-leyenda summary::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; }
.l-leyenda[open] summary { margin-bottom: 6px; }
.l-leyenda[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.l-leyenda:not([open]) { width: auto; }
.l-leyenda ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.l-leyenda li { display: flex; align-items: center; gap: 4px; }
.l-fam { margin: 0; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.l-fam small { display: none; }
.l-chips { display: flex; gap: 2px; }
.l-chips span { display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px 1px 2px; border-radius: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-chips i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.l-vistas { display: flex; width: 100%; gap: 2px; margin: 0 0 8px; padding: 2px; border-radius: 8px; background: #EEF0F3; }
.l-vistas button { border: 0; flex: 1; padding: 4px; border-radius: 6px; background: none; font: 600 10.5px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.l-vistas button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,27,45,.15); }
.l-chips-vista { flex-wrap: wrap; gap: 4px 8px; }
.l-mas { margin-top: 6px; }
.l-mas summary { font-size: 11px; font-weight: 600; color: var(--brand, #2150e0); cursor: pointer; list-style: none; }
.l-mas summary::-webkit-details-marker { display: none; }
.l-mas summary::before { content: '+ '; }
.l-mas[open] summary::before { content: '− '; }
.l-mas ul { margin-top: 6px !important; }
.l-leyenda-pdf { display: inline-block; margin-top: 6px; font-size: 10.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.l-leyenda-pdf:hover { color: var(--ink); }
.l-sc-rot { padding: 1px 5px; border-radius: 999px; background: #171B21; color: #fff; font: 800 10px/1.3 'Hanken Grotesk', system-ui, sans-serif; letter-spacing: .02em; border: 0; cursor: zoom-in; white-space: nowrap; box-shadow: 0 0 0 1.5px #fff; }
.l-sc-rot:hover, .l-sc-rot:focus-visible { background: var(--brand, #2150e0); outline: none; }
.l-sc-rot.l-sc-barrial { font-size: 9px; }
.l-ficha-src { margin: -4px 0 10px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.l-ficha-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.l-sc { width: 22px; height: 10px; stroke: #171B21; stroke-width: 1.8; fill: none; }
.l-sc-claro { background: #9AA1AB; border-radius: 2px; }
.l-como { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.l-como summary { display: flex; align-items: center; justify-content: flex-start; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.l-como summary::after { display: none; }
.l-como summary:hover, .l-como[open] summary { color: var(--ink); }
.l-como-i { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border: 1.3px solid currentColor; border-radius: 50%; font: italic 700 9.5px/1 Georgia, serif; }
.l-como p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }

/* Ficha de una zona */
.maplibregl-popup-content { font-family: 'Hanken Grotesk', system-ui, sans-serif; border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(15,27,45,.5), 0 0 0 1px rgba(15,27,45,.08); }
.maplibregl-popup-close-button { top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); background: var(--bg); }
.maplibregl-popup-close-button:hover { background: var(--line); color: var(--ink); }
.l-ficha { width: 280px; padding: 14px 16px 16px; border-top: 5px solid var(--c); }
.l-ficha-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.l-ficha-t { display: flex; align-items: center; gap: 8px; margin: 4px 36px 12px 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.l-ficha-t i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.l-ficha-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.l-ficha-datos span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 11.5px; color: var(--muted); }
.l-ficha-datos b { font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.l-ficha-d { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.l-ficha-prop { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.l-ficha-prop-t { margin: 3px 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.l-ficha-prop .l-ficha-d { font-size: 12.5px; color: var(--ink-2); }
.l-ficha-hoy { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #F3F4F6; }
.l-ficha-hoy p:not(.l-ficha-k) { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.l-zona { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 5px; background: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.l-opinar h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111418; }
.l-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.l-acciones .btn { min-height: 44px; }

/* Metodología */
.l-metodo { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.l-metodo-in { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.l-metodo-video { background: #0b0f19; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(15,27,45,.55); }
.l-metodo-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #0b0f19; }
.l-metodo h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111418; }
.l-metodo-lead { margin: 12px 0 0; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.l-pasos { list-style: none; counter-reset: paso; margin: 24px 0 28px; padding: 0; display: grid; gap: 14px; max-width: 46em; }
.l-pasos li { counter-increment: paso; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.l-pasos li::before { content: counter(paso); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #EEF4FD; color: var(--brand); font: 600 13px/1 'Hanken Grotesk', system-ui, sans-serif; }
.l-pasos b { color: var(--ink); }

/* Cómo opinar */
.l-opinar { padding: 56px 0; background: radial-gradient(900px 380px at 85% 0%, rgba(38,111,224,.14), transparent 60%), #E7F0FF; scroll-margin-top: 84px; }
.l-opinar-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.l-opinar ol { margin: 20px 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; color: var(--ink-2); }
.l-opinar p { color: var(--ink-2); }
.l-qr { margin: 0; text-align: center; padding: 18px; background: #fff; border: 1px solid #d6e3f8; border-radius: 14px; }
.l-qr figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Celular: mapa arriba (fijo bajo la cabecera), luego el video abierto y las cards */
@media (max-width: 899px) {
  .l-escena { height: auto; min-height: 0; background: #fff; scroll-margin-top: 64px; }
  .l-mapa { position: sticky; top: 64px; z-index: 4; height: 44vh; background: #E7F0FF; border-bottom: 1px solid var(--line); }
  .l-aviso { top: 10px; left: 10px; right: 50px; }
  .l-leyenda, .l-escena.con-video .l-leyenda { left: 8px; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 10px; }
  .l-leyenda[open] summary { margin-bottom: 4px; }
  .l-leyenda ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .l-leyenda li { flex: none; }
  .l-leyenda-pdf { margin-top: 3px; }
  .l-escena .maplibregl-ctrl-top-right, .l-escena.con-video .maplibregl-ctrl-top-right { top: 0; right: 0; }
  .l-lista, .l-reproductor { position: static; width: auto !important; box-shadow: none; border-radius: 0; overflow: visible; }
  .l-reproductor { padding: 16px; border-bottom: 1px solid var(--line); }
  .l-lista-k { display: none; }
  .l-lista-in { padding: 20px 16px 28px; }
  .l-video { flex: none; }
  .l-video video { height: min(72vh, 620px); }
  .l-metodo { padding: 40px 0; }
  .l-metodo-in { grid-template-columns: 1fr; gap: 28px; }
  .l-metodo-video { justify-self: center; width: min(100%, 320px); }
  .l-opinar { padding: 40px 0; }
  .l-opinar-in { grid-template-columns: 1fr; }
  .l-qr { display: none; }
}

/* Logos de apoyo, al pie del hero (sobre su fondo) */
.l-apoyos { width: 100%; margin-top: clamp(80px, 18vh, 200px); }
.l-apoyos-k { margin: 0 0 14px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.l-apoyos-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 56px; }
.l-apoyos-lista img { display: block; height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; transition: opacity .2s; }
.l-apoyos-lista img:hover { opacity: 1; }
@media (max-width: 640px) { .l-apoyos-lista { gap: 10px 32px; } .l-apoyos { margin-top: 32px; } }
.l-mapa .maplibregl-popup { z-index: 6; } /* la ficha queda sobre la leyenda */
.l-leyenda .l-mas summary { display: block; margin: 0; font-size: 11px; font-weight: 600; color: var(--brand, #2150e0); }
.l-leyenda .l-mas summary::after { display: none; }
/* Simbología en columna, como el plano oficial */
.l-leyenda ul { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
.l-fila { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.l-fila > i { flex: none; width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.l-fila > svg { flex: none; width: 22px; }
.l-fila small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.l-sep { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 899px) { .l-leyenda, .l-escena.con-video .l-leyenda { width: auto; max-height: 55vh; } .l-leyenda ul { overflow-x: visible; } }

/* Pie con cuatro columnas: descripción, navegar, fuentes, contacto */
.landing .pfoot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .landing .pfoot-grid { grid-template-columns: 1fr; } }
.landing .pfoot-txt { margin-bottom: 8px !important; font-size: 13px; }
.landing .pfoot { padding-bottom: 40px; }   /* sin la línea legal, el margen inferior va en el pie */

/* Ficha de empresas del subcentro: panel derecho de alto completo (segundo clic en el rótulo SC-xx) */
.l-sc-panel { position: absolute; z-index: 8; top: 86px; right: 16px; bottom: 16px; width: min(380px, calc(100% - 400px)); display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px 16px; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px -20px rgba(15,27,45,.45); overflow-y: auto; overscroll-behavior: contain; }
.l-sc-panel[hidden] { display: none; }
.l-sc-panel .l-rep-k { margin: 0 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#l-sc-cont { display: flex; flex-direction: column; gap: 10px; }
.l-sc-img { display: block; width: 100%; height: auto; aspect-ratio: 2.4 / 1.25; border-radius: 10px; }
.l-sc-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.l-sc-kpi span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: #F4F6F9; font-size: 10.5px; color: var(--muted); }
.l-sc-kpi b { font-size: 16px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.l-sc-res { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.l-sc-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: #EEF0F3; }
.l-sc-tabs button { flex: 1; border: 0; padding: 5px 4px; border-radius: 6px; background: none; font: 600 11.5px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.l-sc-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,27,45,.15); }
.l-sc-filas { list-style: none; margin: 0; padding: 0; }
.l-sc-filas li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 30px 44px; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.l-sc-filas li + li { border-top: 1px solid #F0F2F5; }
.l-sc-k { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-sc-filas b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.l-sc-v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-sc-bar { height: 6px; border-radius: 3px; background: #EEF0F3; overflow: hidden; }
.l-sc-bar i { display: block; height: 100%; border-radius: 3px; background: #2150e0; }
.l-sc-gris .l-sc-k, .l-sc-gris b, .l-sc-gris .l-sc-v { color: var(--muted); font-weight: 500; }
.l-sc-gris .l-sc-bar { background: none; }
.l-sc-nota { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); }
.l-sc-vacio { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.l-sc-src { margin: 0; padding-top: 8px; border-top: 1px solid #EEF0F3; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
/* Celular: hoja desde abajo */
@media (max-width: 899px) {
  .l-sc-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78dvh; border-radius: 16px 16px 0 0; z-index: 60; }
}
.l-sc-grupos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.l-sc-grupos button { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid #E3E7EC; border-radius: 10px; background: #fff;
  font: 600 12.5px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--muted); cursor: pointer; text-align: left; }
.l-sc-grupos button small { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.l-sc-grupos button[aria-selected="true"] { border-color: #171B21; color: var(--ink); box-shadow: inset 0 0 0 1px #171B21; }
[data-sc-g] { display: flex; flex-direction: column; gap: 10px; }
[data-sc-g][hidden] { display: none; }

/* Ficha de zona: nunca más alta que el mapa disponible (si igual no cabe, scroll propio) */
.l-mapa .maplibregl-popup-content:has(.l-ficha) { max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; }

/* Celular: aviso compacto; la hoja inferior también muestra la ficha de zona (sin cabecera propia: la ficha trae la suya) */
@media (max-width: 899px) {
  .l-aviso:not(:empty) { font-size: 12.5px; padding: 7px 10px; line-height: 1.35; }
  .l-hoja-zona .l-rep-cab { position: sticky; top: -14px; justify-content: flex-end; height: 0; z-index: 2; }
  .l-hoja-zona .l-rep-cab > div { display: none; }
  .l-hoja-zona .l-cerrar { margin-top: 0; background: #fff; box-shadow: 0 2px 8px rgba(15,27,45,.15); }

  .l-sc-panel.l-hoja-zona { max-height: 60dvh; }
}

/* Ficha de zona: encabezado común y dos columnas, propuesta (color de la zona) | hoy (gris), que se apilan si no caben */
.l-ficha.l-ficha-ancha { width: clamp(300px, calc(100vw - 760px), 640px); padding: 14px 14px 14px; border-top: 0; }
.l-f-cab { padding-right: 30px; margin-bottom: 10px; }
.l-f-cab .l-ficha-t { margin: 2px 0 0; font-size: 17px; }
.l-f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; align-items: stretch; }
.l-f-bloque { padding: 12px; border-radius: 12px; min-width: 0; }
.l-f-prop { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.l-f-prop .l-ficha-datos { margin-bottom: 6px; }
.l-f-prop .l-ficha-datos span { background: #fff; padding: 7px 9px; }
.l-f-prop .l-ficha-datos b { font-size: 16px; }
.l-f-hoy { background: #F3F4F6; border: 2px solid #E3E6EA; }
.l-f-hoy .norm-hoy { margin: 0; padding: 0; background: none; }
.l-f-hoy .norm-hoy > p:first-child { display: none; }   /* «Hoy, en el punto seleccionado»: ya lo dice la etiqueta */
.l-f-hoy .norm-hoy > p:nth-child(2) { margin-top: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.l-f-prop .norm-propuesta > p:first-child { font-size: 14px; }
.l-f-etq { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.l-f-etq span { padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.l-f-prop .l-f-etq span { background: #171B21; color: #fff; }
.l-f-hoy .l-f-etq span { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #C9CED6; }
.l-f-cols .l-ficha-src { font-size: 10.5px; }
@media (max-width: 899px) { .l-hoja-zona .l-ficha.l-ficha-ancha { width: auto; padding: 30px 0 0; } }

/* Al final de la lista: «Pídenos un video» y los videos hechos a pedido */
.l-pedir-caja { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #D5DBE4; display: grid; gap: 8px; }
.l-pedir-card { display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: #EEF4FD; border: 1px solid #D6E3F8; text-decoration: none; color: var(--ink); }
.l-pedir-card:hover { border-color: var(--brand); }
.l-pedir-card .l-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; }
.l-pedir-card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-pedir-card .l-ch { color: var(--brand); }
.l-pedir-tx { display: flex; flex-direction: column; gap: 1px; }
.l-pedir-q { font-size: 12px; color: var(--ink-2); }
.l-pedir-tx b { font-size: 14px; color: var(--brand); }
.l-pedir-k { margin: 4px 2px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Rótulos de subcentro como botones: «+» siempre; ya acercado, «SC-xx · Ver empresas →» en azul con un pulso */
.l-sc-rot { display: inline-flex; align-items: center; gap: 4px; padding: 2px 3px 2px 7px; cursor: pointer; transition: transform .15s, background .15s; }
.l-sc-rot:hover { transform: scale(1.12); }
.l-sc-mas { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.25); }
.l-sc-mas::before { content: "+"; font-size: 11px; font-weight: 800; line-height: 1; }
.l-sc-cta { display: none; }
.l-sc-rot.l-sc-activo { gap: 6px; padding: 5px 5px 5px 11px; font-size: 12px; background: var(--brand, #2150e0); box-shadow: 0 0 0 2px #fff, 0 6px 16px -4px rgba(33,80,224,.6); animation: l-sc-pulso 1.4s ease-out 2; }
.l-sc-rot.l-sc-activo .l-sc-cta { display: inline; font-weight: 700; }
.l-sc-rot.l-sc-activo .l-sc-id::after { content: " ·"; opacity: .7; }
.l-sc-rot.l-sc-activo .l-sc-mas { width: 18px; height: 18px; background: #fff; color: var(--brand, #2150e0); }
.l-sc-rot.l-sc-activo .l-sc-mas::before { content: "→"; font-size: 12px; }
@keyframes l-sc-pulso { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(33,80,224,.55); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 14px rgba(33,80,224,0); } }
@media (prefers-reduced-motion: reduce) { .l-sc-rot.l-sc-activo { animation: none; } .l-sc-rot:hover { transform: none; } }
.l-pedir-card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.l-rep-pedido { margin: 0; padding: 10px 12px; border-radius: 10px; background: #EEF4FD; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.l-rep-pedido[hidden] { display: none; }
.l-rep-pedido a { color: var(--brand, #2150e0); font-weight: 700; }
.l-pedir-card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,111,224,.14); }
.l-rep-pedido p { margin: 0 0 8px; }
.l-rep-pedidos { display: flex; flex-wrap: wrap; gap: 6px; }
.l-rep-pedidos button { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid #C9D6EE; background: #fff;
  font: 600 12px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.l-rep-pedidos button small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.l-rep-pedidos button[aria-pressed="true"] { background: var(--brand, #2150e0); border-color: var(--brand, #2150e0); color: #fff; }
.l-rep-pedidos button[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.l-f-hoy .norm-hoy-c > p:first-child { font-size: 14px; }
.l-sc-grupo { margin: 0; font-size: 12px; color: var(--ink-2); }
.l-leyenda .l-fila small { display: inline; margin: 0; white-space: nowrap; }
@media (min-width: 900px) { .l-leyenda { width: 300px; } }
.l-f-prop .norm-propuesta { margin-bottom: 10px; }
.l-f-letra { margin-top: 10px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--c) 35%, #fff); }
.l-f-letra p { margin: 0 0 4px; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.l-f-letra a { color: inherit; }

/* Ficha de subcentro: pestañas Empresas | Población y medidas de población (PR #202) */
.l-sc-temas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.l-sc-temas button { padding: 8px 10px; border: 1px solid #E3E7EC; border-radius: 10px; background: #fff; font: 700 13px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.l-sc-temas button[aria-selected="true"] { border-color: #171B21; color: var(--ink); box-shadow: inset 0 0 0 1px #171B21; }
[data-sc-t] { display: flex; flex-direction: column; gap: 10px; }
[data-sc-t][hidden] { display: none; }
.l-sc-pob { padding: 10px 12px; border-radius: 10px; background: #F4F6F9; }
.l-sc-pob-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.l-sc-pob-v { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.l-sc-pob-v b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.l-sc-mini { display: block; width: 100%; height: 34px; }
.l-sc-pob-d { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }
.l-sc-src a { color: inherit; }
.l-censo-btn { padding: 9px 12px; border-radius: 10px; border: 1px solid #C9D6EE; background: #EEF4FD; font: 700 12.5px/1.2 'Hanken Grotesk', system-ui, sans-serif; color: var(--brand, #2150e0); cursor: pointer; text-align: left; }
.l-censo-btn[aria-pressed="true"] { background: var(--brand, #2150e0); color: #fff; border-color: var(--brand, #2150e0); }
.l-censo-ley[hidden] { display: none; }
.l-censo-ley ul { list-style: none; margin: 6px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11.5px; color: var(--ink-2); }
.l-censo-ley li { display: flex; align-items: center; gap: 6px; }
.l-censo-ley i { width: 14px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.l-censo-pop { width: 240px; padding: 12px 14px; }
.l-censo-pop h4 { margin: 2px 0 4px; font-size: 16px; }
.l-censo-pop p { margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }

/* Celular: sin desborde lateral (el fondo del hero escalado medía 488 px en 474), rótulo activo corto y encima de los demás,
   y la cabecera de la hoja (título y cerrar) fija al hacer scroll */
html, body { overflow-x: clip; }
.l-sc-cta-c { display: none; }
.l-sc-rot.l-sc-activo { z-index: 3; }
@media (max-width: 899px) {
  .l-sc-cta-l { display: none; }
  .l-sc-cta-c { display: inline; }
  .l-sc-rot.l-sc-activo { padding: 4px 4px 4px 9px; font-size: 11px; }
  .l-sc-panel { padding-top: 0; }
  .l-sc-panel:not(.l-hoja-zona) .l-rep-cab { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 12px 16px 8px; background: #fff; border-bottom: 1px solid #EEF0F3; }
  .l-sc-panel.l-hoja-zona { padding-top: 14px; }
}
/* Celular: el mapa de arriba ya muestra el círculo; la imagen sobra y empuja los datos */
@media (max-width: 899px) { #l-sc-cont .l-sc-img { display: none; } }
@media (max-width: 899px) { .l-sc-panel:not(.l-hoja-zona) { max-height: 56dvh; } }
.l-apoyos-lista img[src*="powered-by-unholster"] { max-width: 120px; }   /* un poco más chico que el de Las Salinas */
.landing .pfoot-fecha { margin-top: 10px !important; font-size: 12px; color: #7D8696 !important; }
.l-fila-oculta { display: none !important; }
.l-ley-mas { margin: 2px 0 0; padding: 0; border: 0; background: none; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; color: var(--brand, #2150e0); cursor: pointer; }

/* Mapa más grande: lista de videos más angosta y compacta (336 → 264 px) */
@media (min-width: 900px) {
  .l-lista { width: 264px; }
  .l-lista-in { padding: 14px 14px 16px; }
  .l-lista h2 { font-size: 14px; }
  .l-lista-in > p { font-size: 12px; margin-bottom: 10px; }
  .l-cards { gap: 6px; }
  .l-cards button { grid-template-columns: 30px 1fr 14px; gap: 10px; padding: 8px 10px; border-radius: 12px; }
  .l-cards .l-ic { width: 30px; height: 30px; border-radius: 8px; }
  .l-cards .l-t { font-size: 13px; }
  .l-pedir-card { grid-template-columns: 30px 1fr 14px; gap: 10px; padding: 9px 10px; }
  .l-pedir-card .l-ic { width: 30px; height: 30px; }
  .l-aviso { left: 296px; }

}

/* Cuenta regresiva compacta en la cabecera: solo cuando ya no se ve el hero; cajas como las del hero, en chico */
.l-cab-cuenta { display: flex; align-items: center; gap: 4px; margin: 0 10px 0 0; white-space: nowrap; }
body.sobre-hero .l-cab-cuenta, .l-cab-cuenta:empty { display: none; }
.l-cab-k { margin-right: 4px; font-size: 9.5px; font-weight: 700; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.l-cab-n { display: flex; flex-direction: column; align-items: center; min-width: 36px; padding: 3px 5px 2px; border-radius: 8px; background: #EEF2F7; box-shadow: inset 0 0 0 1px rgba(15,27,45,.06); }
.l-cab-n b { font-size: 15px; font-weight: 800; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.l-cab-n i { font-style: normal; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) { .l-cab-s { display: none; } }
@media (max-width: 899px) { .l-cab-k, .l-cab-m { display: none; } .l-cab-cuenta { margin-right: 4px; } .l-cab-n { min-width: 32px; } .l-cab-n b { font-size: 13px; } }
/* Buscador sobre el mapa */
.l-buscar-mapa { position: absolute; z-index: 6; top: 96px; left: 296px; width: min(340px, calc(100% - 640px)); min-width: 240px; display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 10px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -14px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.07); }
.l-buscar-mapa svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.l-buscar-mapa input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 500 13.5px/1.3 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); padding: 6px 0; }
.l-buscar-mapa button { flex: none; border: 0; border-radius: 9px; padding: 7px 12px; background: var(--brand, #2150e0); color: #fff; font: 700 12.5px/1.2 'Hanken Grotesk', system-ui, sans-serif; cursor: pointer; }
.l-buscar-mapa:focus-within { box-shadow: 0 0 0 3px rgba(38,111,224,.25), 0 10px 30px -14px rgba(15,27,45,.35); }
@media (min-width: 900px) { .l-aviso { top: 148px; } }
@media (max-width: 899px) {
  .l-buscar-mapa { top: 10px; left: 10px; right: 56px; width: auto; min-width: 0; }
  .l-aviso { top: 58px; }
}

/* Buscador del mapa con efecto vidrio y sugerencias */
.l-buscar-mapa { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 12px 34px -14px rgba(15,27,45,.45), inset 0 1px 0 rgba(255,255,255,.8); border-radius: 14px; padding: 5px 5px 5px 12px; }
.l-buscar-mapa:focus-within { background: rgba(255,255,255,.82); box-shadow: 0 0 0 3px rgba(38,111,224,.25), 0 12px 34px -14px rgba(15,27,45,.45); }
.l-buscar-mapa svg { stroke: var(--ink-2); }
.l-buscar-mapa input::placeholder { color: #5E6775; }
.l-buscar-mapa button { border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(33,80,224,.6); }
.l-sug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 7; list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 16px 40px -16px rgba(15,27,45,.5); max-height: 320px; overflow-y: auto; }
.l-sug[hidden] { display: none; }
.l-sug li[role="option"] { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.l-sug li[role="option"]:hover, .l-sug li[aria-selected="true"] { background: rgba(33,80,224,.1); }
.l-sug li svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--brand, #2150e0); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-sug li span { display: flex; flex-direction: column; min-width: 0; }
.l-sug li b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-sug li small { font-size: 11px; color: var(--muted); }
.l-sug-k { padding: 4px 8px 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Aviso del mapa: chico, del ancho del buscador y con el mismo vidrio */
@media (min-width: 900px) { .l-aviso { top: 146px; width: auto; max-width: min(340px, calc(100% - 640px)); } }
.l-aviso:not(:empty) { width: fit-content; padding: 6px 10px; font-size: 12px; line-height: 1.35; color: var(--ink-2); border-radius: 10px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 24px -14px rgba(15,27,45,.45); }
.l-rep-vers[hidden] { display: none; }

/* Compartir por WhatsApp (ficha de zona y reproductor) */
.l-wa { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: #E7F8EE; color: #1DA851; }
.l-wa:hover { background: #25D366; color: #fff; }
.l-wa svg { width: 17px; height: 17px; fill: currentColor; }
.l-f-cab { position: relative; padding-right: 76px; }
.l-hoja-zona .l-f-cab { padding-right: 44px; }
.l-f-cab .l-wa { position: absolute; top: -2px; right: 36px; }
.l-hoja-zona .l-f-cab .l-wa { right: 4px; }

/* Cuenta regresiva del hero, más grande: número arriba y unidad abajo (como la portada anterior) */
.inicio-k.cuenta { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; background: none !important; border: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cuenta-t { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
.cuenta-n { flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 12px 8px 10px; border-radius: 14px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cuenta-n b { font-size: 36px; font-weight: 600; }
.cuenta-n i { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 599px) { .inicio-k.cuenta { gap: 8px; } .cuenta-n { min-width: 64px; padding: 10px 6px 8px; } .cuenta-n b { font-size: 28px; } }

/* Ficha: terreno buscado por rol (roles y franjas del plano dentro del terreno) */
.l-f-lote { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line, #E3E7EC); border-radius: 14px; background: #fff; }
.l-f-lote .l-f-etq { margin-bottom: 6px; }
.l-f-roles { margin: 0 0 8px; font-size: 13px; color: var(--muted, #5B6573); }
.l-f-roles b { color: var(--ink, #171B21); font-weight: 600; }
.l-f-sub { margin: 4px 0 6px; font-size: 13px; font-weight: 600; }
.l-f-barra { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #EEF0F3; }
.l-f-barra i { display: block; height: 100%; min-width: 2px; }
.l-f-franjas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.l-f-franjas li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.l-f-franjas li > i { width: 12px; height: 12px; border-radius: 3px; }
.l-f-franjas b { font-weight: 700; white-space: nowrap; }
.l-f-franjas small { font-weight: 400; color: var(--muted, #5B6573); }
.l-f-letra-lote { margin: 8px 0 0; font-size: 11.5px; color: var(--muted, #5B6573); }
.l-apoyos-lista a { display: block; }

/* Redes sociales en el pie */
.pfoot ul.pfoot-redes { display: flex; gap: 10px; margin: 16px 0 0; }
.pfoot-redes a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #E6E9EE; transition: background .2s, color .2s; }
.pfoot-redes a:hover { background: #fff; color: #0E1218; }
.pfoot-redes svg { width: 18px; height: 18px; }

/* Monto del rol buscado: conserva la tipografía y los espacios de la ficha. */
.l-contrib { margin: 18px 0 0; padding: 16px; background: var(--paper, #f7f8fa); border: 1px solid var(--line, #e2e5ea); border-radius: 12px; }
.l-contrib .l-f-etq { margin: 0 0 8px; }
.l-contrib-monto { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: var(--ink, #171B21); font-variant-numeric: tabular-nums; }
.l-contrib-monto span { font-size: 13px; font-weight: 400; color: var(--muted, #667085); }
.l-contrib-periodo { margin: 0 0 6px; font-size: 13px; }
.l-contrib .norm-fuente { margin-bottom: 0; }

/* Acordeones dentro de la tarjeta del plano: «Categorías y subcentros» y «Capas: vivienda» */
.l-leyenda .l-acc { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.l-leyenda .l-acc > summary { margin: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.l-leyenda .l-acc[open] > summary { margin-bottom: 8px; color: var(--ink); }
.l-leyenda .l-acc:not([open]) > summary::after { transform: rotate(45deg) translate(-1px, -1px); }   /* la regla de la tarjeta abierta las giraba todas */
.l-leyenda details { border-bottom: 0; padding: 0; }   /* style.css le pone borde y relleno a todo details: duplicaba separadores y dejaba huecos */
.l-leyenda .l-mas { margin-bottom: 2px; }
@media (max-width: 899px) { .l-leyenda, .l-escena.con-video .l-leyenda { max-height: calc(100% - 72px); } }   /* abierta no tapa el buscador */
.l-capas ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid !important; gap: 6px; }
.l-capas li { display: block !important; }
.l-capas label { display: flex; align-items: flex-start; gap: 7px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.l-capas input { margin: 1px 0 0; accent-color: var(--brand); }
.l-capas label i { flex: none; width: 12px; height: 12px; margin-top: 1px; border-radius: 3px; opacity: .85; }
.l-capas small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.l-capas-nota { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); }
/* Ficha de vivienda: ancho fijo (el popup comparte instancia con la ficha ancha de zona) y textos que cortan dentro de la tarjeta */
.l-ficha.l-vf { width: 300px; box-sizing: border-box; }
.l-vf * { min-width: 0; overflow-wrap: anywhere; }
.l-vf .l-ficha-datos { margin-bottom: 10px; }
.l-vf-caja { padding: 10px 12px; border-radius: 10px; background: #F3F4F6; }
.l-vf-caja .l-ficha-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.l-vf-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 12.5px; color: var(--muted); }
.l-vf-fila + .l-vf-fila { border-top: 1px solid var(--line); }
.l-vf-fila b { text-align: right; font-size: 13px; color: var(--ink); }
.l-vf-fila small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.l-vf-chip { padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 10px; letter-spacing: .02em; text-transform: none; }
.l-vf-si { background: #E7F5EC; color: #1B7A3D; } .l-vf-no { background: #FDECEA; color: #B42318; }
.l-vf-dir { margin: 0 0 8px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.l-vf-nota { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.l-vf-src { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.l-vf-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.l-viv-src { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--brand); text-decoration: none; }
.l-viv-src:hover { text-decoration: underline; }
.l-viv-proy { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.l-viv-proy li { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.l-viv-proy h4 { margin: 2px 0; font-size: 14px; line-height: 1.3; color: var(--ink); }
.l-viv-proy p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.l-viv-et { font-size: 11.5px !important; color: var(--muted) !important; }

/* Ficha de zona compacta: contribución en una línea arriba, letra chica plegada, «Hoy» recortado */
.l-contrib-corto { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #F3F4F6; }
.l-contrib-corto p { margin: 0; font-size: 14px; color: var(--ink); }
.l-contrib-corto b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.l-contrib-k { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.l-contrib-corto .l-contrib-nota { margin-top: 2px; font-size: 11px; color: var(--muted); }
.l-contrib-nota a { color: inherit; }
.l-f-lote { padding: 10px 12px; margin-bottom: 10px; }
.l-f-lote .l-f-franjas { font-size: 12px; gap: 2px; }
.l-f-letra summary { font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 0 !important; border: 0; }
details.l-f-letra { border-bottom: 0; padding: 8px 0 0; }
.l-f-letra[open] summary { margin-bottom: 4px; }
.l-f-largo { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.l-f-largo.abierto { -webkit-line-clamp: unset; display: block; }

/* Enlaces al PDF y a los pisos de referencia: una sola línea */
.l-ley-links { margin: 8px 0 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-ley-links .l-leyenda-pdf { display: inline; margin: 0; }

/* Celular: mapa a pantalla completa, videos en hoja inferior (botón «Videos») y video a pantalla completa */
.l-videos-btn, .l-velo { display: none; }
@media (max-width: 899px) {
  .l-mapa { position: relative; top: auto; height: calc(100dvh - 64px); }
  .l-videos-btn { position: absolute; left: 8px; bottom: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px;
    border: 0; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px -8px rgba(15,27,45,.45), 0 0 0 1px rgba(15,27,45,.08);
    font: 700 13px/1 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); cursor: pointer; }
  .l-videos-btn svg { width: 18px; height: 18px; color: var(--brand); }
  .l-leyenda, .l-escena.con-video .l-leyenda { left: 104px; }   /* deja libre el botón «Videos» */
  .l-velo { position: fixed; inset: 0; z-index: 59; background: rgba(15,27,45,.4); }
  body.l-hoja-videos .l-velo { display: block; }
  body.l-hoja-videos { overflow: hidden; }
  .l-lista { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 78dvh; overflow-y: auto !important; overscroll-behavior: contain;
    border-radius: 18px 18px 0 0 !important; background: #fff; box-shadow: 0 -12px 40px -16px rgba(15,27,45,.45) !important;
    transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  body.l-hoja-videos .l-lista { transform: none; visibility: visible; transition: transform .25s ease; }
  .l-lista-k { display: block; padding: 18px 16px 10px; text-align: center; }
  .l-lista-k::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 12px; border-radius: 2px; background: #D5DBE4; }
  .l-lista-in { padding: 8px 16px 24px; }
  body.l-video-full { overflow: hidden; }
  body.l-video-full .l-reproductor:not([hidden]) { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; border: 0; }
  body.l-video-full .l-video { flex: 1; min-height: 0; display: flex; background: #0b0f19; border-radius: 12px; overflow: hidden; }
  body.l-video-full .l-video video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) { .l-lista { transition: none !important; } }

/* «Ajustar el mapa a la pantalla»: abajo al centro, solo cuando el mapa se ve a medias */
.l-ajustar { position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13.5px/1 'Hanken Grotesk', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(15,27,45,.6); }
.l-ajustar[hidden] { display: none; }
.l-salir { position: absolute; bottom: 12px; z-index: 5; }   /* dentro del mapa, solo mientras está activo */
@media (max-width: 899px) { .l-salir { top: 64px; bottom: auto; height: 36px; font-size: 13px; } }   /* abajo está la leyenda plegada */
.l-ajustar svg { width: 18px; height: 18px; }
.l-ajustar:hover { background: #000; }
/* Mismo rótulo que «Contribuciones» (.l-contrib-k); m² sin mayúsculas */
.l-f-lote-t { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.l-f-lote-t span { text-transform: none; }
.l-f-lote-s { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }

/* «¿Cómo me puede afectar?» y formulario «Pide tu video» */
.l-afecta { padding: 56px 0; background: #fff; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.l-afecta h1, .l-afecta h2 { margin: 0; max-width: none; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111418; }
.l-afecta-lead { margin: 14px 0 24px; max-width: 46em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.l-afecta-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.l-afecta-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 16px; background: #F4F7FC; border: 1px solid #DCE6F5; }
.l-afecta-card h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.l-afecta-card p { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.l-afecta-card .btn { margin-top: auto; min-height: 44px; }
.l-afecta-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--brand); font: 700 13px/1 'Hanken Grotesk', system-ui, sans-serif; box-shadow: inset 0 0 0 1px #DCE6F5; }
.l-afecta-cierre { margin: 24px 0 0; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) { .l-afecta { padding: 40px 0; } .l-afecta-acc { grid-template-columns: 1fr; } }
.l-link { padding: 0; border: 0; background: none; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.l-pv { width: min(460px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(15,27,45,.55); }
.l-pv::backdrop { background: rgba(15,27,45,.45); }
.l-pv-form { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.l-pv-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-pv-cab h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.l-pv-lead { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.l-pv label { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.l-pv input, .l-pv textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 16px/1.4 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); resize: vertical; }
.l-pv input:focus, .l-pv textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,111,224,.18); }
.l-pv-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.l-pv-priv { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.l-pv-estado { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.l-pv-estado:empty { display: none; }
.l-pv .btn { margin-top: 6px; min-height: 46px; }

/* Hero: «Ver qué cambia» es más largo que «Buscar» */
.inicio .combo input { padding-right: 330px; }
@media (max-width: 899px) { .inicio .combo input { padding-right: 16px; } }
/* Hero: «¿Prefieres que te lo expliquemos? Pide tu video» (reemplaza «O mira el plano y los videos») */
.inicio-pv { margin: 4px 0 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }   /* sobre el satélite oscuro del hero */
.inicio-pv-b { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; text-shadow: inherit; }
.inicio-pv-b:hover { text-decoration-color: #9CC2FF; }
/* Panel de videos: «Solicita tu video» con la promesa de plazo debajo */
.l-pedir-tx small { font-size: 11.5px; color: var(--muted); }
/* «Mi terreno»: buscador, videos por zona y pedir video */
.l-miterreno { padding: 56px 0; background: #F4F7FC; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.l-miterreno h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111418; }
.l-mt-lead { margin: 12px 0 18px; max-width: 46em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.l-mt-buscar { display: flex; gap: 8px; max-width: 640px; margin-bottom: 24px; }
.l-mt-buscar input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 16px 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); }
.l-mt-buscar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,111,224,.18); }
.l-mt-buscar .btn { min-height: 50px; white-space: nowrap; }
.l-mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.l-mt-bloque { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #DCE6F5; }
.l-mt-bloque h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.l-mt-bloque p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.l-mt-pedir .btn { margin-top: auto; min-height: 44px; }
.l-mt-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.l-mt-videos button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 14.5px 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.l-mt-videos button:hover { border-color: var(--brand); }
.l-mt-videos small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.l-mt-videos .l-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; }
@media (max-width: 760px) { .l-miterreno { padding: 40px 0; } .l-mt-grid { grid-template-columns: 1fr; } .l-mt-buscar { flex-direction: column; } }
/* Con 5 pestañas el menú no cabe junto al contador bajo ~1320 px: primero se esconde el contador de la cabecera
   (sigue grande en el hero) y bajo 1180 px el menú pasa a ☰ */
@media (max-width: 1319px) and (min-width: 900px) { .l-cab-cuenta { display: none !important; } }
@media (max-width: 1179px) and (min-width: 900px) { .top .nav { display: none; } .top .nav-movil { display: block; order: 3; } }
/* Hero: título y bajada con el ancho del buscador (680 px) */
.inicio h1, .inicio-sub { max-width: 680px; margin-left: auto; margin-right: auto; }
/* Título del hero en dos líneas en escritorio (el celular lo reparte según el ancho) */
@media (min-width: 900px) { .inicio h1 { max-width: 22em; font-size: clamp(34px, 3.8vw, 54px); } }
/* Páginas propias (mi-terreno.html, como-afecta.html): la cabecera flota arriba */
.pagina .l-pagina { padding-top: 84px; min-height: calc(100dvh - 120px); background: #F4F7FC; }
.pagina .l-miterreno, .pagina .l-afecta { border-bottom: 0; }
.pagina .l-afecta { background: #F4F7FC; }
.l-mt-videos a { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 14.5px 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); text-decoration: none; }
.l-mt-videos a:hover { border-color: var(--brand); }

/* «Mi terreno»: modal del video por zona (videos verticales 9:16) */
.l-vv { padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; max-width: none; max-height: none; }
.l-vv::backdrop { background: rgba(15,27,45,.7); }
.l-vv video { display: block; height: min(86dvh, 860px); max-width: calc(100vw - 24px); aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }
.l-vv .l-cerrar { position: absolute; top: -14px; right: -14px; z-index: 1; background: #fff; box-shadow: 0 2px 8px rgba(15,27,45,.3); }
@media (max-width: 600px) { .l-vv .l-cerrar { top: 8px; right: 8px; } }

/* «Solicita tu video»: la tarjeta abre, a la derecha de la lista, un panel con los videos por zona y el formulario */
.l-zonas { position: absolute; z-index: 5; top: 86px; left: 288px; width: 232px; max-height: calc(100% - 102px); display: flex; flex-direction: column; gap: 8px;
  padding: 12px 12px 14px; background: #fff; border-radius: 14px; overflow-y: auto; box-shadow: 0 10px 30px -14px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.07);
  transform: translateX(calc(-100% - 12px)); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .2s ease, visibility 0s .3s; }
.l-zonas.abierto { transform: none; opacity: 1; visibility: visible; transition: transform .3s ease, opacity .2s ease; }   /* sale desde atrás de la lista */
.l-zonas .l-rep-cab h2 { font-size: 15px; }
.l-zonas .l-cerrar { width: 28px; height: 28px; }
.l-pedir-lista { gap: 6px; }
.l-pedir-lista button { gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.l-pedir-lista .l-ic svg { width: 15px; height: 15px; }
.l-pedir-lista small { margin-left: 4px; font-size: 12px; }
.l-pedir-card[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(38,111,224,.14); }
.l-pedir-lista { margin: 0; }
.l-pedir-lista button[aria-pressed="true"] { border-color: var(--brand); background: #EEF4FD; }
.l-pedir-otro { width: 100%; padding: 8px 10px; border: 1px dashed #C9D6EE; border-radius: 12px; background: #fff;
  font: 500 13px 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink-2); text-align: left; cursor: pointer; }
.l-pedir-otro b { color: var(--brand); }
.l-pedir-otro small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.l-pedir-otro:hover { border-color: var(--brand); }
@media (max-width: 899px) {   /* celular: el panel cubre la hoja de videos */
  .l-zonas { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 61; width: auto; max-height: 78dvh; padding: 14px 16px 20px; border-radius: 18px 18px 0 0; transform: translateY(105%); }
  body:not(.l-hoja-videos) .l-zonas { visibility: hidden; }
}
.l-rep-pedido p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .l-zonas { transition: none !important; } }
@media (min-width: 900px) {   /* con el panel de videos por zona abierto, el buscador del mapa se corre a su derecha */
  .l-buscar-mapa { transition: left .3s ease; }
  body.l-zonas-abierto .l-buscar-mapa { left: 532px; }
}
/* Reproductor, videos por zona: anterior · ver todos · siguiente */
.l-rep-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.l-rep-nav button { flex: none; padding: 6px 10px; border: 1px solid #C9D6EE; border-radius: 999px; background: #fff; font: 600 12.5px 'Hanken Grotesk', system-ui, sans-serif; color: var(--brand); cursor: pointer; }
.l-rep-nav .l-rep-todos { flex: 1; border: 0; background: none; color: var(--ink-2); }
.l-rep-nav button:hover { border-color: var(--brand); }
.l-rep-pedido p { font-size: 12px; }
/* Tarjeta «Videos de tu zona»: una sola fila (ícono · título y bajada · flecha) */
.l-pedir-card { grid-template-columns: 30px 1fr 16px; grid-template-areas: "ic t ch" "ic s ch"; column-gap: 10px; row-gap: 1px; padding: 9px 10px 9px 10px;
  background: linear-gradient(135deg, #EEF4FD, #E3EDFC); }
.l-pedir-tx { display: contents; }
.l-pedir-card .l-ic { grid-area: ic; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 10px -4px rgba(33,80,224,.6); }
.l-pedir-card .l-ic svg { width: 16px; height: 16px; }
.l-pedir-tx b { grid-area: t; align-self: end; font-size: 13.5px; line-height: 1.2; }
.l-pedir-tx small { grid-area: s; align-self: start; font-size: 11.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-pedir-card .l-ch { grid-area: ch; align-self: center; transition: transform .2s; }
.l-pedir-card:hover .l-ch, .l-pedir-card[aria-expanded="true"] .l-ch { transform: translateX(3px); }
.l-zonas .l-rep-cab { align-items: center; }

/* ---------- Carrusel de videos del hero (efecto Dock; armar_landing.py + landing.js) ---------- */
.l-dock { --w: 52px; --max: 1.6; position: relative; pointer-events: none; width: 100%; max-width: 860px; margin: 18px auto 0; display: flex; align-items: flex-start; gap: 6px; }
.l-dock-pista { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  /* alto reservado para que la miniatura crezca hacia abajo sin mover el resto del hero */
  padding-bottom: calc(var(--w) * 16 / 9 * (var(--max) - 1) + 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.l-dock-pista::-webkit-scrollbar { display: none; }
.l-dock-lista { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 4px 28px 0; list-style: none; width: max-content; }
.l-dock-lista li { pointer-events: auto; --s: 1; flex: none; width: calc(var(--w) * var(--s)); transition: width .14s ease-out; }
.l-dock-lista button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
/* Bordes del carrusel: la imagen se aclara hacia los lados (mismo tamaño); al pasar el mouse, opaca y con ícono de play */
.l-dock-lista img { opacity: var(--o, 1); transition: opacity .15s; }
.l-dock-lista button:hover img, .l-dock-lista button:focus-visible img { opacity: 1; }
.l-dock-lista button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 9 / 16; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='rgba(9,18,40,.62)' stroke='white' stroke-width='2.5'/%3E%3Cpath d='M19 15.5v17l14-8.5z' fill='white'/%3E%3C/svg%3E") center / 46% no-repeat; opacity: 0; transform: scale(.7); transition: opacity .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
.l-dock-lista button:hover::before, .l-dock-lista button:focus-visible::before { opacity: 1; transform: none; }
.l-dock-lista img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px;
  border: 1.5px solid rgba(9,18,40,.9); box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); background: #0d1d4a; }
.l-dock-lista span { position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, -4px); padding: 3px 8px; border-radius: 6px;
  background: rgba(17,20,24,.88); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; }
.l-dock-lista button:hover span, .l-dock-lista button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.l-dock-lista button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* La frase «¿Prefieres…? Pide tu video» va sobre el carrusel. .l-dock no recibe eventos de mouse (solo las miniaturas),
   así el espacio que reserva para la lupa no tapa lo que haya alrededor */
.inicio-pv { position: relative; margin-top: 30px !important; margin-bottom: 0; }
/* Misma tipografía que «Quedan para ingresar tu observación» (.inicio-k): versalitas chicas con espaciado */
.inicio-escribe, .inicio .inicio-pv { font: 600 12px/1.4 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #E6E9EE; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.inicio-escribe { margin: 22px 0 12px; }
.inicio .inicio-pv-b { font-weight: 800; color: #fff; text-transform: inherit; letter-spacing: inherit; }
@media (max-width: 599px) { .inicio-escribe, .inicio .inicio-pv { font-size: 11px; letter-spacing: .08em; } }
/* Celular y pantallas táctiles: sin lupa, se desliza con el dedo; el nombre va bajo cada miniatura */
@media (hover: none), (max-width: 640px) {
  .l-dock { --w: 58px; --max: 1; gap: 0; }
  .inicio-pv { margin-bottom: 0; }
  .l-dock-pista { padding-bottom: 0; }
  .l-dock-lista { align-items: flex-start; padding: 0 16px; }
  .l-dock-lista li { width: 64px; }
  .l-dock-lista button::before { opacity: calc(var(--o, 1) * .9); transform: none; background-size: 38%; }
  /* Nombre bajo la miniatura: mismo tamaño en todas, máximo dos líneas, todos a la misma altura; se aclara con la imagen */
  .l-dock-lista span { position: static; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 2.4em;
    margin-top: 6px; padding: 0; background: none; opacity: var(--o, 1); transform: none; font-size: 10.5px; font-weight: 600; line-height: 1.2;
    white-space: normal; text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
}

/* ---------- Cuenta regresiva del hero: tarjetas de volteo de vidrio, una por dígito (landing.js, digito) ---------- */
.inicio .inicio-k.cuenta { gap: 10px 22px; }
.inicio .cuenta-n { min-width: 0; padding: 0; gap: 8px; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none !important; }
.inicio .cuenta-n b { display: flex; gap: 5px; font: 700 40px/1 'Hanken Grotesk', system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff !important; }
.inicio .cuenta-n .dg { --h: 64px; position: relative; display: block; width: 48px; height: var(--h); overflow: visible; line-height: normal; perspective: 320px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
/* línea del medio */
.inicio .cuenta-n .dg::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(9,18,40,.45); box-shadow: 0 1px 0 rgba(255,255,255,.12); z-index: 3; }
.inicio .cuenta-n .fl { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.inicio .cuenta-n .fl i { display: block; height: var(--h); line-height: var(--h); text-align: center; font: inherit; letter-spacing: 0; text-transform: none; color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.inicio .cuenta-n .fl-t { top: 0; border-radius: 10px 10px 0 0; }
.inicio .cuenta-n .fl-b { bottom: 0; border-radius: 0 0 10px 10px; }
.inicio .cuenta-n .fl-b i { margin-top: calc(var(--h) / -2); }
/* mitades que giran: vidrio un poco más opaco para tapar lo que queda detrás */
.inicio .cuenta-n .gira-t, .inicio .cuenta-n .gira-b { z-index: 2; background: rgba(40,58,96,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.inicio .cuenta-n .gira-t { transform-origin: 50% 100%; animation: fl-cae .3s ease-in both; }
.inicio .cuenta-n .gira-b { transform-origin: 50% 0; transform: rotateX(90deg); animation: fl-baja .3s ease-out .3s both; }
@keyframes fl-cae { to { transform: rotateX(-90deg); } }
@keyframes fl-baja { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.inicio .cuenta-n > i { font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.8) !important; }
@media (max-width: 599px) {
  .inicio .inicio-k.cuenta { gap: 8px 12px; }
  .inicio .cuenta-n b { gap: 4px; font-size: 30px; }
  .inicio .cuenta-n .dg { --h: 50px; width: 36px; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .inicio .cuenta-n .gira-t, .inicio .cuenta-n .gira-b { display: none; } }

/* ---------- Página «Videos» (paginas/videos.html, armar_landing.py): tarjetas por categoría ---------- */
.l-videos-pag { padding: 24px 16px 64px; }
.l-videos-pag h1 { margin: 6px 0 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111418; }
.l-vp-cats { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 8px 0; background: #F4F7FC; }
.l-vp-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid #D8E0EC; background: #fff; color: #111418; font-weight: 700; font-size: 14px; text-decoration: none; }
.l-vp-cats a:hover { border-color: var(--brand); color: var(--brand); }
.l-vp-cats small { color: #5B6573; font-weight: 600; }
.l-vp-cat { padding-top: 28px; scroll-margin-top: 130px; }
.l-vp-cat h2 { margin: 0; font-size: 22px; font-weight: 800; color: #111418; }
.l-vp-cat > p { margin: 4px 0 16px; color: #5B6573; }
.l-vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.l-vcard { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #E3E7EC; color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,27,45,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.l-vcard:hover, .l-vcard:focus-visible { transform: translateY(-2px); border-color: #BFD0EE; box-shadow: 0 12px 26px -16px rgba(15,27,45,.45); }
.l-vcard-img { position: relative; display: block; aspect-ratio: 1200 / 630; background: #0d1d4a; }
.l-vcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l-vcard-img::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='rgba(9,18,40,.62)' stroke='white' stroke-width='2.5'/%3E%3Cpath d='M19 15.5v17l14-8.5z' fill='white'/%3E%3C/svg%3E") center / 54px no-repeat;
  opacity: .85; transition: opacity .15s, transform .2s; }
.l-vcard:hover .l-vcard-img::after { opacity: 1; transform: scale(1.08); }
.l-vcard-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(9,18,40,.8); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.l-vcard-t { padding: 12px 14px 0; font-weight: 800; font-size: 16px; color: #111418; }
.l-vcard-t small { font-weight: 600; color: #5B6573; }
.l-vcard-d { padding: 4px 14px 14px; font-size: 14px; line-height: 1.45; color: #5B6573; }
@media (max-width: 599px) { .l-vcards { grid-template-columns: 1fr 1fr; gap: 12px; } .l-vcard-t { font-size: 14px; padding: 10px 10px 0; } .l-vcard-d { display: none; } .l-vp-cats { top: 64px; } }

/* Leyenda plegada: pulso suave y flecha que salta, para que se note que se abre (landing.js, .l-ley-llama) */
.l-leyenda.l-ley-llama { animation: ley-pulso 2.4s ease-out infinite; }
.l-leyenda.l-ley-llama summary::after { animation: ley-flecha 2.4s ease-in-out infinite; }
@keyframes ley-pulso { 0% { outline: 2px solid rgba(37,99,235,.6); outline-offset: 0; } 70%, 100% { outline: 2px solid rgba(37,99,235,0); outline-offset: 10px; } }
@keyframes ley-flecha { 0%, 60%, 100% { transform: rotate(45deg) translate(-1px, -1px); } 30% { transform: rotate(45deg) translate(2px, 2px); } }
@media (prefers-reduced-motion: reduce) { .l-leyenda.l-ley-llama, .l-leyenda.l-ley-llama summary::after { animation: none; } .l-leyenda.l-ley-llama { outline: 2px solid rgba(37,99,235,.5); } }

/* ---------- Menú del celular: hoja bajo la cabecera, opaca, con separadores, página actual y botón de observación ---------- */
@media (max-width: 1179px) {
  /* la hoja se ancla a la cabecera (posicionada): .nav-movil deja de ser el contenedor */
  .top .nav-movil { position: static; }
  .nav-movil[open] > summary { background: #fff !important; color: var(--ink) !important; border-color: rgba(15,27,45,.15) !important; }
  .nav-movil[open] > summary svg { display: none; }
  .nav-movil[open] > summary::after { content: ''; width: 16px; height: 16px; background: linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
  .nav-movil-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 22; min-width: 0; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 6px 6px 10px;
    background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid #E3E7EC !important; border-radius: 18px;
    /* la segunda sombra, enorme, oscurece el resto de la página */
    box-shadow: 0 24px 48px -18px rgba(15,27,45,.45), 0 0 0 100vmax rgba(15,27,45,.38); animation: menu-entra .22s cubic-bezier(.2,.8,.2,1); }
  .nav-movil-panel a { display: flex; align-items: center; justify-content: space-between; padding: 15px 14px; font-size: 17px; font-weight: 600; color: #111418; border-radius: 0; }
  .nav-movil-panel a + a:not(.nav-movil-cta) { border-top: 1px solid #EEF1F5; }
  .nav-movil-panel a:not(.nav-movil-cta)::after { content: ''; width: 7px; height: 7px; border-right: 2px solid #9AA4B2; border-top: 2px solid #9AA4B2; transform: rotate(45deg); }
  .nav-movil-panel a:active { background: #F2F5FA; }
  .nav-movil-panel a[aria-current="page"] { color: var(--brand); background: #EEF4FF; border-radius: 12px; border-top-color: transparent; }
  .nav-movil-panel a[aria-current="page"] + a { border-top-color: transparent; }
  .nav-movil-panel a[aria-current="page"]::after { border-color: var(--brand); }
  .nav-movil-panel .nav-movil-cta { justify-content: center; margin: 8px 4px 0; padding: 14px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
  @keyframes menu-entra { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
}
@media (prefers-reduced-motion: reduce) { .nav-movil-panel { animation: none; } }

/* ---------- PDF en ventana (encuesta; pedir-video.js, solo computador) ---------- */
.l-pdf { width: min(1100px, calc(100vw - 48px)); height: calc(100dvh - 48px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 70px -20px rgba(15,27,45,.55); }
.l-pdf[open] { display: flex; flex-direction: column; }
.l-pdf::backdrop { background: rgba(15,27,45,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.l-pdf-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid #E3E7EC; }
.l-pdf-t { flex: 1; min-width: 0; margin: 0; font-weight: 800; font-size: 15px; color: #111418; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-pdf-b { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid #D8E0EC; color: #111418; font-size: 14px; font-weight: 700; text-decoration: none; }
.l-pdf-b:hover { border-color: var(--brand); color: var(--brand); }
.l-pdf .l-cerrar { position: static; flex: none; }
.l-pdf iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.l-capas .l-rq-ley { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px !important; font-size: 10.5px; color: var(--muted); }
.l-capas .l-rq-ley li { display: flex !important; align-items: center; gap: 4px; }
.l-rq-ley i { width: 10px; height: 10px; border-radius: 2px; }
.l-rq-on .l-sc-rot { display: none; }
.l-rq-mapa { position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(23,27,33,.15); font-size: 11px; text-align: center; white-space: nowrap; }
.l-rq-mapa b { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.l-capas.l-rq-mapa .l-rq-ley { margin: 0 !important; justify-content: center; font-size: 11.5px; color: var(--ink); }
.l-rq-t { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; cursor: pointer; }
.l-rq-t:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.l-rq-t::after { content: ""; width: 5px; height: 5px; margin-bottom: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); }
.l-rq-cerrada .l-rq-t::after { margin: 0 0 2px; transform: rotate(-45deg); }
.l-capas.l-rq-mapa .l-rq-cerrada .l-rq-ley { display: none !important; }
.l-rq-cerrada b { margin-bottom: 0; }
.l-rq-mapa > div:not([hidden]) + div:not([hidden]) { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.l-rq-ley i.l-rq-linea { width: 16px; height: 3px; border-radius: 2px; }
/* Celular: leyenda compacta bajo el buscador (una fila por capa, desliza de lado) y tarjeta de capas que deja ver el mapa */
@media (max-width: 899px) {
  .l-rq-mapa { top: 58px; bottom: auto; left: 8px; right: 44px; transform: none; padding: 5px 8px; border-radius: 10px; text-align: left; }
  .l-rq-mapa > div:not([hidden]) { display: flex; align-items: center; gap: 8px; }
  .l-rq-mapa > div:not([hidden]) + div:not([hidden]) { margin-top: 4px; padding-top: 4px; }
  .l-rq-t { flex: none; width: 66px; justify-content: space-between; }
  .l-rq-t::after { margin-bottom: 3px; }
  .l-rq-mapa b { flex: none; margin: 0; font-size: 0; }
  .l-rq-mapa b::before { content: attr(data-c); font-size: 9.5px; }
  .l-capas.l-rq-mapa .l-rq-ley { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; font-size: 10.5px; scrollbar-width: none; }
  .l-capas.l-rq-mapa .l-rq-ley li { flex: none; }
  .l-leyenda, .l-escena.con-video .l-leyenda { max-height: calc(100% - 70px); }
  .l-rq-on .l-leyenda { max-height: 48%; }
}

/* Análisis (paginas/analisis-*.html) */
.l-an { padding: 24px 16px 64px; }
.l-an-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; color: var(--ink); }
.l-an-wrap:not(.ancho) { max-width: 792px; }   /* artículos: columna de lectura centrada (760 px + márgenes) */
.l-an .l-k { margin: 0 0 8px; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; color: var(--brand); }
.l-an h1 { margin: 6px 0 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: #111418; }
.l-an h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; color: #111418; }
.l-an p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.l-an-lead { margin-top: 0 !important; max-width: 46em; font-size: 17px !important; line-height: 1.55 !important; color: var(--ink-2) !important; }
.l-an-meta { padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px !important; line-height: 1.4 !important; color: #5B6573 !important; }
.l-an-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 32px; padding: 0; list-style: none; }
.l-an-kpis li { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); }
.l-an-kpis b { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--brand); }
.l-an-kpis span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.l-an-fig { margin: 24px 0 28px; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); }
.l-an-fig figcaption { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.l-an-fig-k { font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
.l-an-fig figcaption b { font-size: 18px; line-height: 1.3; color: var(--ink); }
.l-an-fig figcaption small { font-size: 14px; color: var(--muted); }
.l-an-barras { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.l-an-barras li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 12px; align-items: center; }
.l-an-b-t { font-size: 15px; line-height: 1.3; color: var(--ink); }
.l-an-b { display: flex; align-items: center; gap: 8px; }
.l-an-b i { display: block; height: 22px; width: calc(var(--v) / var(--max) * 85%); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--brand); }
.l-an-barras .osc i { background: #184D9B; }
.l-an-barras .gris i { background: #A3ABB8; }
.l-an-b em { font: 700 14px/1 'Hanken Grotesk', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-style: normal; color: var(--ink); }
.l-an-fuente { margin: 14px 0 0 !important; font-size: 13px !important; line-height: 1.4 !important; color: #5B6573 !important; }
.l-an-tabla { margin: 24px 0 28px; overflow-x: auto; }
.l-an-tabla table { width: 100%; background: #fff; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.l-an-tabla caption { margin-bottom: 10px; text-align: left; font-size: 18px; font-weight: 700; color: var(--ink); }
.l-an-tabla thead th { padding: 8px 10px; text-align: left; background: var(--brand); color: #fff; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.l-an-tabla td, .l-an-tabla tbody th { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.4; color: var(--ink-2); }
.l-an-tabla tbody th { font-weight: 700; color: var(--ink); }
.l-an-tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 6px; border-radius: 4px; background: #E7F0FF; color: #184D9B; font: 600 12px/1.4 'Hanken Grotesk', system-ui, sans-serif; }
.l-an-caso { margin: 8px 0 24px; padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); border-left: 4px solid var(--brand); }
.l-an-caso p:last-child { margin-bottom: 0; }
.l-an-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 32px 0; padding: 20px 22px; border-radius: 16px; background: #0b1a48; }
.l-an-cta p { flex: 1 1 18em; margin: 0 !important; color: #E3EAF8 !important; }
.l-an-cta b { color: #fff; }
.l-an-cta .btn { min-height: 44px; }
.l-an-metodo { margin-top: 36px; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); }
.l-an-metodo summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink); min-height: 28px; }
.l-an-metodo[open] summary { margin-bottom: 12px; }
.l-an-metodo p { font-size: 15px; }
/* barras dobles y leyenda */
.l-an-leyenda { display: flex; gap: 18px; margin: -6px 0 14px !important; font-size: 14px !important; color: var(--ink-2) !important; }
.l-an-leyenda span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: var(--brand); }
.l-an-leyenda .osc::before { background: #184D9B; }
.l-an-leyenda .gris::before { background: #A3ABB8; }
.l-an-barras.dos li { align-items: start; }
.l-an-b-par { display: grid; gap: 4px; }
.l-an-b-par .l-an-b i { height: 16px; }
.l-an-b.osc i { background: #184D9B; }
.l-an-b.gris i { background: #A3ABB8; }
/* índice de análisis */
.l-an-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.l-an-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 18px 16px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.l-an-cards a:hover, .l-an-cards a:focus-visible { transform: translateY(-2px); border-color: #BFD0EE; box-shadow: 0 12px 26px -16px rgba(15,27,45,.45); }
.l-an-cards a { overflow: hidden; }
.l-an-card-img { display: block; margin: -18px -18px 6px; aspect-ratio: 16 / 9; background: #EEF0F4; }
.l-an-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.l-an-cards a:hover .l-an-card-img img { transform: scale(1.04); }
/* Artículo de Viña del Mar: destacado, ocupa dos columnas con la imagen al lado */
.l-an-hub .l-an-cards { margin-top: 32px; }
.l-an-dest { grid-column: span 2; }
.l-an-dest a { flex-direction: row; align-items: stretch; gap: 0; padding: 0; border-color: #BFD0EE; box-shadow: 0 14px 34px -22px rgba(38,111,224,.55); }
.l-an-dest .l-an-card-img { flex: 0 0 52%; margin: 0; aspect-ratio: auto; min-height: 260px; }
.l-an-card-txt { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 20px; }
.l-an-dest b { font-size: 24px; line-height: 1.2; }
.l-an-dest .l-an-card-d { font-size: 15px; }
.l-an-pill { align-self: flex-start; margin-bottom: 4px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 720px) {
  .l-an-dest { grid-column: auto; }
  .l-an-dest a { flex-direction: column; }
  .l-an-dest .l-an-card-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .l-an-card-txt { padding: 16px 18px 16px; }
  .l-an-dest b { font-size: 20px; }
}
.l-an-card-k { font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); }
.l-an-cards b { font-size: 17px; font-weight: 800; line-height: 1.3; color: #111418; }
.l-an-card-d { font-size: 14px; line-height: 1.45; color: #5B6573; }
.l-an-card-m { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 14px; color: var(--brand); }
/* ficha del proceso y grupos del índice */
.l-an-ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 8px 0 32px; padding: 6px 20px; border-radius: 14px; background: #fff; border: 1px solid #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); }
.l-an-ficha div { padding: 12px 0; border-bottom: 1px solid #E3E7EC; }
.l-an-ficha div:nth-last-child(-n+2) { border-bottom: 0; }
.l-an-ficha dt { margin-bottom: 4px; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.l-an-ficha dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.l-an-ficha div:last-child dd, .l-an-ficha div:nth-last-child(1) dt { font-weight: 700; }
/* Hero del índice: el del inicio (satélite desenfocado bajo velo oscuro), más bajo */
.l-an-hero { position: relative; overflow: hidden; isolation: isolate; margin: -84px -16px 8px; padding: 140px 16px 64px; text-align: center; background: #0E1218; }
.l-an-hero-in { max-width: 860px; margin: 0 auto; }
.l-an-hero h1 { margin: 0 auto 14px; max-width: 16em; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); text-wrap: balance; }
.l-an-hero .l-an-lead { margin: 0 auto !important; max-width: 38em; color: #C9D1DC !important; text-shadow: 0 1px 10px rgba(0,0,0,.45); text-wrap: balance; }
.l-an-hub { padding-top: 0; }
.pagina .l-afecta:has(.l-an-hero) { padding-top: 0; }   /* «¿Cómo me puede afectar?» con el mismo hero */
.l-afecta .l-an-hero { margin: -84px 0 32px; }
.pagina .l-afecta-card { background: #fff; border-color: #E3E7EC; box-shadow: 0 1px 2px rgba(15,27,45,.05); }   /* tarjetas blancas, como en Análisis */
.l-an-hero .inicio-atrib { margin: 0; font-size: 10px !important; line-height: 1.3 !important; color: rgba(255,255,255,.55) !important; }
@media (max-width: 640px) { .l-an-hero { padding: 112px 16px 44px; } }
.l-an-hub .l-an-grupo { margin: 28px 0 0; font-size: 22px; font-weight: 800; color: #111418; }
.l-an-hub .l-an-cards { margin-top: 16px; }
@media (max-width: 640px) {
  .l-an-ficha { grid-template-columns: 1fr; }
  .l-an-ficha div:nth-last-child(2) { border-bottom: 1px solid #E3E7EC; }
  .l-an-kpis { grid-template-columns: 1fr; }
  .l-an-barras li { grid-template-columns: 1fr; gap: 4px; }
}

/* Análisis «Cómo consulta Chile» (scrollytelling, analisis-consulta/historia.*): la historia ocupa el ancho del sitio */
.cc-cab { padding-bottom: 8px; }
.cc-fin { padding-top: 8px; }
.cc-story { --ch-sticky-top: 84px; --ch-bg: transparent; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.cc-story .ch-story, .cc-story .ch-block--vis, .cc-story .ch-prose { background: transparent; }
.cc-cierre .kicker, .cc-limites .kicker, .cc-limites .slide-title { display: none; }
.cc-cierre .u-16, .cc-limites .u-16 { width: auto; height: auto; min-height: 0; margin: 0; padding: 0; display: block; }   /* sin formato de lámina */
.cc-limites .slide .u-bullets { max-width: none; }
.cc-limites .slide .u-bullets li { font-size: 15px; }
.cc-cierre .q { margin: 0 0 10px !important; font-size: 22px !important; font-weight: 800; line-height: 1.25; color: #111418; }
.cc-cierre .q em { font-style: normal; color: var(--brand); }
.cc-cierre .after { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 16px !important; color: var(--ink-2) !important; }
.cc-limites ul { margin: 0; padding-left: 18px; }
.cc-limites li { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
/* La escena fija ocupa la pantalla bajo la cabecera del sitio (el deck la pensaba sin cabecera y en 16:9) */
.cc-story .ch-sticky { height: calc(100dvh - var(--ch-sticky-top)) !important; max-height: calc(100dvh - var(--ch-sticky-top)) !important; }
/* «Seis preguntas»: misma columna, rótulo, título y tarjetas que el resto de los artículos (no la lámina del deck) */
.cc-story .ch-block--prose.ch-prose { height: auto !important; min-height: 0 !important; padding: 8px 0 40px !important; }
.cc-story .ch-prose-inner { max-width: none !important; padding: 0 !important; font-size: inherit !important; line-height: inherit !important; }
.cc-story .ch-prose .u-16 { width: auto !important; height: auto !important; max-width: 760px !important; margin: 0 auto !important; padding: 0 !important; display: block !important; }
.cc-story .ch-prose .kicker { display: block; margin: 0 0 8px !important; font: 600 11px/1.3 'Hanken Grotesk', system-ui, sans-serif !important; text-transform: uppercase; letter-spacing: .14em !important; color: var(--brand) !important; }
.cc-story .ch-prose .slide-title { max-width: none !important; margin: 0 0 16px !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.01em !important; line-height: 1.2 !important; color: #111418 !important; }
.cc-story .ch-prose .slide-title em { font-style: normal; color: var(--brand); }
.cc-story .u-take { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; margin: 0 !important; }
.cc-story .u-take .t { display: flex !important; flex-direction: column; gap: 6px; padding: 16px !important; border-radius: 14px !important; background: #fff !important; border: 1px solid #E3E7EC !important; box-shadow: 0 1px 2px rgba(15,27,45,.05); }
.cc-story .u-take .t .no { display: grid !important; place-items: center; width: 28px; height: 28px; margin: 0 0 4px !important; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #DCE6F5; font: 700 13px/1 'Hanken Grotesk', system-ui, sans-serif !important; letter-spacing: 0 !important; color: var(--brand) !important; }
.cc-story .u-take .t h4 { margin: 0 !important; font-size: 16px !important; font-weight: 800 !important; line-height: 1.3 !important; color: #111418 !important; }
.cc-story .u-take .t .d { margin: 0 !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important; color: #5B6573 !important; }
.cc-story .ch-prose .slide-sub { max-width: none !important; margin: 16px 0 0 !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.55 !important; color: var(--ink-2) !important; }
@media (max-width: 960px) {
  .cc-story { --ch-sticky-top: 72px; padding: 0; }
  /* Celular y tablet: título y nota arriba, el gráfico llena lo que queda; sin el marco 16:9 */
  .cc-story .ch-sticky { justify-content: flex-start !important; padding: 6px 0 8px !important; }
  .cc-story .ch-sticky-inner { display: flex !important; flex-direction: column; width: 100% !important; height: 100% !important; max-height: 100% !important; padding: 0 16px !important; align-self: stretch !important; }
  .cc-story .ch-sticky-head { order: 1; margin: 0 0 8px !important; padding: 0 !important; }
  .cc-story .ch-title { font-size: 19px !important; line-height: 1.2 !important; margin: 0 0 4px !important; }
  .cc-story .ch-subtitle { font-size: 12.5px !important; margin: 0 0 6px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cc-story .ch-note { order: 2; position: relative !important; inset: auto !important; transform: none !important; width: auto !important; max-width: none !important; margin: 0 0 8px !important; padding: 10px 14px !important; font-size: 14.5px !important; line-height: 1.45 !important; }
  .cc-story .ch-chart-wrap { order: 3; position: relative; flex: 1 1 auto; min-height: 0; height: auto !important; padding: 0 !important; overflow: hidden; }
  .cc-story .ch-chart { position: absolute !important; inset: 0 auto auto 0; width: 100% !important; height: 100% !important; max-height: none !important; min-height: 0 !important; }   /* llena el alto que queda */
  .cc-story .ch-source { display: none; }
  .cc-story .ch-dots { order: 4; }
  .cc-story .u-take { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .cc-story .ch-prose .u-16 { padding: 0 16px !important; }
}
/* Celulares: los gráficos se dibujan a 540 px y se reducen (si no, las etiquetas se enciman); --cc-k lo fija la página */
@media (max-width: 560px) {
  .cc-story .ch-chart { width: 540px !important; height: calc(100% / var(--cc-k, 1)) !important; transform: scale(var(--cc-k, 1)); transform-origin: 0 0; }
}
/* «Cómo consulta Chile»: lista de las consultas con buscador */
.cc-buscar { width: 100%; max-width: 420px; margin: 8px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: 400 15px/1.3 'Hanken Grotesk', system-ui, sans-serif; background: #fff; }
.cc-tabla { max-height: 460px; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.cc-tabla table { min-width: 620px; }
.cc-tabla thead th { position: sticky; top: 0; }
.cc-tabla tr.cc-vina td { background: #EAF1FD; color: var(--ink); font-weight: 700; }
/* Cifras del sitio bajo el carrusel (metricas.json): tarjetas de vidrio, título como «Apoyan esta iniciativa» */
.l-cifras { width: 100%; margin: clamp(64px, 14vh, 160px) auto 0; max-width: 760px; text-align: center; }
.l-cifras + .l-apoyos { margin-top: 40px; }
.l-cifras-t { margin: 0 0 14px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.l-cifras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.l-cifras li { padding: 14px 10px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.32); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: #E6E9EE; font-size: 13px; line-height: 1.3; }
.l-cifras b { display: block; font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.l-cifras-t { display: flex; align-items: center; justify-content: center; gap: 8px; }
.l-cifras-i { position: relative; flex: none; width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: none; color: rgba(255,255,255,.8); font: italic 700 10px/1 Georgia, serif; letter-spacing: 0; text-transform: none; cursor: help; }
.l-cifras-i::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: rgba(9,18,40,.92); color: #fff; font: 600 12px/1.2 'Hanken Grotesk', system-ui, sans-serif; font-style: normal; opacity: 0; pointer-events: none; transition: opacity .15s; }
.l-cifras-i:hover::after, .l-cifras-i:focus-visible::after, .l-cifras-i:focus::after { opacity: 1; }
@media (max-width: 599px) { .l-cifras ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-cifras b { font-size: 22px; } }
/* Página «El sitio en cifras» (/metricas, armar_metricas.py) */
.l-met .l-an-hero { margin: -84px 0 32px; }   /* como .l-afecta: el hero va de borde a borde sin desbordar */
.l-met-in { padding: 28px 0 48px; }
.l-met-k { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.l-met .l-an-hero { padding-bottom: 40px; }
.l-met .l-an-hero-in { max-width: 1040px; }
.l-met-ind { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.l-met-ind a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.32); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #E6E9EE; text-decoration: none; font-size: 13px; line-height: 1.3; transition: border-color .2s, transform .2s; }
.l-met-ind a:hover { border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.l-met-ico { width: 22px; height: 22px; color: #9CC2FF; margin-bottom: 2px; }
.l-met-ind b { font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.l-met-ind em { margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9CC2FF; }
.l-met-ind em::after { content: " ↓"; }
.l-met-sec { scroll-margin-top: 96px; margin: 0 0 20px; padding: 22px 22px 18px; border-radius: 18px; background: #fff; border: 1px solid #DDE3EE; }
.l-met-sec:target { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.l-met-sec h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: #0d1d4a; }
.l-met-sec h2 b { color: #1e40af; font-variant-numeric: tabular-nums; }
.l-met-sec h3 { margin: 20px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #4A5568; }
.l-met-sec > p { margin: 0 0 6px; color: #2D3748; line-height: 1.5; }
.l-met-bar { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.l-met-bar li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; align-items: center; gap: 10px; font-size: 14px; color: #2D3748; }
.l-met-n small { color: #718096; font-size: 12px; }
.l-met-t { height: 14px; border-radius: 0 4px 4px 0; background: #EEF2F8; overflow: hidden; }
.l-met-t i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: #2563eb; }
.l-met-bar b { text-align: right; font-variant-numeric: tabular-nums; color: #0d1d4a; }
.l-met-nota { margin: 8px 0 0; font-size: 12px; color: #718096; }
@media (max-width: 599px) {
  .l-met-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .l-met-ind b { font-size: 24px; } .l-met-ind em { display: none; }
  .l-met-bar li { grid-template-columns: 1fr 52px; } .l-met-bar .l-met-t { grid-column: 1 / -1; grid-row: 2; }
  .l-met-in { padding-left: 12px; padding-right: 12px; }
  .l-met-sec { padding: 18px 16px 14px; } .l-met-sec h2 { font-size: 19px; }
}
.l-cifras li a { display: block; color: inherit; text-decoration: none; }
.l-cifras li:hover { border-color: rgba(255,255,255,.6); }
.l-met-in > .l-afecta-cierre { margin: 8px 6px 0; }
