/* ==========================================================================
   ASIA CLAVERIANA — Asociación de Exalumnos Colegio San Pedro Claver
   Sistema de diseño · Paleta azul institucional + dorado
   ========================================================================== */

:root {
  /* Colores corporativos */
  --azul-900: #071f45;
  --azul-800: #0b2a5b;
  --azul-700: #123a7a;
  --azul-600: #1a4b9c;
  --azul-500: #2360c0;
  --azul-100: #e7eefb;
  --dorado-600: #b8901f;
  --dorado-500: #d4af37;
  --dorado-400: #e6c65b;
  --blanco: #ffffff;
  --gris-50: #f6f8fc;
  --gris-100: #eef1f6;
  --gris-300: #cdd4e0;
  --gris-500: #7c869a;
  --gris-700: #3c4557;
  --tinta: #101828;

  /* Tipografía */
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(11, 42, 91, 0.08);
  --shadow-md: 0 14px 40px rgba(11, 42, 91, 0.14);
  --shadow-lg: 0 26px 60px rgba(7, 31, 69, 0.28);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 112px;
}

/* ----------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tint { background: var(--gris-50); }
.section--navy {
  background: linear-gradient(160deg, var(--azul-800), var(--azul-900));
  color: var(--blanco);
}

/* --------------------------------------------------------- Encabezados -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dorado-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 32px; height: 2px; background: var(--dorado-500); display: inline-block;
}
.section--navy .eyebrow { color: var(--dorado-400); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--azul-800); margin-bottom: 1rem;
}
.section--navy .section-title { color: #fff; }
.section-lead {
  max-width: 640px; color: var(--gris-700); font-size: 1.05rem;
}
.section--navy .section-lead { color: rgba(255,255,255,.82); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------- Botones -- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 700;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn svg { width: 18px; height: 18px; }
.btn--gold {
  background: linear-gradient(120deg, var(--dorado-500), var(--dorado-400));
  color: var(--azul-900); box-shadow: 0 10px 26px rgba(212, 175, 55, .35);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(212, 175, 55, .45); }
.btn--primary { background: var(--azul-600); color: #fff; }
.btn--primary:hover { background: var(--azul-700); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--azul-800); border-color: #fff; }
.btn--outline { background: transparent; color: var(--azul-700); border-color: var(--azul-600); }
.btn--outline:hover { background: var(--azul-600); color: #fff; }

/* ---------------------------------------------------------------- Header -- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header--solid {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); height: 104px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand__logo {
  width: 96px; height: 96px; box-sizing: border-box; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--azul-700), var(--azul-500));
  color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.25rem;
  border: 2px solid var(--dorado-500); flex-shrink: 0;
}
.brand__logo--img { background: #fff; padding: 4px; }
.brand__logo--img img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { line-height: 1.12; display: flex; flex-direction: column; align-items: flex-end; }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 1.7rem; color: #fff; white-space: nowrap; }
.brand__sub { margin-top: .25rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; }
.site-header--solid .brand__name { color: var(--azul-800); }
.site-header--solid .brand__sub { color: var(--gris-500); }

.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav__list { display: flex; gap: 1.05rem; }
.nav__link {
  position: relative; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.9);
  padding: .3rem 0; transition: color var(--transition); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--dorado-500); transition: width var(--transition);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--dorado-400); }
.site-header--solid .nav__link { color: var(--gris-700); }
.site-header--solid .nav__link:hover,
.site-header--solid .nav__link[aria-current="page"] { color: var(--azul-700); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.nav__cta { padding: .6rem 1.1rem; font-size: .85rem; white-space: nowrap; }

.nav__link--donar { color: var(--dorado-600); font-weight: 700; }
.nav__link--donar::after { background: var(--dorado-500); }
.nav__link--donar:hover { color: var(--dorado-600); }
.site-header--solid .nav__link--donar { color: var(--dorado-600); }
@media (max-width: 860px) { .nav__link--donar { color: var(--dorado-400); } }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: var(--transition);
}
.site-header--solid .nav-toggle span { background: var(--azul-800); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--azul-800), var(--azul-900));
}
.hero__slides { position: absolute; inset: 0; z-index: 1; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  background-size: cover; background-position: center;
  background-color: var(--azul-800);
  background-image:
    linear-gradient(135deg, rgba(11,42,91,.6), rgba(7,31,69,.6)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,31,69,.92) 0%, rgba(11,42,91,.78) 45%, rgba(18,58,122,.55) 100%);
}
.hero__content { position: relative; z-index: 3; max-width: 720px; padding-top: var(--header-h); }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem;
  border: 1px solid rgba(212,175,55,.6); border-radius: 999px; margin-bottom: 1.6rem;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado-400);
  background: rgba(212,175,55,.08);
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 1.3rem; }
.hero__title span { color: var(--dorado-400); }
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__dots { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: .7rem; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; transition: var(--transition); }
.hero__dot.is-active { background: var(--dorado-500); border-color: var(--dorado-500); transform: scale(1.15); }

/* -------------------------------------------------------------- Stats -- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat__num { font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--dorado-400); line-height: 1; }
.stat__label { margin-top: .6rem; font-size: .9rem; letter-spacing: .04em; color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------- Cards -- */
.grid { display: grid; gap: 1.8rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; border: 1px solid var(--gris-100);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--azul-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--dorado-500); color: var(--azul-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__date { font-size: .8rem; color: var(--gris-500); font-weight: 600; }
.card__title { font-size: 1.25rem; color: var(--azul-800); }
.card__text { color: var(--gris-700); font-size: .95rem; }
.card__link {
  margin-top: auto; font-weight: 700; color: var(--azul-600); display: inline-flex; align-items: center; gap: .4rem;
}
.card__link svg { width: 16px; transition: transform var(--transition); }
.card__link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------- Noticia destacada -- */
.news-feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  background: linear-gradient(140deg, var(--azul-800), var(--azul-900));
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 3rem; border: 1px solid rgba(212,175,55,.25);
}
.news-feature__media { position: relative; min-height: 320px; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__body { padding: clamp(1.6rem, 3.5vw, 3rem); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.news-feature__tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--dorado-500); color: var(--azul-900); font-weight: 700; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.news-feature__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: #fff; margin-bottom: .8rem; }
.news-feature__title span { color: var(--dorado-400); }
.news-feature__text { color: rgba(255,255,255,.85); margin-bottom: 1.4rem; }
.news-feature__meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.6rem; }
.news-feature__chip {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 600;
}
.news-feature__chip svg { width: 16px; color: var(--dorado-400); }
.news-feature__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 780px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature__media { min-height: 240px; }
}

