/* =====================================================
   TOKENS
   ===================================================== */
:root {
  --navy-900: #060A1A;
  --navy-800: #0B1226;
  --navy-700: #111A35;
  --navy-600: #1A2545;
  --gold:     #C9A84C;
  --gold-lt:  #DFC06A;
  --gold-dk:  #9A7A2A;
  --gold-dim: rgba(201,168,76,0.15);
  --white:    #FAF8F2;
  --muted:    #8E8A98;
  --text:     #C8C4B8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-caps:  'Cinzel', 'Palatino Linotype', serif;
  --font-sans:  'Montserrat', -apple-system, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --radius: 2px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
}

body.body--locked { overflow: hidden; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { text-decoration: none; color: inherit; }

/* =====================================================
   INTRO SCREEN
   ===================================================== */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.intro-screen.intro--exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Anillos giratorios */
.intro-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25);
}

.ring--1 {
  width: clamp(220px, 40vw, 320px);
  height: clamp(220px, 40vw, 320px);
  border-style: dashed;
  animation: spinCW 18s linear infinite;
}

.ring--2 {
  width: clamp(340px, 58vw, 480px);
  height: clamp(340px, 58vw, 480px);
  border-color: rgba(201,168,76,0.14);
  animation: spinCCW 28s linear infinite;
}

.ring--3 {
  width: clamp(460px, 76vw, 640px);
  height: clamp(460px, 76vw, 640px);
  border-color: rgba(201,168,76,0.07);
  animation: spinCW 40s linear infinite;
}

@keyframes spinCW  { to { transform: rotate( 360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

/* Sello central */
.intro-seal {
  position: absolute;
  width: clamp(80px, 14vw, 120px);
  height: clamp(80px, 14vw, 120px);
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.seal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-icon {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  animation: floatSeal 3s ease-in-out infinite;
}

@keyframes floatSeal {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Cuerpo del intro */
.intro-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem;
  margin-top: clamp(80px, 12vw, 130px);
}

.intro-eyebrow {
  font-family: var(--font-caps);
  font-size: clamp(.55rem, 1.2vw, .75rem);
  letter-spacing: .25em;
  color: var(--gold);
  margin: 0;
}

.intro-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: clamp(160px, 30vw, 240px);
}

.intro-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.intro-rule i { font-size: .5rem; color: var(--gold); }

.intro-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

.intro-degree {
  font-family: var(--font-caps);
  font-size: clamp(.55rem, 1.3vw, .8rem);
  letter-spacing: .15em;
  color: var(--gold-lt);
  margin: 0;
}

.intro-date-line,
.intro-univ {
  font-family: var(--font-caps);
  font-size: clamp(.5rem, 1.1vw, .7rem);
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.intro-date-line i, .intro-univ i { color: var(--gold); font-size: .85em; }

/* Botón intro */
.intro-btn {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: .7rem;
  letter-spacing: .2em;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s;
  position: relative;
}

.intro-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.intro-btn:hover::before { transform: scaleX(1); }
.intro-btn:hover { color: var(--navy-900); }

.ib-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 2rem;
}

/* Esquinas decorativas */
.corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(201,168,76,0.45);
  border-style: solid;
}

.corner--tl { top: 24px; left: 24px; border-width: 1px 0 0 1px; }
.corner--tr { top: 24px; right: 24px; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 24px; left: 24px; border-width: 0 0 1px 1px; }
.corner--br { bottom: 24px; right: 24px; border-width: 0 1px 1px 0; }

/* =====================================================
   INVITATION WRAPPER
   ===================================================== */
.invitation {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}

.invitation.inv--visible {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   SCROLL BAR
   ===================================================== */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt));
  z-index: 9000;
  transition: width .1s linear;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8999;
  transition: transform .1s, opacity .3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  top: -3px;
  left: -3px;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201,168,76,0.6);
  top: -16px;
  left: -16px;
  transition: top .12s var(--ease), left .12s var(--ease), transform .2s, opacity .3s;
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =====================================================
   NAVBAR
   ===================================================== */
