/* =========================================================================
   Lago Travel — hoja de estilos
   Construida sobre el Manual de Identidad de Marca v4.0 (2026)
   Paleta, tipografia, franjas y reglas de contraste tomadas del manual.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colores de marca */
  --verde-ribera:  #BCC146;   /* identifica, senala, acentua. NUNCA texto sobre claro */
  --azul-pizarra:  #2E3C4E;   /* texto, fondos serios, respaldo */
  --marfil:        #F7F9EC;   /* fondo institucional */
  --verde-palido:  #EAECC7;   /* bloques y tablas */
  --verde-medio:   #D7D990;   /* franjas y graficos */
  --verde-olivo:   #6C7327;   /* texto y enlaces en verde (5.1:1 sobre blanco) */

  /* Derivados de uso */
  --tinta:         #2E3C4E;
  --tinta-suave:   #55657a;
  --linea:         #dfe3d2;
  --blanco:        #ffffff;
  --azul-profundo: #24303E;

  /* Tipografia */
  --fuente-marca:  'Poppins', 'Montserrat', system-ui, sans-serif;
  --fuente-lectura:'Source Sans 3', Arial, system-ui, sans-serif;

  /* Ritmo */
  --ancho: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radio: 14px;
  --radio-sm: 10px;
  --sombra: 0 18px 44px -24px rgba(46, 60, 78, .45);
  --sombra-fuerte: 0 28px 60px -28px rgba(46, 60, 78, .6);
  --transicion: 280ms cubic-bezier(.2, .7, .3, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--fuente-lectura);
  font-size: 1.0625rem;      /* 17px — minimo de marca en pantalla es 14px */
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, .marca {
  font-family: var(--fuente-marca);
  font-weight: 600;
  color: var(--tinta);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 68ch; }   /* el manual fija 68 caracteres por linea */

a { color: var(--verde-olivo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azul-pizarra); }

::selection { background: var(--verde-medio); color: var(--azul-pizarra); }

:focus-visible {
  outline: 3px solid var(--verde-olivo);
  outline-offset: 3px;
  border-radius: 4px;
}

.salto-contenido {
  position: absolute; left: -9999px; top: 0;
  background: var(--azul-pizarra); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radio-sm) 0;
}
.salto-contenido:focus { left: 0; }

/* ---------- 3. Utilidades de layout ---------- */
.contenedor {
  width: min(100% - (var(--gutter) * 2), var(--ancho));
  margin-inline: auto;
}
.contenedor-ancho {
  width: min(100% - (var(--gutter) * 2), 1400px);
  margin-inline: auto;
}

