/* ============================================================
   Colegio José Martí — Hoja de Estilos
   Torreón, Coahuila
   ============================================================ */

/* ── Variables ── */
:root {
  --gold: #B8962E;
  --gold-light: #D4AF5A;
  --gold-pale: #F5EDD6;
  --purple: #4A1D7A;
  --purple-dark: #2D0F4E;
  --purple-mid: #6B3FA0;
  --navy: #1A1A3E;
  --white: #FDFCF8;
  --off-white: #F8F5EE;
  --text: #1C1C2E;
  --text-light: #5A5A7A;
  --wa: #25D366;
  --wa-dark: #128C7E;
}

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── Secciones compartidas ── */
section { padding: 100px 5%; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.sec-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--purple-dark); line-height: 1.15; margin-bottom: 1.5rem; }
.sec-title em { font-style: italic; color: var(--purple-mid); }
.sec-title-w { color: var(--white); }
.sec-body { font-size: 1rem; color: var(--text-light); line-height: 1.8; max-width: 620px; }
.divider { width: 48px; height: 3px; background: var(--gold); margin: 1.5rem 0; }

/* ── Botones ── */
.btn-primary {
  background: var(--gold); color: var(--navy); padding: 14px 32px;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: none; cursor: pointer; border-radius: 2px; text-decoration: none;
  display: inline-block; transition: all 0.2s; box-shadow: 0 4px 20px rgba(184,150,46,0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--wa); color: white; padding: 14px 24px;
  font-weight: 600; font-size: 0.85rem; border-radius: 2px;
  text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn-wa-sm {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: white; padding: 10px 20px;
  border-radius: 2px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.btn-wa-sm:hover { background: var(--wa-dark); transform: translateY(-1px); }

.btn-wa-go {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: white; padding: 10px 20px;
  border-radius: 2px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.btn-wa-go:hover { background: var(--wa-dark); }

/* ── Animaciones ── */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.1); }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50%       { transform: translateY(-50%) translateY(-18px); }
}

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(32px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,26,62,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,150,46,0.3);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 48px; width: 48px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(184,150,46,0.4)); }
.nav-logo-text { font-family: 'Playfair Display', serif; color: var(--gold-light); font-size: 1.1rem; line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.5); font-family: 'DM Sans', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-wa {
  display: flex !important; align-items: center; gap: 7px;
  background: var(--wa) !important; color: white !important;
  padding: 8px 14px !important; border-radius: 2px; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: 0.03em !important; transition: background 0.2s !important;
}
.nav-wa:hover { background: var(--wa-dark) !important; color: white !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--gold-light); display: block; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--wa); color: white; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45); text-decoration: none;
  transition: all 0.25s; animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.6); animation: none; }
.wa-tooltip {
  position: absolute; right: 70px; bottom: 12px;
  background: rgba(0,0,0,0.75); color: white; font-size: 0.72rem;
  padding: 5px 12px; border-radius: 100px; white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translateX(6px); transition: all 0.2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--navy) 40%, #0D0D25 100%);
  display: flex; align-items: center; padding: 120px 5% 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(184,150,46,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(107,63,160,0.15) 0%, transparent 60%);
}
.hero-lines {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(184,150,46,0.03) 40px, rgba(184,150,46,0.03) 41px);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(184,150,46,0.4); padding: 6px 16px; border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 2rem; background: rgba(184,150,46,0.07);
}
.hero-badge::before { content: '★'; font-size: 0.6rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7vw, 5.5rem); color: var(--white); line-height: 1.05; font-weight: 900; margin-bottom: 1rem; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-slogan { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: rgba(255,255,255,0.6); font-style: italic; font-weight: 300; margin-bottom: 2.5rem; }
.hero-slogan strong { color: var(--gold-light); font-weight: 600; }
.hero-desc { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.8; max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-img {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: clamp(220px, 28vw, 380px); opacity: 0.85;
  filter: drop-shadow(0 0 60px rgba(184,150,46,0.25));
  animation: float 6s ease-in-out infinite;
}
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold-light); display: block; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* ============================================================
   NOSOTROS
   ============================================================ */
