/* ============================================================
   IV Foro Panamericano de Jóvenes Políticos — Panamá 2026
   ============================================================ */

:root {
  --navy: #0A2540;
  --navy-deep: #061a30;
  --navy-soft: #123a5e;
  --red: #DC2426;
  --red-dark: #b41c1e;
  --gold: #C9A227;
  --gold-soft: #e0c463;
  --white: #FFFFFF;
  --paper: #f6f4ef;
  --ink-soft: #5b6675;
  --line: rgba(10, 37, 64, 0.12);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -20px rgba(6, 26, 48, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  position: relative;
  padding-left: 38px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}
.eyebrow.light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section-title.light { color: var(--white); }

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 18px;
}
.section-lead.light { color: rgba(255, 255, 255, 0.82); }

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn-lg { padding: 17px 40px; font-size: 1rem; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 30px -12px rgba(220, 36, 38, 0.7);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -14px rgba(220, 36, 38, 0.8);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 8px 30px -16px rgba(0, 0, 0, 0.6);
}
.header-inner { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-mark { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav { display: flex; gap: 28px; }
.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.btn-header { padding: 10px 24px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  /* 3D depth: perspective container for the parallax planes */
  perspective: 1100px;
  perspective-origin: 50% 42%;
  /* mouse-parallax offsets (updated by JS, range -1..1) */
  --px: 0;
  --py: 0;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-style: preserve-3d;
}
/* Plane 1 — skyline background (deepest). The element handles mouse
   parallax; its ::before child handles the ken-burns zoom so the two
   transforms never collide. */
.hero-bg {
  position: absolute;
  inset: -9%;
  z-index: 0;
  transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 18px), -60px) scale(1.06);
  will-change: transform;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: url("assets/img/hero-skyline.jpg") center 52% / cover no-repeat;
  filter: brightness(0.96) saturate(1.08) contrast(1.04);
  transform: scale(1.28);
  transform-origin: 50% 55%;
  will-change: transform;
  animation: heroKenBurns 7.5s cubic-bezier(0.16, 0.84, 0.3, 1) 0.1s forwards;
}
/* Plane 2 — navy brand overlay (mid). Tints the skyline toward the brand
   navy and darkens the left side so the foreground text stays legible
   while the buildings on the right read crisply. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 9px), -30px) scale(1.03);
  background:
    linear-gradient(180deg, rgba(6, 26, 48, 0.42) 0%, rgba(10, 37, 64, 0.34) 40%, rgba(6, 26, 48, 0.86) 100%),
    linear-gradient(100deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.6) 42%, rgba(10, 37, 64, 0.2) 72%, rgba(10, 37, 64, 0.08) 100%);
}
@keyframes heroKenBurns {
  from { transform: scale(1.3); }
  to   { transform: scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 90px;
  max-width: 880px;
  /* nearest plane — moves opposite to the skyline for depth separation */
  transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -12px), 0);
  will-change: transform;
}
.hero-logo {
  height: 96px;
  width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  transform-style: preserve-3d;
  animation: heroLogoFloat 6.5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate3d(1, 0.5, 0, 0deg); }
  50%      { transform: translateY(-11px) rotate3d(1, 0.7, 0, 6deg); }
}
.hero-edition {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--white);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero-title span { color: var(--white); display: block; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: var(--gold-soft);
  margin-top: 26px;
  max-width: 760px;
}
.hero-claim {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 14px;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.meta-item { color: rgba(255, 255, 255, 0.92); font-size: 1.02rem; }
.meta-item strong { color: var(--white); font-weight: 700; }
.meta-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.3); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 9px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 1; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  line-height: 1;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 16px 0 14px;
  color: var(--navy);
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.about-org {
  text-align: center;
  margin-top: 54px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.about-org strong { color: var(--navy); }

/* ============================================================
   TRAYECTORIA
   ============================================================ */
.trayectoria {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.trayectoria::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(201, 162, 39, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(220, 36, 38, 0.16), transparent 45%);
  pointer-events: none;
}
.trayectoria .container { position: relative; z-index: 1; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.stat {
  text-align: center;
  padding: 36px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.stat:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.5); background: rgba(255, 255, 255, 0.06); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--gold-soft);
}
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.speakers {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 48px;
}
.speakers-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 34px;
}
.speakers-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.speakers-list li {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.speakers-list li:hover { transform: translateY(-5px); border-color: rgba(201,162,39,0.55); }
.speakers-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--white);
  margin-bottom: 6px;
}
.speakers-list span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); }
/* Foto del orador: círculo con aro dorado */
.speaker-photo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.7);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.65);
  background: var(--navy-soft);
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.speaker-info { display: block; }
.speakers-list li:hover .speaker-photo { border-color: var(--gold); }

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria { background: var(--paper); }
/* Masonry (CSS columns): cada imagen conserva su proporción y se ve completa */
.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}
.g-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(6, 26, 48, 0.5);
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.g-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 26, 48, 0.45));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { opacity: 1; }

/* Colapsado: oculta las fotos a partir de la 13 hasta pulsar "Ver más" */
.gallery-grid.collapsed .g-item.is-hidden { display: none; }

.gallery-more { text-align: center; margin-top: 40px; }
.gallery-count { display: block; margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- Cena de Gala (subsección destacada) ---------- */
.gala-block {
  position: relative;
  margin-top: clamp(56px, 8vw, 88px);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(18, 58, 94, 0.92) 0%, rgba(10, 37, 64, 0.96) 45%, var(--navy-deep) 100%);
  box-shadow: 0 30px 70px -40px rgba(6, 26, 48, 0.8);
  overflow: hidden;
}
.gala-block::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}
.gala-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); }
.eyebrow-gold { color: var(--gold-soft); }
.eyebrow-gold::before { background: var(--gold); }
.gala-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.gala-lead { color: rgba(255, 255, 255, 0.78); margin-top: 12px; font-weight: 300; }
.gala-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gala-item {
  position: relative;
  grid-column: span 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 0.8);
  aspect-ratio: 3 / 2;
}
/* 5 fotos: las dos primeras más anchas (span 3), las tres siguientes span 2 */
.gala-item:nth-child(1), .gala-item:nth-child(2) { grid-column: span 3; }
.gala-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.gala-item:hover img { transform: scale(1.06); }