#mainNav {
  background: transparent;
  padding: 1.25rem 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}

#mainNav.nav--scrolled {
  background: rgba(6,10,26,.96);
  backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: 0 1px 0 rgba(201,168,76,.2);
}

.navbar-brand {
  font-family: var(--font-caps);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--gold) !important;
}

.nav-link {
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .18em;
  color: rgba(250,248,242,.7) !important;
  padding: .5rem 1rem !important;
  transition: color .25s;
}

.nav-link:hover { color: var(--gold) !important; }

.nav-gold-border {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: .45rem 1.2rem !important;
  transition: background .25s, color .25s !important;
}

.nav-gold-border:hover {
  background: var(--gold) !important;
  color: var(--navy-900) !important;
}

.navbar-toggler {
  border-color: rgba(201,168,76,.5);
  color: var(--gold);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201%2C168%2C76%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 24%, rgba(250,248,242,.14) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 18%, rgba(201,168,76,.18), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(114,47,55,.14), transparent 30%),
    radial-gradient(circle at 50% 72%, rgba(201,168,76,.10), transparent 36%),
    linear-gradient(135deg, #030711 0%, #07112b 42%, #120d22 68%, #030711 100%);
  background-size: 36px 36px, auto, auto, auto, auto;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  inset: 6%;
  pointer-events: none;
  z-index: 1;
}

.hero-section::before {
  border: 1px solid rgba(201,168,76,.22);
  box-shadow:
    inset 0 0 60px rgba(201,168,76,.08),
    0 0 90px rgba(201,168,76,.07);
}

.hero-section::after {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(201,168,76,.12) 12.2%, transparent 12.45%, transparent 87.5%, rgba(201,168,76,.12) 87.8%, transparent 88%),
    linear-gradient(180deg, transparent 0 18%, rgba(250,248,242,.08) 18.2%, transparent 18.45%, transparent 81.5%, rgba(201,168,76,.10) 81.75%, transparent 82%);
  opacity: .72;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(6,10,26,.78) 0%,
      rgba(6,10,26,.55) 50%,
      rgba(6,10,26,.88) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 7rem 1.5rem 3rem;
  max-width: 780px;
  width: 100%;
}

.hero-overline {
  font-family: var(--font-caps);
  font-size: clamp(.55rem, 1.2vw, .72rem);
  letter-spacing: .3em;
  color: var(--gold);
  margin: 0;
}

.hero-pre {
  font-family: var(--font-caps);
  font-size: clamp(.5rem, 1vw, .65rem);
  letter-spacing: .22em;
  color: var(--muted);
  margin: 0;
}

.hero-badge {
  width: clamp(56px, 8vw, 80px);
  height: clamp(56px, 8vw, 80px);
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201,168,76,.12), transparent 70%);
  margin: .5rem 0;
}

.hero-badge i {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--gold);
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0;
  text-align: center;
}

.hero-name em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-degree-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0;
}