#nosotros { background: var(--off-white); }
.nos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nos-card {
  background: white; border-radius: 4px; padding: 48px;
  box-shadow: 0 4px 40px rgba(74,29,122,0.08);
  border-left: 4px solid var(--gold); position: relative;
}
.nos-card::before {
  content: '"'; font-family: 'Playfair Display', serif; font-size: 8rem;
  color: var(--gold-pale); position: absolute; top: -20px; left: 24px;
  line-height: 1; pointer-events: none;
}
.nos-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  color: var(--purple-dark); line-height: 1.7; font-style: italic;
  font-weight: 300; position: relative; z-index: 1;
}
.values-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  width: 40px; height: 40px; background: var(--gold-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-top: 2px;
}
.value-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--purple-dark); margin-bottom: 4px; }
.value-item p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.partners-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1rem; font-weight: 600; }
.partners-logos { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.partner-box {
  background: white; border: 1px solid rgba(184,150,46,0.2); border-radius: 6px;
  padding: 10px 18px; display: flex; align-items: center; justify-content: center;
  height: 68px; transition: box-shadow 0.2s;
}
.partner-box:hover { box-shadow: 0 4px 16px rgba(74,29,122,0.1); }
.partner-box img { max-height: 48px; max-width: 150px; object-fit: contain; }
.levels-box { margin-top: 2rem; padding: 32px; background: var(--gold-pale); border-radius: 4px; }
.levels-box .lbl { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.level-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.level-tags span { background: var(--purple-dark); color: white; padding: 8px 18px; border-radius: 100px; font-size: 0.8rem; font-weight: 500; }

/* ============================================================
   INCLUSIÓN
   ============================================================ */
#inclusion {
  background: linear-gradient(135deg, #f0ebf8 0%, var(--off-white) 100%);
  padding: 80px 5%; border-top: 1px solid rgba(74,29,122,0.08);
}
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.incl-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.incl-badge {
  background: white; border: 1px solid rgba(74,29,122,0.15); border-radius: 100px;
  padding: 8px 16px; font-size: 0.82rem; color: var(--purple-dark);
  font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.incl-dot { width: 8px; height: 8px; background: var(--purple-mid); border-radius: 50%; flex-shrink: 0; }
.incl-cta { margin-top: 2rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.incl-note { font-size: 0.75rem; color: var(--text-light); font-style: italic; }
.incl-card {
  background: white; border-radius: 8px; padding: 40px;
  border: 1px solid rgba(74,29,122,0.1); box-shadow: 0 4px 30px rgba(74,29,122,0.07);
}
.incl-card .lbl { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.2rem; }
.incl-card blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--purple-dark); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-light); }
.check-icon { width: 32px; height: 32px; background: var(--gold-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   OFERTA EDUCATIVA
   ============================================================ */
#oferta { background: var(--navy); position: relative; overflow: hidden; }
#oferta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 100% 0%, rgba(184,150,46,0.06) 0%, transparent 70%);
}
.oferta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; margin-top: 4rem; }
.ocard { background: rgba(255,255,255,0.04); padding: 48px 36px; border-top: 3px solid transparent; transition: all 0.3s; }
.ocard:hover { background: rgba(255,255,255,0.07); border-top-color: var(--gold); }
.ocard.hl { background: linear-gradient(135deg, rgba(184,150,46,0.12), rgba(107,63,160,0.15)) !important; border-top-color: var(--gold) !important; }
.ocard-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; }
.ocard h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.3rem; margin-bottom: 1rem; }
.ocard p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.ocard ul { list-style: none; margin-top: 1rem; }
.ocard ul li { font-size: 0.82rem; color: rgba(255,255,255,0.55); padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 8px; }
.ocard ul li::before { content: '—'; color: var(--gold); font-size: 0.7rem; }
.hl-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 1rem; }
.ocard-logo { margin-top: 1.2rem; }
.ocard-logo img { max-width: 160px; max-height: 52px; object-fit: contain; opacity: 0.95; }
.ocard-logo-kf img { max-height: 52px; object-fit: contain; opacity: 0.85; filter: none; }

