/* ==========================================================================
   Top Travel Media · Hoja de estilos única (mobile-first)
   Índice:
   1. Variables y modo oscuro      5. Componentes (botones, sellos, boletos)
   2. Base y accesibilidad         6. Secciones de contenido
   3. Encabezado y menú            7. Formulario y preguntas frecuentes
   4. Portada (hero)               8. Pie de página y páginas legales
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  color-scheme: light;
  --arena: #fbf5ea;
  --arena-2: #f4e9d6;
  --papel: #ffffff;
  --tinta: #12313a;
  --tinta-suave: #47606a;
  --mar: #0c4a53;
  --mar-2: #0f6c74;
  --coral: #b83c1c;
  --coral-hover: #962f14;
  --sol: #ffc857;
  --palma: #1f6e4c;
  --error: #a4231a;
  --linea: #dfd3bd;
  --sombra: 0 1px 2px rgb(18 49 58 / .08), 0 10px 26px rgb(18 49 58 / .09);
  --sello: #b83c1c;
  --ok-fondo: #e4f3ea;
  --malo-fondo: #fbe9e3;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  --t-xs: clamp(.8rem, .78rem + .1vw, .875rem);
  --t-s: clamp(.92rem, .9rem + .12vw, 1rem);
  --t-m: clamp(1.02rem, 1rem + .15vw, 1.125rem);
  --t-l: clamp(1.25rem, 1.15rem + .5vw, 1.55rem);
  --t-xl: clamp(1.8rem, 1.45rem + 1.7vw, 2.9rem);
  --t-xxl: clamp(2.3rem, 1.7rem + 3.1vw, 4.4rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --seccion: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radio: 14px;
  --ancho: 1200px;
  --alto-header: 64px;
}

/* El mismo juego de colores oscuros se aplica por preferencia del sistema o por el botón */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --arena: #0b1f25;
    --arena-2: #10292f;
    --papel: #14323a;
    --tinta: #f3ecdf;
    --tinta-suave: #b9c8c9;
    --mar: #a5e3df;
    --mar-2: #7fd4cf;
    --coral: #c2471f;
    --coral-hover: #d65a30;
    --palma: #7fd3a4;
    --error: #ffb4a6;
    --linea: #2c4d55;
    --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px rgb(0 0 0 / .28);
    --sello: #ffa585;
    --ok-fondo: #143a2c;
    --malo-fondo: #43231b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --arena: #0b1f25;
  --arena-2: #10292f;
  --papel: #14323a;
  --tinta: #f3ecdf;
  --tinta-suave: #b9c8c9;
  --mar: #a5e3df;
  --mar-2: #7fd4cf;
  --coral: #c2471f;
  --coral-hover: #d65a30;
  --palma: #7fd3a4;
  --error: #ffb4a6;
  --linea: #2c4d55;
  --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px rgb(0 0 0 / .28);
  --sello: #ffa585;
  --ok-fondo: #143a2c;
  --malo-fondo: #43231b;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-header) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--arena);
  color: var(--tinta);
  font: 400 var(--t-m)/1.65 var(--sans);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0; color: var(--tinta); text-wrap: balance; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--mar-2); text-underline-offset: .18em; }
