/* Hallmark · sello de estructura: «Expedición» (derivado de Almanac + Midnight).
   Portada a dos columnas (texto | mapa vertical), mapa SVG propio como columna vertebral,
   cada punto del mapa es una mini-landing (qué hay · qué consigues · testimonio · progreso · CTA),
   separadores cartográficos entre puntos, recompensa y borde del mapa siguiente.
   Referencia estudiada: brief sección 10 de EMBUDO-closerbrutal-las7mentorias-PROPUESTA.md. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  /* Color: paleta ÚNICA del escudo CA (generar-portadas.py). Lo demás son mezclas de estos cinco. */
  --marino: #0E1B2D;      /* base */
  --azul: #162C48;        /* superficies */
  --cielo: #4A9FD8;       /* solo foco e información, con moderación */
  --arena: #D9B48A;       /* oro viejo: el ÚNICO metal y acento (≤ 5 %) */
  --crema: #F3EBDD;       /* texto y pergamino */
  /* Alias usados por los componentes (mismos cinco colores y sus mezclas) */
  --tinta: var(--marino);
  --pizarra: var(--azul);
  --linea: #2E405A;       /* azul + 12 % crema */
  --marfil: var(--crema);
  --marfil-2: #BCBBB8;    /* crema 75 % + azul 25 % */
  --oro: var(--arena);
  --oro-claro: #E3CAAB;   /* arena 60 % + crema 40 % */
  --oro-hondo: #A68E73;   /* arena 75 % + marino 25 % */
  --oro-velo: rgba(217, 180, 138, 0.28);
  --esmeralda: var(--arena);          /* «conquistado» = oro viejo, nunca verde */
  --esmeralda-texto: #E3CAAB;
  --lacre: var(--cielo);              /* avisos e información: cielo, nunca rojo */
  --lacre-texto: #8EBDDA;             /* cielo 60 % + crema 40 % (AA sobre azul) */
  --velo: rgba(14, 27, 45, 0.88);

  /* Tipografía */
  --f-titulo: 'Fraunces', Georgia, serif;
  --f-texto: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-cifra: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* Escala de espacio 4/8/12/16/24/32/48/64 */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px;

  --radio: 12px;
  --radio-s: 8px;
  --medida: 62ch;
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--marfil);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--oro-claro); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--marfil); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
p { margin: 0 0 var(--e4); max-width: var(--medida); }
strong { color: var(--marfil); font-weight: 700; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-style: normal;
  line-height: 1.08;
  margin: 0 0 var(--e4);
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 12vw, 4.6rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.75rem, 7vw, 2.6rem); font-variation-settings: 'opsz' 96; }
h3 { font-size: 1.25rem; font-variation-settings: 'opsz' 36; line-height: 1.25; }

.envoltorio { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--e4); }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Antetítulo: siempre ENCIMA del titular */
.antetitulo {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--marfil-2);
  margin: 0 0 var(--e3);
}

/* Cifras: IBM Plex Mono solo en contadores y cuentas atrás */
.cifra { font-family: var(--f-cifra); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- Barra superior (sin menú) ---------- */
.barra { border-bottom: 1px solid var(--linea); }
.barra .envoltorio { display: flex; align-items: center; justify-content: space-between; gap: var(--e4); min-height: 56px; }
.marca { font-weight: 700; font-size: 0.95rem; color: var(--marfil); text-decoration: none; letter-spacing: 0.02em; }
.marca span { color: var(--marfil-2); font-weight: 500; }
.barra-fecha { font-size: 0.85rem; color: var(--marfil-2); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 52px;
  padding: var(--e3) var(--e5);
  border-radius: var(--radio-s);
  border: 1px solid var(--oro);
  background: var(--oro);
  color: var(--tinta);
  font-weight: 700;
  font-size: clamp(0.95rem, 4.2vw, 1.05rem);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--oro-claro); border-color: var(--oro-claro); color: var(--tinta); }