.hdb-rule {
  width: clamp(60px, 20vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hdb-title {
  font-family: var(--font-caps);
  font-size: clamp(.6rem, 1.4vw, .85rem);
  letter-spacing: .15em;
  color: var(--gold-lt);
  margin: 0;
  text-align: center;
}

.hdb-honors {
  font-family: var(--font-caps);
  font-size: clamp(.5rem, 1.1vw, .68rem);
  letter-spacing: .22em;
  color: var(--muted);
  margin: 0;
}

.hero-univ {
  font-family: var(--font-caps);
  font-size: clamp(.55rem, 1.2vw, .72rem);
  letter-spacing: .18em;
  color: var(--text);
  margin: 0;
}

.hero-date {
  font-family: var(--font-caps);
  font-size: clamp(.58rem, 1.3vw, .8rem);
  letter-spacing: .2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hdot { opacity: .5; }

.hero-city {
  font-family: var(--font-caps);
  font-size: clamp(.5rem, 1vw, .65rem);
  letter-spacing: .15em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}

.hero-city i { color: var(--gold); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .75rem;
  font-family: var(--font-caps);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,.4);
  padding-bottom: .2rem;
  transition: gap .25s, border-color .25s;
}

.hero-cta:hover { gap: 1rem; border-color: var(--gold); color: var(--gold); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.sh-text {
  font-family: var(--font-caps);
  font-size: .5rem;
  letter-spacing: .25em;
  color: rgba(201,168,76,.5);
  writing-mode: vertical-rl;
}

.sh-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(201,168,76,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(.6); }
}

/* =====================================================
   HERO — ELEMENTOS DECORATIVOS ADICIONALES
   ===================================================== */

/* Watermark birrete gigante */
.hero-wm {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-wm i {
  font-size: clamp(200px, 50vw, 420px);
  color: rgba(201,168,76,0.05);
  line-height: 1;
}

/* Esquinas del hero */
.hero-corner {
  position: absolute;
  z-index: 4;
  width: clamp(40px, 6vw, 70px);
  height: clamp(40px, 6vw, 70px);
  border-color: rgba(201,168,76,0.5);
  border-style: solid;
}

.hc--tl { top: clamp(16px,3vw,36px); left: clamp(16px,3vw,36px); border-width: 1px 0 0 1px; }
.hc--tr { top: clamp(16px,3vw,36px); right: clamp(16px,3vw,36px); border-width: 1px 1px 0 0; }
.hc--bl { bottom: clamp(16px,3vw,36px); left: clamp(16px,3vw,36px); border-width: 0 0 1px 1px; }
.hc--br { bottom: clamp(16px,3vw,36px); right: clamp(16px,3vw,36px); border-width: 0 1px 1px 0; }

/* Barras horizontales ornamentales */
.hero-hbar {
  position: absolute;
  left: clamp(70px,10vw,140px);
  right: clamp(70px,10vw,140px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.hero-hbar--top { top: clamp(70px,10vw,110px); }
.hero-hbar--bot { bottom: clamp(70px,10vw,110px); }

.hero-hbar span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent);
}

.hero-hbar i { color: rgba(201,168,76,0.55); font-size: .45rem; flex-shrink: 0; }

/* Badge CLASS OF 2026 */
.hero-class-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.45);
  padding: .45rem 1.4rem;
  gap: .1rem;
  position: relative;
}

.hero-class-badge::before,
.hero-class-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  opacity: .6;
}

.hero-class-badge::before { left: -3px; }
.hero-class-badge::after  { right: -3px; }

.hcb-label {
  font-family: var(--font-caps);
  font-size: .48rem;
  letter-spacing: .32em;
  color: var(--gold);
  line-height: 1;
}

.hcb-year {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  line-height: 1;
}

/* Ornamento tipo regla con estrella */
.hero-ornament {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: clamp(140px, 28vw, 220px);
}

.hero-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.6), transparent);
}

.hero-ornament i { color: var(--gold); font-size: .45rem; }

/* Badge wrap con anillo pulsante */
.hero-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px,10vw,100px);
  height: clamp(70px,10vw,100px);
}

.hbw-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
}

.hbw-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  animation: pulse 2.5s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.5); opacity: 0;  }
}

.hero-badge-wrap .hero-badge {
  position: relative;
  z-index: 1;
  width: clamp(62px,9vw,88px);
  height: clamp(62px,9vw,88px);
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%);
}

.hero-badge-wrap .hero-badge i {
  font-size: clamp(1.5rem,3.5vw,2.4rem);
  color: var(--gold);
}

/* Animación automática del hero (CSS-only, sin IntersectionObserver) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Todos los hijos directos del hero-entrance arrancan invisibles */
.hero-entrance > * { opacity: 0; }