/* ------------------------------------------------- Feature / Valores -- */
.feature { display: flex; gap: 1.2rem; padding: 1.8rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gris-100); transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--azul-100); color: var(--azul-700);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; color: var(--azul-800); margin-bottom: .35rem; }
.feature p { color: var(--gris-700); font-size: .95rem; }

/* --------------------------------------------------- Quiénes somos -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .placeholder { height: 100%; }
.badge-float {
  position: absolute; bottom: 18px; right: 18px; background: #fff; border-radius: 14px;
  padding: 1rem 1.3rem; box-shadow: var(--shadow-md); text-align: center;
}
.badge-float strong { display: block; font-family: var(--font-title); font-size: 1.8rem; color: var(--azul-700); }
.badge-float span { font-size: .78rem; color: var(--gris-500); letter-spacing: .05em; }

.pill-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.pill-list li { display: flex; gap: .8rem; align-items: flex-start; }
.pill-list li::before {
  content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--azul-100); color: var(--azul-700); display: grid; place-items: center;
  font-weight: 800; font-size: .85rem;
}

/* Tabs (misión/visión/historia) */
.tabs { margin-top: 1.5rem; }
.tabs__nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab-btn {
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--gris-300);
  background: #fff; font-weight: 700; font-size: .9rem; color: var(--gris-700); cursor: pointer;
  transition: var(--transition);
}
.tab-btn.is-active { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }
.tab-panel { display: none; animation: fadeUp .5s ease; }
.tab-panel.is-active { display: block; }

