/* ==========================================================================
   AMASFAC · boceto de MDStudio (1-dic-2026)

   La paleta sale de SU marca: el verde azulado de las gotas del logo y de su
   sitio (#00778B, #005C66) y el gris grafito de la espiral (#3F4444).
   Tipografía: Jost por su Futura/Nobel (la frase "Por todo lo que nos une"
   está en Futura) y Source Sans 3 para leer.

   Una sola curva y tres duraciones para todo, como en Centauro y Schweitzer.
   ========================================================================== */

@property --n { syntax: '<integer>'; inherits: true; initial-value: 0; }

:root {
  --verde: #00778b;          /* blanco encima 4,9:1 */
  --verde-osc: #005c66;      /* 7,3:1 sobre blanco: texto */
  --verde-hondo: #00434b;
  --verde-claro: #5fbccb;    /* las gotas sobre fondo oscuro */
  --noche: #06292e;          /* el pie */
  --agua: #eaf4f5;           /* fondo de sección */
  --agua-2: #d5eaec;
  --grafito: #3f4444;        /* la espiral del logo */
  --papel: #fbfcfc;
  --tinta: #1e2727;
  --tinta-suave: #546465;    /* 6:1 sobre papel */
  --linea: #dbe6e7;
  --ok: #1d7f46;
  --ok-fondo: #e4f4ea;
  --oro: #e8a93a;

  --f-titulo: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --f-texto: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --u-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --u-corta: 0.2s;
  --u-media: 0.6s;
  --u-larga: 0.9s;
  --ease-cine: cubic-bezier(0.16, 0.84, 0.24, 1);   /* entra largo y se posa */
  --ease-step: cubic-bezier(0.3, 1.5, 0.5, 1);      /* se pasa un poco y vuelve */

  --radio: 1.25rem;
  --sombra: 0 1px 2px rgb(6 41 46 / 0.05), 0 14px 34px -14px rgb(0 67 75 / 0.22);
  --cabecera-alto: 4.25rem;
}

/* --- base / hardening mobile (patrón ios-mobile-hardening) --- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cabecera-alto) + 1rem); }
html, body { overscroll-behavior: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.u-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;            /* que no se achique cuando el texto baja de renglón */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--afuera { width: 1em; height: 1em; opacity: 0.75; }

.envase { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.volanta {
  font-family: var(--f-titulo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde);
  text-wrap: balance;
}
.volanta--clara { color: rgb(255 255 255 / 0.82); }

/* --- botones --- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-titulo);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--u-corta) var(--u-ease), color var(--u-corta) var(--u-ease),
              border-color var(--u-corta) var(--u-ease), translate var(--u-corta) var(--u-ease),
              box-shadow var(--u-corta) var(--u-ease);
}
.boton:active { translate: 0 1px; }
.boton--marca { background: var(--verde); color: #fff; box-shadow: 0 8px 20px -10px rgb(0 119 139 / 0.75); }
.boton--marca:hover { background: var(--verde-osc); }
.boton--borde { border-color: var(--linea); background: #fff; color: var(--tinta); }
.boton--borde:hover { border-color: var(--verde); color: var(--verde-osc); }
.boton--claro { background: #fff; color: var(--verde-hondo); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.45); }
.boton--claro:hover { background: var(--agua); }
.boton--vidrio { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.06); color: #fff; }
.boton--vidrio:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; }
.boton--grande { min-height: 3.5rem; padding-inline: 1.6rem; font-size: 1.0625rem; }
.boton--chico { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.boton--claro .ico, .boton--marca .ico { width: 1.15em; height: 1.15em; }

/* ==========================================================================
   00 · BARRA DE BOCETO
   ========================================================================== */
.demo {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  background: var(--noche);
  color: #d7e6e8;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}
html[data-demo='true'] .demo { display: flex; }
.demo__texto strong { font-weight: 700; color: #fff; }
.demo__cerrar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.demo__cerrar:hover { background: rgb(255 255 255 / 0.08); }
.demo__cerrar .ico { width: 1.1rem; height: 1.1rem; }
.demo__cerrar:focus-visible { outline-color: #fff; }

/* ==========================================================================
   01 · CABECERA
   ========================================================================== */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(251 252 252 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--u-media) var(--u-ease), box-shadow var(--u-media) var(--u-ease);
}
.cabecera.con-scroll { border-bottom-color: var(--linea); box-shadow: 0 10px 30px -24px rgb(0 67 75 / 0.55); }
.cabecera__fila { display: flex; align-items: center; gap: 0.75rem; min-height: var(--cabecera-alto); }

.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
/* El logo va en línea y partido en piezas (la intro arma el clon). */
.lg { display: block; width: 9.4rem; height: auto; overflow: visible; }
.lg path { fill-rule: evenodd; }
.lg-espiral, .lg-bandera, .lg-l { fill: var(--grafito); }
.lg-gota { fill: var(--verde); }

.menu { display: none; }
.menu a {
  position: relative;
  padding: 0.5rem 0.15rem;
  font: 500 0.98rem/1.2 var(--f-titulo);
  color: var(--tinta-suave);
  text-decoration: none;
  transition: color var(--u-corta) var(--u-ease);
}
.menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--verde);
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--u-media) var(--u-ease);
}
.menu a:hover { color: var(--tinta); }
.menu a:hover::after { scale: 1 1; }

.cabecera__soy { display: none; }
.cabecera__mas {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  cursor: pointer;
}
.cabecera__mas .ico { width: 1.25rem; height: 1.25rem; }