/* Se animan cuando el invitation tiene inv--visible */
.inv--visible .hero-entrance .hero-class-badge { animation: heroScaleIn .6s var(--ease) .2s forwards; }
.inv--visible .hero-entrance .hero-overline    { animation: heroFadeIn  .6s var(--ease) .35s forwards; }
.inv--visible .hero-entrance .hero-ornament:first-of-type { animation: heroFadeIn .5s var(--ease) .45s forwards; }
.inv--visible .hero-entrance .hero-badge-wrap  { animation: heroScaleIn .7s var(--ease) .5s forwards; }
.inv--visible .hero-entrance .hero-pre         { animation: heroFadeIn  .6s var(--ease) .6s forwards; }
.inv--visible .hero-entrance .hero-name        { animation: heroFadeUp  .8s var(--ease) .65s forwards; }
.inv--visible .hero-entrance .hero-degree-block { animation: heroFadeUp .7s var(--ease) .85s forwards; }
.inv--visible .hero-entrance .hero-univ        { animation: heroFadeIn  .6s var(--ease) 1s   forwards; }
.inv--visible .hero-entrance .hero-ornament:last-of-type { animation: heroFadeIn .5s var(--ease) 1.05s forwards; }
.inv--visible .hero-entrance .hero-date        { animation: heroFadeIn  .6s var(--ease) 1.1s forwards; }
.inv--visible .hero-entrance .hero-city        { animation: heroFadeIn  .5s var(--ease) 1.2s forwards; }
.inv--visible .hero-entrance .hero-cta         { animation: heroFadeUp  .6s var(--ease) 1.35s forwards; }

/* =====================================================
   RIBBON (marquee académico)
   ===================================================== */
.ribbon-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: var(--gold);
  padding: .65rem 0;
  position: relative;
  z-index: 5;
}

.ribbon-track {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  animation: ribbonScroll 28s linear infinite;
}

.ribbon-track span {
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--navy-900);
  font-weight: 600;
}

.rb-gem {
  font-size: .5rem !important;
  opacity: .7;
}

@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTION SHARED ELEMENTS
   ===================================================== */
.section-eyebrow {
  font-family: var(--font-caps);
  font-size: clamp(.55rem, 1.1vw, .7rem);
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-heading em {
  font-style: italic;
  color: var(--gold-lt);
}

.gold-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1rem;
}

.gold-rule.ms-0 { margin-left: 0; margin-right: auto; }

/* Reveal animations */
[data-reveal], .reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal="scale"], .reveal-scale {
  transform: scale(.96);
}

[data-reveal="left"], .reveal-left  { transform: translateX(-30px); }
[data-reveal="right"], .reveal-right { transform: translateX( 30px); }

.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* =====================================================
   COUNTDOWN
   ===================================================== */
.cd-section {
  padding: 7rem 0;
  background: var(--navy-900);
  position: relative;
}

.cd-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
}

.flip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
  flex-wrap: wrap;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.flip-card {
  position: relative;
  width: clamp(70px, 16vw, 110px);
  height: clamp(80px, 18vw, 120px);
  background: var(--navy-700);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flip-top, .flip-bot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
  line-height: 1;
}

.flip-mid {
  height: 1px;
  background: rgba(201,168,76,.3);
}

.flip-label {
  font-family: var(--font-caps);
  font-size: .55rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin: 0;
}

.flip-sep {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgba(201,168,76,.4);
  padding-bottom: 1.8rem;
  display: flex;
  align-items: center;
}

.cd-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  margin: 0;
}

/* =====================================================
   LOGRO ACADÉMICO
   ===================================================== */
.logro-section {
  padding: 7rem 0;
  background: var(--navy-800);
}

/* Marco estilo diploma */
.diploma-frame-wrap {
  position: relative;
  height: 100%;
  min-height: 480px;
}

.diploma-frame {
  position: absolute;
  inset: 24px;
  z-index: 2;
  pointer-events: none;
}

.df-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(201,168,76,.6);
  border-style: solid;
}

.df-corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.df-corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.df-corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.df-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.grad-photo {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: brightness(.9) contrast(1.05);
  transition: filter .4s;
}

.diploma-frame-wrap:hover .grad-photo { filter: brightness(1) contrast(1); }

.grad-photo-tag {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  background: var(--gold);
  color: var(--navy-900);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caps);
  font-size: .5rem;
  letter-spacing: .1em;
  gap: .1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.grad-photo-tag i { font-size: 1rem; }