/* ------------------------------------------------------------- Timeline -- */
.timeline { position: relative; margin-top: 2rem; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: rgba(212,175,55,.4); }
.timeline__item { position: relative; padding: 0 0 2.2rem 3rem; }
.timeline__item::before {
  content: ""; position: absolute; left: 8px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--dorado-500); border: 3px solid var(--azul-900); box-shadow: 0 0 0 4px rgba(212,175,55,.2);
}
.timeline__year { font-family: var(--font-title); font-size: 1.4rem; color: var(--dorado-400); font-weight: 800; }
.timeline__text { color: rgba(255,255,255,.82); margin-top: .3rem; }

/* -------------------------------------------------------- Distinguidos -- */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.honor {
  background: #fff; border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--dorado-500); font-weight: 600; color: var(--azul-800); font-size: .95rem;
  transition: var(--transition); display: flex; align-items: center; gap: .7rem;
}
.honor:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.honor__medal { color: var(--dorado-600); flex-shrink: 0; }

/* --------------------------------------------------------------- Galería -- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4; box-shadow: var(--shadow-sm); background: var(--azul-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; color: #fff; background: linear-gradient(transparent, rgba(7,31,69,.85));
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay strong { font-family: var(--font-title); font-size: 1.3rem; }
.gallery-item__overlay span { font-size: .85rem; color: var(--dorado-400); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(7,17,38,.94);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; animation: fadeIn .3s ease; }
.lightbox__inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox__stage {
  aspect-ratio: 16/10; border-radius: var(--radius); background: linear-gradient(135deg, var(--azul-700), var(--azul-900));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { color: #fff; margin-top: 1rem; font-family: var(--font-title); font-size: 1.3rem; }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.8rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: var(--transition); }
.lightbox__nav:hover { background: var(--dorado-500); color: var(--azul-900); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ------------------------------------------------ Anécdotas (timeline) -- */
.atl { position: relative; max-width: 860px; margin: 2.5rem auto 0; }
.atl::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: rgba(18,58,122,.15); }
.atl__item { position: relative; padding: 0 0 1.6rem 92px; }
.atl__year {
  position: absolute; left: 0; top: 0; width: 64px; text-align: center;
  background: var(--azul-100); color: var(--azul-800); font-family: var(--font-title);
  font-weight: 800; font-size: 1.05rem; border-radius: 12px; padding: 8px 0;
}
.atl__item--featured .atl__year { background: linear-gradient(120deg, var(--dorado-500), var(--dorado-400)); color: var(--azul-900); }
.atl__dot {
  position: absolute; left: 25px; top: 12px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--azul-600); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--azul-100);
}
.atl__item--featured .atl__dot { background: var(--dorado-500); box-shadow: 0 0 0 3px rgba(212,175,55,.28); }
.atl__card {
  background: #fff; border: 1px solid var(--gris-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; cursor: pointer; display: flex; gap: 1.2rem;
  transition: transform var(--transition), box-shadow var(--transition); text-align: left; width: 100%;
}
.atl__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.atl__thumb { width: 108px; height: 108px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--azul-100); }
.atl__content { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.atl__pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; background: var(--dorado-500);
  color: var(--azul-900); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
}
.atl__title { font-size: 1.2rem; color: var(--azul-800); }
.atl__meta { font-size: .85rem; color: var(--gris-500); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.atl__excerpt { color: var(--gris-700); font-size: .95rem; }
.atl__more { color: var(--azul-600); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; }
.atl__more svg { width: 15px; transition: transform var(--transition); }
.atl__card:hover .atl__more svg { transform: translateX(4px); }
.atl-empty { text-align: center; color: var(--gris-500); padding: 2rem; }

@media (max-width: 560px) {
  .atl__item { padding-left: 66px; }
  .atl::before { left: 23px; }
  .atl__year { width: 48px; font-size: .9rem; }
  .atl__dot { left: 17px; }
  .atl__card { flex-direction: column; }
  .atl__thumb { width: 100%; height: 180px; }
}

/* Visor de artículo (modal) */
.amodal { position: fixed; inset: 0; z-index: 220; background: rgba(7,17,38,.92); display: none; justify-content: center; align-items: flex-start; padding: 4vh 1.2rem; overflow-y: auto; }
.amodal.is-open { display: flex; animation: fadeIn .3s ease; }
.amodal__box { background: #fff; max-width: 720px; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.amodal__img { width: 100%; max-height: 360px; object-fit: cover; background: var(--azul-100); display: block; }
.amodal__content { padding: clamp(1.5rem, 4vw, 2.6rem); }
.amodal__year { display: inline-block; background: var(--azul-100); color: var(--azul-800); font-weight: 700; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.amodal__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--azul-800); margin-bottom: .5rem; }
.amodal__meta { color: var(--gris-500); font-weight: 600; margin-bottom: 1.4rem; font-size: .95rem; }
.amodal__body { color: var(--gris-700); line-height: 1.8; }
.amodal__body p { margin-bottom: 1rem; }
.amodal__close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(7,31,69,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.amodal__close:hover { background: var(--dorado-500); color: var(--azul-900); }

/* ----------------------------------------------------------- Donaciones -- */
.donacion {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--gris-100); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 880px; margin: 0 auto;
}
.donacion__qr img { width: 100%; border-radius: var(--radius-sm); display: block; }
.donacion__info h3 { color: var(--azul-800); font-size: 1.4rem; margin-bottom: 1.1rem; }
.donacion__steps { counter-reset: paso; display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.donacion__steps li { position: relative; padding-left: 2.4rem; color: var(--gris-700); }
.donacion__steps li::before {
  counter-increment: paso; content: counter(paso); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--azul-100); color: var(--azul-700);
  font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.donacion__llave { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--azul-100); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.donacion__llave span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-500); font-weight: 700; width: 100%; }