.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.seccion--marfil  { background: var(--marfil); }
.seccion--blanca  { background: var(--blanco); }
.seccion--palida  { background: var(--verde-palido); }
.seccion--azul    { background: var(--azul-pizarra); color: #e9edf2; }
.seccion--azul h2, .seccion--azul h3, .seccion--azul h4 { color: #fff; }
/* Los botones conservan su propio color: sobre un bloque verde el texto
   siempre va en Azul Pizarra (regla dura del manual, 5.8:1). */
.seccion--azul a:not(.boton) { color: var(--verde-medio); }
.seccion--azul a:not(.boton):hover { color: #fff; }

.encabezado-seccion { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.encabezado-seccion.centrado { margin-inline: auto; text-align: center; }
.encabezado-seccion.centrado p { margin-inline: auto; }

/* Rotulo corto: el manual permite mayusculas continuas solo en rotulos de 1 a 3 palabras */
.rotulo {
  font-family: var(--fuente-marca);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verde-olivo);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .9rem;
}
.rotulo::before {
  content: ""; width: 26px; height: 2px; background: var(--verde-ribera); flex: none;
}
.seccion--azul .rotulo { color: var(--verde-medio); }
.seccion--azul .rotulo::before { background: var(--verde-ribera); }

.entradilla { font-size: 1.15rem; color: var(--tinta-suave); }
.seccion--azul .entradilla { color: #c7d0da; }

/* ---------- 4. Franjas diagonales de marca ---------- */
/* Regla del manual: esquina superior derecha e inferior derecha, nunca al centro,
   nunca cruzando texto, maximo 42 % del ancho de la pieza. */
.franjas {
  position: absolute;
  width: min(38%, 420px);
  height: clamp(110px, 16vw, 180px);
  background: url('../img/franjas.svg') right top / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}
.franjas--sup { top: 0; right: 0; }
.franjas--inf { bottom: 0; right: 0; transform: scale(-1, -1); }
.franjas--tenue { opacity: .5; }
.seccion > .contenedor, .seccion > .contenedor-ancho { position: relative; z-index: 1; }

/* Marca de agua del isotipo: 8–12 % de opacidad, una sola por pagina */
.marca-agua {
  position: absolute;
  inset: 0;
  background: url('../img/isotipo.png') no-repeat;
  background-position: right -60px center;
  background-size: clamp(230px, 34vw, 420px) auto;
  opacity: .1;
  pointer-events: none;
  z-index: 0;
}

/* ---------- 5. Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--fuente-marca); font-weight: 500; font-size: .97rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transicion), box-shadow var(--transicion),
              background-color var(--transicion), color var(--transicion),
              border-color var(--transicion);
  line-height: 1.2;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

/* Sobre un bloque verde el texto siempre va en Azul Pizarra (regla dura del manual) */
.boton--verde {
  background: var(--verde-ribera);
  color: var(--azul-pizarra);
  box-shadow: 0 12px 26px -14px rgba(108, 115, 39, .9);
}
.boton--verde:hover { background: var(--verde-medio); color: var(--azul-pizarra); box-shadow: var(--sombra); }

.boton--azul { background: var(--azul-pizarra); color: #fff; }
.boton--azul:hover { background: var(--azul-profundo); color: #fff; }

.boton--linea { border-color: var(--azul-pizarra); color: var(--azul-pizarra); background: transparent; }
.boton--linea:hover { background: var(--azul-pizarra); color: #fff; }

.boton--claro { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.boton--claro:hover { background: #fff; color: var(--azul-pizarra); border-color: #fff; }

.boton--ancho { width: 100%; }
.boton svg { width: 1.15em; height: 1.15em; flex: none; }

.acciones { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 6. Cabecera ---------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 249, 236, .97);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
}
.cabecera.esta-fija {
  background: rgba(247, 249, 236, .96);
  border-bottom-color: var(--linea);
  box-shadow: 0 10px 30px -26px rgba(46,60,78,.8);
}
.cabecera__fila {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.cabecera__logo { display: flex; align-items: center; flex: none; }
.cabecera__logo img { width: 178px; transition: width var(--transicion); }
.cabecera.esta-fija .cabecera__logo img { width: 156px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  font-family: var(--fuente-marca); font-weight: 500; font-size: .95rem;
  color: var(--azul-pizarra); text-decoration: none; position: relative; padding: .35rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--verde-ribera); transition: right var(--transicion);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--verde-olivo); }

.cabecera__cta { display: flex; align-items: center; gap: .75rem; flex: none; }

/* El CTA dentro del menu solo existe en movil; en escritorio manda el de la cabecera */
@media (min-width: 961px) { .nav .boton { display: none; } }

.menu-boton {
  display: none; width: 46px; height: 46px; border: 1px solid var(--linea);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex: none;
}
.menu-boton span { display: block; width: 20px; height: 2px; background: var(--azul-pizarra); position: relative; transition: var(--transicion); }
.menu-boton span::before, .menu-boton span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--azul-pizarra); transition: var(--transicion);
}
.menu-boton span::before { top: -6px; }
.menu-boton span::after { top: 6px; }
.menu-boton[aria-expanded="true"] span { background: transparent; }
.menu-boton[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-boton[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Portada ---------- */
.portada {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--azul-pizarra);
}
.portada__fondo { position: absolute; inset: 0; z-index: 0; }
.portada__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1400ms ease;
  background-size: cover; background-position: center;
}
.portada__slide.activa { opacity: 1; }
.portada__slide.activa img { animation: deriva 11s ease-out forwards; }
.portada__slide picture { display: block; width: 100%; height: 100%; }
.portada__slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes deriva {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}
/* Texto sobre imagen: siempre sobre degradado oscuro (regla del manual) */
.portada__velo {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(36, 48, 62, .94) 0%, rgba(36, 48, 62, .72) 34%, rgba(36, 48, 62, .16) 68%, rgba(36, 48, 62, .35) 100%),
    linear-gradient(to right, rgba(36, 48, 62, .7) 0%, rgba(36, 48, 62, 0) 62%);
}
.portada__contenido { position: relative; z-index: 2; color: #fff; }
.portada h1 { color: #fff; max-width: 17ch; margin-bottom: .6rem; }
.portada__entrada { color: #dfe6ec; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 56ch; margin-bottom: 1.8rem; }
.portada .rotulo { color: var(--verde-medio); }

.portada__pie {
  position: relative; z-index: 2;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.22);
}
.portada__dato {
  display: inline-flex; align-items: center; gap: .55rem;
  color: #e5ebf1; font-size: .93rem;
}
.portada__dato svg { width: 1.1rem; height: 1.1rem; color: var(--verde-ribera); flex: none; }

.portada__puntos {
  position: absolute; bottom: clamp(1.2rem, 3vw, 2rem);
  left: 50%; transform: translateX(-50%);
  width: min(100% - (var(--gutter) * 2), 1400px);
  z-index: 3; display: flex; gap: .55rem; justify-content: flex-start;
}
.portada__punto {
  width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background var(--transicion);
}
.portada__punto[aria-selected="true"] { background: var(--verde-ribera); }

/* Portada corta para paginas interiores */
.portada-interior {
  position: relative; overflow: hidden;
  background: var(--azul-pizarra); color: #fff;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 6vw, 4rem);
}
.portada-interior img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portada-interior::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(36,48,62,.95) 12%, rgba(36,48,62,.62) 70%, rgba(36,48,62,.4) 100%);
}
.portada-interior .contenedor { position: relative; z-index: 2; }
.portada-interior h1 { color: #fff; margin-bottom: .35rem; }
.portada-interior p { color: #dbe3ea; font-size: 1.1rem; }
.portada-interior .rotulo { color: var(--verde-medio); }

/* Migas */
.migas { font-size: .87rem; color: #b9c4cf; margin-bottom: 1.2rem; }
.migas a { color: #dfe6ec; text-decoration: none; }
.migas a:hover { color: #fff; text-decoration: underline; }
.migas span { opacity: .55; margin: 0 .45rem; }

/* ---------- 8. Idea rectora ---------- */
.idea {
  position: relative; overflow: hidden;
  background: var(--azul-pizarra); color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.idea__texto { position: relative; z-index: 1; max-width: 46ch; }
.idea blockquote {
  margin: 0; max-width: 22ch; font-family: var(--fuente-marca); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.18; color: #fff; letter-spacing: -.01em;
}
.idea blockquote span { color: var(--verde-ribera); }
.idea__nota { color: #c1cbd5; max-width: 46ch; margin-top: 1.4rem; }

/* ---------- 9. Pilares ---------- */
.rejilla-pilares {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pilar {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--verde-medio); }
.pilar__icono {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--verde-palido);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.pilar__icono svg { width: 23px; height: 23px; color: var(--verde-olivo); }
.pilar h3 { margin-bottom: .4rem; }
.pilar p { font-size: .97rem; color: var(--tinta-suave); margin: 0; overflow-wrap: anywhere; }
.pilar p + p { margin-top: 1rem; }
.datos a, .pie a, .credencial p { overflow-wrap: anywhere; }

/* ---------- 10. Tarjetas de servicio ---------- */
.rejilla-servicios {
  display: grid; gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.servicio {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.servicio:hover { transform: translateY(-5px); box-shadow: var(--sombra-fuerte); border-color: var(--verde-medio); }
.servicio__foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--verde-palido); }
.servicio__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.3,1); }
.servicio:hover .servicio__foto img { transform: scale(1.06); }
.servicio__cuerpo { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.servicio h3 { margin-bottom: .45rem; }
.servicio p { font-size: .96rem; color: var(--tinta-suave); margin: 0 0 1.1rem; }
.servicio__enlace {
  margin-top: auto; font-family: var(--fuente-marca); font-weight: 500; font-size: .92rem;
  color: var(--verde-olivo); display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none; align-self: flex-start;
}
a.servicio__enlace:hover { color: var(--azul-pizarra); text-decoration: underline; }
.servicio__enlace svg { width: .95em; height: .95em; transition: transform var(--transicion); }
.servicio:hover .servicio__enlace svg { transform: translateX(4px); }

/* ---------- 10b. Bloques alternos (imagen + texto) ---------- */
.bloque {
  display: grid; gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--linea);
}
.bloque:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .bloque { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bloque--invertido .bloque__foto { order: 2; }
}
.bloque__foto { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); background: var(--verde-palido); }
.bloque__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bloque h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.bloque ul { list-style: none; margin: 1.25rem 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.bloque ul li { display: flex; gap: .7rem; align-items: flex-start; font-size: .99rem; }
.bloque ul li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: .52rem;
  border-radius: 2px; background: var(--verde-ribera); transform: rotate(45deg);
}

/* ---------- 11. Destinos (carrusel horizontal) ---------- */
.destinos__barra { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.destinos__flechas { display: flex; gap: .6rem; }
.flecha {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea);
  background: var(--blanco); color: var(--azul-pizarra); cursor: pointer;
  display: grid; place-items: center; transition: var(--transicion);
}
.flecha:hover { background: var(--azul-pizarra); color: #fff; border-color: var(--azul-pizarra); }
.flecha:disabled { opacity: .35; cursor: default; }
.flecha:disabled:hover { background: var(--blanco); color: var(--azul-pizarra); border-color: var(--linea); }
.flecha svg { width: 18px; height: 18px; }

.pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 1fr);
  gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.75rem .25rem .5rem; margin-inline: -.25rem;
  scrollbar-width: none;
}
.pista::-webkit-scrollbar { display: none; }

.destino {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radio); overflow: hidden;
  aspect-ratio: 3 / 4; display: block; text-decoration: none;
  box-shadow: var(--sombra);
  transition: transform var(--transicion);
}
.destino:hover { transform: translateY(-5px); }
.destino img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.2,.7,.3,1); }
.destino:hover img { transform: scale(1.07); }
.destino__velo {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,48,62,.92) 0%, rgba(36,48,62,.42) 38%, rgba(36,48,62,0) 68%);
}
.destino__texto { position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1.1rem; color: #fff; }
.destino__nombre { font-family: var(--fuente-marca); font-weight: 600; font-size: 1.22rem; display: block; }
.destino__nota { font-size: .87rem; color: #d3dbe3; }

/* ---------- 12. Galeria en mosaico ---------- */
.mosaico {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.mosaico figure { margin: 0; border-radius: var(--radio-sm); overflow: hidden; aspect-ratio: 1; background: var(--verde-palido); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.3,1); }
.mosaico figure:hover img { transform: scale(1.08); }
.mosaico figure:nth-child(1), .mosaico figure:nth-child(8) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }

/* ---------- 13. Banda de llamada ---------- */
.banda {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--azul-pizarra);
}
.banda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banda::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(36,48,62,.95) 20%, rgba(36,48,62,.7) 60%, rgba(36,48,62,.55) 100%);
}
.banda .contenedor { position: relative; z-index: 2; }
.banda h2 { color: #fff; max-width: 20ch; }
.banda p { color: #d5dde5; max-width: 52ch; }

/* ---------- 14. Credenciales ---------- */
.rejilla-credenciales {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.credencial {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.75rem 1.6rem; display: flex; flex-direction: column;
  border-top: 4px solid var(--verde-ribera);
}
.seccion--azul .credencial { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.16); }
.credencial__sello {
  font-family: var(--fuente-marca); font-weight: 500; font-size: .74rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--verde-olivo); margin-bottom: .85rem;
}
.seccion--azul .credencial__sello { color: var(--verde-medio); }
.credencial h3 { margin-bottom: .5rem; }
.credencial p { font-size: .96rem; color: var(--tinta-suave); }
.seccion--azul .credencial p { color: #c3ccd6; }
.credencial__folio {
  font-family: var(--fuente-marca); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .04em; color: var(--azul-pizarra);
  background: var(--verde-palido); border-radius: var(--radio-sm);
  padding: .65rem .9rem; display: inline-block; margin-bottom: 1.1rem;
}
.seccion--azul .credencial__folio { background: var(--verde-ribera); color: var(--azul-pizarra); }
.credencial .boton { margin-top: auto; align-self: flex-start; }

/* ---------- 15. Contacto y formulario ---------- */
.contacto-rejilla {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .contacto-rejilla { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
}

.ficha {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: clamp(1.5rem, 3vw, 2.25rem);
}
.ficha--palida { background: var(--verde-palido); border-color: #dcdfb9; }

.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.datos li { display: flex; gap: .95rem; align-items: flex-start; }
.datos svg { width: 21px; height: 21px; color: var(--verde-olivo); flex: none; margin-top: .22rem; }
.datos strong { display: block; font-family: var(--fuente-marca); font-weight: 500; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); margin-bottom: .15rem; }
.datos a { color: var(--azul-pizarra); text-decoration: none; }
.datos a:hover { color: var(--verde-olivo); text-decoration: underline; }

.formulario { display: grid; gap: 1.1rem; }
.campo { display: grid; gap: .4rem; }
.campo label {
  font-family: var(--fuente-marca); font-weight: 500; font-size: .84rem;
  letter-spacing: .06em; color: var(--azul-pizarra);
}
.campo label .req { color: var(--verde-olivo); }
.campo input, .campo select, .campo textarea {
  font-family: var(--fuente-lectura); font-size: 1rem; color: var(--tinta);
  background: var(--blanco);
  border: 1px solid #ccd3c0; border-radius: var(--radio-sm);
  padding: .8rem .95rem; width: 100%;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}
.campo textarea { min-height: 128px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--verde-olivo);
  box-shadow: 0 0 0 3px rgba(108, 115, 39, .16);
}
.campo input::placeholder, .campo textarea::placeholder { color: #98a3ad; }
.campo-doble { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .campo-doble { grid-template-columns: 1fr 1fr; } }

.nota-legal { font-size: .86rem; color: var(--tinta-suave); margin: 0; }
.formulario__aviso {
  display: none; border-radius: var(--radio-sm); padding: .9rem 1.1rem;
  background: var(--verde-palido); color: var(--azul-pizarra); font-size: .95rem;
}
.formulario__aviso.visible { display: block; }
.miel { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.mapa {
  border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea);
  background: var(--verde-palido); box-shadow: var(--sombra);
}
.mapa iframe { width: 100%; height: clamp(300px, 42vw, 440px); border: 0; display: block; }

/* ---------- 16. Horarios ---------- */
.horarios { list-style: none; margin: 0; padding: 0; }
.horarios li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(46,60,78,.1); font-size: .97rem;
}
.horarios li:last-child { border-bottom: 0; }
.horarios span:first-child { color: var(--tinta-suave); }
.horarios span:last-child { font-family: var(--fuente-marca); font-weight: 500; }

/* ---------- 17. Preguntas frecuentes ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.1rem 1.3rem; transition: border-color var(--transicion);
}
.faq details[open] { border-color: var(--verde-medio); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--fuente-marca); font-weight: 500;
  font-size: 1.03rem; color: var(--azul-pizarra);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--verde-olivo); flex: none; transition: transform var(--transicion);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .85rem 0 0; font-size: .97rem; color: var(--tinta-suave); }

/* ---------- 18. Pie ---------- */
.pie {
  background: var(--azul-pizarra); color: #c3ccd6;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0; position: relative; overflow: hidden;
}
.pie__rejilla {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  position: relative; z-index: 1;
}
.pie__marca img { width: 200px; margin-bottom: 1.1rem; }
.pie__marca p { font-size: .95rem; color: #b6c0cb; max-width: 34ch; }
.pie h4 {
  color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 1rem;
}
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pie a { color: #c3ccd6; text-decoration: none; font-size: .96rem; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie__redes { display: flex; gap: .7rem; margin-top: 1.25rem; }
.pie__redes a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: #fff; transition: var(--transicion);
}
.pie__redes a:hover { background: var(--verde-ribera); color: var(--azul-pizarra); }
.pie__redes svg { width: 19px; height: 19px; }

.pie__cierre {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.5rem 0 1.75rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .87rem; position: relative; z-index: 1;
}
.eslogan {
  font-family: var(--fuente-marca); font-weight: 600; color: var(--verde-ribera);
  letter-spacing: .01em; font-size: 1.02rem;
}

/* ---------- 18b. Selector de idioma ---------- */
.idiomas {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--linea); border-radius: 999px;
  background: var(--blanco); padding: 3px; gap: 2px;
}
.idiomas a {
  font-family: var(--fuente-marca); font-weight: 500; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinta-suave); text-decoration: none;
  padding: .35rem .7rem; border-radius: 999px; line-height: 1;
  transition: background var(--transicion), color var(--transicion);
}
.idiomas a:hover { color: var(--azul-pizarra); background: var(--verde-palido); }
.idiomas a[aria-current="true"] { background: var(--azul-pizarra); color: #fff; }
.idiomas a[aria-current="true"]:hover { background: var(--azul-pizarra); color: #fff; }

/* ---------- 18c. Paginas legales ---------- */
.legal { max-width: 72ch; }
.legal h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: .75rem;
  padding-top: 1.75rem; border-top: 1px solid var(--linea);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.legal p { margin-bottom: 1.1rem; }
.legal ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: .7rem; }
.legal ul li { display: flex; gap: .75rem; align-items: flex-start; }
.legal ul li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .55rem;
  border-radius: 2px; background: var(--verde-ribera); transform: rotate(45deg);
}
.legal ol { margin: 0 0 1.25rem; padding-left: 1.3rem; display: grid; gap: .7rem; }
.legal strong { font-weight: 600; color: var(--azul-pizarra); }
.legal__meta {
  background: var(--verde-palido); border-radius: var(--radio-sm);
  padding: 1rem 1.25rem; font-size: .93rem; margin-bottom: 2rem;
}
.legal__meta p { margin: 0; }
.legal__meta p + p { margin-top: .4rem; }
.legal__aviso {
  border-left: 4px solid var(--verde-ribera);
  background: var(--blanco); border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  padding: 1.1rem 1.35rem; margin: 1.75rem 0; font-size: .96rem;
}
.legal__aviso p:last-child { margin-bottom: 0; }

/* Solo para lectores de pantalla */
.oculto-visual {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.legal-tabla { overflow-x: auto; margin: 0 0 1.5rem; }
.legal-tabla table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
.legal-tabla th, .legal-tabla td {
  text-align: left; vertical-align: top;
  padding: .75rem .9rem; border-bottom: 1px solid var(--linea);
}
.legal-tabla th {
  font-family: var(--fuente-marca); font-weight: 500; font-size: .78rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--azul-pizarra);
  background: var(--verde-palido);
}
.legal-tabla tr:last-child td { border-bottom: 0; }

.legal-indice {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 1.35rem 1.5rem;
  position: sticky; top: calc(var(--header-h) + 1.25rem);
}
.legal-indice h2 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 500; color: var(--tinta-suave); margin: 0 0 .9rem;
  border: 0; padding: 0;
}
.legal-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.legal-indice a { font-size: .93rem; color: var(--azul-pizarra); text-decoration: none; display: block; }
.legal-indice a:hover { color: var(--verde-olivo); text-decoration: underline; }

