/* ==========================================================
   Gaby Subia · Rumiñahui
   Colores y tipografías del Manual de identidad de marca (p. 21–25)
   ========================================================== */
:root {
  /* Paleta principal digital */
  --azul: #4666A9;          /* Azul movimiento GS */
  --celeste: #7BCAEF;       /* Celeste esperanza */
  --amarillo: #FFCE2D;      /* Amarillo energía */
  --blanco: #FFFFFF;
  /* Secundaria */
  --azul-fuerte: #3B4494;   /* Azul fortaleza */
  /* Neutros de interfaz */
  --tinta: #1D2747;
  --tinta-suave: #4E5873;
  --fondo-suave: #F3F6FC;
  --linea: #DDE4F2;
  --celeste-claro: #E6F4FC;

  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-mano: "Caveat", "Segoe Print", cursive;

  --radio: 20px;
  --radio-chico: 12px;
  --sombra: 0 10px 30px -12px rgba(29, 39, 71, .25);
  --ancho: 1160px;
  --alto-cabecera: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-fuerte); }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.seccion { padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amarillo); color: var(--tinta); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.saltar:focus { top: 12px; }

/* ---------- Tipografía de sección ---------- */
.antetitulo {
  font-family: var(--fuente-mano); font-size: 1.6rem; font-weight: 700;
  color: var(--azul); margin: 0 0 4px; line-height: 1;
}
.antetitulo--claro { color: var(--amarillo); }
.titulo-seccion {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -.02em;
  color: var(--azul-fuerte); margin-bottom: 16px; text-wrap: balance;
}
.titulo-seccion--claro { color: var(--blanco); }
.entradilla { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--tinta-suave); max-width: 60ch; }
.entradilla--clara { color: rgba(255, 255, 255, .88); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font: 800 1rem/1.2 var(--fuente); text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.boton svg { width: 22px; height: 22px; flex: none; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton--amarillo { background: var(--amarillo); color: var(--tinta); box-shadow: 0 8px 20px -8px rgba(255, 206, 45, .9); }
.boton--amarillo:hover { color: var(--tinta); background: #FFD84F; }
.boton--azul { background: var(--azul); color: var(--blanco); }
.boton--azul:hover { background: var(--azul-fuerte); color: var(--blanco); }
.boton--contorno { border-color: rgba(255, 255, 255, .7); color: var(--blanco); }
.boton--contorno:hover { background: rgba(255, 255, 255, .12); color: var(--blanco); }
.boton--wa { background: #1FAF54; color: var(--blanco); }
.boton--wa:hover { background: #179446; color: var(--blanco); }
.boton--chico { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.boton--ancho { width: 100%; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cabecera.con-sombra { border-color: var(--linea); box-shadow: 0 6px 20px -14px rgba(29, 39, 71, .5); }
.cabecera__fila { display: flex; align-items: center; gap: 24px; min-height: var(--alto-cabecera); }
.cabecera__logo img { width: 168px; height: auto; }
.cabecera__acciones { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav { margin-left: auto; }
.nav__lista { display: flex; gap: 4px; }
.nav__lista a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--tinta); text-decoration: none; white-space: nowrap;
}
.nav__lista a:hover { background: var(--celeste-claro); color: var(--azul-fuerte); }
.nav__lista a[aria-current="true"] { background: var(--azul); color: var(--blanco); }
.nav + .cabecera__acciones { margin-left: 0; }

.nav__boton {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--fondo-suave); cursor: pointer; padding: 12px 11px;
  flex-direction: column; justify-content: space-between;
}
.nav__boton span { display: block; height: 2.5px; border-radius: 2px; background: var(--azul-fuerte); transition: transform .2s ease, opacity .2s ease; }
.nav__boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #5274B8 0%, var(--azul) 45%, var(--azul-fuerte) 100%);
  color: var(--blanco);
  padding-top: clamp(40px, 6vw, 72px);
}
.hero::before { /* trama de marca: “GS” gigante y sutil, se desplaza con el cursor y el scroll */
  content: "GS"; position: absolute; z-index: -1; right: -4%; top: -14%;
  font: 900 clamp(260px, 42vw, 620px)/1 var(--fuente); letter-spacing: -.06em;
  color: rgba(255, 255, 255, .05); pointer-events: none;
  transform: translate3d(calc(var(--hx, 0) * -28px), calc(var(--hy, 0) * -20px + var(--hs, 0px)), 0);
}
.hero__luz { /* foco de luz suave que sigue al cursor */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--luz-x, 72%) var(--luz-y, 35%), rgba(255, 255, 255, .16), transparent 62%);
}
.hero > .contenedor, .seccion > .contenedor, .cifras > .contenedor { position: relative; z-index: 1; }
.hero__rejilla { display: grid; grid-template-columns: 1fr 1.05fr; align-items: end; gap: 24px; }
.hero__texto { padding-bottom: clamp(88px, 10vw, 128px); }
.etiqueta {
  display: inline-block; background: var(--celeste); color: var(--azul-fuerte);
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px; margin-bottom: 18px;
}
.hero__titulo {
  font-size: clamp(3.2rem, 9vw, 6.4rem); font-weight: 900; letter-spacing: -.035em; line-height: .92;
  text-transform: uppercase;
}
.hero__firma {
  font-family: var(--fuente-mano); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--amarillo); margin: 10px 0 18px; line-height: 1.1;
}
.hero__promesa { margin-top: 22px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; max-width: 34ch; color: rgba(255, 255, 255, .95); }
.hero__promesa strong { color: var(--amarillo); font-weight: 800; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero__credenciales { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero__credenciales li { display: flex; align-items: center; gap: 8px; }
.hero__credenciales li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); }

/* Gaby grande: su cabeza queda a la altura del texto de la izquierda; puede asomar un poco hacia el margen derecho */
.hero__foto { position: relative; align-self: end; justify-self: end; width: min(620px, calc(100% + 60px)); margin-right: -60px; }
@media (max-width: 1240px) {
  /* Sin margen lateral libre: la foto se queda dentro de su columna */
  .hero__foto { width: 100%; margin-right: 0; }
  .hero .flotante--trama { display: none; }
}
@media (max-width: 1440px) { .hero .flotante--trama { width: 60px; height: 60px; left: .5% !important; } }
.hero__foto img { position: relative; width: 100%; }
.hero__circulo {
  position: absolute; left: 6%; right: 6%; bottom: 12%; aspect-ratio: 1;
  border-radius: 50%; background: var(--celeste); box-shadow: 0 0 0 18px rgba(123, 202, 239, .25);
}

/* ---------- 2. Cifras ---------- */
.cifras { position: relative; z-index: 2; margin-top: -64px; }
.cifras__rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cifra {
  padding: 26px 24px; display: flex; flex-direction: column; gap: 4px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.cifra__numero {
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1;
  color: var(--azul); font-variant-numeric: tabular-nums; transition: color .35s ease;
}
.cifra__texto { font-size: 1rem; line-height: 1.35; transition: color .35s ease; }
.cifra__fuente { margin-top: auto; padding-top: 8px; font-size: .78rem; font-weight: 600; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .04em; transition: color .35s ease; }
/* Zoom sutil y cambio a azul de marca al pasar el cursor */
.cifra:hover {
  transform: scale(1.03); background: var(--azul); border-color: var(--azul);
  box-shadow: 0 18px 36px -16px rgba(59, 68, 148, .6);
}
.cifra:hover .cifra__numero { color: var(--amarillo); }
.cifra:hover .cifra__texto { color: var(--blanco); }
.cifra:hover .cifra__fuente { color: #DCE6F7; }

/* ---------- 3. Quién es ---------- */
.quien__rejilla { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.quien__foto { position: relative; margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.quien__foto img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; position: relative; }
.quien__aro { /* máscara de recorte del manual: anillo partido */
  position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(var(--azul-fuerte) 0 25%, transparent 25% 27%, var(--azul-fuerte) 27% 48%, transparent 48% 50%, var(--celeste) 50% 72%, transparent 72% 74%, var(--azul-fuerte) 74% 98%, transparent 98%);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%);
          mask: radial-gradient(circle, transparent 66%, #000 66.5%);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.chips li {
  background: var(--celeste-claro); color: var(--azul-fuerte);
  font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px;
}

.desplegable { border: 1px solid var(--linea); border-radius: var(--radio-chico); background: var(--fondo-suave); overflow: hidden; }
.desplegable summary {
  cursor: pointer; list-style: none; font-weight: 800; color: var(--azul-fuerte);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--radio-chico);
  transition: background-color .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1), padding .3s ease;
}
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable__icono {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--celeste-claro); transition: background-color .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
  animation: respirar 2.6s ease-in-out infinite;
}
.desplegable__icono::before, .desplegable__icono::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px;
  background: var(--azul); translate: -50% -50%; transition: background-color .3s ease;
}
.desplegable__icono::after { rotate: 90deg; }
@keyframes respirar { 0%, 100% { box-shadow: 0 0 0 0 rgba(70, 102, 169, .35); } 50% { box-shadow: 0 0 0 7px rgba(70, 102, 169, 0); } }
.desplegable summary:hover, .desplegable summary:focus-visible { background: var(--azul); color: var(--blanco); padding-left: 24px; }
.desplegable summary:hover .desplegable__icono, .desplegable summary:focus-visible .desplegable__icono { background: var(--amarillo); transform: rotate(90deg) scale(1.08); animation: none; }
.desplegable summary:hover .desplegable__icono::before, .desplegable summary:hover .desplegable__icono::after { background: var(--tinta); }
.desplegable[open] .desplegable__icono { transform: rotate(45deg); }
.desplegable[open] summary:hover .desplegable__icono { transform: rotate(135deg) scale(1.08); }
.desplegable__cuerpo { padding: 12px 18px 8px; max-width: 64ch; }

