:root {
  --melon-50: #fffaf7;
  --melon-100: #fdf0e8;
  --melon-150: #fbe8de;
  --melon-200: #f7dccf;
  --melon-300: #efc4b1;
  --melon-400: #e4aa91;
  --melon-500: #d58b70;
  --melon-600: #bd6f55;
  --terracotta: #a85d46;
  --terracotta-dark: #7e4233;
  --cocoa: #4b3029;
  --cocoa-soft: #6a4539;
  --mint-50: #fff6f0;
  --mint-100: #f6e0d5;
  --mint-300: #e6b8a5;
  --mint-500: #c98569;
  --mint-700: #9d5b46;
  --ivory: #fffdf9;
  --white: #ffffff;
  --ink: #3d2e29;
  --muted: #78645d;
  --gold: #bd8b4b;
  --line: rgba(83, 52, 43, 0.13);
  --line-light: rgba(255, 255, 255, 0.28);
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;
  --header-height: 72px;
  --shadow-soft: 0 20px 60px rgba(100, 61, 48, 0.12);
  --shadow-card: 0 16px 44px rgba(104, 65, 52, 0.11);
  --shadow-dark: 0 28px 75px rgba(55, 29, 22, 0.26);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--melon-50); }
body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--melon-50);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.invitation-open { overflow-y: auto; overflow-x: clip; }
body.menu-open, body.lightbox-open { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, picture { display: block; max-width: 100%; }
button, [role='button'] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 4px; }
::selection { background: var(--melon-300); color: var(--cocoa); }