/* --- menú del celular (popover nativo) --- */
.hoja {
  margin: 0;
  inset: 0 0 0 auto;
  width: min(22rem, 88vw);
  height: 100dvh;
  max-height: none;
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: -20px 0 60px -20px rgb(6 41 46 / 0.4);
  overscroll-behavior: contain;
}
.hoja:popover-open { display: flex; flex-direction: column; gap: 1rem; }
.hoja::backdrop { background: rgb(6 41 46 / 0.45); }
.hoja__cabeza { display: flex; align-items: center; justify-content: space-between; }
.hoja__titulo { font: 600 0.8rem/1 var(--f-titulo); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-suave); }
.hoja__cerrar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: var(--agua); color: var(--tinta); cursor: pointer; }
.hoja__links { display: grid; }
.hoja__links a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--linea);
  font: 500 1.3rem/1.2 var(--f-titulo);
  text-decoration: none;
}
.hoja__boton { margin-top: auto; }
.hoja__campus { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; color: var(--verde-osc); font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .hoja { transition: translate 0.45s var(--u-ease), display 0.45s allow-discrete, overlay 0.45s allow-discrete; translate: 100% 0; }
  .hoja:popover-open { translate: 0 0; }
  @starting-style { .hoja:popover-open { translate: 100% 0; } }
}

/* ==========================================================================
   02 · PORTADA
   ========================================================================== */
.portada {
  position: relative;
  overflow: clip;
  padding: 2.75rem 0 5.5rem;
  background:
    radial-gradient(120% 70% at 85% 10%, rgb(95 188 203 / 0.28), transparent 60%),
    linear-gradient(165deg, var(--verde-hondo) 0%, var(--verde-osc) 48%, var(--verde) 100%);
  color: #fff;
}
/* El símbolo de fondo, en capas que coinciden píxel a píxel (misma caja, misma
   proporción que el viewBox): quieto es el logo entero. Cada capa con su
   transparencia, para que se lea la profundidad cuando se separan. */