.btn:active { background: var(--oro-hondo); border-color: var(--oro-hondo); }
.btn:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled='true'] { background: var(--linea); border-color: var(--linea); color: var(--marfil-2); cursor: not-allowed; }
.btn-sec { background: transparent; color: var(--marfil); border-color: var(--marfil-2); }
.btn-sec:hover { background: var(--pizarra); border-color: var(--oro); color: var(--marfil); }
.btn-sec:active { background: var(--linea); border-color: var(--oro-hondo); }
.btn-sec:disabled, .btn-sec[aria-disabled='true'] { background: transparent; border-color: var(--linea); color: var(--marfil-2); }
.btn-ancho { width: 100%; }
.btn-texto {
  background: none; border: 0; padding: var(--e2) 0; color: var(--marfil-2); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; font-size: 0.95rem; min-height: 44px;
  transition: color 0.15s ease;
}
.btn-texto:hover { color: var(--marfil); }
.btn-texto:active { color: var(--oro); }
.btn-texto:disabled { color: var(--linea); cursor: not-allowed; }

/* ---------- Portada ---------- */
.portada { padding: var(--e6) 0 var(--e7); }
.portada .envoltorio { display: grid; gap: var(--e6); }
.portada-texto { align-self: center; }
.portada .sub { font-size: 1.15rem; color: var(--marfil-2); max-width: 34ch; }
.estado {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e2) var(--e5);
  margin: var(--e5) 0; padding: var(--e3) 0;
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
  font-size: 0.95rem; color: var(--marfil-2);
}
.estado .cifra { color: var(--marfil); font-size: 1rem; }
.estado .cuenta .cifra { color: var(--oro-claro); }
.cta-nota { display: block; margin-top: var(--e3); font-size: 0.9rem; color: var(--marfil-2); }
.portada-mapa { position: relative; }