.site { visibility: hidden; height: 0; overflow: hidden; }
.invitation-open .site { visibility: visible; height: auto; overflow: visible; }
.container { width: min(calc(100% - 32px), 1180px); margin-inline: auto; min-width: 0; }
.section-dark { position: relative; overflow: clip; color: var(--white); }
.section-light, .section-ivory { position: relative; overflow: clip; color: var(--ink); }
.section-light { background: var(--melon-100); }
.section-ivory { background: var(--ivory); }
.eyebrow {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.55;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: #ffe7db; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3, blockquote { font-family: var(--display); }
h2 {
  margin-bottom: 0;
  font-size: clamp(2.65rem, 12.5vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.icon { width: var(--icon-size); height: var(--icon-size); display: inline-grid; flex: 0 0 auto; place-items: center; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.button {
  position: relative;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.button:active { transform: scale(0.98); }
.button--gold {
  background: linear-gradient(135deg, #f6cfbc, var(--melon-400));
  color: var(--cocoa);
  box-shadow: 0 14px 34px rgba(167, 91, 67, 0.2);
}
.button--gold:hover { box-shadow: 0 18px 42px rgba(167, 91, 67, 0.3); transform: translateY(-2px); }
.button--navy {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--white);
  box-shadow: 0 15px 36px rgba(126, 66, 51, 0.24);
}
.button--navy:hover { box-shadow: 0 18px 42px rgba(126, 66, 51, 0.31); transform: translateY(-2px); }
.button--ghost {
  border-color: rgba(80, 47, 38, 0.25);
  background: rgba(255, 255, 255, 0.42);
  color: var(--cocoa);
  backdrop-filter: blur(12px);
}
.button--ghost:hover { border-color: var(--terracotta); background: rgba(255, 255, 255, 0.67); transform: translateY(-2px); }
.button--outline-dark { border-color: rgba(83, 52, 43, 0.23); background: transparent; color: var(--cocoa); }
.button--outline-dark:hover { border-color: var(--terracotta); background: var(--melon-50); }
.button--teal {
  background: linear-gradient(135deg, var(--melon-400), var(--terracotta));
  color: var(--white);
  box-shadow: 0 15px 36px rgba(167, 91, 67, 0.22);
}
.button--teal:hover { box-shadow: 0 18px 42px rgba(167, 91, 67, 0.31); transform: translateY(-2px); }
.button--shine::after {
  content: '';
  position: absolute;
  top: -70%;
  left: -45%;
  width: 35%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.74), transparent);
  transform: rotate(20deg);
  animation: buttonShine 3.8s ease-in-out infinite;
}

.icon-button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(93, 58, 47, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 247, 0.72);
  color: var(--cocoa);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(100, 61, 48, 0.09);
  backdrop-filter: blur(14px);
  transition: 0.25s ease;
}
.icon-button:hover { border-color: var(--terracotta); background: var(--white); transform: translateY(-2px); }

/* Apertura */
.intro {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.76), transparent 31%),
    radial-gradient(circle at 82% 77%, rgba(213,139,112,.12), transparent 30%),
    linear-gradient(145deg, #fff5ef 0%, #f7d8ca 52%, #efc2af 100%);
  color: var(--cocoa);
}
.intro::before,
.intro::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(126, 66, 51, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.intro::before { top: -160px; right: -145px; width: 350px; height: 350px; }
.intro::after { bottom: -190px; left: -155px; width: 390px; height: 390px; }
.intro__aurora {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.36), transparent, rgba(213,139,112,.14), transparent);
  filter: blur(26px);
  animation: orbit 22s linear infinite;
}
.intro__frame { position: absolute; inset: 14px; border: 1px solid rgba(126, 66, 51, 0.2); pointer-events: none; }
.intro__frame::before, .intro__frame::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  border-color: var(--terracotta);
  opacity: 0.62;
}
.intro__frame::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.intro__frame::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.intro__content { position: relative; z-index: 3; width: min(calc(100% - 44px), 520px); text-align: center; }
.intro__seal {
  position: relative;
  width: 158px;
  height: 158px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 52px rgba(105, 60, 46, 0.15);
}
.intro__seal::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(168,93,70,.24); border-radius: 50%; }
.intro__seal-ring { position: absolute; inset: -6px; border: 1px dashed rgba(168,93,70,.38); border-radius: 50%; animation: orbit 18s linear infinite; }
.intro__seal img { position: relative; z-index: 2; width: 116px; border-radius: 50%; }
.intro h1 { margin: 13px 0 0; color: var(--cocoa); font-size: clamp(3.15rem, 15vw, 5.7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.85; }
.intro__year { margin: 10px 0 7px; color: var(--mint-700); font-family: var(--display); font-size: 2.55rem; font-weight: 600; letter-spacing: 0.15em; }
.intro__date { margin-bottom: 24px; color: var(--muted); font-size: 0.69rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.intro__content .button { width: min(100%, 280px); }
.intro small { display: block; margin-top: 14px; color: rgba(75,48,41,.55); font-size: 0.59rem; letter-spacing: 0.04em; }
.intro--closing { animation: introClose .9s cubic-bezier(.76,0,.24,1) forwards; }
.dust-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Encabezado */
.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(255,249,245,.9), rgba(255,249,245,0));
  transition: height .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header--scrolled {
  height: 64px;
  border-bottom-color: rgba(83,52,43,.1);
  background: rgba(255,250,247,.9);
  box-shadow: 0 10px 34px rgba(101,61,48,.1);
  backdrop-filter: blur(18px);
}
.header__brand { min-width: 0; border: 0; padding: 0; display: flex; align-items: center; gap: 9px; background: transparent; cursor: pointer; }
.header__brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }
.header__brand span { color: var(--cocoa); font-family: var(--display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.desktop-nav { display: none; }
.mobile-menu {
  position: fixed;
  z-index: 1300;
  inset: 0;
  padding: max(20px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.7), transparent 35%),
    linear-gradient(145deg, #fce9df, #efc5b4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: .42s cubic-bezier(.76,0,.24,1);
}
.mobile-menu--open { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-menu__top { margin-bottom: 42px; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { width: 74px; border-radius: 50%; }
.mobile-menu > .eyebrow { margin-bottom: 20px; }
.mobile-menu > button:not(.icon-button) {
  border: 0;
  border-bottom: 1px solid rgba(83,52,43,.14);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.75rem;
  text-align: left;
}
.mobile-menu > button:not(.icon-button)::after { content: '↗'; color: var(--mint-700); font-family: var(--sans); font-size: .9rem; }

/* Logotipos */
.logo-suite { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.logo-tile {
  min-width: 0;
  min-height: 82px;
  border: 1px solid rgba(83,52,43,.08);
  border-radius: 15px;
  padding: 9px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(91,55,44,.08);
}
.logo-tile img { width: 100%; height: 62px; object-fit: contain; }
.logo-tile--college img { height: 68px; }
.logo-suite--bare .logo-tile { min-height: 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.logo-suite--bare .logo-tile img { filter: none; }

/* Portada */
.hero {
  min-height: 100svh;
  padding: 104px 0 82px;
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,255,255,.86), transparent 27%),
    radial-gradient(circle at 91% 80%, rgba(239,196,177,.18), transparent 30%),
    linear-gradient(145deg, #fff6f1 0%, #f7ddd2 47%, #efc8b7 100%);
  color: var(--cocoa);
}
.hero::before,
.hero::after { content: ''; position: absolute; z-index: -1; border: 1px solid rgba(126,66,51,.12); border-radius: 50%; }
.hero::before { top: -180px; right: -150px; width: 390px; height: 390px; }
.hero::after { bottom: -210px; left: -170px; width: 430px; height: 430px; }
.hero__pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .33;
  background-image:
    linear-gradient(rgba(126,66,51,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,66,51,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 62% 45%, black, transparent 75%);
}
.hero__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(12px); }
.hero__orb--one { top: 12%; right: -105px; width: 270px; height: 270px; background: rgba(255,255,255,.56); }
.hero__orb--two { bottom: 8%; left: -105px; width: 240px; height: 240px; background: rgba(228,170,145,.18); }
.hero__inner { position: relative; z-index: 2; max-width: 930px; min-width: 0; }
.hero__copy { min-width: 0; text-align: center; }
.hero .eyebrow { color: var(--terracotta-dark); }
.hero__council { margin: 8px 0 16px; color: var(--cocoa); font-family: var(--display); font-size: 1.28rem; font-style: italic; }
.logo-suite--cover { max-width: 520px; margin: 0 auto 20px; }
.logo-suite--cover .logo-tile { min-height: 66px; border-color: rgba(83,52,43,.08); padding: 7px; background: rgba(255,255,255,.86); box-shadow: 0 11px 28px rgba(104,65,52,.08); }
.logo-suite--cover .logo-tile img { height: 48px; }
.logo-suite--cover .logo-tile--college img { height: 52px; }
.hero__rule { margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero__rule span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--terracotta)); }
.hero__rule span:last-child { transform: scaleX(-1); }
.hero__rule i { width: 7px; height: 7px; border: 1px solid var(--terracotta); transform: rotate(45deg); }
.hero__invites { margin-bottom: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin-bottom: 10px; font-size: clamp(3.25rem, 14vw, 7rem); font-weight: 600; letter-spacing: -.055em; line-height: .78; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 span { color: var(--cocoa); font-size: .58em; letter-spacing: -.025em; line-height: 1; }
.hero h1 em { color: var(--terracotta); font-style: italic; font-weight: 600; }
.hero__subtitle { max-width: 500px; margin: 0 auto 24px; color: var(--cocoa-soft); font-family: var(--display); font-size: 1.42rem; line-height: 1.16; }
.hero__award { margin-bottom: 27px; display: flex; flex-direction: column; align-items: center; }
.hero__award span { color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__award strong { margin-top: 4px; color: var(--cocoa); font-family: var(--display); font-size: clamp(2rem, 8.5vw, 3.8rem); font-weight: 600; line-height: .95; }
.hero__award b { margin-top: 7px; color: var(--mint-700); font-family: var(--display); font-size: 2rem; letter-spacing: .18em; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hero__actions .button { width: 100%; }
.scroll-cue { display: none; }

/* Logotipo institucional */
.institution-section {
  min-height: 78svh;
  padding: 76px 0;
  display: grid;
  place-items: center;
  background: var(--white);
}
.institution-section::before,
.institution-section::after { content: ''; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(213,139,112,.14); border-radius: 50%; }
.institution-section::before { top: -185px; left: -145px; }
.institution-section::after { right: -165px; bottom: -190px; }
.institution-section__inner { position: relative; display: grid; place-items: center; text-align: center; }
.institution-section__inner img { position: relative; z-index: 2; width: min(75vw, 330px); filter: drop-shadow(0 22px 34px rgba(168,93,70,.12)); }
.institution-section__accent { position: absolute; top: 50%; left: 50%; width: min(84vw, 405px); aspect-ratio: 1; border: 1px solid rgba(213,139,112,.18); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.institution-section__accent::after { content: ''; position: absolute; inset: 18px; border: 1px dashed rgba(213,139,112,.22); border-radius: inherit; }

/* Instituciones y fecha */
.date-section {
  padding: 86px 0 104px;
  background:
    radial-gradient(circle at 7% 9%, rgba(255,255,255,.78), transparent 29%),
    radial-gradient(circle at 94% 80%, rgba(239,196,177,.16), transparent 27%),
    var(--melon-100);
}
.date-section__texture { position: absolute; inset: 0; opacity: .65; background-image: radial-gradient(rgba(168,93,70,.075) .75px, transparent .75px); background-size: 18px 18px; }
.date-section__inner { position: relative; z-index: 2; text-align: center; }
.date-section__partners { position: relative; margin-bottom: 78px; padding-bottom: 64px; }
.date-section__partners::after { content: ''; position: absolute; right: 12%; bottom: 0; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,93,70,.33), transparent); }
.logo-suite--partners { max-width: 720px; margin: 0 auto; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 18px; }
.logo-suite--partners .logo-tile { min-height: 86px; }
.logo-suite--partners .logo-tile img { height: 74px; }
.logo-suite--partners .logo-tile--forum img { height: 80px; }
.date-stage { position: relative; max-width: 760px; margin: 0 auto; }
.date-stage__label { margin: 0 0 11px; color: var(--mint-700); font-size: .65rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.date-stage__date { display: block; color: var(--cocoa); font-family: var(--display); font-size: clamp(4.3rem, 18.5vw, 9.5rem); font-weight: 600; letter-spacing: -.065em; line-height: .79; }
.date-stage__date span { display: block; margin: 10px 0 3px; color: var(--terracotta); font-size: .34em; font-style: italic; letter-spacing: 0; line-height: 1; }
.date-stage__reception {
  width: min(100%, 325px);
  margin: 28px auto 0;
  border: 1px solid rgba(168,93,70,.18);
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 34px rgba(104,65,52,.08);
}
.date-stage__reception span { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.date-stage__reception strong { color: var(--terracotta-dark); font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.date-stage__weekday { margin: 22px 0 32px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.countdown { max-width: 650px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid rgba(83,52,43,.11); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.68); box-shadow: var(--shadow-card); }
.countdown > div { min-width: 0; padding: 17px 4px 14px; }
.countdown > div + div { border-left: 1px solid rgba(83,52,43,.1); }
.countdown strong { display: block; color: var(--cocoa); font-family: var(--display); font-size: clamp(1.7rem,7vw,3rem); font-weight: 600; line-height: 1; }
.countdown span { display: block; margin-top: 5px; color: var(--muted); font-size: clamp(.46rem,2vw,.58rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.date-section__inner > .button { width: min(100%, 300px); }

/* Presea */
.recognition {
  padding: 104px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.16), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(239,196,177,.18), transparent 30%),
    linear-gradient(145deg, #b86f58, #9a5644 56%, #7e4437);
}
.recognition::before { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.13); pointer-events: none; }
.recognition__glow { position: absolute; right: -20%; bottom: -34%; width: 620px; height: 620px; border-radius: 50%; background: rgba(255,218,200,.17); filter: blur(38px); }
.recognition__grid { position: relative; z-index: 2; display: grid; gap: 52px; min-width: 0; }
.recognition__copy h2 { margin: 13px 0 25px; color: var(--white); }
.recognition__copy blockquote { margin-bottom: 22px; color: #ffe0d1; font-size: clamp(1.75rem,7vw,2.75rem); font-style: italic; line-height: 1.12; }
.recognition__copy > p:last-of-type { margin-bottom: 27px; color: rgba(255,249,246,.78); font-size: .9rem; line-height: 1.85; }
.signature-line { display: flex; align-items: center; gap: 13px; }
.signature-line span { width: 52px; height: 1px; background: #ffd9c7; }
.signature-line b { color: rgba(255,255,255,.88); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.medal-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.31);
  border-radius: 28px;
  padding: 11px;
  overflow: hidden;
  background: rgba(255,255,255,.13);
  box-shadow: var(--shadow-dark);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .25s ease;
}
.medal-card::before { content: ''; position: absolute; inset: 11px; z-index: 2; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; pointer-events: none; }
.medal-card picture { border-radius: 20px; overflow: hidden; }
.medal-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s ease; }
.medal-card:hover img { transform: scale(1.025); }
.medal-card__shine { position: absolute; z-index: 3; inset: 11px; border-radius: 20px; pointer-events: none; background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,.25), transparent 26%); mix-blend-mode: screen; }
.medal-card__caption { position: absolute; z-index: 4; right: 26px; bottom: 25px; left: 26px; border: 1px solid rgba(255,255,255,.23); border-radius: 14px; padding: 13px 15px; background: rgba(69,39,32,.68); backdrop-filter: blur(12px); }
.medal-card__caption span { display: block; color: #ffd8c4; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.medal-card__caption strong { display: block; margin-top: 2px; color: rgba(255,255,255,.73); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; }

/* Consejo */
.council-section { padding: 100px 0; background: var(--ivory); }
.section-heading { margin-bottom: 40px; display: grid; gap: 22px; }
.section-heading h2 { margin-top: 10px; color: var(--cocoa); }
.section-heading h2 em { display: block; color: var(--mint-700); font-size: .5em; font-weight: 600; }
.section-heading > p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.75; }
.council-grid { display: grid; gap: 11px; }
.person-card {
  min-width: 0;
  border: 1px solid rgba(83,52,43,.1);
  border-radius: 19px;
  padding: 19px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 15px;
  background: linear-gradient(145deg, #fff, #fff6f1);
  box-shadow: 0 10px 28px rgba(104,65,52,.065);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.person-card:hover { border-color: rgba(213,139,112,.34); box-shadow: 0 18px 38px rgba(104,65,52,.11); transform: translateY(-4px); }
.person-card__index { color: var(--terracotta); font-family: var(--display); font-size: 1.25rem; font-style: italic; }
.person-card h3 { margin-bottom: 6px; color: var(--cocoa); font-size: 1.28rem; font-weight: 600; line-height: 1.1; }
.person-card p { margin: 0; color: var(--mint-700); font-size: .59rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; text-transform: uppercase; }
.commissions-grid { margin-top: 30px; display: grid; gap: 12px; }
.commission-card { border: 1px solid rgba(168,93,70,.12); border-radius: 23px; padding: 28px 23px; background: linear-gradient(145deg, #f5d5c7, #edbea9); color: var(--cocoa); box-shadow: var(--shadow-card); }
.commission-card:nth-child(2) { border-color: rgba(213,139,112,.16); background: linear-gradient(145deg, #f7e7de, #efd2c4); }
.commission-card .eyebrow { color: var(--terracotta-dark); }
.commission-card:nth-child(2) .eyebrow { color: var(--mint-700); }
.commission-card h3 { margin: 7px 0 18px; font-size: 2rem; font-weight: 600; }
.commission-card ul { margin: 0; padding: 0; list-style: none; }
.commission-card li { border-top: 1px solid rgba(83,52,43,.12); padding: 11px 0; color: rgba(61,46,41,.78); font-size: .76rem; line-height: 1.5; }

/* Fotografías */
.gallery-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.25), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(247,220,207,.3), transparent 31%),
    linear-gradient(145deg, #b86f58, #9d5b46 58%, #7b4436);
  color: var(--white);
}
.gallery__grid { display: grid; gap: 13px; min-width: 0; }
.gallery__heading { padding: 0 4px 26px; }
.gallery__heading .eyebrow { color: #fee0d1; }
.gallery__heading h2 { margin: 10px 0 20px; color: var(--white); }
.gallery-card { position: relative; min-width: 0; border: 1px solid rgba(255,255,255,.19); border-radius: 22px; padding: 0; overflow: hidden; background: var(--cocoa); cursor: zoom-in; box-shadow: 0 24px 68px rgba(74, 45, 37, .28); }
.gallery-card picture, .gallery-card img { width: 100%; height: 100%; }
.gallery-card img { aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card__overlay { position: absolute; right: 12px; bottom: 12px; left: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(75,48,41,.74); color: var(--white); backdrop-filter: blur(12px); }
.gallery-card__overlay b { font-family: var(--display); font-size: 1.12rem; font-weight: 600; text-align: left; }

/* Programa */
.program-section {
  padding: 104px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(239,196,177,.14), transparent 30%),
    linear-gradient(150deg, #4b3029, #653e33 55%, #3d2823);
}
.program__grid { display: grid; gap: 50px; }
.program__intro h2 { margin: 12px 0 24px; color: var(--white); }
.program__intro > p:last-child { margin: 0; color: #f5cbb8; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline { display: grid; }
.timeline-item { min-width: 0; display: grid; grid-template-columns: 67px 24px minmax(0,1fr); gap: 11px; }
.timeline-item__time { padding-top: 4px; color: #f3c8b5; font-family: var(--display); font-size: 1.65rem; font-weight: 600; }
.timeline-item__line { position: relative; display: flex; justify-content: center; }
.timeline-item__line::before { content: ''; position: absolute; top: 11px; bottom: -10px; width: 1px; background: linear-gradient(#edbca6, rgba(255,255,255,.08)); }
.timeline-item:last-child .timeline-item__line::before { bottom: 56%; }
.timeline-item__line span { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 7px; border: 2px solid #f3c8b5; border-radius: 50%; background: var(--cocoa); box-shadow: 0 0 0 5px rgba(239,196,177,.1); }
.timeline-item__copy { min-width: 0; padding: 0 0 37px; }
.timeline-item__copy h3 { margin-bottom: 5px; color: var(--white); font-size: 2.1rem; font-weight: 600; }
.timeline-item__copy p { margin: 0; color: rgba(255,248,245,.69); font-size: .77rem; line-height: 1.6; }

/* Ubicación */
.location-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 6% 8%, rgba(255,255,255,.78), transparent 28%),
    var(--melon-150);
}
.location-card { min-width: 0; border: 1px solid rgba(83,52,43,.1); border-radius: 28px; overflow: hidden; display: grid; background: var(--white); box-shadow: var(--shadow-soft); }
.location-card__visual {
  position: relative;
  min-height: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.24), transparent 42%),
    linear-gradient(150deg, #d9987d, #bd745b);
  color: var(--white);
}
.location-card__visual::before, .location-card__visual::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.31); border-radius: 50%; }
.location-card__visual::before { width: 270px; height: 270px; }
.location-card__visual::after { width: 210px; height: 210px; }
.location-card__monogram { position: relative; z-index: 2; color: var(--white); font-family: var(--display); font-size: 6.4rem; font-style: italic; line-height: .8; text-shadow: 0 8px 24px rgba(91,45,33,.17); }
.location-card__visual p { position: relative; z-index: 2; margin: 19px 0 0; color: rgba(255,255,255,.82); font-size: .59rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.location-card__date { position: absolute; z-index: 2; right: 20px; bottom: 18px; color: rgba(255,255,255,.82); font-family: var(--display); font-size: 1.12rem; letter-spacing: .1em; }
.location-card__copy { min-width: 0; padding: 30px 20px; }
.location-card__copy h2 { margin: 10px 0 20px; color: var(--cocoa); font-size: clamp(2.65rem,11vw,5rem); overflow-wrap: anywhere; }
.location-card__address {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.8;
}

.location-card__cost {
  margin: 0 0 24px;
  color: var(--terracotta-dark);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.6;
}
.location-card__actions { display: grid; gap: 9px; }
.location-card__actions .button { width: 100%; }
.dress-code { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 23px; }
.dress-code__title { color: var(--cocoa); font-size: .61rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dress-code > div { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.dress-code > div span { border: 1px solid rgba(168,93,70,.17); border-radius: 999px; padding: 8px 10px; background: var(--melon-50); color: var(--terracotta-dark); font-size: .56rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Cierre */
.closing {
  position: relative;
  padding: 112px 0 102px;
  overflow: clip;
  text-align: center;
  background: var(--white);
  color: var(--cocoa);
}
.closing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(239,196,177,.18), transparent 34%); }
.closing__inner { position: relative; z-index: 2; max-width: 920px; }
.closing__inner > img { width: min(50vw,205px); margin: 0 auto 28px; filter: drop-shadow(0 18px 28px rgba(168,93,70,.11)); }
.closing .eyebrow { color: var(--mint-700); }
.closing blockquote { margin: 18px 0 34px; color: var(--cocoa); font-size: clamp(2.35rem,9.5vw,5.4rem); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.closing .button { width: min(100%,310px); }
.closing__ornament { position: absolute; border: 1px solid rgba(213,139,112,.14); border-radius: 50%; pointer-events: none; }
.closing__ornament--one { top: -170px; right: -150px; width: 340px; height: 340px; }
.closing__ornament--two { bottom: -210px; left: -180px; width: 410px; height: 410px; }
.footer {
  padding: 58px 0 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.8), transparent 30%),
    var(--melon-200);
  color: var(--cocoa);
}
.logo-suite--footer { max-width: 760px; margin-inline: auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: center; }
.logo-suite--footer .logo-tile { min-height: 92px; }
.logo-suite--footer .logo-tile img { height: 78px; }
.logo-suite--footer .logo-tile--forum img { height: 86px; }
.logo-suite--footer .logo-tile:nth-child(3) { grid-column: 1/-1; width: 50%; justify-self: center; }
.footer__bottom { margin-top: 36px; border-top: 1px solid rgba(83,52,43,.13); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(75,48,41,.61); text-align: center; }
.footer__bottom p { margin: 0; font-size: .54rem; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.footer__bottom button { border: 0; margin-top: 8px; padding: 7px; background: transparent; color: var(--mint-700); cursor: pointer; font-size: .61rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Utilidades */
.music-control {
  position: fixed;
  z-index: 1150;
  right: 15px;
  bottom: max(15px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(168,93,70,.9);
  color: var(--white);
  box-shadow: 0 14px 38px rgba(84,43,32,.25);
  cursor: pointer;
  backdrop-filter: blur(14px);
}
.music-control__rings { position: absolute; inset: 0; border-radius: inherit; }
.music-control__rings i { position: absolute; inset: 0; border: 1px solid rgba(213,139,112,.42); border-radius: inherit; opacity: 0; }
.music-control--playing .music-control__rings i { animation: soundWave 2.5s ease-out infinite; }
.music-control--playing .music-control__rings i:nth-child(2) { animation-delay: .82s; }
.music-control--playing .music-control__rings i:nth-child(3) { animation-delay: 1.64s; }
.music-control__icon { position: relative; z-index: 2; display: grid; }
.youtube-player { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.youtube-player iframe { width: 1px; height: 1px; border: 0; }
.toast { position: fixed; z-index: 6000; left: 50%; bottom: 84px; max-width: calc(100% - 32px); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 11px 17px; background: rgba(75,48,41,.95); color: #ffe0d1; box-shadow: 0 18px 44px rgba(55,29,22,.3); opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: .24s ease; font-size: .67rem; white-space: nowrap; }
.toast--visible { opacity: 1; transform: translate(-50%,0); }
.lightbox { position: fixed; z-index: 5500; inset: 0; padding: 70px 16px 24px; display: grid; place-items: center; background: rgba(55,34,29,.94); opacity: 0; visibility: hidden; transition: .28s ease; backdrop-filter: blur(12px); }
.lightbox--open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(100%,1100px); max-height: calc(100svh - 100px); border: 1px solid rgba(255,255,255,.28); border-radius: 18px; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

.reveal { opacity: 0; transform: translateY(38px); transition: opacity .78s ease var(--delay,0ms), transform .78s cubic-bezier(.2,.8,.2,1) var(--delay,0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-entrance, .hero-card-entrance { opacity: 0; transform: translateY(25px); }
.invitation-open .hero-entrance { animation: riseIn .88s cubic-bezier(.2,.8,.2,1) both; }
.invitation-open .hero-entrance:nth-child(2) { animation-delay: .07s; }
.invitation-open .hero-entrance:nth-child(3) { animation-delay: .14s; }
.invitation-open .hero-entrance:nth-child(4) { animation-delay: .21s; }
.invitation-open .hero-entrance:nth-child(5) { animation-delay: .28s; }
.invitation-open .hero-entrance:nth-child(6) { animation-delay: .35s; }
.invitation-open .hero-entrance:nth-child(7) { animation-delay: .42s; }
.invitation-open .hero-entrance:nth-child(8) { animation-delay: .49s; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes gentleFloat { 50% { transform: translateY(-8px); } }
@keyframes buttonShine { 0%,54% { transform: translateX(-180%) rotate(20deg); } 78%,100% { transform: translateX(520%) rotate(20deg); } }
@keyframes introClose { to { opacity: 0; visibility: hidden; transform: scale(1.035); filter: blur(8px); } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
@keyframes soundWave { 0% { opacity: .55; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.6); } }

@media (min-width: 560px) {
  .container { width: min(calc(100% - 46px),1180px); }
  .hero__actions { flex-direction: row; }
  .hero__actions .button { width: auto; }
  .council-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commissions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .location-card__actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .logo-suite--footer { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .logo-suite--footer .logo-tile:nth-child(3) { grid-column: auto; width: auto; }
}

@media (min-width: 760px) {
  :root { --header-height: 82px; }
  .container { width: min(calc(100% - 64px),1180px); }
  .header { padding-inline: 30px; }
  .header__brand img { width: 50px; height: 50px; }
  .header__brand span { font-size: 1.3rem; }
  .hero { padding: 120px 0 100px; }
  .hero h1 { font-size: clamp(5rem,9vw,7.8rem); }
  .logo-suite--cover { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .institution-section { min-height: 76svh; padding-block: 110px; }
  .institution-section__inner img { width: 345px; }
  .date-section, .recognition, .council-section, .gallery-section, .program-section, .location-section { padding-block: 128px; }
  .date-section__partners { margin-bottom: 105px; padding-bottom: 84px; }
  .logo-suite--partners { gap: 45px; }
  .logo-suite--partners .logo-tile img { height: 100px; }
  .logo-suite--partners .logo-tile--forum img { height: 108px; }
  .recognition__grid { grid-template-columns: minmax(0,.88fr) minmax(360px,.78fr); align-items: center; gap: 75px; }
  .section-heading { grid-template-columns: minmax(0,1fr) 320px; align-items: end; }
  .section-heading > p { padding-bottom: 6px; }
  .gallery__grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); grid-template-rows: auto 230px; gap: 17px; }
  .gallery__heading { grid-column: 1; grid-row: 1; padding: 12px 28px 20px 0; }
  .gallery-card--1 { grid-column: 2; grid-row: 1/3; }
  .gallery-card--2 { grid-column: 1; grid-row: 2; }
  .gallery-card--1 img { aspect-ratio: auto; min-height: 100%; }
  .gallery-card--2 img { aspect-ratio: auto; }
  .program__grid { grid-template-columns: minmax(0,.78fr) minmax(390px,1fr); align-items: start; gap: 86px; }
  .program__intro { position: sticky; top: 110px; }
  .location-card { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .location-card__visual { min-height: 510px; }
  .location-card__copy { padding: 58px 48px; display: flex; flex-direction: column; justify-content: center; }
  .closing__inner > img { width: 220px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer__bottom button { margin-top: 0; }
}

@media (min-width: 980px) {
  .desktop-nav { display: flex; align-items: center; gap: 26px; }
  .desktop-nav button { position: relative; border: 0; padding: 10px 0; background: transparent; color: rgba(75,48,41,.72); cursor: pointer; font-size: .61rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
  .desktop-nav button::after { content: ''; position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--mint-500); transform: scaleX(0); transition: transform .25s ease; }
  .desktop-nav button:hover::after { transform: scaleX(1); }
  .menu-button { display: none; }
  .mobile-menu { display: none; }
  .scroll-cue { position: absolute; z-index: 3; bottom: 22px; left: 50%; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; color: rgba(75,48,41,.56); cursor: pointer; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; transform: translateX(-50%); }
  .scroll-cue .icon { animation: gentleFloat 1.8s ease-in-out infinite; }
  .council-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .person-card { min-height: 174px; grid-template-columns: 1fr; align-content: space-between; }
  .music-control { right: 25px; bottom: 25px; }
}

@media (max-height: 760px) and (max-width: 759px) {
  .hero { min-height: auto; padding-top: 92px; }
  .logo-suite--cover .logo-tile { min-height: 58px; }
  .logo-suite--cover .logo-tile img { height: 41px; }
  .hero__council { margin-bottom: 11px; }
  .hero__rule { margin-bottom: 16px; }
  .hero__subtitle { margin-bottom: 18px; }
  .hero__award { margin-bottom: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-entrance, .hero-card-entrance { opacity: 1 !important; transform: none !important; }
}