.portada__fondo {
  position: absolute;
  width: 46rem;
  aspect-ratio: 2396 / 1549;
  right: -18rem;
  top: -4rem;
  color: #fff;
  pointer-events: none;
}
.pf { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pf--espiral { opacity: 0.07; }
.pf--bandera { opacity: 0.12; }
.pf--gota { --o: 0.22; opacity: var(--o); color: #a6e3ec; }
.portada__grilla { position: relative; display: grid; gap: 2.75rem; }
.portada__texto { display: grid; justify-items: start; gap: 1.25rem; }
.portada__titulo {
  font: 500 clamp(2.75rem, 1.6rem + 5.2vw, 4.75rem)/1.02 var(--f-titulo);
  letter-spacing: -0.015em;
}
.portada__titulo em { font-style: italic; font-weight: 700; }
.portada__bajada { max-width: 34rem; font-size: 1.15rem; color: rgb(255 255 255 / 0.88); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.portada__campus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font: 500 1rem/1.2 var(--f-titulo);
  color: rgb(255 255 255 / 0.9);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--u-corta) var(--u-ease);
}
.portada__campus:hover { text-decoration-color: #fff; }
.portada :focus-visible { outline-color: #fff; }

.portada__celu { position: relative; display: grid; place-items: center; padding-top: 1.5rem; }

/* --- el celular (lo usan la portada y, después, el video) --- */
.celu {
  position: relative;
  width: 16.5rem;
  aspect-ratio: 9 / 19;
  padding: 0.55rem;
  border-radius: 2.7rem;
  background: linear-gradient(150deg, #2b3435, #0d1415 40%, #1d2627);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
    0 40px 80px -30px rgb(0 0 0 / 0.6),
    0 18px 30px -18px rgb(0 0 0 / 0.45);
}
.celu__pantalla {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.2rem;
  display: flex;
  flex-direction: column;
  background: #eef4f5;
  container-type: inline-size;
}
/* La rayita de inicio del iPhone. */
.celu__pantalla::after { content: ''; position: absolute; left: 50%; bottom: 1.6cqi; width: 34cqi; height: 1.3cqi; translate: -50% 0; border-radius: 99px; background: #0b1112; opacity: 0.85; }
.celu__barra {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12cqi;
  padding: 0 8cqi;
  font: 600 4.2cqi/1 var(--f-texto);
  color: var(--tinta);
}
.celu__isla { position: absolute; left: 50%; top: 3.2cqi; width: 28cqi; height: 8cqi; translate: -50% 0; border-radius: 99px; background: #0b1112; }
.celu__senal { width: 7.5cqi; height: 3.6cqi; border: 1.2px solid currentColor; border-radius: 1.2cqi; position: relative; }
.celu__senal::after { content: ''; position: absolute; inset: 0.6cqi; right: 1.8cqi; border-radius: 0.5cqi; background: currentColor; }

/* --- la app de la credencial (en cqi: escala con el celular) ---
   Es la pantalla "Credencial" de credencial.html, en chico: mismas piezas,
   mismos colores. Las medidas salen de las de la app a 390 px (1rem ≈ 4.1cqi). */
.celu__pantalla:has(.app) { background: radial-gradient(150cqi 65cqi at 50% -20cqi, #d3e9ec, transparent 70%), var(--agua); }
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4.1cqi; padding-top: 1.5cqi; font-size: 3.9cqi; line-height: 1.3; color: var(--tinta); }
.app > :not(.app__tabs) { margin-inline: 4.1cqi; }

.app__barra {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 3.1cqi;
  padding: 2.7cqi 2.3cqi 2.7cqi 3.1cqi;
  border-radius: 4.7cqi;
  background: linear-gradient(120deg, var(--verde-hondo), var(--verde));
  color: #fff;
  box-shadow: 0 5cqi 10cqi -7cqi rgb(0 67 75 / 0.9);
}
.app__barra::before, .tarjeta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 4.5cqi); }
.app__avatar {
  display: grid;
  place-items: center;
  width: 10.7cqi;
  height: 10.7cqi;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32);
  font: 600 3.8cqi/1 var(--f-titulo);
  letter-spacing: 0.05em;
}
.app__hola { flex: 1; min-width: 0; font-size: 3.5cqi; line-height: 1.3; color: rgb(255 255 255 / 0.78); }
.app__hola b { display: block; font: 600 4.6cqi/1.2 var(--f-titulo); color: #fff; }
.app__mas { width: 5.5cqi; height: 5.5cqi; margin-right: 2.2cqi; stroke-width: 2.4; }

.tarjeta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.7cqi 5.1cqi 0;
  border-radius: 6.2cqi;
  background:
    radial-gradient(130% 90% at 100% 0%, rgb(95 188 203 / 0.3), transparent 55%),
    linear-gradient(155deg, #006874 0%, #00434b 50%, #06292e 100%);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 1px 2px rgb(6 41 46 / 0.12),
    0 11cqi 21cqi -9cqi rgb(0 67 75 / 0.65);
}
.tarjeta__agua {
  position: absolute;
  z-index: -1;
  width: 125%;
  aspect-ratio: 2396 / 1549;
  height: auto;
  right: -50%;
  bottom: -42%;
  rotate: -10deg;
  --m-gris: rgb(255 255 255 / 0.055);
  --m-verde: rgb(255 255 255 / 0.055);
}
.tarjeta__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 4cqi; }
.tarjeta__simbolo { display: block; width: 19.5cqi; aspect-ratio: 2396 / 1549; height: auto; --m-gris: #fff; --m-verde: #9fe0ea; }
.tarjeta__estado { display: grid; justify-items: end; gap: 1.6cqi; }
.tarjeta__pastilla {
  display: inline-flex;
  align-items: center;
  gap: 1.8cqi;
  padding: 1.3cqi 2.9cqi 1.3cqi 2.3cqi;
  border-radius: 99px;
  background: rgb(74 222 128 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(134 239 172 / 0.32);
  font: 600 2.9cqi/1 var(--f-titulo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4f5cd;
  white-space: nowrap;
}
.tarjeta__pastilla i { width: 2cqi; height: 2cqi; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0.9cqi rgb(74 222 128 / 0.22); }
.tarjeta__verif { display: flex; align-items: center; gap: 1.2cqi; font-size: 3.2cqi; line-height: 1.2; color: rgb(255 255 255 / 0.72); }
.tarjeta__verif .ico { width: 3.9cqi; height: 3.9cqi; color: #9fe0ea; }
.tarjeta__socio {
  margin-top: 4.7cqi;
  font: 600 6.4cqi/1.15 var(--f-titulo);
  letter-spacing: 0.005em;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.25);
}
.tarjeta__rol { margin-top: 1.2cqi; font-size: 3.9cqi; text-align: center; color: rgb(255 255 255 / 0.78); }
.tarjeta__datos {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  margin-top: 4.5cqi;
  padding: 3.5cqi 0 3.9cqi;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  text-align: center;
}
.tarjeta__datos div + div { border-left: 1px solid rgb(255 255 255 / 0.12); }
.tarjeta__datos dt { font: 500 2.5cqi/1.25 var(--f-titulo); letter-spacing: 0.11em; text-transform: uppercase; color: rgb(255 255 255 / 0.66); }
.tarjeta__datos dd { margin-top: 1.2cqi; font: 600 4.2cqi/1.2 var(--f-titulo); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tarjeta__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqi;
  margin: 0 -5.1cqi;
  padding: 3cqi 5.1cqi;
  background: rgb(0 0 0 / 0.2);
}
.tarjeta__marca { display: block; width: 22cqi; aspect-ratio: 1907 / 230; height: auto; --m-nombre: rgb(255 255 255 / 0.8); }
.tarjeta__pie span { font: 500 2.6cqi/1 var(--f-titulo); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.66); }

.app__acciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5cqi; }
.app__acciones span {
  display: grid;
  justify-items: center;
  gap: 2cqi;
  padding: 3.5cqi 0.8cqi 3.1cqi;
  border-radius: 4.1cqi;
  background: #fff;
  box-shadow: 0 1px 2px rgb(6 41 46 / 0.06), 0 4cqi 9cqi -6.5cqi rgb(0 67 75 / 0.4);
  font: 500 3.4cqi/1.15 var(--f-titulo);
  text-align: center;
}
.app__acciones i { display: grid; place-items: center; width: 11.3cqi; height: 11.3cqi; border-radius: 50%; background: var(--agua); color: var(--verde-osc); }
.app__acciones .ico { width: 5.5cqi; height: 5.5cqi; }

.app__sub { margin-top: 2.4cqi; margin-bottom: -1.2cqi; padding-inline: 1cqi; font: 600 4.6cqi/1.2 var(--f-titulo); }
.app__evento + .app__evento { margin-top: -1.9cqi; }
.app__evento { display: flex; align-items: center; gap: 3.5cqi; padding: 3.1cqi 3.7cqi 3.1cqi 3.1cqi; border-radius: 4.1cqi; background: #fff; box-shadow: 0 1px 2px rgb(6 41 46 / 0.06), 0 4cqi 9cqi -6.5cqi rgb(0 67 75 / 0.4); }
.app__evento > div { flex: 1; min-width: 0; }
.app__fecha { display: grid; place-items: center; width: 13.9cqi; flex-shrink: 0; padding: 1.8cqi 0; border-radius: 3.1cqi; background: var(--agua); font: 500 3cqi/1.1 var(--f-titulo); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-suave); }
.app__fecha b { font-size: 4.4cqi; font-weight: 600; letter-spacing: 0; color: var(--verde-osc); }
.app__evento-nombre { font: 600 4.1cqi/1.25 var(--f-titulo); }
.app__evento-lugar { margin-top: 0.6cqi; font-size: 3.7cqi; color: var(--tinta-suave); }
.app__etiqueta { flex-shrink: 0; padding: 1.2cqi 2.3cqi; border-radius: 99px; background: var(--ok-fondo); font: 600 2.7cqi/1 var(--f-titulo); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.app__tabs { display: flex; justify-content: space-around; margin-top: auto; padding: 2.6cqi 2cqi 7cqi; border-top: 1px solid var(--linea); background: rgb(255 255 255 / 0.92); }
.app__tabs span { display: grid; justify-items: center; gap: 0.8cqi; font: 500 2.6cqi/1 var(--f-texto); color: #7d8b8c; }
.app__tabs .ico { width: 5.6cqi; height: 5.6cqi; stroke-width: 1.9; }
.app__tabs .es-activa { color: var(--verde-osc); font-weight: 600; }

/* --- el aviso que cae sobre el celular --- */
.aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 17.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.15rem;
  background: rgb(250 252 252 / 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  color: var(--tinta);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.04), 0 18px 40px -16px rgb(0 0 0 / 0.5);
  line-height: 1.3;
}
.aviso__app {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  padding: 0.38rem 0.22rem;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linea);
  --m-gris: var(--grafito);
  --m-verde: var(--verde);
}
.aviso__de { display: flex; justify-content: space-between; gap: 0.5rem; font: 600 0.72rem/1.2 var(--f-titulo); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinta-suave); }
.aviso__de span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.aviso__titulo { margin-top: 0.15rem; font-weight: 700; font-size: 0.92rem; }
.aviso__texto { font-size: 0.86rem; color: var(--tinta); }
.aviso > div { flex: 1; min-width: 0; }
.aviso--portada { position: absolute; top: 2.35rem; left: 0.95rem; right: 0.95rem; width: auto; z-index: 2; }

/* ==========================================================================
   03 · CIFRAS
   ========================================================================== */
.cifras { position: relative; z-index: 1; margin-top: -2.75rem; }
.cifras__lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radio);
  background: #fff;
  box-shadow: var(--sombra);
}
.cifra { display: grid; gap: 0.3rem; text-align: center; }
.cifra__n {
  --n: var(--hasta);
  counter-reset: n var(--n);
  font: 600 clamp(2.1rem, 1.6rem + 2.2vw, 3rem)/1 var(--f-titulo);
  color: var(--verde-osc);
  font-variant-numeric: tabular-nums;
}
.cifra__n::after { content: counter(n); }
.cifra__texto { font-size: 0.95rem; line-height: 1.3; color: var(--tinta-suave); }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.seccion { padding: 4.5rem 0; }
.seccion--agua { background: var(--agua); }
.seccion__cabeza { display: grid; gap: 0.7rem; max-width: 42rem; margin-bottom: 2.25rem; }
.seccion__titulo { font: 600 clamp(1.85rem, 1.3rem + 2.3vw, 2.75rem)/1.1 var(--f-titulo); letter-spacing: -0.01em; color: var(--tinta); }
.seccion__bajada { font-size: 1.1rem; color: var(--tinta-suave); }

/* --- 04 · beneficios --- */
.beneficios { display: grid; gap: 1rem; }
.beneficio {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: #fff;
}
.beneficio__ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.9rem; background: var(--agua); color: var(--verde-osc); }
.beneficio__ico .ico { width: 1.5rem; height: 1.5rem; }
.beneficio h3 { font: 600 1.3rem/1.2 var(--f-titulo); }
.beneficio__lista { display: grid; gap: 0.55rem; }
.beneficio__lista li { position: relative; padding-left: 1.15rem; font-size: 1rem; line-height: 1.5; color: var(--tinta); }
.beneficio__lista li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--verde); }