/* Texto logro */
.logro-text-wrap {
  padding: 4rem 3rem;
}

.logro-body {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  line-height: 1.9;
}

.logro-quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 0 0 2rem;
  background: rgba(201,168,76,.06);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-lt);
  line-height: 1.6;
}

.logro-quote cite {
  display: block;
  font-size: .75rem;
  font-style: normal;
  font-family: var(--font-caps);
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: .5rem;
}

.logro-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.ls-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.ls-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.ls-label {
  font-family: var(--font-caps);
  font-size: .5rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.ls-sep {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,.3);
}

.logro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.ltag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-caps);
  font-size: .55rem;
  letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.35);
  padding: .3rem .75rem;
  border-radius: 50px;
}

.ltag i { font-size: .65rem; }

/* =====================================================
   EVENTO
   ===================================================== */
.evento-section {
  padding: 7rem 0;
  background: var(--navy-900);
}

.evento-section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
  margin-bottom: 7rem;
  margin-top: -7rem;
}

.evento-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 2rem;
  align-items: center;
}

.ev-card {
  background: var(--navy-700);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}

.ev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ev-card:hover {
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(201,168,76,.15);
}

.ev-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(201,168,76,.08);
  line-height: 1;
  user-select: none;
}

.ev-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(201,168,76,.08);
}

.ev-icon { font-size: 1.3rem; color: var(--gold); }

.ev-eyebrow {
  font-family: var(--font-caps);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: .5rem;
}

.ev-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.ev-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dk), transparent);
  margin-bottom: 1.5rem;
  width: 60px;
}

.ev-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.ev-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
}

.ev-list i {
  color: var(--gold);
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.btn-ev {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-caps);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--navy-900);
  background: var(--gold);
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  transition: background .25s, transform .2s;
}

.btn-ev:hover { background: var(--gold-lt); transform: translateY(-2px); }

.ev-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  align-self: stretch;
}

.evd-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.4), transparent);
}

.evd-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .7rem;
  flex-shrink: 0;
}

/* =====================================================
   BANNER QUOTE
   ===================================================== */
.banner-quote {
  position: relative;
  min-height: 400px;
  padding: 6rem 1.5rem;
  background:
    radial-gradient(circle at 18% 24%, rgba(201,168,76,.18), transparent 28%),
    radial-gradient(circle at 84% 70%, rgba(250,248,242,.09), transparent 30%),
    linear-gradient(135deg, #050916 0%, #101833 48%, #080a18 100%);
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,10,26,.85);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.bq-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bq-ornament span {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.bq-ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.bq-ornament i { color: var(--gold); font-size: .7rem; }

.bq-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.bq-author {
  font-family: var(--font-caps);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* =====================================================
   PROGRAMA / TIMELINE
   ===================================================== */
.programa-section {
  padding: 7rem 0;
  background: var(--navy-800);
}

.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.4), transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.tl-item--left .tl-content {
  grid-column: 1;
  text-align: right;
}

.tl-item--left .tl-dot { grid-column: 2; }
.tl-item--left::after { content: ''; grid-column: 3; }

.tl-item--right .tl-content { grid-column: 3; }
.tl-item--right .tl-dot { grid-column: 2; }
.tl-item--right::before { content: ''; grid-column: 1; }

.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1px solid rgba(201,168,76,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background .3s, border-color .3s;
}

.tl-dot--featured {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.2);
}

.tl-dot--fiesta {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  color: var(--gold-lt);
}

.tl-time {
  font-family: var(--font-caps);
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--gold);
  display: block;
  margin-bottom: .3rem;
}

.tl-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: .2rem;
}

.tl-title--featured { color: var(--gold-lt); }

.tl-place {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}

/* =====================================================
   GALERÍA
   ===================================================== */
/* =====================================================
   VESTIMENTA
   ===================================================== */
.vestimenta-section {
  padding: 7rem 0;
  background: var(--navy-800);
}