.donacion__llave strong { font-family: var(--font-title); font-size: 1.4rem; color: var(--azul-800); }
.donacion__llave .btn { padding: .5rem 1.1rem; font-size: .85rem; margin-left: auto; }
.donacion__nota { font-size: .88rem; color: var(--gris-500); }
.donacion__nota a { color: var(--azul-600); font-weight: 600; }
@media (max-width: 680px) { .donacion { grid-template-columns: 1fr; } .donacion__qr { max-width: 280px; margin: 0 auto; } }

/* Afiliación: pasos */
.pasos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; max-width: 960px; margin: 0 auto; }
.paso { background: #fff; border: 1px solid var(--gris-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 3vw, 2.2rem); }
.paso__num { width: 44px; height: 44px; border-radius: 50%; background: var(--azul-700); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 1rem; }
.paso h3 { color: var(--azul-800); font-size: 1.3rem; margin-bottom: .4rem; }
.paso__price { display: inline-block; background: var(--dorado-500); color: var(--azul-900); font-weight: 800; padding: .3rem .9rem; border-radius: 999px; margin: .2rem 0 1.2rem; font-size: .95rem; }
.paso__qr { text-align: center; }
.paso__qr img { width: 100%; max-width: 210px; margin: 0 auto; display: block; border-radius: var(--radius-sm); }
@media (max-width: 760px) { .pasos { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- CTA -- */
.cta-band {
  background: linear-gradient(120deg, var(--azul-800), var(--azul-600));
  border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.35), transparent 70%);
}
.cta-band::before { width: 320px; height: 320px; top: -120px; right: -80px; }
.cta-band::after { width: 260px; height: 260px; bottom: -120px; left: -60px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; color: rgba(255,255,255,.9); }

/* ------------------------------------------------------------ Registro -- */
.form-embed {
  background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--gris-100);
}
.form-embed iframe { width: 100%; border: 0; border-radius: var(--radius-sm); min-height: 900px; }
.embed-placeholder {
  min-height: 460px; border: 2px dashed var(--gris-300); border-radius: var(--radius-sm);
  display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--gris-500);
}
.embed-placeholder svg { width: 54px; height: 54px; color: var(--azul-500); margin-bottom: 1rem; }