.cita {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radio);
  background: var(--agua);
}
.cita__texto { font-size: 1.05rem; }
.cita__acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cita .boton--borde { white-space: normal; }

/* --- 05 · credencial digital --- */
.credencial-bloque { display: grid; gap: 3rem; align-items: center; }
.credencial-bloque__texto { display: grid; justify-items: start; gap: 1rem; }
.funciones { display: grid; gap: 1.1rem; margin: 0.75rem 0 1rem; }
.funcion { display: flex; gap: 0.9rem; align-items: flex-start; }
.funcion__ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 0.85rem; background: #fff; color: var(--verde-osc); box-shadow: inset 0 0 0 1px var(--agua-2); }
.funcion h3 { font: 600 1.12rem/1.25 var(--f-titulo); }
.funcion p { margin-top: 0.15rem; font-size: 1rem; color: var(--tinta-suave); }

.validacion { position: relative; display: grid; justify-items: center; padding: 1rem 0 0; }
.validacion__qr {
  position: relative;
  padding: 1rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: var(--sombra);
  rotate: -4deg;
}
.validacion__qr img { width: 10rem; height: 10rem; }
.validacion__laser {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: 1rem;
  height: 3px;
  border-radius: 3px;
  background: var(--verde);
  box-shadow: 0 0 14px 3px rgb(0 119 139 / 0.45);
}
.validacion__tarjeta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: min(20rem, 100%);
  margin-top: -1.75rem;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: var(--sombra);
  text-align: center;
  rotate: 1.5deg;
}
.validacion__ok { width: 2.6rem; height: 2.6rem; color: var(--ok); stroke-width: 1.9; }
.validacion__titulo { margin-top: 0.2rem; font: 600 0.85rem/1.2 var(--f-titulo); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); }
.validacion__nombre { font: 600 1.3rem/1.25 var(--f-titulo); }
.validacion__dato { font-size: 0.95rem; color: var(--tinta-suave); }
.validacion__estado { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: var(--ok-fondo); color: var(--ok); font-size: 0.9rem; font-weight: 600; }
.validacion__estado .ico { width: 1rem; height: 1rem; stroke-width: 2.6; }

/* --- 06 · distritos y secciones --- */
.buscador { position: relative; max-width: 30rem; margin-bottom: 1.5rem; }
.buscador input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font: 400 1.0625rem/1.2 var(--f-texto);   /* 16px o más: iOS no hace zoom */
  transition: border-color var(--u-corta) var(--u-ease), box-shadow var(--u-corta) var(--u-ease);
}
.buscador input::placeholder { color: #7d8b8c; }
.buscador input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgb(0 119 139 / 0.14); }
.buscador__ico { position: absolute; left: 1.1rem; top: 1.05rem; width: 1.25rem; height: 1.25rem; color: var(--tinta-suave); pointer-events: none; }
.buscador__nada { margin-top: 0.75rem; font-size: 0.98rem; color: var(--tinta-suave); }

