@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("fuentes/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0b1220;
  --manzana: #0f192d;
  --linde: #1d2b4a;
  --borde: #2a3c63;
  --rotulo: #8796b6;
  --oro: #c9a227;
  --oro-hi: #e8c84a;
  --oro-sombra: #2a2410;
  --texto: #eef2f8;
  --texto-2: #a9b6ca;
  --tinta: #1c2e4a;
  --panel-bg: #0b1220;
  --panel-card: #111b34;
  --panel-soft: #16223f;
  --panel-borde: #1f2c4d;
  --panel-texto: #e6ebf5;
  --panel-suave: #9aa6c2;
  --ok: #3fb97f;
  --error: #f07167;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --display: "Jost", "Barlow", sans-serif;
  --rot: "Barlow Semi Condensed", "Barlow", sans-serif;
  --cuerpo: "Barlow", system-ui, sans-serif;
  --sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --nav-h: 64px;
  --tesela: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22288%22%20height%3D%22230%22%20viewBox%3D%220%200%20288%20230%22%20fill%3D%22none%22%20stroke%3D%22%2316223d%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M46%2026h196l20%2020v138l-20%2020H46l-20-20V46z%22/%3E%3Cpath%20d%3D%22M72%2072h144v86H72z%22/%3E%3Cpath%20d%3D%22M80%2026v46M118%2026v46M152%2026v46M190%2026v46M226%2026v46M98%20204v-46M140%20204v-46M176%20204v-46M212%20204v-46M26%2092h46M26%20126h46M26%20160h46M262%2084h-46M262%20120h-46M262%20150h-46%22/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --nav-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--borde) var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--texto); font: 400 17px/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 1024px) { body { font-size: 18px; } }
::selection { background: var(--oro-hi); color: var(--tinta); }
input, textarea { caret-color: var(--oro-hi); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--oro) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--oro-hi); }
:focus-visible { outline: 3px solid var(--texto); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
.cifra, .num { font-variant-numeric: tabular-nums; }
.salto { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--oro); color: var(--tinta); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.salto:focus { top: 12px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Botones ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; font: 600 17px/1.2 var(--cuerpo); text-decoration: none; cursor: pointer; border: 0; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--oro); color: var(--tinta); }
.btn-s { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--texto-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-p:hover { background: var(--oro-hi); }
  .btn-s:hover { box-shadow: inset 0 0 0 1.5px var(--texto); }
}
@media (min-width: 1024px) { .btn { min-height: 56px; font-size: 18px; } }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .flecha { width: 18px; height: 18px; }