.info-card { background: var(--azul-100); border-radius: var(--radius); padding: 2rem; }
.info-card h3 { color: var(--azul-800); margin-bottom: 1rem; }
.info-card ul { display: grid; gap: 1rem; }
.info-card li { display: flex; gap: .8rem; align-items: flex-start; color: var(--gris-700); }
.info-card svg { width: 22px; flex-shrink: 0; color: var(--azul-600); }

/* --------------------------------------------------------------- Footer -- */
.site-footer { background: var(--azul-900); color: rgba(255,255,255,.75); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .05em; margin-bottom: 1.2rem; text-transform: uppercase; }
.site-footer a:hover { color: var(--dorado-400); }
.footer-links { display: grid; gap: .7rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; align-items: flex-start; }
.footer-contact svg { width: 18px; flex-shrink: 0; color: var(--dorado-500); margin-top: 3px; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: var(--transition); }
.footer-social a:hover { background: var(--dorado-500); color: var(--azul-900); transform: translateY(-3px); }
.footer-social svg { width: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem 0; text-align: center; font-size: .85rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }

/* --------------------------------------------------------- Page hero -- */
.page-hero {
  padding: calc(var(--header-h) + 1.15rem) 0 1.8rem; color: #fff; text-align: center;
  background: linear-gradient(150deg, var(--azul-800), var(--azul-900));
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.25), transparent 70%);
  top: -150px; right: -100px;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .8rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--dorado-400); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------- Image placeholder -- */
.placeholder {
  width: 100%; aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, rgba(11,42,91,.92), rgba(18,58,122,.85)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: rgba(255,255,255,.6);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 1rem;
}
.placeholder svg { width: 40px; height: 40px; opacity: .5; margin-bottom: .5rem; }
.placeholder--tall { aspect-ratio: 3/4; }

/* ------------------------------------------------------ Animaciones -- */
[data-reveal] { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal][data-delay="3"] { transition-delay: .36s; }
[data-reveal][data-delay="4"] { transition-delay: .48s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%); z-index: 4; color: rgba(255,255,255,.7); animation: float 2.4s ease-in-out infinite; }

/* -------------------------------------------------------- Responsive -- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    background: linear-gradient(160deg, var(--azul-800), var(--azul-900));
    flex-direction: column; justify-content: center; gap: 2rem; padding: 3rem;
    transform: translateX(100%); transition: transform var(--transition); box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 1.4rem; text-align: center; }
  .nav__link { color: #fff; font-size: 1.1rem; }
  .site-header--solid .nav__link { color: #fff; }
  .nav-toggle { display: flex; }
  .nav__cta { font-size: 1rem; }
}
@media (max-width: 620px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
/* Header / logo responsivo para móvil */
@media (max-width: 720px) {
  :root { --header-h: 84px; }
  .site-header--solid { height: 76px; }
  .brand { gap: .55rem; min-width: 0; }
  .brand__logo { width: 58px; height: 58px; border-radius: 12px; }
  .brand__name { font-size: 1.2rem; }
  .brand__sub { margin-top: .12rem; font-size: .58rem; letter-spacing: .08em; }
}
@media (max-width: 380px) {
  .brand__logo { width: 50px; height: 50px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