.distritos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.25rem), 1fr)); gap: 0.75rem; }
.distrito {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 1.1rem;
  background: #fff;
  transition: opacity var(--u-media) var(--u-ease), border-color var(--u-media) var(--u-ease);
}
.distrito h3 { margin-bottom: 0.6rem; font: 600 1.05rem/1.2 var(--f-titulo); color: var(--verde-osc); }
.distrito ul { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.distrito li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--agua);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: background-color var(--u-corta) var(--u-ease), color var(--u-corta) var(--u-ease);
}
.distrito li.es-match { background: var(--verde); color: #fff; }
.distrito.con-match { border-color: var(--verde); }
.distritos.buscando .distrito:not(.con-match) { opacity: 0.4; }

/* El mapa de puntos (lo arma herramientas/armar-mapa.cjs). La tierra es un solo
   trazo de puntos redondos; encima, las 39 ciudades unidas por distrito. */
.secciones__arriba { display: grid; gap: 0 3rem; margin-bottom: 1.5rem; }
.secciones__intro .buscador { margin-bottom: 0; }
.pais { position: relative; margin: 1.25rem 0 0; }
.pais__svg { display: block; width: 100%; height: auto; overflow: visible; }
.pais__tierra { fill: none; stroke: var(--verde); stroke-opacity: 0.2; stroke-width: 2.2; stroke-linecap: round; }
.pais__lazo { fill: none; stroke: var(--verde); stroke-width: 0.75; stroke-opacity: 0.6; stroke-linecap: round; stroke-dasharray: 1; transition: opacity var(--u-media) var(--u-ease); }
.pais__punto { transition: opacity var(--u-media) var(--u-ease); }
.pais__ciudad,
.pais__onda { transform-box: fill-box; transform-origin: center; }
.pais__ciudad { fill: var(--verde-osc); stroke: #fff; stroke-width: 1; transition: scale var(--u-media) var(--ease-step), fill var(--u-corta) var(--u-ease); }
.pais__onda { fill: var(--verde); opacity: 0; }
.pais.buscando :is(.pais__punto:not(.es-match), .pais__lazo) { opacity: 0.28; }
.pais__punto.es-match .pais__ciudad { fill: var(--verde); scale: 1.4; }
/* El nombre de la ciudad que se buscó, arriba de su punto (app.js lo ubica). */
.pais__etiqueta {
  --tx: -50%;
  position: absolute;
  z-index: 1;
  display: grid;
  padding: 0.45rem 0.8rem 0.5rem;
  border-radius: 0.8rem;
  background: var(--verde-hondo);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(0 67 75 / 0.55);
  translate: var(--tx) calc(-100% - 0.85rem);
  white-space: nowrap;
  pointer-events: none;
  font: 600 1rem/1.15 var(--f-titulo);
}
.pais__etiqueta span { font: 400 0.8rem/1.3 var(--f-texto); color: rgb(255 255 255 / 0.8); }
.pais__etiqueta::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--tx));
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: inherit;
  translate: -50% 0;
  rotate: 45deg;
}
.pais__etiqueta[hidden] { display: none; }