/* ---------- Mapa SVG ---------- */
.mapa { width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.mapa .topo path { fill: none; stroke: var(--linea); stroke-width: 1; }
.mapa .rosa { stroke: var(--marfil-2); fill: none; stroke-width: 1; opacity: 0.55; }
.mapa .rosa text { fill: var(--marfil-2); stroke: none; font-family: var(--f-titulo); font-size: 13px; }
.mapa .camino { fill: none; stroke: var(--marfil-2); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.6; }
.mapa .camino-oro { fill: none; stroke: var(--oro); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.mapa .mascara { fill: none; stroke: #FFFFFF; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-out; }
.mapa .mascara.on { stroke-dashoffset: 0; }
.mapa .cola { fill: none; stroke: var(--marfil-2); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.3; }
.mapa .nodo { cursor: pointer; }
.mapa .nodo circle.base { fill: var(--pizarra); stroke: var(--marfil-2); stroke-width: 1.5; transition: stroke 0.15s ease, fill 0.15s ease; }
.mapa .nodo .num { fill: var(--marfil); font-family: var(--f-titulo); font-size: 17px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.mapa .nodo:hover circle.base { stroke: var(--oro); }
.mapa .nodo:active circle.base { fill: var(--linea); }
.mapa .nodo:focus { outline: none; }
.mapa .nodo:focus-visible circle.anillo { stroke: var(--marfil); stroke-width: 3; }
.mapa .nodo circle.anillo { fill: none; stroke: transparent; }
.mapa .nodo.abierto circle.base { stroke: var(--oro); stroke-width: 2.5; }
.mapa .nodo.abierto .num { fill: var(--oro); }
.mapa .sello circle { fill: var(--tinta); stroke: var(--linea); }
.mapa .sello path { fill: none; stroke: var(--marfil-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mapa .nodo.abierto .sello circle { fill: var(--esmeralda); stroke: var(--esmeralda); }
.mapa .nodo.abierto .sello path { stroke: var(--marfil); }
.mapa .etq-k { fill: var(--marfil-2); font-family: var(--f-texto); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.mapa .etq-t { fill: var(--marfil); font-family: var(--f-texto); font-size: 15px; font-weight: 600; }
.mapa .cofre path, .mapa .cofre rect { fill: var(--pizarra); stroke: var(--oro); stroke-width: 1.6; stroke-linejoin: round; }
.mapa .brillo { fill: var(--oro); opacity: 0.12; }
.mapa .tu { fill: var(--marfil); font-family: var(--f-texto); font-size: 12px; font-weight: 700; }
.mapa .tu-punto { fill: var(--oro); }
.mapa .niebla-txt { fill: var(--marfil-2); font-family: var(--f-titulo); font-size: 13px; opacity: 0.7; }

/* ---------- Puntos (mini-landings) ---------- */
.puntos { padding-bottom: var(--e7); }
.puntos-cabecera { padding: var(--e7) 0 var(--e5); border-top: 1px solid var(--linea); }
.puntos-cabecera p { color: var(--marfil-2); }
.punto { padding: var(--e7) 0; position: relative; scroll-margin-top: var(--e4); }
.punto + .punto, .recompensa { border-top: 1px dashed var(--linea); }
.punto-grid { display: grid; gap: var(--e6); }
.punto h2 { max-width: 20ch; }
.punto-estado {
  display: inline-flex; align-items: center; gap: var(--e2);
  font-size: 0.9rem; color: var(--marfil-2); margin-bottom: var(--e5);
}
.punto-estado svg { width: 16px; height: 16px; flex: none; }
.punto-estado .cifra { color: var(--marfil); }
.bloque-txt h3 { margin-top: var(--e5); font-size: 1.05rem; font-family: var(--f-texto); font-weight: 700; letter-spacing: 0.01em; color: var(--marfil-2); }
.bloque-txt h3:first-child { margin-top: 0; }
.aclaracion { border-left: 2px solid var(--linea); padding-left: var(--e4); color: var(--marfil-2); font-size: 0.95rem; }
.punto-pie { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e5); margin-top: var(--e5); }
.progreso { font-size: 0.9rem; color: var(--marfil-2); }
.progreso .cifra { color: var(--marfil); }

/* Testimonios: fachada ligera */
.testimonios { display: grid; gap: var(--e5); align-content: start; }
.testimonio { margin: 0; }
.fachada {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--linea);
  border-radius: var(--radio); overflow: hidden; background: var(--pizarra); cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: border-color 0.15s ease;
}
.fachada.vertical { aspect-ratio: 9 / 16; max-width: 300px; }
.fachada img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.fachada:hover { border-color: var(--oro); }
.fachada:active { border-color: var(--oro-hondo); }
.fachada:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
.fachada .play {
  position: absolute; left: var(--e4); bottom: var(--e4);
  display: inline-flex; align-items: center; gap: var(--e2);
  padding: var(--e2) var(--e4); border-radius: 999px;
  background: var(--velo); color: var(--marfil); font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.fachada .play svg { width: 14px; height: 14px; fill: var(--oro); }
.marco-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--pizarra); border: 1px solid var(--linea); }
.marco-video.vertical { aspect-ratio: 9 / 16; max-width: 300px; }
.marco-video iframe, .marco-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testimonio figcaption { margin-top: var(--e3); font-size: 0.95rem; color: var(--marfil-2); max-width: 46ch; }
.testimonio figcaption strong { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.aviso-res { font-size: 0.8rem; color: var(--marfil-2); margin: 0; }

/* Grabados (marcadores de imagen propios, ver IMAGENES.md) */
.grabado { margin: 0 0 var(--e5); border: 1px solid var(--linea); border-radius: var(--radio); padding: var(--e5); background: var(--pizarra); max-width: 420px; }
.grabado svg { width: 100%; height: auto; }
.grabado svg * { fill: none; stroke: var(--marfil-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.grabado svg .acento { stroke: var(--oro); }

/* Recompensa y siguiente mapa */
.recompensa { padding: var(--e7) 0; }
.recompensa .meta { font-family: var(--f-titulo); font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1.3; max-width: 30ch; color: var(--marfil); }
.legal { font-size: 0.85rem; color: var(--marfil-2); }
.siguiente {
  margin-top: var(--e7); padding: var(--e6) 0 0; border-top: 1px dashed var(--linea);
  color: var(--marfil-2);
}
.siguiente p { font-family: var(--f-titulo); font-size: 1.2rem; color: var(--marfil-2); max-width: 32ch; }

/* ---------- Confianza ---------- */
.confianza { padding: var(--e7) 0; border-top: 1px solid var(--linea); }
.confianza-grid { display: grid; gap: var(--e6); }
.carlos { display: grid; grid-template-columns: 112px 1fr; gap: var(--e4); align-items: start; }
.carlos img { width: 112px; height: 140px; object-fit: cover; object-position: top; border-radius: var(--radio); background: var(--pizarra); border: 1px solid var(--linea); }
.garantia { border: 1px solid var(--linea); border-radius: var(--radio); padding: var(--e5); }
.garantia h3 { margin-bottom: var(--e2); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary {
  cursor: pointer; padding: var(--e4) 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--e4);
  min-height: 48px; align-items: center;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: '+'; font-family: var(--f-titulo); font-size: 1.3rem; color: var(--marfil-2); }
.preguntas details[open] summary::after { content: '−'; }
.preguntas summary:hover { color: var(--oro-claro); }
.preguntas details p { color: var(--marfil-2); }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--linea); padding: var(--e6) 0 calc(var(--e8) + var(--e6)); font-size: 0.85rem; color: var(--marfil-2); }
.pie p { margin-bottom: var(--e2); max-width: 75ch; }
.pie a { color: var(--marfil-2); }
.pie a:hover { color: var(--marfil); }

/* ---------- Barra fija inferior (solo móvil) ---------- */
.fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--velo); border-top: 1px solid var(--linea);
  padding: var(--e3) var(--e4) calc(var(--e3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: var(--e3);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.fija.visible { transform: translateY(0); }
.fija .progreso { white-space: nowrap; }
.fija .btn { min-height: 46px; padding: var(--e2) var(--e4); font-size: 0.95rem; }

/* ---------- Diálogo del recorrido ---------- */
dialog.recorrido {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--tinta); color: var(--marfil);
}
dialog.recorrido::backdrop { background: var(--velo); }
.rec-cab { display: flex; align-items: center; justify-content: space-between; gap: var(--e4); padding: var(--e3) var(--e4); border-bottom: 1px solid var(--linea); }
.rec-cab .progreso { font-size: 0.9rem; }
.cerrar {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--linea); border-radius: var(--radio-s); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cerrar:hover { border-color: var(--marfil-2); }
.cerrar:active { background: var(--pizarra); }
.cerrar svg { width: 18px; height: 18px; stroke: var(--marfil); stroke-width: 2; fill: none; }
.barra-prog { height: 3px; background: var(--linea); }
.barra-prog i { display: block; height: 100%; background: var(--oro); transform-origin: left; transform: scaleX(0); transition: transform 0.3s ease; }
.rec-cuerpo { padding: var(--e6) var(--e4) var(--e7); max-width: 640px; margin: 0 auto; }
.rec-cuerpo h2 { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
.opciones { display: grid; gap: var(--e3); margin-top: var(--e5); }
.opcion {
  text-align: left; width: 100%; min-height: 56px;
  padding: var(--e4); border-radius: var(--radio-s);
  background: var(--pizarra); border: 1px solid var(--linea); color: var(--marfil);
  font-weight: 600; cursor: pointer; line-height: 1.35;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opcion:hover { border-color: var(--oro); }
.opcion:active { background: var(--linea); }
.opcion[aria-pressed='true'] { border-color: var(--oro); background: var(--linea); }
.opcion:disabled { opacity: 0.55; cursor: not-allowed; }
.atras { margin-top: var(--e5); }

.bonos { list-style: none; padding: 0; margin: var(--e5) 0; display: grid; gap: var(--e3); }
.bonos li { display: grid; grid-template-columns: 22px 1fr; gap: var(--e3); align-items: start; max-width: var(--medida); }
.bonos svg { width: 22px; height: 22px; stroke: var(--esmeralda-texto); fill: none; stroke-width: 2; margin-top: 2px; }
.bonos .regalo { color: var(--marfil); }
.bonos small { display: block; color: var(--marfil-2); font-size: 0.85rem; }

/* ---------- Formularios: 5 estados ---------- */
.campo { margin-bottom: var(--e5); }
.campo label, .campo .etq { display: block; font-weight: 700; margin-bottom: var(--e2); font-size: 0.95rem; }
.campo .ayuda { display: block; font-size: 0.85rem; color: var(--marfil-2); margin-top: var(--e2); }
.campo .error { display: block; font-size: 0.85rem; color: var(--lacre-texto); margin-top: var(--e2); font-weight: 600; }
.campo .error:empty { display: none; }
.entrada {
  width: 100%; min-height: 52px; padding: var(--e3) var(--e4);
  background: var(--tinta); color: var(--marfil);
  border: 1px solid var(--linea); border-radius: var(--radio-s);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.entrada::placeholder { color: var(--marfil-2); opacity: 0.75; }
.entrada:hover { border-color: var(--marfil-2); }
.entrada:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px var(--oro-velo); }
.entrada:not(:placeholder-shown):not(:focus) { border-color: var(--marfil-2); background: var(--pizarra); }
.entrada[aria-invalid='true'] { border-color: var(--lacre-texto); box-shadow: none; }
.entrada[aria-invalid='true']:focus { box-shadow: 0 0 0 3px var(--oro-velo); }
.entrada:disabled { opacity: 0.55; cursor: not-allowed; background: var(--pizarra); }
select.entrada { appearance: none; padding-right: var(--e6); background-image: none; cursor: pointer; }
.selector { position: relative; flex: none; }
.selector::after { content: ''; position: absolute; right: var(--e4); top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--marfil-2); border-bottom: 2px solid var(--marfil-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tel { display: flex; gap: var(--e2); }
.tel .selector select { width: 7.5rem; }
.tel .entrada[type='tel'] { flex: 1; min-width: 0; }
.casilla { display: grid; grid-template-columns: 24px 1fr; gap: var(--e3); align-items: start; font-size: 0.92rem; color: var(--marfil-2); cursor: pointer; }
.casilla input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--oro); cursor: pointer; }
.casilla input:focus-visible { outline: 3px solid var(--marfil); outline-offset: 2px; }
.casilla input[aria-invalid='true'] { outline: 2px solid var(--lacre-texto); outline-offset: 2px; }
.casilla input:disabled { cursor: not-allowed; }

.aviso { border: 1px solid var(--lacre); border-radius: var(--radio-s); padding: var(--e4); margin: var(--e4) 0; color: var(--marfil); background: var(--pizarra); }
.aviso a { color: var(--oro-claro); font-weight: 700; }
.aviso-ok { border-color: var(--esmeralda); }

.resultado-perfil { font-size: 1.15rem; max-width: 46ch; }
.precio { display: flex; align-items: baseline; gap: var(--e3); margin: var(--e5) 0 var(--e2); }
.precio b { font-family: var(--f-titulo); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--marfil); }
.lista-simple { padding-left: var(--e5); margin: 0 0 var(--e5); max-width: var(--medida); }
.lista-simple li { margin-bottom: var(--e2); }
.cargando::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: giro 0.8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* ---------- Bienvenida ---------- */
.bienvenida .portada .envoltorio { align-items: start; }
.acciones { display: grid; gap: var(--e3); margin: var(--e5) 0; max-width: 420px; }
.tramo { padding: var(--e7) 0; border-top: 1px solid var(--linea); }
.oto { border: 1px solid var(--linea); border-radius: var(--radio); padding: var(--e5); max-width: 720px; }
.oto .precio b { font-size: 2.2rem; }
.oto-acciones { display: flex; flex-wrap: wrap; gap: var(--e3); align-items: center; }

/* Página de texto (privacidad) */
.texto-legal { padding: var(--e7) 0; }
.texto-legal h2 { font-size: 1.4rem; margin-top: var(--e6); }
.texto-legal li { max-width: var(--medida); margin-bottom: var(--e2); }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .portada { padding: var(--e6) 0; }
  .portada .envoltorio { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--e6); min-height: calc(100vh - 57px - 2 * var(--e6)); max-height: 820px; }
  .portada-mapa .mapa { max-height: calc(100vh - 140px); width: auto; }
  .punto-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--e7); align-items: start; }
  .confianza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fija { display: none; }
  dialog.recorrido { width: min(680px, calc(100% - 2 * var(--e6))); height: fit-content; max-height: calc(100% - 2 * var(--e6)); margin: auto; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--tinta); }
  .pie { padding-bottom: var(--e6); }
}
@media (max-width: 360px) {
  body { font-size: 16px; }
  .tel .selector select { width: 6.5rem; }
  .carlos { grid-template-columns: 88px 1fr; }
  .carlos img { width: 88px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .mapa .mascara { transition: none; }
}

/* Grupos de respuesta (preguntas filtro) */
fieldset.grupo { border: 0; padding: 0; margin: 0 0 var(--e5); min-width: 0; }
fieldset.grupo legend { padding: 0; margin-bottom: var(--e2); font-weight: 700; font-size: 0.95rem; }
fieldset.grupo .opciones { margin-top: 0; }
fieldset.grupo[aria-invalid='true'] legend { color: var(--lacre-texto); }
.nota-pie { margin-top: var(--e4); }

/* Ajustes móvil tras prueba a 320/390 */
.estado .cifra, .punto-estado .cifra { white-space: nowrap; }
.marca { white-space: nowrap; }
@media (max-width: 480px) {
  .barra-fecha { display: none; }
}

/* PRIMER MODELO 28/11: enlace de reserva 1 a 1 bajo «Acceder» */
.reserva-1a1 { display: block; text-align: center; margin: 14px auto 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