/* ── Navegación ──────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--linde); }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--oro-hi); font: 500 20px/1 var(--display); letter-spacing: .32em; }
.marca svg { width: 30px; height: 24px; flex: none; }
.nav-cta { margin-left: auto; min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.nav-menu { min-height: 42px; width: 42px; padding: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--borde); color: var(--texto); }
.nav-menu svg { width: 20px; height: 20px; }
.nav-hoja { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; background: var(--bg); border-bottom: 1px solid var(--borde); padding: 8px var(--gutter) 20px; display: grid; }
.nav-hoja[hidden] { display: none; }
.nav-hoja a { padding: 14px 0; border-bottom: 1px solid var(--linde); text-decoration: none; font: 500 18px/1.2 var(--cuerpo); }
@media (min-width: 1024px) {
  .nav { gap: 16px; }
  .nav-cta { margin-left: 8px; }
  .nav-menu, .nav-hoja { display: none !important; }
}

/* ── Hero: el plano ──────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 16px) var(--gutter) 0; overflow: hidden; }
.plano { display: none; }
.plano-manzanas path { fill: var(--manzana); stroke: var(--borde); stroke-width: 1.1; }
.plano-patios path { fill: var(--bg); stroke: var(--linde); stroke-width: .8; }
.plano-parcelas path { fill: none; stroke: var(--linde); stroke-width: .8; }
.plano-finca path { fill: url(#rayado); stroke: var(--oro); stroke-width: 1.6; }
.calle-nombre { font: 600 12px var(--rot); letter-spacing: .24em; fill: #42578a; }
.ruta-base { fill: none; stroke: #3a4c78; stroke-width: 2; stroke-dasharray: 2 6; }
.ruta { fill: none; stroke: var(--oro); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ruta-post { fill: none; stroke: var(--oro); stroke-width: 2.4; stroke-linecap: round; }
.parada-m { transition: fill 200ms var(--ease-out), stroke 200ms var(--ease-out); }
.parada-m.pend { fill: var(--bg); stroke: #6d7fa3; stroke-width: 1.6; }
.parada-m.hecha { fill: var(--oro); stroke: var(--oro); stroke-width: 1.6; }
.parada-m.actual { fill: var(--bg); stroke: var(--oro-hi); stroke-width: 3; }
.halo { fill: none; stroke: var(--oro-hi); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.halo.vivo { opacity: .55; animation: latido 2.6s var(--ease-out) infinite; }
@keyframes latido { 0% { transform: scale(.7); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.parada-t { font: 600 15px var(--rot); letter-spacing: .08em; text-transform: uppercase; fill: var(--texto-2); transition: fill 200ms var(--ease-out); }
.parada-t.on { fill: var(--oro-hi); }

.cajetin { position: relative; z-index: 2; background: var(--bg); border: 1px solid var(--borde); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cajetin > .celda { border-bottom: 1px solid var(--linde); padding: 16px; grid-column: 1 / -1; }
.cajetin > .celda:last-child { border-bottom: 0; }
.cajetin .meta { grid-column: auto; border-right: 1px solid var(--linde); padding: 12px 16px; }
.cajetin .meta:nth-last-child(1) { border-right: 0; }
.rotulo { font: 600 12px/1.3 var(--rot); letter-spacing: .2em; text-transform: uppercase; color: var(--rotulo); }
.meta .valor { font: 500 15px/1.35 var(--cuerpo); color: var(--texto); margin-top: 2px; }
h1 { font: 600 36px/1.08 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.entrada { font-size: 18px; line-height: 1.55; color: var(--texto-2); max-width: 54ch; }
.piloto-celda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.gratis { font: 700 40px/44px var(--display); color: var(--oro-hi); text-transform: uppercase; letter-spacing: .02em; }
.piloto-celda p { font: 500 18px/1.4 var(--cuerpo); }
.plazas { font: 700 28px/34px var(--display); color: var(--oro-hi); white-space: nowrap; }
.botones { display: grid; gap: 12px; }
.sin-tarjeta { margin-top: 12px; font: 500 15px/1.4 var(--cuerpo); color: var(--texto-2); }
.paradas-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.parada-b { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; background: transparent; border: 1px solid var(--linde); border-radius: 8px; color: var(--texto-2); font: 600 13px/1.1 var(--rot); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), background-color 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.parada-b .punto { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #6d7fa3; }
.parada-b.hecha .punto { background: var(--oro); box-shadow: none; }
.parada-b.actual { color: var(--oro-hi); border-color: var(--oro); background: color-mix(in srgb, var(--oro) 10%, var(--bg)); }
.parada-b.actual .punto { box-shadow: inset 0 0 0 2.5px var(--oro-hi); }
@media (hover: hover) and (pointer: fine) { .parada-b:hover { border-color: var(--borde); color: var(--texto); } }

.mapa-movil { position: relative; height: 230px; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; border-bottom: 1px solid var(--linde); }
.mapa-movil svg { position: absolute; width: 1440px; height: 900px; max-width: none; left: calc(50% - 520px); top: -129px; transform: scale(.52); transform-origin: 0 0; }
.mapa-movil .parada-t { display: none; }

.ficha { position: relative; z-index: 3; border: 1px solid var(--borde); background: var(--bg); margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; }
.ficha > * { padding: 11px 16px; border-bottom: 1px solid var(--linde); grid-column: 1 / -1; }
.ficha > :last-child { border-bottom: 0; }
.ficha .lado { grid-column: auto; border-right: 1px solid var(--linde); }
.ficha .lado + .lado { border-right: 0; }
.ficha-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ficha-nombre { font: 600 22px/1.2 var(--display); }
.ficha-dato { font: 600 30px/1 var(--display); color: var(--oro-hi); white-space: nowrap; }
.ficha-det { font-size: 16px; line-height: 1.5; color: var(--texto); }
.ficha-fuente { font: 500 14px/1.4 var(--cuerpo); color: var(--texto-2); }
.ficha-fuente b { font: 600 12px var(--rot); letter-spacing: .18em; text-transform: uppercase; color: var(--rotulo); margin-right: 6px; }
.ficha .lado p { font-size: 15px; line-height: 1.45; color: var(--texto-2); margin-top: 2px; }
.ficha .barrido { clip-path: inset(0 0 0 0); }
.ficha .barrido.entra { animation: barrido 260ms var(--ease-out); }
@keyframes barrido { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.guia { display: none; }

@media (min-width: 640px) {
  .botones { grid-template-columns: auto auto; justify-content: start; }
  .paradas-ctl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .parada-b { justify-content: center; padding: 0 6px; }
}
@media (min-width: 1024px) {
  .hero { min-height: clamp(860px, 100svh, 1000px); padding: 0; }
  .plano { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .mapa-movil { display: none; }
  .cajetin { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 40px); width: min(620px, 43vw); }
  .cajetin > .celda { padding: 16px 20px; }
  h1 { font-size: clamp(42px, 3.6vw, 54px); line-height: 1.06; }
  .gratis { font-size: 64px; line-height: 68px; }
  .plazas { font-size: 40px; line-height: 46px; }
  .ficha { position: absolute; right: var(--gutter); bottom: 36px; width: 380px; margin: 0; }
  .ficha > .ficha-pie { padding-block: 8px; }
  .guia { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
  .guia line { stroke: var(--oro); stroke-width: 1; stroke-dasharray: 3 4; }
  .guia circle { fill: var(--oro); }
  .norte { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 32px); display: flex; align-items: flex-end; gap: 24px; color: #6d7fa3; font: 600 12px var(--rot); letter-spacing: .2em; z-index: 2; }
  .escala { display: grid; gap: 6px; }
  .escala i { display: block; width: 160px; height: 6px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 0 25%, transparent 25% 50%, currentColor 50% 75%, transparent 75%); }
}
.norte { display: none; }
@media (min-width: 1024px) and (max-height: 860px) {
  .cajetin { top: calc(var(--nav-h) + 24px); }
  .cajetin > .celda { padding-block: 12px; }
  h1 { font-size: clamp(38px, 3.2vw, 46px); }
  .entrada { font-size: 17px; }
  .gratis { font-size: 52px; line-height: 56px; }
  .plazas { font-size: 32px; line-height: 38px; }
}
@media (min-width: 1024px) { .norte { display: flex; } }

/* ── Secciones ───────────────────────────────────────── */
.envoltura { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding: 64px 0; }
@media (min-width: 1024px) { .seccion { padding: 104px 0; } }
h2 { font: 600 28px/1.14 var(--display); letter-spacing: -.01em; text-wrap: balance; max-width: 22ch; }
@media (min-width: 1024px) { h2 { font-size: 42px; line-height: 1.1; } }
h3 { font: 600 21px/1.3 var(--display); }
@media (min-width: 1024px) { h3 { font-size: 24px; } }
.texto { color: var(--texto-2); max-width: 58ch; }
.texto + .texto { margin-top: 14px; }
h2 + .texto { margin-top: 18px; }
.accion { margin-top: 28px; }
.enlace-flecha { display: inline-flex; align-items: center; gap: 8px; font: 600 17px var(--cuerpo); color: var(--oro-hi); text-decoration: none; min-height: 44px; }
.enlace-flecha svg { width: 18px; height: 18px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .enlace-flecha:hover svg { transform: translateX(3px); } }