/* ============================================================
   EXALUMNOS
   ============================================================ */
#exalumnos { background: var(--white); }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 0; }
.alumni-card { border: 1px solid rgba(74,29,122,0.1); border-radius: 4px; overflow: hidden; transition: all 0.3s; background: white; }
.alumni-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(74,29,122,0.12); }
.a-photo { position: relative; height: 220px; overflow: hidden; }
.a-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.a-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold-pale), #EDE0C4);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--gold);
}
.a-year {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--purple-dark); color: var(--gold-light);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}
.a-body { padding: 24px; }
.a-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--purple-dark); font-weight: 700; margin-bottom: 4px; }
.a-role { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.a-bio { font-size: 0.83rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   EVENTOS & CALENDARIO
   ============================================================ */
#eventos { background: var(--off-white); }
.ev-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; margin-top: 3rem; align-items: start; }

/* Calendario */
.cal-wrap { position: sticky; top: 100px; }
.cal { background: white; border-radius: 4px; box-shadow: 0 4px 30px rgba(74,29,122,0.08); overflow: hidden; }
.cal-head { background: var(--purple-dark); color: white; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.cal-month { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.cal-nav { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 2px; transition: color 0.2s; }
.cal-nav:hover { color: var(--gold-light); }
.cal-body { padding: 16px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 8px; }
.cal-dow span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); padding: 4px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cday { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border-radius: 50%; cursor: pointer; transition: all 0.15s; color: var(--text); position: relative; }
.cday:hover { background: var(--gold-pale); }
.cday.empty { pointer-events: none; color: rgba(0,0,0,0.15); }
.cday.today { background: var(--gold-pale); font-weight: 700; color: var(--purple-dark); }
.cday.has-event::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.cday.selected { background: var(--purple-dark) !important; color: white !important; }

/* Filtro activo de fecha */
.cal-active-filter {
  display: none; align-items: center; gap: 8px; margin-top: 10px;
  padding: 8px 12px; background: rgba(45,15,78,0.07);
  border-radius: 6px; font-size: 0.78rem; color: var(--purple-dark);
}
.cal-active-filter.visible { display: flex; }
.cal-clear { background: none; border: none; cursor: pointer; color: var(--purple-mid); font-size: 1.1rem; line-height: 1; padding: 0 2px; }

/* Etiquetas de categoría */
.ftags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { padding: 5px 14px; border-radius: 100px; border: 1px solid rgba(74,29,122,0.2); font-size: 0.72rem; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--text-light); background: white; }
.tag.active { background: var(--purple-dark); color: white; border-color: var(--purple-dark); }

/* Botón toggle para móvil */
.cal-toggle-btn {
  display: none; width: 100%; background: var(--purple-dark); color: white;
  border: none; padding: 14px 20px; border-radius: 4px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.05em; cursor: pointer;
  align-items: center; justify-content: space-between;
}
.cal-toggle-btn svg { transition: transform 0.3s; flex-shrink: 0; }
.cal-toggle-btn.open svg { transform: rotate(180deg); }
.cal-collapsible { overflow: hidden; transition: max-height 0.35s ease, opacity 0.3s ease; opacity: 1; }

/* Lista de eventos */
.ev-list { display: flex; flex-direction: column; gap: 2rem; }
.ev-card { background: white; border-radius: 4px; overflow: hidden; display: flex; box-shadow: 0 2px 20px rgba(74,29,122,0.06); transition: all 0.3s; }
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(74,29,122,0.12); }
.ev-date { min-width: 90px; background: var(--purple-dark); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; text-align: center; }
.ev-day { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.ev-mon { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
.ev-body { padding: 24px 28px; flex: 1; }
.ev-cat { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ev-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--purple-dark); margin-bottom: 8px; }
.ev-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; }