a:hover { color: var(--coral); }
:root[data-theme="dark"] a:hover { color: var(--sello); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; box-shadow: 0 0 0 5px #10272e; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .92em; }

.envoltura { width: min(100% - 2 * var(--gutter), var(--ancho)); margin-inline: auto; }
.saltar {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .8rem 1.1rem; border-radius: 8px;
  background: var(--sol); color: #10272e; font-weight: 700;
}
.saltar:focus { top: 1rem; color: #10272e; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 3. Encabezado ------------------------------------------------------------ */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--arena) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila { display: flex; align-items: center; gap: .5rem; min-height: var(--alto-header); }
.marca {
  display: inline-flex; align-items: center; gap: .55rem; margin-right: auto;
  min-height: 44px; color: var(--tinta); text-decoration: none;
  font: 700 1.1rem/1.1 var(--serif);
}
.marca img { width: 34px; height: 34px; border-radius: 9px; }
.idioma, .btn-icono {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .55rem;
  border: 1px solid var(--linea); border-radius: 10px;
  background: var(--papel); color: var(--tinta);
  font-size: var(--t-xs); font-weight: 700; text-decoration: none;
}
.btn-icono svg { width: 20px; height: 20px; }
.tema-luna { display: none; }
:root[data-theme="dark"] .tema-sol { display: none; }
:root[data-theme="dark"] .tema-luna { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema-sol { display: none; }
  :root:not([data-theme="light"]) .tema-luna { display: block; }
}
.menu {
  position: absolute; inset: 100% 0 auto; display: none;
  background: var(--arena); border-bottom: 1px solid var(--linea);
  box-shadow: var(--sombra);
  max-height: calc(100dvh - var(--alto-header)); overflow-y: auto;
}
.menu.abierto { display: block; }
.menu ul { list-style: none; padding: .5rem var(--gutter) 1rem; }
.menu a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--tinta); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--linea);
}
.menu li:last-child a { border-bottom: 0; }
.menu a[aria-current="true"] { color: var(--sello); }
@media (min-width: 1120px) {
  .btn-menu { display: none; }
  .marca { margin-right: 1rem; }
  .menu { position: static; display: block; margin-right: auto; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .menu ul { display: flex; gap: .15rem; padding: 0; }
  .menu a { min-height: 44px; padding: 0 .65rem; border: 0; border-radius: 8px; font-size: var(--t-s); }
  .menu a:hover { background: var(--arena-2); color: var(--tinta); }
  .menu a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--sello); border-radius: 0; }
}

/* 4. Portada --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #10213f; color: #fff; }
.hero__fondo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(8 26 44 / .86), rgb(8 26 44 / .72) 60%, rgb(8 26 44 / .84));
}
.hero__contenido { padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(4.5rem, 3rem + 7vw, 8rem); max-width: var(--ancho); }
.hero__aviso {
  display: inline-block; margin-bottom: 1.1rem; padding: .28rem .8rem;
  border-radius: 999px; background: var(--sol); color: #10272e;
  font-size: var(--t-xs); font-weight: 700;
}
.hero h1 { max-width: 16ch; font-size: var(--t-xxl); color: #fff; }
.hero__sub { max-width: 54ch; margin: 1.2rem 0 1.8rem; font-size: var(--t-m); color: #f4ecdf; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__nota {
  position: absolute; right: var(--gutter); bottom: .8rem; margin: 0;
  font-size: var(--t-xs); color: #f4ecdf;
}
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, rgb(8 26 44 / .9) 0%, rgb(8 26 44 / .72) 42%, rgb(8 26 44 / 0) 66%); }
  .hero__fondo img { object-position: 50% 50%; }
  .hero__sub { max-width: 46ch; }
}

/* 5. Componentes ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.35rem; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primario { background: var(--coral); color: #fff; }
.btn--primario:hover { background: var(--coral-hover); color: #fff; }
.btn--claro { border-color: #fff; color: #fff; background: transparent; }
.btn--claro:hover { background: #fff; color: #10272e; }
.btn--borde { border-color: var(--mar-2); color: var(--mar); background: transparent; }
.btn--borde:hover { background: var(--mar-2); color: var(--papel); }
.btn--mini { min-height: 44px; padding: .35rem 1rem; font-size: var(--t-s); }

.seccion { padding-block: var(--seccion); }
.seccion--alterna { background: var(--arena-2); }
.seccion__cabeza { position: relative; max-width: 780px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.seccion__cabeza p { margin-top: .9rem; color: var(--tinta-suave); }
.sub { margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); }
.sub > h3 { margin-bottom: .55rem; font-size: clamp(1.45rem, 1.25rem + .9vw, 2rem); }
.sub > .intro { max-width: 70ch; margin-bottom: 1.6rem; color: var(--tinta-suave); }

/* Sello de pasaporte: el número o etapa de cada sección */
.sello {
  display: inline-grid; place-items: center; margin-bottom: 1rem; padding: .28rem .85rem;
  border: 2px dashed var(--sello); border-radius: 8px; transform: rotate(-2.5deg);
  color: var(--sello); font: 700 var(--t-xs)/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}