.vestimenta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vest-type {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-lt);
  margin: 1.5rem 0 1rem;
}

.vest-body {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.vest-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  border: 1px solid rgba(201,168,76,.2);
  padding: 1rem 1.25rem;
  background: rgba(201,168,76,.05);
  border-radius: var(--radius);
  line-height: 1.6;
}

.vest-note i { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }

.vest-swatch-label {
  font-family: var(--font-caps);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.vest-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.vsw-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.vsw {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  transition: transform .2s;
  cursor: default;
}

.vsw--light { border-color: rgba(201,168,76,.3); }

.vsw:hover { transform: scale(1.1); }

.vsw-wrap small {
  font-family: var(--font-caps);
  font-size: .5rem;
  letter-spacing: .1em;
  color: var(--muted);
}

/* =====================================================
   GUARDA LA FECHA
   ===================================================== */
.cal-section {
  padding: 7rem 0;
  background: var(--navy-900);
}

.cal-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.cal-sub {
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.btn-ev-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  transition: background .25s, color .25s, transform .2s;
}

.btn-ev-outline:hover {
  background: var(--gold);
  color: var(--navy-900);
  transform: translateY(-2px);
}

/* =====================================================
   RSVP
   ===================================================== */
.rsvp-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: var(--navy-800);
}

.rsvp-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1920&q=60')
    center / cover no-repeat fixed;
  opacity: .12;
}

.rsvp-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-eyebrow {
  font-family: var(--font-caps);
  font-size: .65rem;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.rsvp-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.rsvp-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rsvp-rule span {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.rsvp-rule span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.rsvp-rule i { color: var(--gold); font-size: .8rem; }

.rsvp-text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.rsvp-text strong { color: var(--gold-lt); }

.rsvp-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-rsvp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .18em;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}

.btn-rsvp:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; color: #fff; }

.btn-cal { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-cal:hover { background: var(--gold); color: var(--navy-900); }

/* Magnetic button effect target */
.mag-btn { position: relative; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer-grad {
  padding: 6rem 0 3rem;
  background: var(--navy-900);
  border-top: 1px solid rgba(201,168,76,.15);
}

.footer-seal {
  margin-bottom: 1.5rem;
}

.fs-icon {
  font-size: 2.5rem;
  color: rgba(201,168,76,.4);
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-ornament span {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5));
}

.footer-ornament span:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.5), transparent);
}

.footer-ornament i { color: var(--gold); font-size: .6rem; }

.footer-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: .5rem;
}

.footer-degree {
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: .35rem;
}

.footer-date {
  font-family: var(--font-caps);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-divider span {
  width: 60px;
  height: 1px;
  background: rgba(201,168,76,.2);
}

.fd-star { color: rgba(201,168,76,.5); font-size: .6rem; }

.footer-msg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.footer-univ {
  font-family: var(--font-caps);
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

.footer-copy i { color: rgba(201,168,76,.5); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .evento-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ev-divider {
    flex-direction: row;
    height: auto;
    gap: 1rem;
  }

  .evd-line {
    flex: 1;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,.4), transparent);
  }

  .vestimenta-grid { grid-template-columns: 1fr; gap: 3rem; }

  .timeline::before { left: 28px; }

  .tl-item {
    grid-template-columns: auto 1fr;
    gap: 0 1.25rem;
  }

  .tl-item--left .tl-content,
  .tl-item--right .tl-content { grid-column: 2; text-align: left; }

  .tl-item--left .tl-dot,
  .tl-item--right .tl-dot { grid-column: 1; grid-row: 1; }

  .tl-item--left::after, .tl-item--right::before { display: none; }

  .logro-text-wrap { padding: 3rem 1.5rem; }
}

@media (max-width: 575px) {
  .flip-grid { gap: .5rem; }
  .flip-sep { display: none; }
  .hero-date { flex-direction: column; gap: .3rem; }
  .logro-stats { gap: 1rem; }
  .rsvp-btns { flex-direction: column; align-items: center; }
  .gg-subgrid { grid-template-columns: 1fr 1fr; }
}