/* Fotos de eventos */
.ev-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ev-photo {
  height: 90px; border-radius: 4px; overflow: hidden; background: var(--gold-pale);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--gold); position: relative; transition: all 0.25s;
}
.ev-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ev-photo:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(74,29,122,0.2); }
.ev-photo:hover img { transform: scale(1.08); }
.ev-photo-overlay {
  position: absolute; inset: 0; background: rgba(45,15,78,0.35);
  opacity: 0; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center;
}
.ev-photo:hover .ev-photo-overlay { opacity: 1; }
.ev-photo-overlay svg { width: 28px; height: 28px; fill: white; }

/* Responsive eventos */
@media (max-width: 900px) {
  .ev-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .cal-wrap { position: static; }
  .cal-toggle-btn { display: flex; }
  .cal-collapsible { max-height: 0; opacity: 0; }
  .cal-collapsible.open { max-height: 520px; opacity: 1; }
  .ftags { margin-top: 10px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb {
  position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lb.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; max-width: 92vw; max-height: 88vh; }
.lb img { max-width: 88vw; max-height: 82vh; border-radius: 4px; box-shadow: 0 24px 80px rgba(0,0,0,0.7); display: block; object-fit: contain; }
.lb-close {
  position: absolute; top: -44px; right: 0; color: white; font-size: 1.6rem;
  cursor: pointer; opacity: 0.7; background: rgba(255,255,255,0.1); border: none;
  line-height: 1; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.lb-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lb-caption { position: absolute; bottom: -40px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white; font-size: 1.8rem;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10000;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto { background: var(--purple-dark); position: relative; overflow: hidden; }
#contacto::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(184,150,46,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(107,63,160,0.3) 0%, transparent 60%);
}
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; position: relative; z-index: 1; }
.ct-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ct-item:last-of-type { border-bottom: none; }
.ct-icon { width: 48px; height: 48px; background: rgba(184,150,46,0.15); border: 1px solid rgba(184,150,46,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.ct-item h4 { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.ct-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.ct-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.ct-item a:hover { color: var(--gold-light); }
.wa-block {
  background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.3);
  border-radius: 6px; padding: 20px 24px; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wa-block p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.5; flex: 1; }
.wa-block strong { color: var(--wa); }

/* Formulario */
.ct-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 40px; }
.ft { font-family: 'Playfair Display', serif; color: white; font-size: 1.3rem; margin-bottom: 0.4rem; }
.fs { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 1.5rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1rem; }
.fg label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px; padding: 12px 16px; color: white; font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s; outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); }
.fg select option { background: var(--purple-dark); color: white; }
.fg textarea { resize: vertical; min-height: 85px; }
.f-submit {
  width: 100%; background: var(--wa); border: none; color: white; padding: 14px;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; transition: all 0.2s; margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.f-submit:hover { background: var(--wa-dark); transform: translateY(-2px); }
.f-note { font-size: 0.72rem; color: rgba(255,255,255,0.35); text-align: center; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0A0A1A; padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(184,150,46,0.2);
}
.ft-logo { display: flex; align-items: center; gap: 12px; }
.ft-logo img { height: 36px; opacity: 0.8; }
.ft-logo span { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.ft-copy { color: rgba(255,255,255,0.25); font-size: 0.75rem; text-align: right; }
.ft-copy strong { color: rgba(255,255,255,0.4); }

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(26,26,62,0.98); padding: 2rem 5%; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-img { display: none; }
  .nos-grid, .incl-grid, .oferta-grid, .ct-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  footer, .ft-copy { text-align: center; }
  footer { flex-direction: column; }
  .wa-block { flex-direction: column; }
}

/* ── Clases utilitarias de texto (antes eran inline styles) ── */
.em-gold        { color: var(--gold-light); }
.txt-gold       { color: var(--gold-light); }
.txt-white      { color: rgba(255,255,255,0.85); }
.sec-body-dim   { color: rgba(255,255,255,0.55); }
.sec-title-incl { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Autor de la tarjeta Nosotros */
.nos-card-author { margin-top: 2rem; display: flex; align-items: center; gap: 12px; }
.nos-card-icon   { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nos-card-name   { font-weight: 600; font-size: 0.85rem; color: var(--purple-dark); }
.nos-card-place  { font-size: 0.72rem; color: var(--text-light); }

/* Separador inferior en levels-box */
.levels-wa { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(184,150,46,0.3); }

/* Header de oferta (antes tenía inline max-width/z-index) */
.oferta-header { max-width: 560px; margin-bottom: 1rem; position: relative; z-index: 1; }

/* Header de exalumnos */
.alumni-header { max-width: 560px; margin-bottom: 4rem; }

/* Intro de contacto */
.ct-intro { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; max-width: 420px; }

/* Foto de evento sin imagen */
.ev-photo.no-photo { flex-direction: column; gap: 4px; cursor: default; }

/* ============================================================
   MODAL EXALUMNO
   ============================================================ */
.alumni-modal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.alumni-modal.open {
  opacity: 1; pointer-events: all;
}

.alumni-modal-box {
  background: var(--white);
  border-radius: 8px;
  width: 100%; max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.alumni-modal.open .alumni-modal-box {
  transform: translateY(0);
}

/* Scrollbar sutil */
.alumni-modal-box::-webkit-scrollbar { width: 5px; }
.alumni-modal-box::-webkit-scrollbar-track { background: transparent; }
.alumni-modal-box::-webkit-scrollbar-thumb { background: rgba(74,29,122,0.2); border-radius: 10px; }

/* Botón cerrar */
.alumni-modal-close {
  position: sticky; top: 16px; float: right;
  margin: 16px 16px 0 0;
  background: rgba(74,29,122,0.08); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--purple-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 1;
}
.alumni-modal-close:hover { background: var(--purple-dark); color: white; }

/* Encabezado del modal */
.alumni-modal-header {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(74,29,122,0.08);
  clear: both;
}
.alumni-modal-photo {
  width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-pale), #EDE0C4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  border: 3px solid var(--gold-pale);
  overflow: hidden;
}
.alumni-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.alumni-modal-meta { flex: 1; padding-top: 4px; }
.alumni-modal-year {
  display: inline-block; background: var(--purple-dark); color: var(--gold-light);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 8px;
}
.alumni-modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--purple-dark); font-weight: 700;
  margin-bottom: 4px; line-height: 1.2;
}
.alumni-modal-role {
  font-size: 0.78rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Cuerpo con la biografía completa */
.alumni-modal-body {
  padding: 28px 32px 36px;
  font-size: 0.92rem; color: var(--text-light);
  line-height: 1.9;
}
.alumni-modal-body p {
  margin-bottom: 1.1rem;
}
.alumni-modal-body p:last-child { margin-bottom: 0; }

/* Párrafo de cita (último párrafo con comillas) */
.alumni-modal-body .bio-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic;
  color: var(--purple-dark); font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 16px; margin-top: 1.5rem;
}

/* Botón "Leer más" en las tarjetas */
.alumni-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; background: none; border: none;
  color: var(--purple-mid); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; padding: 0; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s;
}
.alumni-read-more:hover { color: var(--purple-dark); }
.alumni-read-more svg { transition: transform 0.2s; }
.alumni-read-more:hover svg { transform: translateX(3px); }

@media (max-width: 600px) {
  .alumni-modal-header { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px 20px; }
  .alumni-modal-body { padding: 20px 20px 28px; }
  .alumni-modal-name { font-size: 1.25rem; }
}