/* Título de “Quién es”: la pregunta destacada y la respuesta debajo */
.quien__titulo { display: block; }
.quien__titulo-destacado {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; color: var(--azul-fuerte);
  background: linear-gradient(transparent 68%, rgba(255, 206, 45, .7) 68% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 4px 0 0;
}
.quien__titulo-resto { display: block; margin-top: 10px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; color: var(--azul); line-height: 1.25; }

.cita { margin: 28px 0 0; padding: 0; }
.cita p {
  font-family: var(--fuente-mano); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--azul); line-height: 1.1; margin: 0;
  background: linear-gradient(transparent 62%, rgba(255, 206, 45, .55) 62% 88%, transparent 88%);
  display: inline;
}

/* Línea de tiempo */
.linea-tiempo {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(48px, 7vw, 80px); counter-reset: hito;
}
.linea-tiempo li {
  position: relative; padding: 30px 20px 0 0; display: flex; flex-direction: column; gap: 2px;
  border-top: 4px solid var(--linea); font-size: .95rem; color: var(--tinta-suave);
}
.linea-tiempo li::before {
  content: ""; position: absolute; top: -12px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blanco); border: 4px solid var(--azul);
}
.linea-tiempo li::after { /* tramo amarillo que se llena al aparecer cada hito */
  content: ""; position: absolute; top: -4px; left: 0; height: 4px; width: 100%; background: var(--amarillo);
}
.linea-tiempo strong { color: var(--tinta); font-size: 1.05rem; line-height: 1.3; }
.linea-tiempo__marca { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
/* HOY: tono propio para destacar la etapa actual */
.linea-tiempo li.es-actual {
  background: linear-gradient(160deg, #FFF6D2, #FFE98F); border-radius: 0 0 16px 16px;
  padding: 30px 18px 18px; color: #4A4630; box-shadow: 0 14px 30px -18px rgba(233, 163, 15, .8);
}
.linea-tiempo li.es-actual strong { color: var(--azul-fuerte); font-size: 1.15rem; }
.linea-tiempo li.es-actual::before { left: 18px; width: 24px; height: 24px; top: -14px; background: var(--amarillo); border-color: var(--azul-fuerte); animation: pulso-hoy 2.2s ease-out infinite; }
.linea-tiempo__marca--hoy { align-self: flex-start; background: var(--azul-fuerte); color: var(--amarillo); padding: 3px 10px; border-radius: 6px; margin-bottom: 4px; }
@keyframes pulso-hoy { 0% { box-shadow: 0 0 0 0 rgba(255, 206, 45, .9); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 206, 45, 0); } }

/* Video + territorio */
.medios { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 7vw, 80px); }
.video, .territorio { border-radius: var(--radio); overflow: hidden; margin: 0; position: relative; aspect-ratio: 16 / 9; background: var(--azul-fuerte); }
.video__portada { all: unset; cursor: pointer; display: block; position: absolute; inset: 0; }
.video__portada:focus-visible { outline: 3px solid var(--amarillo); outline-offset: -3px; }
.video__portada img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video__portada:hover img { transform: scale(1.03); }
.video__play {
  position: absolute; left: 20%; top: 45%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; background: var(--amarillo);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.video__play svg { width: 34px; height: 34px; fill: var(--tinta); stroke: none; margin-left: 4px; }
.video__rotulo, .territorio figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(29, 39, 71, .85); color: var(--blanco);
  font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 8px;
}
.territorio img { width: 100%; height: 100%; object-fit: cover; }
.territorio figcaption { background: var(--amarillo); color: var(--tinta); font-family: var(--fuente-mano); font-size: 1.4rem; padding: 2px 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 4. Plan ---------- */
.plan { background: var(--fondo-suave); }
.plan__cabecera { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: end; margin-bottom: 32px; }
.dato-alerta {
  position: relative;
  background: var(--blanco); border-left: 6px solid var(--amarillo); border-radius: var(--radio-chico);
  padding: 20px 22px; box-shadow: var(--sombra);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.dato-alerta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 40px -18px rgba(59, 68, 148, .55); }
.dato-alerta__numero {
  display: block; font-size: clamp(2.8rem, 5vw, 3.6rem); font-weight: 900; color: var(--azul-fuerte);
  line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
/* Pista: la barra a la altura de las manos de la Inge 3D, que la jala hacia la derecha */
.dato-alerta__pista { position: relative; display: block; height: 92px; margin: 2px 0 10px; }
.dato-alerta__barra { position: absolute; left: 0; right: 0; top: 43px; display: block; height: 10px; border-radius: 99px; background: var(--celeste-claro); overflow: hidden; }
.dato-alerta__barra span { display: block; height: 100%; width: 55%; border-radius: inherit; background: linear-gradient(90deg, var(--amarillo), #FFB020); }
.inge3d { position: absolute; top: 0; left: calc(55% - 9px); height: 92px; width: auto; aspect-ratio: 96 / 112; overflow: visible; }
.inge3d-cuerpo { transform-box: view-box; transform-origin: 56px 107px; transform: rotate(10deg); }
.inge3d-pierna--adelante { transform-box: view-box; transform-origin: 46px 80px; }
.inge3d-pierna--atras { transform-box: view-box; transform-origin: 59px 80px; }
.dato-alerta p { margin: 0; font-size: .95rem; color: var(--tinta-suave); }
.dato-alerta p.dato-alerta__fuente { margin-top: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #5E6782; }

/* Lo que necesita Rumiñahui: filtros por tema */
.temas {
  background: var(--azul); color: var(--blanco); border-radius: var(--radio);
  padding: 22px 24px; display: grid; gap: 14px; margin-bottom: 28px;
}
.temas__titulo { font-family: var(--fuente-mano); font-size: clamp(1.9rem, 3vw, 2.3rem); font-weight: 700; line-height: 1; color: var(--amarillo); }
.temas__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.temas__botones button {
  border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: var(--blanco);
  font: 700 .92rem var(--fuente); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.temas__botones button:hover, .temas__botones button[aria-pressed="true"] { background: var(--amarillo); border-color: var(--amarillo); color: var(--tinta); }
.temas__resultado { margin: 0; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .92); }

/* “Vivir sin miedo” va como franja ancha arriba y los otros nueve temas en cuadrícula pareja (3 × 3) */
.ejes { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .ejes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .ejes { grid-template-columns: repeat(3, 1fr); } }
.eje {
  background: var(--blanco); border-radius: var(--radio); padding: 22px 20px;
  border: 1px solid var(--linea); border-top: 5px solid var(--eje);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eje:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.eje[hidden] { display: none; }
.eje__icono {
  width: 52px; height: 52px; border-radius: 50%; background: var(--eje); color: var(--blanco);
  display: grid; place-items: center; margin-bottom: 8px;
}
.eje__icono svg { width: 28px; height: 28px; }
.eje__numero { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.eje h3 { font-size: 1.1rem; font-weight: 800; color: var(--azul-fuerte); }
.eje p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--tinta-suave); }

.plan__pie { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.plan__nota { margin: 0; color: var(--tinta-suave); }

/* ---------- 5. Equipo ---------- */
.equipo { background: var(--azul-fuerte); color: var(--blanco); position: relative; overflow: hidden; }
.equipo__cabecera { margin-bottom: 36px; }
.equipo__fotos { display: grid; gap: 20px; }
.equipo__fotos { gap: 28px; }
.equipo__fotos figure { margin: 0; position: relative; display: flex; flex-direction: column; }
/* El título va sobre la foto, por fuera, para no tapar a nadie */
.equipo__fotos figcaption {
  order: -1; align-self: flex-start; margin-bottom: 10px;
  background: var(--amarillo); color: var(--tinta); font-weight: 800; font-size: .85rem;
  padding: 6px 12px; border-radius: 8px;
}
.equipo__fotos img { width: 100%; height: auto; border-radius: var(--radio); background: var(--celeste); }

/* ---------- 6. Súmate ---------- */
.sumate__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.formulario { display: grid; gap: 18px; margin-top: 8px; }
.campo { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.campo--doble { grid-template-columns: 1fr 1fr; gap: 16px; }
.campo--doble > div { display: grid; gap: 6px; }
.campo label, .campo legend { font-weight: 700; font-size: .95rem; padding: 0; }
.campo legend { margin-bottom: 8px; }
.opcional { font-weight: 500; color: var(--tinta-suave); }
.campo input[type="text"], .campo select {
  width: 100%; min-height: 50px; border-radius: var(--radio-chico);
  border: 1.5px solid #C9D2E6; background: var(--blanco);
  padding: 0 14px; font: 500 1rem var(--fuente); color: var(--tinta);
}
.campo input:focus, .campo select:focus { border-color: var(--azul); outline: 3px solid rgba(70, 102, 169, .2); outline-offset: 0; }
.campo [aria-invalid="true"] { border-color: #C2263B; }
.campo__error { margin: 0; color: #B01F33; font-size: .88rem; font-weight: 600; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid #C9D2E6; border-radius: var(--radio-chico); padding: 12px 14px;
  font-weight: 600 !important; font-size: .93rem; line-height: 1.3;
}
.opcion input { width: 20px; height: 20px; accent-color: var(--azul); flex: none; }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--celeste-claro); }
.formulario__nota { margin: 0; font-size: .85rem; color: var(--tinta-suave); }

/* Cierre: foto de Gaby con su nombre al lado */
.firma-cierre {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: 12px;
  background: linear-gradient(160deg, #5274B8, var(--azul) 50%, var(--azul-fuerte));
  border-radius: var(--radio); overflow: hidden; padding: 36px 0 0 12px;
  /* Inclinación 3D con el cursor (--cx, --cy de -1 a 1) */
  transform: perspective(900px) rotateX(calc(var(--cy, 0) * -5deg)) rotateY(calc(var(--cx, 0) * 6deg));
  transition: transform .25s ease-out; will-change: transform;
}
/* Capas que se mueven a distinta profundidad con el cursor (--cx, --cy) y el scroll (--cs) */
.firma-cierre__aro {
  position: absolute; width: 300px; height: 300px; left: -70px; top: -60px; border-radius: 50%;
  border: 14px solid var(--amarillo); border-right-color: transparent; opacity: .95;
  transform: translate3d(calc(var(--cx, 0) * -22px), calc(var(--cy, 0) * -18px + var(--cs, 0) * 26px), 0) rotate(calc(var(--cs, 0) * 70deg - 20deg));
}
.firma-cierre__trama {
  position: absolute; right: 18px; bottom: 18px; width: 90px; height: 90px; opacity: .35;
  background: radial-gradient(circle, #fff 2.4px, transparent 3px) 0 0 / 18px 18px;
  transform: translate3d(calc(var(--cx, 0) * -14px), calc(var(--cy, 0) * -12px + var(--cs, 0) * -18px), 0);
}
.firma-cierre__punto {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--amarillo); right: 30%; top: 28px;
  box-shadow: 0 0 0 6px rgba(255, 206, 45, .25);
  transform: translate3d(calc(var(--cx, 0) * 30px), calc(var(--cy, 0) * 24px + var(--cs, 0) * -30px), 0);
}
.firma-cierre__foto {
  position: relative; width: 100%; max-width: 320px; justify-self: center; align-self: end; grid-column: 1; grid-row: 1;
  transform: translate3d(calc(var(--cx, 0) * 12px), calc(var(--cy, 0) * 6px + var(--cs, 0) * -10px), 0);
}
.firma-cierre__texto {
  position: relative; grid-column: 2; grid-row: 1; align-self: center; padding: 0 28px 28px 0; color: var(--blanco);
  transform: translate3d(calc(var(--cx, 0) * -8px), calc(var(--cy, 0) * -6px + var(--cs, 0) * 8px), 0);
}

/* ---------- Elementos flotantes de marca ---------- */
.flotante { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.flotante i { display: block; width: 100%; height: 100%; animation: flotar 7s ease-in-out infinite alternate; }
.flotante:nth-of-type(2n) i { animation-duration: 9s; animation-delay: -3s; }
.flotante:nth-of-type(3n) i { animation-duration: 11s; animation-delay: -5s; }
@keyframes flotar { from { transform: translateY(-10px) rotate(-6deg); } to { transform: translateY(10px) rotate(6deg); } }
.flotante--punto { width: 18px; height: 18px; }
.flotante--punto i { border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 6px rgba(255, 206, 45, .22); }
.flotante--chico { width: 10px; height: 10px; }
.flotante--trama { width: 92px; height: 92px; }
.flotante--trama i { background: radial-gradient(circle, rgba(255, 255, 255, .45) 2.4px, transparent 3px) 0 0 / 18px 18px; }
.flotante--clara i { background: radial-gradient(circle, rgba(70, 102, 169, .3) 2.4px, transparent 3px) 0 0 / 18px 18px; }
.flotante--aro { width: 96px; height: 96px; }
.flotante--aro i { border-radius: 50%; border: 10px solid rgba(123, 202, 239, .55); border-bottom-color: transparent; }
.flotante--azul i { border-color: rgba(70, 102, 169, .18); border-bottom-color: transparent; }
.flotante--grande { width: 420px; height: 420px; }
.flotante--grande i { border-width: 26px; border-color: rgba(255, 255, 255, .07); }
.flotante--cuadro { width: 46px; height: 46px; }
.flotante--cuadro i { border-radius: 12px; background: var(--amarillo); opacity: .9; }
.flotante--celeste i { background: var(--celeste); opacity: .55; }

/* Fondos que reciben una luz suave que sigue al cursor por toda la página */
@media (hover: hover) and (pointer: fine) {
  .plan, .sumate, .equipo { background-attachment: fixed; }
  .plan { background-image: radial-gradient(560px circle at var(--mxp, 50%) var(--myp, 40%), rgba(123, 202, 239, .22), transparent 60%); }
  .sumate { background-image: radial-gradient(560px circle at var(--mxp, 50%) var(--myp, 40%), rgba(255, 206, 45, .12), transparent 60%); }
  .equipo { background-image: radial-gradient(620px circle at var(--mxp, 50%) var(--myp, 40%), rgba(123, 202, 239, .18), transparent 60%); }
}

/* ---------- Línea amarilla que recorre la página ---------- */
/* Ondas por sección, siempre detrás del contenido (z-index 0 bajo los .contenedor) */
.trayecto { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.trayecto path {
  fill: none; stroke: var(--amarillo); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--largo); stroke-dashoffset: var(--largo);
  transition: stroke-dashoffset var(--dur, 1.8s) cubic-bezier(.65, 0, .35, 1);
}
.trayecto circle {
  fill: var(--amarillo); opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center;
  transition: opacity .3s ease var(--dur, 1.8s), transform .5s cubic-bezier(.3, 1.6, .5, 1) var(--dur, 1.8s);
}
/* Si el punto va al inicio, aparece primero y de él nace la línea */
.trayecto.punto-inicial circle { transition-delay: 0s, 0s; }
.trayecto.punto-inicial path { transition-delay: .35s; }
.trayecto.dibujada path { stroke-dashoffset: 0; }
.trayecto.dibujada circle { opacity: 1; transform: none; }
.trayecto.sin-transicion path, .trayecto.sin-transicion circle { transition: none; }
/* Una vez dibujada, la onda se mece despacio */
.trayecto.dibujada g { animation: mecer 6s ease-in-out calc(var(--dur, 1.8s) + .4s) infinite alternate; }
@keyframes mecer { from { transform: translateY(0); } to { transform: translateY(9px); } }
.firma-cierre__cargo {
  display: inline-block; margin: 0 0 12px; padding: 5px 10px; border-radius: 8px;
  background: var(--celeste); color: var(--azul-fuerte);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; white-space: nowrap;
}
.firma-cierre__nombre { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; margin: 0; }

/* ---------- Sígueme ---------- */
.sigueme { background: var(--celeste-claro); padding-block: 48px; }
.sigueme__rejilla { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 32px; }
.sigueme__inge { width: 120px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.sigueme__inge:hover { transform: rotate(-4deg) scale(1.05); }
.sigueme__titulo { font-family: var(--fuente-mano); font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 700; color: var(--azul-fuerte); line-height: 1; }
.sigueme__texto { margin: 6px 0 0; color: var(--tinta-suave); }
.sigueme__redes { display: flex; flex-wrap: wrap; gap: 10px; }
.red {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px 10px 12px;
  border-radius: 999px; background: var(--blanco); color: var(--azul-fuerte); text-decoration: none;
  font-weight: 800; font-size: .95rem; border: 1.5px solid var(--linea);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.red svg { width: 24px; height: 24px; }
.red:hover { transform: translateY(-2px); color: var(--blanco); border-color: transparent; }
.red--facebook:hover { background: #1877F2; }
.red--instagram:hover { background: #D6267A; }
.red--tiktok:hover { background: #111111; }
.red--youtube:hover { background: #E62117; }

/* ---------- Redes en la barra superior ---------- */
.cabecera__redes { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.cabecera__redes a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--azul); text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.cabecera__redes a:hover, .cabecera__redes a:focus-visible { background: var(--azul); color: var(--blanco); transform: translateY(-1px); }
.cabecera__redes svg { width: 17px; height: 17px; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: rgba(255, 255, 255, .85); padding: 56px 0 24px; }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.pie img { width: 200px; }
.pie__lema { font-family: var(--fuente-mano); font-size: 1.5rem; color: var(--amarillo); margin-top: 14px; }
.pie__titulo { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--celeste); margin-bottom: 12px; }
.pie__lista { display: grid; gap: 8px; }
.pie a { color: var(--blanco); text-decoration: none; }
.pie a:hover { color: var(--amarillo); text-decoration: underline; }
.pie__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.pie__legal p { margin: 0; }

/* ---------- Formulario: necesidad del barrio y consentimiento ---------- */
.campo textarea {
  width: 100%; border-radius: var(--radio-chico); border: 1.5px solid #C9D2E6; background: var(--blanco);
  padding: 12px 14px; font: 500 1rem/1.5 var(--fuente); color: var(--tinta); resize: vertical; min-height: 90px;
}
.campo textarea:focus { border-color: var(--azul); outline: 3px solid rgba(70, 102, 169, .2); outline-offset: 0; }
.campo__ayuda { margin: 0; font-size: .85rem; color: var(--tinta-suave); }
.consentimiento { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500 !important; font-size: .92rem; line-height: 1.45; }
.consentimiento input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--azul); flex: none; }
.consentimiento input[aria-invalid="true"] { outline: 2px solid #C2263B; outline-offset: 2px; }

/* ---------- Vivir sin miedo: eje prioritario ---------- */
.eje--destacado {
  grid-column: 1 / -1; color: var(--blanco); border: 0; border-top: 5px solid var(--amarillo);
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; padding: 26px 28px;
  background: linear-gradient(150deg, #3E4BA6, var(--azul-fuerte) 55%, #2A2F78);
  box-shadow: 0 18px 36px -20px rgba(42, 47, 120, .8);
}
.eje--destacado .eje__icono { background: var(--amarillo); color: var(--azul-fuerte); grid-row: 1 / span 5; width: 64px; height: 64px; }
.eje--destacado .eje__icono svg { width: 34px; height: 34px; }
.eje--destacado > :not(.eje__icono) { grid-column: 2; }
.eje--destacado p:not(.eje__subtitulo) { max-width: 70ch; font-size: 1rem; }
.eje--destacado .eje__numero { color: var(--amarillo); }
.eje--destacado h3 { color: var(--blanco); font-size: 1.45rem; font-weight: 900; }
.eje--destacado p { color: rgba(255, 255, 255, .9); }
.eje--destacado .eje__subtitulo { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--celeste); margin-top: -2px; }

/* ---------- Compartir por WhatsApp ---------- */
.compartir {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  border-top: 1px solid rgba(70, 102, 169, .18); padding-top: 22px; margin-top: 4px;
}
.compartir__texto { margin: 0; font-weight: 700; color: var(--azul-fuerte); }

/* ---------- Aviso de privacidad ---------- */
.legal { padding-block: 48px 72px; max-width: 760px; }
.legal h2 { font-size: 1.15rem; font-weight: 800; color: var(--azul-fuerte); margin: 28px 0 8px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal__fecha { font-size: .85rem; font-weight: 600; color: var(--tinta-suave); }
.pie__legal a { color: var(--blanco); text-decoration: underline; }

/* ---------- Barra móvil ---------- */
.barra-movil { display: none; }

/* ---------- Animación de entrada (solo si el usuario la acepta) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .revelar.visible { opacity: 1; transform: none; }
  /* Las cifras suben una tras otra; luego el hover toma el control del transform */
  .cifra.revelar { transition: opacity .6s ease var(--retraso, 0s), transform .6s cubic-bezier(.2, .8, .2, 1) var(--retraso, 0s), background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
  .cifra.revelar.visible:hover { transform: scale(1.03); transition-delay: 0s; }
  /* Bloque del 55 %: entra desde la derecha, la barra crece y al final late una vez */
  .dato-alerta.revelar { transform: translateX(40px); }
  .dato-alerta.revelar.visible { transform: none; }
  .dato-alerta.revelar.visible:hover { transform: translateY(-4px) scale(1.02); }
  .dato-alerta.revelar .dato-alerta__barra span { width: 0; transition: width 2.4s cubic-bezier(.3, .6, .3, 1) .4s; }
  .dato-alerta.revelar.visible .dato-alerta__barra span { width: 55%; }
  .dato-alerta.revelar .inge3d { left: -9px; transition: left 2.4s cubic-bezier(.3, .6, .3, 1) .4s; }
  .dato-alerta.revelar.visible .inge3d { left: calc(55% - 9px); }
  /* Mientras la barra crece, la Inge se inclina hacia atrás y da pasos jalando */
  .dato-alerta.revelar.visible:not(.listo) .inge3d-cuerpo { animation: tirar .42s ease-in-out infinite alternate; }
  .dato-alerta.revelar.visible:not(.listo) .inge3d-pierna--adelante { animation: paso .42s ease-in-out infinite alternate; }
  .dato-alerta.revelar.visible:not(.listo) .inge3d-pierna--atras { animation: paso .42s ease-in-out infinite alternate-reverse; }
  /* Al llegar al 55 %: salta de alegría; al pasar el cursor vuelve a jalar */
  .dato-alerta.listo .inge3d-cuerpo { animation: celebrar .5s ease-out 2; }
  .dato-alerta.listo:hover .inge3d-cuerpo { animation: tirar .42s ease-in-out infinite alternate; }
  .dato-alerta.listo:hover .inge3d-pierna--adelante { animation: paso .42s ease-in-out infinite alternate; }
  .dato-alerta.listo:hover .inge3d-pierna--atras { animation: paso .42s ease-in-out infinite alternate-reverse; }
  @keyframes tirar { from { transform: rotate(9deg); } to { transform: rotate(17deg) translateX(1.5px); } }
  @keyframes paso { from { transform: rotate(-9deg); } to { transform: rotate(7deg); } }
  @keyframes celebrar { 0%, 100% { transform: rotate(4deg) translateY(0); } 45% { transform: rotate(0deg) translateY(-9px); } }
  .dato-alerta.latido { animation: latido .6s ease; }
  @keyframes latido { 0%, 100% { transform: none; } 40% { transform: scale(1.05); } }
  /* Línea de tiempo: los hitos aparecen uno a uno y su tramo amarillo se llena */
  /* Cada hito: el punto salta, el texto sube y su tramo amarillo se llena hacia el siguiente */
  .linea-tiempo li.revelar { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
  .linea-tiempo li.revelar::before { transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
  .linea-tiempo li.revelar.visible::before { transform: scale(1); }
  .linea-tiempo li.revelar::after { width: 0; transition: width .6s cubic-bezier(.45, 0, .25, 1) .3s, height .6s cubic-bezier(.45, 0, .25, 1) .3s; }
  .linea-tiempo li.revelar.visible::after { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .nav {
    position: fixed; inset: var(--alto-cabecera) 0 auto 0; margin: 0;
    background: var(--blanco); border-bottom: 1px solid var(--linea);
    box-shadow: 0 16px 30px -18px rgba(29, 39, 71, .5);
    padding: 12px 20px 20px; display: none;
  }
  .nav.abierto { display: block; }
  .nav__lista { flex-direction: column; }
  .nav__lista a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__boton { display: flex; }
  .nav + .cabecera__acciones { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero .flotante { display: none; }   /* sin márgenes libres: no deben tapar el texto */
  /* Móvil: nombre → foto → promesa y botones (la cara visible sin hacer scroll) */
  .hero__rejilla { grid-template-columns: 1fr; gap: 0; }
  .hero__texto { display: contents; }
  .hero .etiqueta { justify-self: start; }
  .hero__foto { order: 1; width: min(300px, 74%); margin: 4px auto 0; justify-self: center; }
  .hero__promesa, .hero__acciones, .hero__credenciales { order: 2; }
  .hero__promesa { margin-top: 24px; }
  .hero__credenciales { padding-bottom: 72px; }
  .hero__circulo { bottom: 6%; }
  .cifras { margin-top: -40px; }
  .cifras__rejilla { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quien__rejilla, .plan__cabecera, .sumate__rejilla { grid-template-columns: 1fr; }
  .quien__foto { max-width: 340px; }
  .linea-tiempo { grid-template-columns: 1fr; gap: 0; border-left: 4px solid var(--linea); margin-left: 8px; }
  .linea-tiempo li { border-top: 0; padding: 0 0 26px 26px; }
  .linea-tiempo li::before { top: 2px; left: -12px; }
  .linea-tiempo li::after { top: 0; left: -4px; width: 4px; height: 100%; }
  .linea-tiempo li.revelar::after { width: 4px; height: 0; }
  .linea-tiempo li.revelar.visible::after { width: 4px; height: 100%; }
  .linea-tiempo li.es-actual { padding: 14px 16px 16px 26px; border-radius: 0 16px 16px 0; }
  .linea-tiempo li.es-actual::before { left: -14px; top: 14px; }
  .medios { grid-template-columns: 1fr; }
  .firma-cierre { max-width: 520px; width: 100%; justify-self: center; }
  .sigueme__rejilla { grid-template-columns: auto 1fr; }
  .sigueme__redes { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .eje--destacado { grid-template-columns: 1fr; padding: 22px 20px; }
  .eje--destacado .eje__icono { grid-row: auto; width: 52px; height: 52px; }
  .eje--destacado > :not(.eje__icono) { grid-column: 1; }
  .compartir .boton { width: 100%; }
  body { font-size: 1rem; padding-bottom: 76px; }
  .cabecera__logo img { width: 132px; }
  .cabecera .boton--wa { display: none; }
  .hero .etiqueta { font-size: .72rem; letter-spacing: .03em; padding: 5px 10px; }
  .hero__firma { margin-bottom: 8px; }
  .hero__foto { width: min(260px, 70%); }
  .hero__acciones { margin: 20px 0; }
  .hero__acciones .boton { flex: 1 1 100%; }
  .cifra { padding: 20px 16px; }
  .cifra__numero { font-size: 1.85rem; }
  .cifra__texto { font-size: .92rem; }
  .cifra__fuente { font-size: .7rem; }
  .temas { padding: 18px; }
  .temas__botones button { padding: 7px 14px; font-size: .88rem; }
  .campo--doble, .opciones { grid-template-columns: 1fr; }
  .firma-cierre { padding: 20px 0 0 12px; }
  .firma-cierre__texto { padding: 0 16px 20px 0; }
  .sigueme__inge { width: 84px; }
  .sigueme__redes { display: grid; grid-template-columns: 1fr 1fr; }
  .red { justify-content: center; }
  .flotante--cuadro, .flotante--aro:not(.flotante--grande) { display: none; }
  .flotante--trama { width: 64px; height: 64px; }
  .cabecera__fila { gap: 10px; }
  .cabecera__redes { margin-right: 0; gap: 0; }
  .cabecera__redes a { width: 30px; height: 30px; }
  .cabecera__redes svg { width: 15px; height: 15px; }
  /* Fotos de equipo: deslizables para no cortar a nadie */
  .equipo__fotos figure { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .equipo__fotos img { height: 230px; width: auto; max-width: none; align-self: flex-start; flex-shrink: 0; }
  .equipo__fotos figcaption { position: sticky; left: 0; }
  .equipo__fotos figcaption::after { content: " · desliza →"; font-weight: 600; }
  .pie__rejilla { grid-template-columns: 1fr; }

  .barra-movil {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--linea);
    box-shadow: 0 -8px 24px -16px rgba(29, 39, 71, .5);
    transition: transform .25s ease;
  }
  .barra-movil .boton { min-height: 48px; padding: 10px 12px; }
  .barra-movil.oculta { transform: translateY(110%); }
}

@media (max-width: 400px) {
  .cabecera__logo img { width: 112px; }
  .cabecera__redes a { width: 28px; height: 28px; }
}