/* --- 07 · agenda --- */
.agenda { display: grid; gap: 0.6rem; }
.evento { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(6 41 46 / 0.05); }
.evento__fecha {
  display: grid;
  min-width: 4.4rem;
  padding: 0.45rem 0.3rem;
  border-radius: 0.75rem;
  background: var(--agua);
  text-align: center;
  font: 500 0.78rem/1.1 var(--f-titulo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.evento__fecha b { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; color: var(--verde-osc); }
.evento h3 { font: 500 1.05rem/1.25 var(--f-titulo); }
.evento p:not(.evento__fecha) { font-size: 0.92rem; color: var(--tinta-suave); }
/* En el celular, una línea une los eventos del año (abajo se dibuja con el scroll).
   Con dos columnas o más ya no es una línea: no va. Inset 0: si no, el
   scroll-padding de la cabecera achica el rango y la punta se adelanta. */
@media (max-width: 639.98px) {
  .agenda { position: relative; padding-left: 1.6rem; view-timeline: --agenda block; view-timeline-inset: 0; }
  .agenda::before,
  .agenda::after {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    border-radius: 2px;
    background: rgb(0 119 139 / 0.16);
  }
  .agenda::after { background: var(--verde); transform-origin: top; }
  .evento { position: relative; view-timeline: --evento block; view-timeline-inset: 0; }
  .evento::before {
    content: '';
    position: absolute;
    left: calc(-1.6rem + 0.45rem + 1px);
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 0 3px var(--agua);
    translate: -50% -50%;
  }
}

/* --- 08 · nosotros --- */
.nosotros { display: grid; gap: 2.5rem; }
.nosotros__cita { margin-top: 1.25rem; padding-left: 1.1rem; border-left: 3px solid var(--verde); font: italic 400 1.35rem/1.4 var(--f-titulo); color: var(--tinta); }
.nosotros__aliados { margin-top: 1.25rem; color: var(--tinta-suave); }
.nosotros__aliados strong { color: var(--tinta); }
.nosotros__sub { margin: 1.75rem 0 0.75rem; font: 600 1.1rem/1.2 var(--f-titulo); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { padding: 0.3rem 0.8rem; border: 1px solid var(--linea); border-radius: 999px; background: #fff; font-size: 0.95rem; }

.consejo { align-self: start; padding: 1.5rem; border-radius: var(--radio); background: var(--agua); }
.consejo__titulo { font: 600 1.2rem/1.25 var(--f-titulo); }
.consejo__titulo span { display: block; margin-top: 0.15rem; font: 500 0.85rem/1.2 var(--f-titulo); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-suave); }
.consejo ul { margin-top: 1rem; }
.consejo li { display: grid; gap: 0.05rem; padding: 0.7rem 0; border-top: 1px solid var(--agua-2); }
.consejo b { font: 500 1.05rem/1.3 var(--f-titulo); }
.consejo li span { font-size: 0.92rem; color: var(--tinta-suave); }

/* --- 09 · únete --- */
.unete {
  position: relative;
  overflow: clip;
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--verde-hondo), var(--verde-osc) 55%, var(--verde));
  color: #fff;
}
.unete__marca { position: absolute; width: 34rem; height: 22rem; left: -12rem; bottom: -7rem; color: #fff; opacity: 0.07; pointer-events: none; }
.unete__grilla { position: relative; display: grid; gap: 2.25rem; }
.unete__titulo { margin-top: 0.7rem; font: 600 clamp(2.1rem, 1.5rem + 2.6vw, 3rem)/1.05 var(--f-titulo); }
.unete__texto { margin-top: 1rem; max-width: 32rem; font-size: 1.12rem; color: rgb(255 255 255 / 0.88); }
.unete__mail { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 0.75rem; font-weight: 600; text-decoration: none; }
.unete__mail:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.unete :focus-visible { outline-color: #fff; }
.membresias { display: grid; gap: 0.6rem; align-content: start; }
.membresias a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.07);
  text-decoration: none;
  transition: background-color var(--u-corta) var(--u-ease), border-color var(--u-corta) var(--u-ease);
}
.membresias a:hover { background: rgb(255 255 255 / 0.15); border-color: rgb(255 255 255 / 0.5); }
.membresias b { display: block; font: 600 1.12rem/1.2 var(--f-titulo); }
.membresias small { display: block; margin-top: 0.15rem; font-size: 0.92rem; color: rgb(255 255 255 / 0.78); }
.membresias .ico { transition: translate var(--u-corta) var(--u-ease); }
.membresias a:hover .ico { translate: 3px 0; }

/* --- 10 · contacto --- */
.contacto { display: grid; gap: 2.25rem; }
.contacto__datos { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.contacto__datos li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contacto__datos .ico { margin-top: 0.15rem; color: var(--verde); }
.contacto__datos a { font-weight: 600; text-decoration-color: rgb(0 119 139 / 0.35); text-underline-offset: 0.2em; }
.contacto__sub { margin: 1.75rem 0 0.75rem; font: 600 0.8rem/1 var(--f-titulo); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-suave); }
.contacto__agendas { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mapa { overflow: hidden; min-height: 20rem; border-radius: var(--radio); background: var(--agua); box-shadow: inset 0 0 0 1px var(--linea); }
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }

/* ==========================================================================
   11 · PIE
   ========================================================================== */
.pie { padding: 3.5rem 0 calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--noche); color: #cfe0e2; }
.pie__grilla { display: grid; gap: 2.25rem; }
.pie__marca { display: grid; justify-items: start; gap: 0.8rem; color: #fff; }
.pie__simbolo { width: 6rem; height: 3.9rem; --m-verde: var(--verde-claro); }
.pie__nombre { width: 11rem; height: 1.35rem; }
.pie__lema { width: 13rem; height: 1.3rem; --m-lema: rgb(255 255 255 / 0.75); }
.pie__titulo { font: 600 0.8rem/1 var(--f-titulo); letter-spacing: 0.16em; text-transform: uppercase; color: var(--verde-claro); }
.pie__col ul { display: grid; gap: 0.2rem; margin-top: 0.8rem; font-size: 1rem; }
.pie__col a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; transition: color var(--u-corta) var(--u-ease); }
.pie__col a:hover { color: #fff; }
.pie :focus-visible { outline-color: #fff; }
.pie__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.85rem; color: #a9bfc2; }
.pie__legal a { text-underline-offset: 0.2em; }

/* --- firma MDStudio (patrón firma-mdstudio, pie oscuro) --- */
.firma { display: flex; justify-content: center; margin-top: 1.75rem; }
.firma__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  text-decoration: none;
  text-align: center;
}
.firma__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.firma__volanta {
  font-family: var(--f-texto);
  font-size: 0.5625rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8f98;
  transition: color var(--u-corta) var(--u-ease);
}
.firma__marca {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #6b7280;
  transition: color var(--u-corta) var(--u-ease);
}
.firma__md { color: #a3a9b3; transition: color var(--u-corta) var(--u-ease); }
.firma__link:hover .firma__volanta, .firma__link:focus-visible .firma__volanta { color: #d1d5db; }
.firma__link:hover .firma__marca, .firma__link:focus-visible .firma__marca { color: #d1d5db; }
.firma__link:hover .firma__md, .firma__link:focus-visible .firma__md { color: #fff; }

/* ==========================================================================
   INTRO DEL LOGO (sólo con html.con-intro, que pone el script del <head>)
   Sobre un velo blanco: la espiral gira y se abre, la bandera se sella, caen
   las cuatro gotas y "AMASFAC" sube letra por letra. Después vuela a la
   cabecera (el vuelo es WAAPI, en el script de index.html) y el velo se va.
   ========================================================================== */
.intro { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.intro[hidden] { display: none; }
.intro::before { content: ''; position: absolute; inset: 0; background: var(--papel); }
.intro .lg { position: fixed; left: 0; top: 0; width: 1px; }
html.con-intro .cabecera .lg { opacity: 0; }  /* el vuelo lo destapa en el mismo píxel */

@media (prefers-reduced-motion: no-preference) {
  .intro .lg-espiral {
    transform-box: fill-box;
    transform-origin: 41% 66%;
    animation: in-espiral 1.25s var(--ease-cine) 0.1s both;
  }
  .intro .lg-bandera {
    transform-box: fill-box;
    transform-origin: 80% 60%;
    animation: in-sello 0.55s var(--u-ease) 0.7s both;
  }
  .intro .lg-gota {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: in-gota 0.62s cubic-bezier(0.34, 0.05, 0.5, 1) calc(0.95s + var(--i) * 0.11s) both;
  }
  .intro .lg-l {
    transform-box: fill-box;
    animation: in-letra 0.7s var(--ease-cine) calc(1.15s + var(--i) * 0.06s) both;
  }

  /* Mientras tanto, la portada espera y entra cuando el logo ya pasó por encima. */
  html.con-intro .u-entra { animation: in-entra 1s var(--ease-cine) 2.55s both; }
  html.con-intro .u-entra--2 { animation-delay: 2.65s; }
  html.con-intro .u-entra--3 { animation-delay: 2.75s; }
  html.con-intro .u-entra--celu { animation: in-celu 1.2s var(--ease-cine) 2.7s both; }
  html.con-intro :is(.menu, .cabecera__soy, .cabecera__unete, .cabecera__mas) { animation: in-aparece 0.6s var(--u-ease) 2.8s both; }
}
@keyframes in-espiral {
  from { rotate: -150deg; scale: 0.3; opacity: 0; }
  35%  { opacity: 1; }
  to   { rotate: 0deg; scale: 1; opacity: 1; }
}
@keyframes in-sello {
  0%   { scale: 1.7; opacity: 0; }
  55%  { scale: 0.92; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}
/* La gota cae, se aplasta un poco al llegar y se acomoda. */
@keyframes in-gota {
  0%   { translate: 0 -180%; scale: 0.9 1.15; opacity: 0; }
  25%  { opacity: 1; }
  62%  { translate: 0 0; scale: 0.92 1.08; }
  78%  { translate: 0 4%; scale: 1.12 0.86; }
  100% { translate: 0 0; scale: 1 1; opacity: 1; }
}
@keyframes in-letra {
  from { translate: 0 70%; opacity: 0; }
  to   { translate: 0 0; opacity: 1; }
}
/* La única opacidad sobre contenido: la espera de la intro (como en Centauro). */
@keyframes in-entra {
  from { translate: 0 1.75rem; opacity: 0; }
  to   { translate: 0 0; opacity: 1; }
}
@keyframes in-celu {
  from { translate: 0 3.5rem; rotate: 4deg; opacity: 0; }
  to   { translate: 0 0; rotate: 0deg; opacity: 1; }
}
/* Baja (0,7 s), se queda unos 5 s y vuelve a subir: después se ve la credencial entera. */
@keyframes in-aviso {
  0%   { translate: 0 -150%; scale: 0.94; opacity: 0; animation-timing-function: var(--ease-step); }
  10%  { translate: 0 0; scale: 1; opacity: 1; }
  86%  { translate: 0 0; scale: 1; opacity: 1; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
  100% { translate: 0 -150%; scale: 0.94; opacity: 0; }
}
@keyframes in-aparece { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   MOVIMIENTO DE CONTENIDO
   Sólo `translate`: nunca opacity sobre contenido (si algo no scrollea —
   Google, una captura, el modo lectura— el texto tiene que estar).
   Lo que va con el scroll sólo corre donde hay soporte (Chrome/Edge 115+,
   Safari 26+); en el resto se ve todo en su lugar, quieto.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .u-entra { animation: u-entra var(--u-larga) var(--u-ease) both; }
  .u-entra--2 { animation-delay: 0.1s; }
  .u-entra--3 { animation-delay: 0.2s; }
  .u-entra--celu { animation: in-celu 1.2s var(--ease-cine) 0.2s both; }
  /* El aviso cae cuando el celu está a la vista (lo marca app.js): en el
     celular la portada lo deja abajo del pliegue y se perdería. */
  html.js .aviso--portada { opacity: 0; }
  html.js .en-vista .aviso--portada { animation: in-aviso 7s linear var(--aviso-espera, 0.5s) both; }

  /* Los íconos de Beneficios se dibujan en trazo cuando la tarjeta entra (la
     clase la pone app.js). El trazo de cada pieza mide menos de 80 unidades
     del viewBox de 24: con 80 arrancan juntas y las cortas terminan antes. */
  .beneficio__ico .ico { stroke-dasharray: 80; }
  html.js .beneficio:not(.en-vista) .beneficio__ico .ico { stroke-dashoffset: 80; }
  html.js .beneficio:not(.en-vista) .beneficio__ico { scale: 0.6; }
  .beneficio.en-vista .beneficio__ico { animation: b-baldosa 0.7s var(--ease-step) calc(var(--col, 0) * 0.12s) both; }
  .beneficio.en-vista .beneficio__ico .ico { animation: b-trazo 1.2s cubic-bezier(0.45, 0, 0.2, 1) calc(0.12s + var(--col, 0) * 0.12s) both; }

  /* El láser del lector de QR barre de arriba abajo. */
  .validacion__laser { animation: v-laser 2.4s ease-in-out infinite alternate; }

  /* El mapa se prende por distrito, de noroeste a sureste, cuando se ve (la
     clase la pone app.js; sin JS se ve entero y quieto). Cada ciudad aparece
     con un pulso y las líneas de su distrito se dibujan. */
  html.js .pais:not(.en-vista) .pais__ciudad { scale: 0; }
  html.js .pais:not(.en-vista) .pais__lazo { stroke-dashoffset: 1; }
  .pais.en-vista .pais__ciudad { animation: m-punto 0.7s var(--ease-step) calc(0.2s + var(--d) * 0.17s + var(--c) * 0.05s) both; }
  .pais.en-vista .pais__onda { animation: m-pulso 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) calc(0.2s + var(--d) * 0.17s + var(--c) * 0.05s) both; }
  .pais.en-vista .pais__lazo { animation: m-lazo 0.8s var(--u-ease) calc(0.3s + var(--d) * 0.17s) both; }
  /* La que se busca late (va después: le gana al pulso de entrada). */
  .pais .pais__punto.es-match .pais__onda { animation: m-late 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) infinite; }
  .pais__etiqueta:not([hidden]) { animation: m-etiqueta 0.45s var(--u-ease) both; }

  @supports (animation-timeline: view()) {
    /* Los bloques suben una vez al entrar, escalonados por columna. */
    .u-sube {
      animation: u-sube linear both;
      animation-timing-function: var(--u-ease);
      animation-timeline: view();
      animation-range: cover calc(var(--col, 0) * 4%) cover calc(30% + var(--col, 0) * 4%);
    }

    /* La portada en capas: la espiral (lejos) baja más lento que la página y
       gira; la bandera (cerca) sube más rápido; las gotas se juntan, se
       sueltan una tras otra y caen con gravedad, estirándose. */
    .pf--espiral {
      transform-origin: 62% 41%;
      animation: pf-espiral linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100vh;
    }
    .pf--bandera {
      transform-origin: 9% 36%;
      animation: pf-bandera linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100vh;
    }
    .pf--gota {
      transform-origin: var(--ox) var(--oy);
      animation: pf-gota linear both;
      animation-timeline: scroll(root block);
      animation-range: calc(3vh + var(--i) * 6vh) calc(58vh + var(--i) * 6vh);
    }

    /* El celular de la portada sube un poco más lento que la página. */
    .portada__celu { view-timeline: --celu block; }
    .portada__celu .celu {
      animation: u-deriva linear both;
      animation-timeline: --celu;
      animation-range: cover 40% cover 100%;
    }

    /* Los números cuentan hasta su valor cuando entran. */
    .cifra__n {
      animation: u-cuenta linear both;
      animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }

    /* La espiral de Únete también gira con su sección. */
    .unete { view-timeline: --unete block; }
    .unete__marca {
      animation: u-espiral linear both;
      animation-timeline: --unete;
      animation-range: cover 0% cover 100%;
    }

    /* La línea de la agenda: la punta va siempre por la mitad de la pantalla
       (empieza cuando su arriba llega ahí y termina cuando llega su abajo), y
       cada punto se llena cuando la línea lo alcanza. */
    @media (max-width: 639.98px) {
      .agenda::after {
        animation: a-linea linear both;
        animation-timeline: --agenda;
        animation-range: cover calc(50vh + 1.75rem) cover calc(100% - 50vh - 1.75rem);
      }
      .evento::before {
        animation: a-punto linear both;
        animation-timeline: --evento;
        animation-range: cover 46% cover 54%;
      }
    }

    /* Filete de progreso de la página, debajo de la cabecera. */
    .cabecera::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      background: var(--verde);
      transform-origin: left;
      animation: u-progreso linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes u-entra { from { translate: 0 1.25rem; } to { translate: 0 0; } }
@keyframes u-sube { from { translate: 0 var(--sube-y, 2rem); } to { translate: 0 0; } }
@keyframes u-espiral { from { rotate: 0deg; } to { rotate: 40deg; } }
@keyframes pf-espiral { to { translate: 0 26%; rotate: 34deg; } }
@keyframes pf-bandera { to { translate: -7% -24%; rotate: -16deg; } }
@keyframes pf-gota {
  0%   { translate: 0 0; scale: 1 1; animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
  14%  { translate: 0 -2%; scale: 1.08 0.9; animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.55); }
  70%  { opacity: var(--o); }
  100% { translate: 0 165%; scale: 0.84 1.32; opacity: 0; }
}
@keyframes u-deriva { from { translate: 0 0; } to { translate: 0 -2.5rem; } }
@keyframes u-cuenta { from { --n: var(--desde, 0); } to { --n: var(--hasta); } }
@keyframes u-progreso { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes a-linea { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes a-punto {
  from { scale: 0.75; background: #fff; box-shadow: 0 0 0 3px var(--agua), inset 0 0 0 2px rgb(0 119 139 / 0.4); }
  to   { scale: 1; background: var(--verde); box-shadow: 0 0 0 3px var(--agua), inset 0 0 0 2px var(--verde); }
}
@keyframes b-baldosa { from { scale: 0.6; } }
@keyframes b-trazo { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes v-laser { from { top: 1rem; } to { top: calc(100% - 1rem); } }
@keyframes m-punto { from { scale: 0; } }
@keyframes m-pulso { from { scale: 0.7; opacity: 0.5; } to { scale: 2.8; opacity: 0; } }
@keyframes m-lazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes m-late { from { scale: 1; opacity: 0.55; } to { scale: 3.6; opacity: 0; } }
@keyframes m-etiqueta { from { translate: var(--tx) calc(-100% - 0.35rem); scale: 0.92; } }

/* ==========================================================================
   PANTALLAS MÁS GRANDES
   ========================================================================== */
@media (min-width: 400px) {
  .celu { width: 17.25rem; }
}
@media (min-width: 640px) {
  .cabecera__soy { display: inline-flex; }
  .cifras__lista { grid-template-columns: repeat(4, 1fr); padding: 1.75rem 1.5rem; }
  .beneficios { grid-template-columns: 1fr 1fr; }
  .cita { grid-template-columns: 1fr auto; align-items: center; }
  .agenda { grid-template-columns: 1fr 1fr; }
  .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .portada { padding: 4.5rem 0 7rem; }
  .portada__grilla { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .portada__celu { padding-top: 0; }
  .celu { width: 18.5rem; }
  .credencial-bloque { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .distritos { grid-template-columns: repeat(3, 1fr); }
  .secciones__arriba { grid-template-columns: 1fr 1.15fr; align-items: center; margin-bottom: 2.25rem; }
  .pais { margin: 0; }
  .agenda { grid-template-columns: repeat(3, 1fr); }
  .nosotros { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .unete__grilla { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .contacto { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 3rem; }
  .seccion { padding: 6rem 0; }
  .unete { padding: 6rem 0; }
}
@media (min-width: 1080px) {
  .menu { display: flex; gap: 1.4rem; margin-right: 0.75rem; }
  .cabecera__mas { display: none; }
}