/* Piloto: la leyenda del plano */
.piloto { border-top: 1px solid var(--linde); border-bottom: 1px solid var(--linde); background: linear-gradient(var(--bg), var(--bg)) padding-box; }
.leyenda { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--borde); }
.leyenda > div { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--linde); }
.simbolo { width: 32px; height: 22px; margin-top: 4px; }
.leyenda h3 { margin-bottom: 6px; }
.leyenda p { color: var(--texto-2); }
.leyenda a { color: var(--texto); white-space: nowrap; }
@media (min-width: 1024px) {
  .piloto .envoltura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .leyenda { margin-top: 6px; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .leyenda > div:nth-child(-n+2) { border-top: 0; }
}

/* El recorrido: una calle vertical con sus paradas */
.recorrido { position: relative; overflow: hidden; isolation: isolate; }
.recorrido::before { content: ""; position: absolute; inset: -240px; z-index: -1; background: var(--tesela) 0 0 / 288px 230px; transform: rotate(-9deg); pointer-events: none; }
.calle-v, .calle-v-hecha { display: none; }
.parada-s { position: relative; }
.parada-s .envoltura { display: grid; gap: 32px; }
.marca-parada { display: none; }
.cota { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--borde); max-width: 58ch; }
.cota .cifra { font: 600 34px/1 var(--display); color: var(--oro-hi); grid-row: span 2; }
.cota p { color: var(--texto); font-size: 16px; line-height: 1.45; }
.cota small { font: 500 14px/1.4 var(--cuerpo); color: var(--texto-2); }
@media (min-width: 1024px) {
  .calle-v { display: block; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); width: 52px; }
  .calle-v::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; border-left: 2px dotted #3a4c78; }
  .calle-v-hecha { display: block; position: absolute; left: 25px; top: 0; width: 2px; height: 100%; background: var(--oro); transform: scaleY(0); transform-origin: top; }
  .parada-s .envoltura { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); column-gap: 48px; align-items: start; }
  .parada-s .lado-texto { grid-column: 2; padding-top: 6px; }
  .parada-s .lado-pantalla { grid-column: 3; }
  .marca-parada { display: block; grid-column: 1; grid-row: 1; position: relative; height: 100%; }
  .marca-parada .bola { position: absolute; left: 18px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #6d7fa3; transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
  .parada-s.pasada .marca-parada .bola { background: var(--oro); box-shadow: none; }
  .marca-parada .nombre-calle { position: absolute; left: 10px; top: 46px; writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center; font: 600 12px var(--rot); letter-spacing: .3em; color: var(--rotulo); text-transform: uppercase; white-space: nowrap; }
  .parada-s.pasada .marca-parada .nombre-calle { color: var(--oro); }
  .parada-s:nth-of-type(odd) .lado-texto { grid-column: 3; grid-row: 1; }
  .parada-s:nth-of-type(odd) .lado-pantalla { grid-column: 2; grid-row: 1; }
}