/* ============================================================
   VIDEOS (reels Instagram — Lima 2025)
   ============================================================ */
/* Franja full-width azul marino que enmarca y da protagonismo a los reels */
.videos {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(18, 58, 94, 0.75) 0%, rgba(10, 37, 64, 0.95) 55%, var(--navy-deep) 100%),
    var(--navy);
}
/* Encabezado centrado y en versión clara sobre el fondo oscuro */
.videos .section-head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.videos .eyebrow { color: var(--gold-soft); }
.videos .eyebrow::before { background: var(--gold); }
.videos .section-title { color: var(--white); }
.videos .section-lead { color: rgba(255, 255, 255, 0.82); }

/* Reels apilados en columna, centrados, anchos pero con aire en los costados */
.videos-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  /* espacio estético a cada extremo (más amplio en desktop) */
  padding: 0 clamp(16px, 6vw, 96px);
}
.video-card {
  position: relative;
  width: 100%;
  max-width: 1000px;            /* tamaño grande, como estaba antes */
  /* marco propio con la proporción REAL del video del reel (16:9 horizontal) */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: var(--navy-deep);
  /* marco fino dorado + sombra premium */
  border: 1px solid rgba(201, 162, 39, 0.6);
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(201, 162, 39, 0.1);
  /* --- parámetros de recorte (ajustables) --- */
  --ig-top: 52px;               /* alto del header de Instagram a esconder */
  --ig-slack: 22px;             /* holgura vertical para tolerar variaciones */
  --ig-ox: 40px;                /* overscan horizontal a cada lado */
}
/* El iframe se agranda y se posiciona para que el ÁREA DE VIDEO llene el
   marco: el header del usuario queda por encima y la barra de acciones / pie
   del post por debajo, recortados por overflow. El overscan + holgura aseguran
   que no aparezca ningún borde blanco del embed sin cortar el video en sí. */
.video-embed {
  position: absolute;
  left: 50%;
  top: calc(-1 * (var(--ig-top) + var(--ig-slack)));
  transform: translateX(-50%);
  width: calc(100% + 2 * var(--ig-ox));
  height: calc(100% + 420px);
  border: 0;
  display: block;
  background: var(--navy-deep);
}

/* ============================================================
   CTA BANDS (Participar / Sponsors)
   ============================================================ */
.participar {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  position: relative;
  overflow: hidden;
}
.cta-band { text-align: center; max-width: 760px; }
.cta-band .section-lead { margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 34px; }

.sponsors { background: var(--white); }
.light-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(48px, 7vw, 80px) 32px;
  box-shadow: var(--shadow);
}
.light-band .section-lead { color: var(--ink-soft); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(255,255,255,0.06); }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.contact-value { color: var(--white); font-size: 1.05rem; font-weight: 500; word-break: break-word; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 52px; width: auto; }
.footer-brand strong { display: block; font-family: var(--serif); color: var(--white); font-size: 1.1rem; }
.footer-brand span { font-size: 0.85rem; }
.footer-meta { text-align: right; font-size: 0.9rem; }
.footer-meta strong { color: var(--gold-soft); }
.footer-meta p:last-child { font-style: italic; margin-top: 4px; }
.footer-bottom { padding-top: 22px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
/* Razón social: discreta, última línea del footer */
.footer-legal {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

/* ============================================================
   MODAL APLICAR
   ============================================================ */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.apply-modal.open { visibility: visible; opacity: 1; }
.apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 48, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.apply-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 20px;
  padding: 44px 38px 38px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.apply-modal.open .apply-dialog { transform: translateY(0) scale(1); opacity: 1; }
.apply-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 38px; height: 38px;
  border: none;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.apply-close:hover { background: #ece8df; transform: rotate(90deg); }
.apply-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.apply-text { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 26px; }
.apply-options { display: flex; flex-direction: column; gap: 14px; }
.apply-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.apply-option:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.apply-option.whatsapp:hover { border-color: #25D366; }
.apply-option.email:hover { border-color: var(--red); }
.apply-option-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.apply-option.whatsapp .apply-option-icon { background: #25D366; }
.apply-option.email .apply-option-icon { background: var(--red); }
.apply-option-text { display: flex; flex-direction: column; }
.apply-option-text strong { color: var(--navy); font-size: 1.02rem; }
.apply-option-text em { font-style: normal; color: var(--ink-soft); font-size: 0.85rem; }

/* ============================================================
   REVEAL ANIMATION (base state; JS adds .is-visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-overlay, .hero-content { transform: none; }
  .hero-bg::before { animation: none; transform: scale(1.1); }
  .hero-logo { animation: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .speakers-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 3; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Gala: en tablet pasar a 2 columnas iguales */
  .gala-grid { grid-template-columns: repeat(2, 1fr); }
  .gala-item, .gala-item:nth-child(1), .gala-item:nth-child(2) { grid-column: auto; }
}

@media (max-width: 760px) {
  .brand-text em { display: none; }
  .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,0.7);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .hero-content { padding-top: 130px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .meta-divider { display: none; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .speakers-list { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
  .hero-actions .btn { width: 100%; }
  .apply-dialog { padding: 40px 24px 30px; }
  /* Gala: en móvil una sola columna */
  .gala-grid { grid-template-columns: 1fr; }
}