.legal-rejilla { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 1000px) {
  .legal-rejilla { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .legal-rejilla > .legal-indice { order: -1; }
}
@media (max-width: 999px) {
  .legal-indice { position: static; }
}

/* ---------- 19. Boton flotante de WhatsApp ---------- */
.flotante {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95; display: flex; align-items: center; gap: .7rem;
  background: #25D366; color: #0b2f1a;
  border-radius: 999px; padding: .85rem 1.3rem .85rem 1rem;
  font-family: var(--fuente-marca); font-weight: 500; font-size: .95rem;
  text-decoration: none; box-shadow: 0 16px 34px -14px rgba(11, 47, 26, .7);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.flotante:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 44px -16px rgba(11,47,26,.75); color: #0b2f1a; }
.flotante svg { width: 24px; height: 24px; flex: none; }
.flotante__texto { white-space: nowrap; }

/* ---------- 20. Animaciones de entrada ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity 760ms ease, transform 760ms cubic-bezier(.2,.7,.3,1); }
.revelar.visible { opacity: 1; transform: none; }
.revelar[data-retraso="1"] { transition-delay: 90ms; }
.revelar[data-retraso="2"] { transition-delay: 180ms; }
.revelar[data-retraso="3"] { transition-delay: 270ms; }
.revelar[data-retraso="4"] { transition-delay: 360ms; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 960px) {
  .menu-boton { display: flex; }
  .cabecera__cta .boton--verde { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--marfil); border-bottom: 1px solid var(--linea);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform var(--transicion);
    box-shadow: 0 24px 40px -30px rgba(46,60,78,.8);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.abierto { transform: none; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .boton { margin-top: 1.1rem; }
}

@media (max-width: 420px) {
  .cabecera__logo img, .cabecera.esta-fija .cabecera__logo img { width: 136px; }
  .cabecera__fila { gap: .6rem; }
  .cabecera__cta { gap: .45rem; }
  .idiomas a { padding: .35rem .5rem; font-size: .72rem; }
  .menu-boton { width: 42px; height: 42px; }
}

@media (max-width: 640px) {
  .flotante__texto { display: none; }
  .flotante { padding: .95rem; }
  .mosaico figure:nth-child(1), .mosaico figure:nth-child(8) { grid-column: span 2; grid-row: span 1; }
  .franjas { width: 58%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .revelar { opacity: 1; transform: none; }
  .portada__slide.activa img { animation: none; }
}

/* ---------- 22. Impresion ---------- */
@media print {
  .cabecera, .flotante, .portada__puntos, .franjas, .mapa { display: none !important; }
  body { background: #fff; color: #000; }
}