/* Pantallas del producto (recreaciones con datos de demo) */
.pantalla { margin: 0; }
.marco { background: var(--panel-bg); border: 1px solid var(--panel-borde); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3); font-family: var(--sistema); color: var(--panel-texto); }
.marco-barra { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--panel-borde); font-size: 13px; color: var(--panel-suave); }
.marco-barra .logo-mini { width: 18px; height: 14px; }
.marco-barra .vista { color: var(--panel-texto); font-weight: 600; }
.marco-barra .rol { margin-left: auto; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--panel-soft); color: var(--panel-suave); }
.marco-cuerpo { padding: 16px; display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.p-card { background: var(--panel-card); border: 1px solid var(--panel-borde); border-radius: 10px; padding: 12px 14px; }
.p-tit { font-size: 13px; font-weight: 700; color: var(--panel-texto); display: flex; align-items: center; gap: 8px; }
.p-tit .n { margin-left: auto; font-size: 12px; font-weight: 600; color: #f5c451; background: rgba(245, 196, 81, .12); padding: 2px 8px; border-radius: 999px; }
.p-fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--panel-borde); }
.p-fila:first-of-type { border-top: 0; }
@media (max-width: 639px) { .p-fila { flex-wrap: wrap; } }
.p-fila .quien { min-width: min(100%, 220px); flex: 1; }
.p-fila .quien b { display: block; font-size: 14px; }
.p-fila .quien span { display: block; font-size: 12.5px; color: var(--panel-suave); }
.p-btn { flex: none; font: 600 12.5px/1 var(--sistema); padding: 8px 10px; border-radius: 8px; background: linear-gradient(135deg, #c9a227, #b8911f); color: #1c2e4a; white-space: nowrap; }
.p-btn.s { background: var(--panel-soft); color: var(--panel-texto); box-shadow: inset 0 0 0 1px var(--panel-borde); }
.p-kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.p-kv dt { color: var(--panel-suave); }
.p-kv dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(63, 185, 127, .1); color: #7fe0b0; font-weight: 700; }
.p-fuente { font-size: 12px; color: var(--panel-suave); }
.p-fuente b { color: #d9c27a; font-weight: 600; }
.p-borrador { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #f5c451; }
.p-borrador i { width: 8px; height: 8px; border-radius: 50%; background: #f5c451; }
.p-doc { background: #f7f5ef; color: #1c2e4a; border-radius: 8px; padding: 16px 18px; font-family: Georgia, "Times New Roman", serif; font-size: 13.5px; line-height: 1.55; }
.p-doc .p-doc-tit { font: 700 13px/1.3 var(--sistema); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.p-doc mark { background: #efe2b3; color: inherit; padding: 0 2px; border-radius: 2px; }
.p-doc .ley { font: 600 12px var(--sistema); color: #6f5a12; }
.p-check { display: grid; gap: 6px; }
.p-check li { display: flex; align-items: center; gap: 8px; }
.p-check svg { width: 16px; height: 16px; flex: none; }
.p-tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.p-tabla th { text-align: right; font-size: 12px; font-weight: 600; color: var(--panel-suave); padding: 6px 4px; border-bottom: 1px solid var(--panel-borde); }
.p-tabla th:first-child, .p-tabla td:first-child { text-align: left; }
.p-tabla td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--panel-borde); font-size: 13.5px; }
.p-tabla tr:last-child td { border-bottom: 0; }
.p-embudo { display: grid; gap: 6px; }
.p-embudo div { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--panel-suave); }
.p-embudo span.b { height: 8px; border-radius: 4px; background: #c9a227; }
.p-embudo .cae span.b { background: #f07167; }
.p-embudo em { font-style: normal; text-align: right; color: var(--panel-texto); font-weight: 600; }
.pie-pantalla { margin-top: 12px; font: 500 14px/1.4 var(--cuerpo); color: var(--texto-2); display: flex; gap: 8px; align-items: baseline; }
.pie-pantalla b { font: 600 12px var(--rot); letter-spacing: .18em; text-transform: uppercase; color: var(--rotulo); }

.valorador { margin-top: 0; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; background: var(--manzana); }
.valorador-cab { padding: 20px; display: grid; gap: 12px; border-top: 1px solid var(--linde); }
.brecha { margin: 0; padding: 20px; display: grid; gap: 14px; }
.brecha-fila { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.brecha-q { font-size: 15px; color: var(--texto-2); }
.brecha-v { font: 600 22px/1 var(--display); color: var(--texto); justify-self: end; }
.brecha-l { grid-column: 1 / -1; grid-row: 2; height: 0; border-top: 2px solid #6d7fa3; width: var(--w); position: relative; }
.brecha-l::before, .brecha-l::after { content: ""; position: absolute; top: -7px; height: 12px; border-left: 2px solid #6d7fa3; }
.brecha-l::before { left: 0; } .brecha-l::after { right: 0; }
.brecha-fila.paga .brecha-l, .brecha-fila.paga .brecha-l::before, .brecha-fila.paga .brecha-l::after { border-color: var(--oro); }
.brecha-fila.paga .brecha-v { color: var(--oro-hi); }
.brecha-f { font-size: 14px; color: var(--texto-2); }
.valorador iframe { display: block; width: 100%; height: 860px; border: 0; background: #fff; }
.valorador-nota { padding: 12px 20px; font-size: 14px; color: var(--texto-2); border-top: 1px solid var(--linde); }

/* Migración: el traslado */
.traslado { display: grid; gap: 0; margin-top: 36px; border: 1px solid var(--borde); }
.traslado > li { padding: 20px; border-bottom: 1px solid var(--linde); display: grid; gap: 6px; }
.traslado > li:last-child { border-bottom: 0; }
.traslado .paso { font: 600 13px var(--rot); letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.traslado p { color: var(--texto-2); font-size: 16px; }
.aviso { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; max-width: 64ch; padding: 14px 16px; border: 1px dashed var(--borde); border-radius: 10px; color: var(--texto); font-size: 16px; }
.aviso svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--oro-hi); }
@media (min-width: 1024px) {
  .traslado { grid-template-columns: repeat(3, 1fr); }
  .traslado > li { border-bottom: 0; border-right: 1px solid var(--linde); }
  .traslado > li:last-child { border-right: 0; }
}

/* La IA, con control: cifras con su fuente */
.fuentes { margin-top: 36px; border: 1px solid var(--borde); padding: 24px 20px; display: grid; gap: 22px; }
.linea-fuente { display: grid; gap: 4px; }
.linea-fuente .que { font: 500 17px/1.4 var(--cuerpo); color: var(--texto); }
.linea-fuente .que .cifra { font-family: var(--display); font-weight: 600; color: var(--oro-hi); }
.linea-fuente .que .sin { font-family: var(--display); font-weight: 600; color: var(--texto-2); }
.linea-fuente .de { display: flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--cuerpo); color: var(--texto-2); }
.linea-fuente .de::before { content: ""; width: 28px; border-top: 1px dashed var(--oro); }
.garantias { margin-top: 28px; display: grid; gap: 10px; }
.garantias li { display: flex; gap: 12px; align-items: flex-start; color: var(--texto); }
.garantias svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--oro); }
@media (min-width: 1024px) {
  .ia .envoltura, .migracion .envoltura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .ia .fuentes, .migracion .bloque-traslado { margin-top: 6px; }
  .migracion .traslado { grid-template-columns: 1fr; margin-top: 0; }
  .migracion .traslado > li { border-right: 0; border-bottom: 1px solid var(--linde); }
  .migracion .traslado > li:last-child { border-bottom: 0; }
}

/* Precio */
.precio { border-top: 1px solid var(--linde); }
.precio .envoltura { display: grid; gap: 24px; }
.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--borde); }
.planes > div { padding: 14px 16px; border-right: 1px solid var(--linde); }
.planes > div:last-child { border-right: 0; }
.planes dd { font: 600 30px/1.1 var(--display); color: var(--oro-hi); margin-top: 4px; }
.planes-nota { margin-top: 10px; font-size: 15px; color: var(--texto-2); }
@media (min-width: 1024px) { .precio .envoltura { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: 64px; } }

/* Preguntas */
.preguntas { border-top: 1px solid var(--linde); }
.lista-preg { margin-top: 32px; border-top: 1px solid var(--borde); max-width: 860px; }
.lista-preg details { border-bottom: 1px solid var(--linde); }
.lista-preg summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 19px/1.35 var(--display); min-height: 44px; }
.lista-preg summary::-webkit-details-marker { display: none; }
.lista-preg summary svg { width: 20px; height: 20px; flex: none; color: var(--oro); transition: transform 200ms var(--ease-out); }
.lista-preg details[open] summary svg { transform: rotate(45deg); }
.lista-preg .resp { padding: 0 0 22px; color: var(--texto-2); max-width: 64ch; }

/* Cierre y formulario */
.cierre { border-top: 1px solid var(--borde); background: radial-gradient(120% 80% at 85% 0%, rgba(201, 162, 39, .07), transparent 60%), var(--bg); }
.cierre .envoltura { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cierre .envoltura { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.cierre .plazas-grande { font: 700 40px/44px var(--display); color: var(--oro-hi); }
@media (min-width: 1024px) { .cierre .plazas-grande { font-size: 64px; line-height: 68px; } }
.form { display: grid; gap: 16px; border: 1px solid var(--borde); padding: 20px; background: var(--bg); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 28px; } .form .ancho { grid-column: 1 / -1; } }
.campo { display: grid; gap: 6px; }
.campo label { font: 600 13px var(--rot); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.campo input { min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--borde); background: var(--manzana); color: var(--texto); font: 400 17px var(--cuerpo); transition: border-color 160ms var(--ease-out); }
.campo input::placeholder { color: #7c8bab; }
.campo input:focus { outline: none; border-color: var(--oro-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro-hi) 25%, transparent); }
.campo input[aria-invalid="true"] { border-color: var(--error); }
.campo .err { font-size: 14px; color: var(--error); min-height: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--texto-2); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--oro); flex: none; }
.form .btn { width: 100%; }
.form-estado { font-size: 15px; color: var(--texto-2); }
.form-ok { display: grid; gap: 10px; border: 1px solid var(--oro); padding: 24px; }
.form-ok[hidden], .form[hidden] { display: none; }
.form-ok h3 { color: var(--oro-hi); }
.alt-demo { margin-top: 20px; color: var(--texto-2); }

/* Pie */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .halo.vivo { opacity: .55; }
}

/* ── Navegación con «Funcionalidades» desplegable ───────── */
.nav-enlaces { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav-enlaces > a, .nav-desp-boton { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--texto-2); font: 500 16px/1 var(--cuerpo); text-decoration: none; cursor: pointer; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.nav-enlaces > a:hover, .nav-desp-boton:hover, .nav-desp-boton[aria-expanded="true"], .nav-enlaces > a[aria-current="page"] { color: var(--texto); background: var(--manzana); }
.nav-desp-boton svg { width: 12px; height: 12px; transition: transform 160ms var(--ease-out); }
.nav-desp-boton[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-desp { position: relative; }
.desplegable { position: absolute; top: calc(100% + 14px); left: 50%; width: 760px; transform: translateX(-38%); background: var(--bg); border: 1px solid var(--borde); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3); display: grid; grid-template-columns: 1fr 1fr; z-index: 41; }
.desplegable[hidden] { display: none; }
.desplegable:not([hidden]) { animation: abre-desp 180ms var(--ease-out); }
@keyframes abre-desp { from { opacity: 0; transform: translate(-38%, -6px); } }
.desp-col { padding: 18px 14px 14px; display: grid; align-content: start; gap: 2px; }
.desp-col + .desp-col { border-left: 1px solid var(--linde); }
.desp-col > .rotulo { padding: 0 10px 8px; }
.desp-item { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--texto); }
.desp-item svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--oro); }
.desp-item b { font: 600 16px/1.3 var(--cuerpo); }
.desp-item span { font: 400 14px/1.4 var(--cuerpo); color: var(--texto-2); }
.desp-item:hover, .desp-item:focus-visible, .desp-item[aria-current="page"] { background: var(--manzana); }
.nav-hoja { max-height: calc(100svh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.nav-hoja .grupo { padding: 14px 0 4px; }
.nav-hoja .sub { padding: 12px 0 12px 14px; font-size: 17px; color: var(--texto-2); }
@media (min-width: 1024px) {
  .nav-enlaces { display: flex; }
}

/* ── Cabecera de las páginas interiores ─────────────────── */
.cabecera { position: relative; padding: calc(var(--nav-h) + 40px) 0 48px; border-bottom: 1px solid var(--linde); overflow: hidden; isolation: isolate; }
.cabecera::before { content: ""; position: absolute; inset: -240px; z-index: -1; background: var(--tesela) 0 0 / 288px 230px; transform: rotate(-9deg); opacity: 1; pointer-events: none; }
.cabecera::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0, color-mix(in srgb, var(--bg) 80%, transparent) 55%, transparent); pointer-events: none; }
.cabecera .envoltura { display: grid; gap: 24px; }
.cabecera h1 { max-width: 20ch; }
.cabecera .entrada { max-width: 62ch; }
.cabecera .botones { margin-top: 4px; }
@media (min-width: 1024px) {
  .cabecera { padding: calc(var(--nav-h) + 72px) 0 72px; }
  .cabecera h1 { font-size: 52px; line-height: 1.06; }
}

/* La ruta de una vertical: sus paradas, en línea */
.ruta-h { display: grid; gap: 0; margin-top: 12px; }
.ruta-h li { position: relative; padding: 0 0 18px 28px; font: 600 13px/1.3 var(--rot); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.ruta-h li::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--oro); }
.ruta-h li::after { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--oro); }
.ruta-h li:last-child { padding-bottom: 0; }
.ruta-h li:last-child::after { display: none; }
.ruta-h li.fin::before { background: var(--bg); box-shadow: inset 0 0 0 3px var(--oro-hi); }
.ruta-h li.fin { color: var(--oro-hi); }
@media (min-width: 1024px) {
  .ruta-h { display: flex; flex-wrap: wrap; row-gap: 22px; }
  .ruta-h li { padding: 22px 26px 0 0; }
  .ruta-h li::before { top: 0; }
  .ruta-h li::after { left: 12px; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
}

/* ── Herramientas de una vertical ───────────────────────── */
.herramientas { display: grid; margin-top: 32px; border-top: 1px solid var(--borde); }
.herramienta { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--linde); }
.herramienta h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.herramienta .para { color: var(--texto); }
.herramienta .da { color: var(--texto-2); font-size: 16px; line-height: 1.55; }
.herramienta .da b { font-weight: 600; color: var(--texto); }
.estado { display: inline-block; font: 600 12px/1.2 var(--rot); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--borde); border-radius: 8px; color: var(--texto-2); max-width: 100%; }
@media (min-width: 1024px) {
  .herramientas { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
.nota-plan { margin-top: 24px; font-size: 16px; color: var(--texto-2); max-width: 70ch; }
.nota-plan a { color: var(--texto); }

/* ── Cierre con acción (en todas las interiores) ────────── */
.bloque-cta { border-top: 1px solid var(--borde); }
.bloque-cta .envoltura { display: grid; gap: 24px; }
@media (min-width: 1024px) { .bloque-cta .envoltura { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .bloque-cta .botones { justify-content: end; } }

/* ── Precios ────────────────────────────────────────────── */
.cambio { display: inline-flex; padding: 4px; border: 1px solid var(--borde); border-radius: 12px; gap: 4px; margin-top: 8px; }
.cambio button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; color: var(--texto-2); font: 600 16px var(--cuerpo); cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.cambio button[aria-pressed="true"] { background: var(--manzana); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde); }
.cambio button .ahorro { color: var(--oro-hi); font-weight: 600; }
.planes-grid { display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--borde); }
.plan { display: grid; gap: 14px; align-content: start; padding: 24px 20px; border-bottom: 1px solid var(--linde); }
.plan:last-child { border-bottom: 0; }
.plan h2 { font-size: 28px; max-width: none; }
.plan .que { color: var(--texto-2); font-size: 16px; }
.plan-precios { display: grid; gap: 0; border-top: 1px solid var(--linde); }
.plan-precios > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linde); }
.plan-precios dt { font: 600 13px var(--rot); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.plan-precios dd { font: 600 26px/1 var(--display); color: var(--texto); font-variant-numeric: tabular-nums; }
.plan-precios dd small { font: 500 14px var(--cuerpo); color: var(--texto-2); margin-left: 4px; }
.plan .btn { width: 100%; }
.plan.elite { background: color-mix(in srgb, var(--oro) 5%, var(--bg)); }
@media (min-width: 1024px) {
  .planes-grid { grid-template-columns: repeat(3, 1fr); }
  .plan { border-bottom: 0; border-right: 1px solid var(--linde); padding: 28px; }
  .plan:last-child { border-right: 0; }
}
.zonas { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--borde); }
.zonas > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--linde); }
.zonas dt { font: 600 20px var(--display); }
.zonas dd { color: var(--texto-2); font-size: 16px; }
@media (min-width: 1024px) { .zonas { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }

.comparativa-envoltura { margin-top: 28px; overflow-x: auto; border: 1px solid var(--borde); -webkit-overflow-scrolling: touch; }
.comparativa { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.comparativa th, .comparativa td { padding: 14px 16px; border-bottom: 1px solid var(--linde); text-align: center; vertical-align: top; }
.comparativa thead th { font: 600 18px var(--display); color: var(--texto); background: var(--bg); position: sticky; top: 0; }
.comparativa tbody th { text-align: left; font-weight: 500; color: var(--texto); width: 40%; }
.comparativa tbody th small { display: block; font-size: 14px; color: var(--texto-2); font-weight: 400; margin-top: 2px; }
.comparativa td { color: var(--texto-2); }
.comparativa tr:last-child th, .comparativa tr:last-child td { border-bottom: 0; }
.comparativa .si svg { width: 18px; height: 18px; color: var(--oro); display: inline-block; vertical-align: -3px; }
.comparativa .no { color: #6d7fa3; }
.datos-clave { display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--borde); }
.datos-clave > div { padding: 20px; border-bottom: 1px solid var(--linde); display: grid; gap: 6px; }
.datos-clave > div:last-child { border-bottom: 0; }
.datos-clave p { color: var(--texto-2); font-size: 16px; }
@media (min-width: 1024px) { .datos-clave { grid-template-columns: repeat(2, 1fr); } .datos-clave > div:nth-child(odd) { border-right: 1px solid var(--linde); } .datos-clave > div:nth-last-child(-n+2) { border-bottom: 0; } }

/* ── Contacto ───────────────────────────────────────────── */
.contacto .envoltura { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contacto .envoltura { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; } }
.campo select { min-height: 52px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--borde); background: var(--manzana); color: var(--texto); font: 400 17px var(--cuerpo); }
.campo textarea { min-height: 150px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--borde); background: var(--manzana); color: var(--texto); font: 400 17px/1.5 var(--cuerpo); resize: vertical; }
.campo textarea:focus, .campo select:focus { outline: none; border-color: var(--oro-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro-hi) 25%, transparent); }
.campo textarea[aria-invalid="true"], .campo input[aria-invalid="true"] { border-color: var(--error); }
.tel { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.obligatorio { color: var(--oro-hi); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vias { display: grid; gap: 0; border: 1px solid var(--borde); }
.vias > a, .vias > div { display: grid; grid-template-columns: 24px 1fr; gap: 2px 14px; padding: 18px 20px; border-bottom: 1px solid var(--linde); text-decoration: none; color: var(--texto); }
.vias > :last-child { border-bottom: 0; }
.vias svg { grid-row: span 2; width: 22px; height: 22px; color: var(--oro); margin-top: 2px; }
.vias b { font: 600 17px var(--display); }
.vias span { color: var(--texto-2); font-size: 16px; }
.vias > a:hover { background: var(--manzana); }

/* ── Pie en columnas ────────────────────────────────────── */
.pie { border-top: 1px solid var(--borde); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 16px; }
.pie .envoltura { display: grid; gap: 36px; }
.pie-col { display: grid; gap: 10px; align-content: start; }
.pie-col .rotulo { margin-bottom: 6px; }
.pie a { color: var(--texto-2); text-decoration: none; }
.pie a:hover { color: var(--texto); }
.pie .marca { color: var(--oro-hi); }
.pie-marca .texto { margin-top: 14px; font-size: 16px; }
.pie-marca p + p { margin-top: 8px; }
.pie-fin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--texto-2); border-top: 1px solid var(--linde); padding-top: 20px; }
@media (min-width: 640px) { .pie .envoltura { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pie .envoltura { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ── WhatsApp ───────────────────────────────────────────── */
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3); transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.wa svg { width: 30px; height: 30px; fill: currentColor; }
.wa:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.06); } }