/* Boleto: tarjeta con perforación para prompts */
.boleto {
  display: grid; background: var(--papel); border-radius: var(--radio);
  box-shadow: var(--sombra); overflow: hidden;
}
.boleto__talon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem 1.1rem; background: var(--mar); color: var(--arena);
  border-bottom: 2px dashed var(--arena);
}
.boleto__talon h4 { color: inherit; font: 700 var(--t-s)/1.3 var(--sans); }
.boleto__cuerpo { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.boleto__texto { flex: 1; margin: 0; font: 400 var(--t-s)/1.6 var(--mono); white-space: pre-wrap; }
.boleto__cuerpo .btn { align-self: flex-start; }
.btn-copiar.copiado { background: var(--palma); border-color: var(--palma); color: var(--papel); }

.nota {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--sol);
  background: var(--papel); border-radius: 0 10px 10px 0; font-size: var(--t-s);
}

/* 6. Secciones ------------------------------------------------------------- */
/* Ruta de 5 pasos: línea punteada de viaje */
.ruta { list-style: none; display: grid; gap: 1.5rem; counter-reset: paso; }
.ruta li { position: relative; padding-left: 4rem; counter-increment: paso; }
.ruta li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--coral); color: #fff; font: 700 1.25rem var(--serif);
}
.ruta li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.38rem; top: 3.2rem; bottom: -1.3rem;
  border-left: 3px dotted var(--sello);
}
.ruta h3 { margin-bottom: .35rem; font-size: 1.25rem; }
.ruta p { font-size: var(--t-s); color: var(--tinta-suave); }
@media (min-width: 900px) {
  .ruta { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
  .ruta li { padding: 4rem 0 0; }
  .ruta li:not(:last-child)::after {
    left: 3.3rem; right: -1rem; top: 1.38rem; bottom: auto;
    border-left: 0; border-top: 3px dotted var(--sello);
  }
}

/* Filtros y pestañas comparten aspecto */
.filtros, .pestanas { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pestanas { flex-wrap: nowrap; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.chip {
  flex: none; min-height: 44px; padding: .3rem 1rem; border: 1px solid var(--linea); border-radius: 999px;
  background: var(--papel); color: var(--tinta); font-size: var(--t-s); font-weight: 600;
}
.chip:hover { border-color: var(--mar-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--mar); border-color: var(--mar); color: var(--arena); }

/* Galería */
.galeria { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.galeria li[hidden] { display: none; }
.galeria figure { margin: 0; height: 100%; background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.galeria__abrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galeria img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s ease; }
.galeria__abrir:hover img { transform: scale(1.025); }
.galeria figcaption { padding: .7rem .9rem .85rem; font-size: var(--t-s); }
.galeria figcaption strong { display: block; font-family: var(--serif); font-size: 1.08rem; }
.etiqueta-ia { display: block; margin-top: .15rem; color: var(--tinta-suave); font-size: var(--t-xs); }

.lightbox {
  width: min(100% - 1.5rem, 1040px); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0;
  border-radius: var(--radio); background: var(--papel); color: var(--tinta);
}
.lightbox::backdrop { background: rgb(5 20 26 / .85); }
.lightbox img { width: 100%; height: auto; max-height: calc(100dvh - 9rem); object-fit: contain; background: #0b1f25; }
.lightbox__pie { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
.lightbox__texto { margin: 0; font-size: var(--t-s); flex: 1 1 260px; }
.lightbox__botones { display: flex; gap: .5rem; }

/* Prompts por país */
.panel-prompts { display: grid; gap: 1.1rem; }
.panel-prompts[hidden] { display: none; }
@media (min-width: 760px) { .panel-prompts { grid-template-columns: repeat(2, 1fr); } }

/* Características de un buen prompt */
.rasgos { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rasgos li { padding: 1.1rem; background: var(--papel); border-radius: var(--radio); border-top: 4px solid var(--mar-2); box-shadow: var(--sombra); }
.rasgos strong { display: block; margin-bottom: .25rem; font: 700 1.12rem var(--serif); }
.rasgos p { font-size: var(--t-s); color: var(--tinta-suave); }
.rasgos em { display: block; margin-top: .5rem; color: var(--tinta); font-size: var(--t-xs); font-style: normal; font-family: var(--mono); }

.comparar { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
@media (min-width: 860px) { .comparar { grid-template-columns: 2fr 3fr; } }
.comparar article { padding: 1.2rem; border-radius: var(--radio); }
.comparar h4 { margin-bottom: .6rem; font: 700 1.1rem var(--serif); }
.comparar__malo { background: var(--malo-fondo); }
.comparar__bueno { background: var(--ok-fondo); }
.comparar pre { margin: 0 0 .8rem; font: 400 var(--t-s)/1.6 var(--mono); white-space: pre-wrap; }
.comparar p { font-size: var(--t-s); }

/* Qué no hacer */
.evitar { list-style: none; display: grid; gap: .9rem; }
@media (min-width: 760px) { .evitar { grid-template-columns: repeat(2, 1fr); } }
.evitar li { position: relative; padding: 1rem 1.1rem 1rem 3.4rem; background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); }
.evitar li::before {
  content: "\2715"; position: absolute; left: 1rem; top: 1rem;
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--malo-fondo); color: var(--error); font-weight: 700; font-size: .85rem;
}
.evitar strong { display: block; }
.evitar p { font-size: var(--t-s); color: var(--tinta-suave); }

/* Tarjetas de herramientas */
.herramientas { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.herramienta { display: flex; flex-direction: column; gap: .8rem; height: 100%; padding: 1.3rem; background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); }
.herramienta__cabeza { display: flex; align-items: center; gap: .85rem; }
.logo-marca {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 8px;
  border: 1px solid var(--linea); border-radius: 12px; background: #fff; color: #12313a;
  font: 700 .95rem var(--sans);
}
.logo-marca img { width: 100%; height: 100%; object-fit: contain; }
.herramienta__nivel { display: block; font-size: var(--t-xs); color: var(--tinta-suave); }
.herramienta dl { margin: 0; flex: 1; font-size: var(--t-s); }
.herramienta dt { margin-top: .6rem; font-weight: 700; }
.herramienta dd { margin: 0; color: var(--tinta-suave); }
.herramienta .btn { align-self: flex-start; }

/* Tarjetas de video */
.videos { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.video { display: flex; flex-direction: column; height: 100%; background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.video__mini { position: relative; display: block; }
.video__mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--arena-2); }
.video__mini::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 38px;
  transform: translate(-50%, -50%); border-radius: 10px; background: rgb(10 20 25 / .75);
  clip-path: none;
}
.video__mini::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -8px 0 0 -6px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff;
}
.video__texto { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: .9rem 1rem 1rem; font-size: var(--t-s); }
.video__titulo { display: block; min-height: 44px; font-weight: 700; color: var(--tinta); text-decoration: none; line-height: 1.35; }
.video__titulo:hover { text-decoration: underline; }
.video__meta { color: var(--tinta-suave); font-size: var(--t-xs); }
.video__meta a { display: inline-block; padding-block: .75rem; }
.grupo-videos + .grupo-videos { margin-top: 2.4rem; }
.grupo-videos h3 { margin-bottom: 1rem; }

/* Mini guía: idea → publicar */
.pasos-mini { list-style: none; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); counter-reset: mini; }
.pasos-mini li { counter-increment: mini; padding: .85rem 1rem; background: var(--papel); border-radius: 12px; font-size: var(--t-s); box-shadow: var(--sombra); }
.pasos-mini strong { display: block; font: 700 1.08rem var(--serif); color: var(--tinta); }
.pasos-mini strong::before { content: counter(mini) ". "; color: var(--sello); }
.pasos-mini span { color: var(--tinta-suave); }

/* Ética */
.etica { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.etica article { padding: 1.25rem; border-radius: var(--radio); background: var(--mar); color: var(--arena); }
.etica h3 { color: inherit; margin-bottom: .5rem; font-size: 1.2rem; }
.etica p { font-size: var(--t-s); }

/* Glosario */
.glosario { display: grid; gap: 0 2.2rem; margin: 0; }
@media (min-width: 760px) { .glosario { grid-template-columns: repeat(2, 1fr); } }
.glosario div { padding-block: .95rem; border-bottom: 1px solid var(--linea); }
.glosario dt { font: 700 1.16rem var(--serif); }
.glosario dd { margin: .2rem 0 0; color: var(--tinta-suave); font-size: var(--t-s); }

/* Recursos */
.recurso { display: grid; gap: 1.2rem; align-items: center; padding: clamp(1.3rem, 1rem + 2vw, 2.4rem); background: var(--mar); color: var(--arena); border-radius: var(--radio); }
.recurso h3 { color: inherit; margin-bottom: .5rem; }
.recurso a:not(.btn) { color: inherit; }
.recurso__acciones { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.recurso .btn--primario { background: var(--sol); color: #10272e; }
.recurso .btn--primario:hover { background: #ffd67e; color: #10272e; }
@media (min-width: 860px) { .recurso { grid-template-columns: 3fr 2fr; } .recurso__acciones { justify-content: flex-end; } }

/* 7. Consultas ------------------------------------------------------------- */
.consultas { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
  .consultas { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .consultas__form { position: sticky; top: calc(var(--alto-header) + 1rem); }
}
.consultas h3 { margin-bottom: .7rem; }
.tarjeta-form { padding: clamp(1.2rem, 1rem + 1vw, 1.9rem); background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); }
.campo { margin-bottom: 1rem; }
.campo label, .campo__leyenda { display: block; margin-bottom: .3rem; font-size: var(--t-s); font-weight: 700; }
.campo small { font-weight: 400; color: var(--tinta-suave); }
.campo input[type="text"], .campo input[type="email"], .campo input[type="search"], .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid var(--tinta-suave); border-radius: 9px; background: var(--arena); font-size: 1rem;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo [aria-invalid="true"] { border: 2px solid var(--error); }
.campo__error { display: block; margin-top: .25rem; color: var(--error); font-size: var(--t-xs); font-weight: 600; }
.campo__error:empty { display: none; }
.campo--check { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; }
.campo--check input { width: 24px; height: 24px; margin: .55rem .55rem .55rem .55rem; accent-color: var(--coral); }
.campo--check label { margin: .55rem 0 0; font-weight: 400; }
.campo--check .campo__error { grid-column: 2; }
.trampa { position: absolute; left: -9999px; }
.estado-form { margin-top: 1rem; padding: 0; font-size: var(--t-s); font-weight: 600; }
.estado-form:empty { display: none; }
.estado-form.ok { padding: .75rem 1rem; border-radius: 9px; background: var(--ok-fondo); }
.estado-form.mal { padding: .75rem 1rem; border-radius: 9px; background: var(--malo-fondo); }
.correo-directo { margin-top: 1rem; font-size: var(--t-s); color: var(--tinta-suave); }
.tarjeta-form .btn { width: 100%; }
.tarjeta-form .btn[disabled] { opacity: .65; cursor: progress; }

.faq-recuento { min-height: 1.5em; margin-bottom: .6rem; color: var(--tinta-suave); font-size: var(--t-xs); }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--papel); border-radius: 11px; box-shadow: 0 1px 2px rgb(18 49 58 / .1); }
.faq details[hidden] { display: none; }
.faq summary { display: flex; align-items: center; min-height: 48px; padding: .6rem 1rem; cursor: pointer; font-weight: 700; font-size: var(--t-s); }
.faq details > div { padding: 0 1rem .9rem; color: var(--tinta-suave); font-size: var(--t-s); }

/* 8. Pie y páginas legales ---------------------------------------------------- */
.pie { padding-block: 3rem 2rem; background: #0a2c33; color: #e8e2d4; font-size: var(--t-s); }
.pie a { color: #ffdf9e; display: inline-block; padding-block: .4rem; }
.pie a:hover { color: #fff; }
.pie__rejilla { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pie__rejilla { grid-template-columns: 2fr 1fr 1fr; } }
.pie h2 { margin-bottom: .6rem; color: #fff; font-size: 1.1rem; }
.pie ul { list-style: none; }
.pie__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .2); font-size: var(--t-xs); }

.legal { max-width: 760px; padding-block: 3rem var(--seccion); }
.legal h1 { margin-bottom: .5rem; font-size: var(--t-xl); }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: var(--t-l); }
.legal ul { padding-left: 1.3rem; margin-bottom: 1em; }
.migas { margin-bottom: 1.5rem; font-size: var(--t-s); }
.migas a { display: inline-block; padding-block: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .cabecera, .hero__fondo, .tarjeta-form, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