/* ── Aviso de cookies ───────────────────────────────────── */
#aimmo-cookie-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 760px; margin: 0 auto; display: grid; gap: 14px; padding: 18px; background: var(--bg); border: 1px solid var(--borde); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7); transform: translateY(calc(100% + 32px)); transition: transform 320ms var(--ease-out); }
#aimmo-cookie-banner.visible { transform: none; }
#aimmo-cookie-banner p { font-size: 15px; line-height: 1.5; color: var(--texto-2); }
#aimmo-cookie-banner p strong { display: block; margin-bottom: 4px; font: 600 17px var(--display); color: var(--texto); }
#aimmo-cookie-banner a { color: var(--texto); }
.cookie-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-acciones .btn { min-height: 48px; font-size: 16px; padding: 0 16px; }
@media (min-width: 640px) { #aimmo-cookie-banner { grid-template-columns: 1fr auto; align-items: center; left: 24px; right: 24px; bottom: 24px; } .cookie-acciones { display: flex; } }

/* ── Precios: zonas por planes (escritorio) y tarjetas (móvil) ── */
.solo-escritorio { display: none; }
@media (min-width: 900px) { .solo-escritorio { display: block; } .solo-movil { display: none !important; } }
.matriz-envoltura { margin-top: 28px; border: 1px solid var(--borde); }
.matriz { width: 100%; border-collapse: collapse; }
.matriz th, .matriz td { padding: 18px 20px; border-bottom: 1px solid var(--linde); border-right: 1px solid var(--linde); text-align: center; vertical-align: middle; }
.matriz th:last-child, .matriz td:last-child { border-right: 0; }
.matriz thead th { font: 600 22px/1.2 var(--display); color: var(--texto); }
.matriz thead th:first-child, .matriz tbody th { text-align: left; }
.matriz thead th small, .matriz tbody th small, .matriz tfoot small { display: block; font: 500 14px/1.45 var(--cuerpo); color: var(--texto-2); margin-top: 4px; }
.matriz thead th:first-child { font: 600 13px var(--rot); letter-spacing: .2em; text-transform: uppercase; color: var(--rotulo); }
.matriz tbody th { font: 600 20px var(--display); width: 34%; }
.matriz tbody th small { max-width: 34ch; }
.matriz td .cifra { font: 600 30px/1 var(--display); color: var(--texto); }
.matriz td .cifra small { display: block; font: 500 14px var(--cuerpo); color: var(--texto-2); margin-top: 6px; }
.matriz tbody td:last-child { background: color-mix(in srgb, var(--oro) 5%, var(--bg)); }
.matriz tbody td:last-child .cifra { color: var(--oro-hi); }
.matriz tfoot td { border-bottom: 0; padding-top: 22px; padding-bottom: 22px; }
.matriz tfoot .btn { width: 100%; }
.matriz tfoot small { text-align: center; }
.exclusivo { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--oro); background: color-mix(in srgb, var(--oro) 6%, var(--bg)); display: grid; gap: 8px; max-width: 760px; }
.exclusivo h3 { color: var(--oro-hi); }
.exclusivo p { color: var(--texto-2); }
.exclusivo b { color: var(--texto); font-weight: 600; }

/* ── Home: lo que medimos en el piloto ── */
.medimos { grid-column: 1 / -1; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--borde); }
.medimos ul { display: grid; gap: 0; margin-top: 16px; }
.medimos li { padding: 12px 0; border-bottom: 1px solid var(--linde); display: grid; gap: 2px; }
.medimos li b { font: 600 17px var(--display); color: var(--texto); }
.medimos li span { font-size: 15px; color: var(--texto-2); }
@media (min-width: 1024px) { .medimos ul { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }

/* ── Páginas legales: el texto de siempre, en columna de lectura ── */
.legal-cab { padding-bottom: 40px; }
.legal-cab h1 { max-width: 24ch; }
.legal-fecha { font-size: 15px; color: var(--rotulo); max-width: 62ch; }
.legal-cuerpo { padding-top: 48px; }
.legal-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.legal-indice { display: none; }
@media (min-width: 1024px) {
  .legal-cuerpo { padding-top: 64px; }
  .legal-rejilla:has(.legal-indice) { grid-template-columns: 250px minmax(0, 72ch); column-gap: 72px; }
  .legal-indice { display: block; position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; max-height: calc(100vh - var(--nav-h) - 56px); overflow-y: auto; scrollbar-width: thin; }
}
.legal-indice ol { margin-top: 14px; border-left: 1px solid var(--linde); }
.legal-indice a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; font-size: 15px; line-height: 1.4; color: var(--texto-2); text-decoration: none; transition: color .15s, border-color .15s; }
.legal-indice a:hover { color: var(--texto); border-left-color: var(--oro); }
.legal { min-width: 0; max-width: 72ch; color: var(--texto-2); }
.legal h2 { max-width: none; text-wrap: pretty; margin: 52px 0 14px; font: 600 23px/1.25 var(--display); color: var(--texto); scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { margin: 30px 0 10px; font: 600 19px/1.35 var(--display); color: var(--texto); }
.legal p, .legal ul { margin-bottom: 16px; }
.legal strong { color: var(--texto); font-weight: 600; }
.legal a { color: var(--texto); }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 3px; top: .7em; width: 6px; height: 6px; background: var(--oro); }
.legal small { font-size: 15px; }
.legal .table-wrap { margin: 20px 0 28px; border: 1px solid var(--borde); overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th { padding: 12px 16px; background: var(--manzana); border-bottom: 1px solid var(--borde); text-align: left; font: 600 15px/1.35 var(--display); color: var(--texto); }
.legal td { padding: 12px 16px; border-bottom: 1px solid var(--linde); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.legal th.num, .legal td.num { text-align: right; }
.legal .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.legal .pill { padding: 5px 14px; border: 1px solid var(--borde); border-radius: 999px; font-size: 15px; color: var(--texto); }
.legal .contact-box { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--borde); background: var(--manzana); }
.legal .contact-box p { margin: 0; }
.legal-titular { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--linde); }
.legal-titular p { margin: 0; font-size: 15px; color: var(--rotulo); }
.legal-titular a { color: inherit; }
@media (min-width: 1024px) { .legal h2 { font-size: 26px; } }
