/* ============================================================
   Edgar López Juan — Director de Orquesta
   styles.css · v20260605
   Archetype: Editorial Dark Warm
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Dark (hero, videos, contacto, footer) */
  --bg:       #1C1C1E;
  --bg-2:     #232325;
  --bg-card:  #2C2C2E;
  --cream:    #F5F5F7;
  --cream-2:  #D1D1D6;
  --cream-3:  #8E8E93;
  --gold:     #C49A5B;
  --gold-2:   #A07A3A;
  --gold-dim: rgba(196,154,91,.18);
  --line:     rgba(245,245,247,.1);
  --line-2:   rgba(245,245,247,.07);

  /* Light section tokens */
  --light-bg:      #F4EFE6;
  --light-bg-2:    #EDE7DC;
  --light-bg-card: #E5DDD1;
  --light-ink:     #1A1714;
  --light-ink-2:   #3D3630;
  --light-ink-3:   #6B6058;
  --light-line:    rgba(26,23,20,.1);
  --light-line-2:  rgba(26,23,20,.06);

  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-inout:  cubic-bezier(0.45, 0.00, 0.55, 1.00);

  --nav-h: 72px;
  --container: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ── Light section overrides ───────────────────────────────── */
.section-light {
  background: var(--light-bg) !important;
  color: var(--light-ink);
  border-top-color: var(--light-line-2) !important;
  border-bottom-color: var(--light-line-2) !important;
}
.section-light .section-kicker { color: var(--gold-2); }
.section-light .section-title  { color: var(--light-ink); }
.section-light .section-title em { color: var(--gold-2); }
.section-light .reveal {
  /* reveal animation still works — just different color context */
}
/* Bio */
.section-light .bio-text p      { color: var(--light-ink-2); }
.section-light .bio-text em     { font-style: italic; }
.section-light .bio-stat        { border-left-color: rgba(196,154,91,.3); }
.section-light .stat-num        { color: var(--gold-2); }
.section-light .stat-plus       { color: var(--gold-2); }
.section-light .stat-label      { color: var(--light-ink-3); }
.section-light .stat-label em   { color: var(--gold-2); }
/* Gallery */
.section-light.galeria          { background: var(--light-bg-2) !important; }
.section-light .galeria-hint    { color: var(--light-ink-3); }
.section-light .galeria-hint code { background: var(--light-bg-card); color: var(--gold-2); }
/* Press */
.section-light.prensa           { background: var(--light-bg) !important; }
.section-light .press-card      {
  background: var(--light-bg-card);
  border-color: var(--light-line);
}
.section-light .press-medium    { color: var(--gold-2); }
.section-light .press-date      { color: var(--light-ink-3); }
.section-light .press-quote p   { color: var(--light-ink); }
.section-light .press-excerpt   { color: var(--light-ink-2); }
.section-light .press-link      { color: var(--gold-2); }
.section-light .press-link:hover { color: var(--light-ink); }
.section-light .contacto-sub    { color: var(--light-ink-3); }
.section-light .prensa-track-wrap {
  scrollbar-color: var(--light-line) transparent;
}
.section-light .prensa-track-wrap::-webkit-scrollbar-thumb {
  background: var(--light-line);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
select, textarea, input { font: inherit; }

/* ── Language toggle ───────────────────────────────────────── */
[data-lang="en"] .lang-es { display: none !important; }
[data-lang="es"] .lang-en { display: none !important; }

/* ── Reveal on scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety: reveal[data-split] must never be invisible */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 2 * var(--gap));
  margin-inline: auto;
}

/* ── Typography helpers ────────────────────────────────────── */
.section-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
  max-width: 16ch;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--center { text-align: center; }
.section-header--center .section-title { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ════════════════════════════════════════════════════════════
   SPLASH
   ════════════════════════════════════════════════════════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.6s var(--ease-out), clip-path 0.7s var(--ease-inout);
  /* CSS safety net: auto-hide at 4.5s even if JS fails */
  animation: splashSafety 0.01s 4.5s forwards;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.splash-monogram {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.15em;
  animation: splashFadeIn 0.8s var(--ease-out) both;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.splash-bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.splash-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  animation: splashProgress 2.8s var(--ease-out) 0.4s both;
}
@keyframes splashProgress {
  to { width: 100%; }
}


/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gap);
  gap: 2rem;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(28,28,30,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line-2);
}

.nav-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-3);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
@media (hover: hover) {
  .nav-link:hover { color: var(--cream); }
  .nav-link:hover::after { right: 0; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.lang-toggle {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lt-sep { opacity: 0.4; }

[data-lang="es"] .lt-es { color: var(--gold); }
[data-lang="en"] .lt-en { color: var(--gold); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--cream-2);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(28,28,30,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: all;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.drawer-link {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream-2);
  transition: color 0.2s;
}
.drawer-link:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}


/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
}

/* ── Hero video background ─────────────────────────────────── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Cubre todo el viewport manteniendo 16:9 */
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}
/* Oscurecer el vídeo para que el texto sea legible */
.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28,28,30,.55);
  z-index: 1;
}
/* En local (file://) o móvil: ocultar vídeo, mostrar foto */
.hero-video-wrap.is-hidden { display: none; }

/* Ajustar z-index: foto y mesh encima del vídeo, debajo del contenido */
.hero-photo-wrap { z-index: 1; }
.hero-mesh       { z-index: 2; }
.hero-grain      { z-index: 3; }
.hero-vignette   { z-index: 4; }
.hero-content    { z-index: 5; }
.hero-scroll     { z-index: 5; }

/* Cuando el vídeo está activo, la foto pasa a fallback (oculta en desktop) */
.hero-video-active .hero-photo-wrap {
  opacity: 0;
  transition: opacity 1s;
}

/* En móvil: siempre mostrar foto, nunca el vídeo */
@media (max-width: 768px) {
  .hero-video-wrap { display: none; }
}

/* Animated mesh gradient */
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 35%, rgba(196,154,91,.2) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 85% 65%, rgba(196,154,91,.1) 0%, transparent 55%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(44,44,46,.9) 0%, transparent 65%);
  filter: blur(55px);
  animation: meshDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(6deg); }
}
/* Don't gate this — it's a slow background, not intrusive */

/* Film grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(14,11,9,.55) 70%, rgba(14,11,9,.9) 100%);
  pointer-events: none;
}

/* Hero photo */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
  overflow: clip;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9) contrast(1.05);
}
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 35%),
              linear-gradient(to top, var(--bg) 0%, transparent 20%);
  z-index: 1;
}
/* When photo is missing, show a warm gradient placeholder */
.hero-photo-wrap.no-photo {
  background: linear-gradient(135deg, var(--bg-2) 0%, #2a1f14 100%);
}
.hero-photo-wrap.no-photo::after {
  content: "→ Añade tu foto en assets/img/hero.jpg";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--cream-3);
  padding: 2rem;
  text-align: center;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + 4rem) var(--gap) 6rem;
  max-width: min(680px, 55%);
  margin-left: var(--gap);
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.9s var(--ease-out) 0.8s both;
}

.hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.96;
  color: var(--cream);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.9s var(--ease-out) 1s both;
}
.hero-name-first {
  display: block;
  font-style: italic;
  color: var(--cream);
}
.hero-name-last {
  display: block;
  color: var(--cream-2);
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--cream-3);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 36ch;
  animation: fadeUp 0.9s var(--ease-out) 1.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease-out) 1.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

@media (max-width: 768px) {
  .hero-photo-wrap { width: 100%; opacity: 0.25; }
  .hero-photo-wrap::before {
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 80%),
                linear-gradient(to right, var(--bg) 0%, transparent 60%);
  }
  .hero-content {
    max-width: 100%;
    margin-left: 0;
    padding-inline: var(--gap);
  }
  .hero-title { font-size: clamp(2.8rem, 12vw, 4.5rem); }
}


/* ════════════════════════════════════════════════════════════
   BIO
   ════════════════════════════════════════════════════════════ */
.bio {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-2);
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.bio-text p {
  color: var(--cream-2);
  line-height: 1.85;
  margin-bottom: 1.4rem;
  max-width: 70ch;
}
.bio-text p:last-child { margin-bottom: 0; }

.bio-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.bio-stat {
  border-left: 1px solid var(--gold-dim);
  padding-left: 1.5rem;
}
.stat-num {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-plus {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  vertical-align: top;
  margin-top: 0.5rem;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cream-3);
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  line-height: 1.5;
}
.stat-label em {
  display: block;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
  .bio-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 0;
    border-top: 1px solid var(--line-2);
    padding-top: 2rem;
  }
  .bio-stat { flex: 1 1 120px; }
}


/* ════════════════════════════════════════════════════════════
   GALERÍA
   ════════════════════════════════════════════════════════════ */
.galeria {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.6rem;
}

.gal-item {
  position: relative;
  overflow: clip;
  background: var(--bg-card);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gal-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
@media (hover: hover) {
  .gal-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.15) brightness(1.05);
  }
  .gal-item:hover .gal-caption { opacity: 1; transform: none; }
}

.gal-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(14,11,9,.85) 0%, transparent 100%);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cream-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

/* Placeholder when image missing */
.gal-item.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--line);
}
.gal-item.img-missing img { display: none; }
.gal-item.img-missing::after {
  content: attr(data-num) "foto-" attr(data-index) ".jpg";
  font-size: 0.72rem;
  color: var(--cream-3);
}

.galeria-hint {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--cream-3);
  text-align: center;
  line-height: 1.7;
}
.galeria-hint code {
  background: var(--bg-card);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.88em;
  color: var(--gold);
}

@media (max-width: 700px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gal-large { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .gal-large { grid-column: span 1; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8,6,4,.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-height: 82vh;
  max-width: 90vw;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--cream-3);
  letter-spacing: 0.06em;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.4rem;
  color: var(--cream-3);
  transition: color 0.2s;
  z-index: 1;
}
.lightbox-close:hover { color: var(--cream); }


/* ════════════════════════════════════════════════════════════
   INSTITUCIONES
   ════════════════════════════════════════════════════════════ */
.instituciones {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding-block: 2rem;
  background: var(--bg-2);
  overflow: clip;
}
.inst-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-bottom: 1rem;
  text-align: center;
}
.inst-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.2rem;
}
.inst-item {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cream-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}
.inst-item:hover { color: var(--gold); }
.inst-sep {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.7rem;
}
@media (max-width: 600px) {
  .inst-sep { display: none; }
  .inst-item { font-size: 0.75rem; }
}

/* ════════════════════════════════════════════════════════════
   VÍDEOS
   ════════════════════════════════════════════════════════════ */
.videos {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-2);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
/* Vídeo destacado: ocupa las 3 columnas */
.video-featured {
  grid-column: 1 / -1;
}
.video-featured .video-thumb-wrap {
  aspect-ratio: 16/7;
}
.video-featured .video-info {
  padding: 1.4rem 1.8rem;
}
.video-featured .video-title {
  font-size: 1.15rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: clip;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .video-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
  }
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: clip;
  background: var(--bg-2);
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .video-card:hover .video-thumb { transform: scale(1.04); }
}

.video-thumb-wrap.is-playing { cursor: default; }
.video-thumb-wrap.is-playing .video-play { display: none; }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,11,9,.4);
  transition: background 0.25s;
}
.video-play:hover { background: rgba(14,11,9,.6); }
.video-play svg {
  width: 52px; height: 52px;
  color: var(--cream);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
  transition: transform 0.25s, color 0.25s;
}
@media (hover: hover) {
  .video-play:hover svg { transform: scale(1.12); color: var(--gold); }
}

/* Placeholder when video slot is empty */
.video-thumb-empty {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--cream-3);
}
.video-play-placeholder svg { opacity: 0.4; }
.video-play-placeholder p { font-size: 0.72rem; line-height: 1.5; }

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1.2rem 1.4rem;
}
.video-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream-2);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.video-orch {
  font-size: 0.75rem;
  color: var(--cream-3);
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .videos-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   PRENSA
   ════════════════════════════════════════════════════════════ */
.prensa {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
  overflow: clip;
}

.prensa-track-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 0.5rem 2rem;
  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.prensa-track-wrap::-webkit-scrollbar { height: 3px; }
.prensa-track-wrap::-webkit-scrollbar-track { background: transparent; }
.prensa-track-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.prensa-track {
  display: flex;
  gap: 1.2rem;
  padding-inline: var(--gap);
  min-width: max-content;
}

.press-card {
  flex-shrink: 0;
  width: clamp(280px, 28vw, 360px);
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .press-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
  }
}

.press-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.press-medium {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.press-date {
  font-size: 0.72rem;
  color: var(--cream-3);
  letter-spacing: 0.1em;
}

.press-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.press-quote p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.4;
}

.press-excerpt {
  font-size: 0.82rem;
  color: var(--cream-3);
  line-height: 1.75;
  flex: 1;
}

.press-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
  align-self: flex-start;
}
.press-link:hover { color: var(--cream); }


/* ════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════ */
.contacto {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-2);
  overflow: clip;
}

.contacto-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(196,154,91,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 100%, rgba(196,154,91,.06) 0%, transparent 55%);
  pointer-events: none;
}
.contacto .container { position: relative; z-index: 1; }

.contacto-sub {
  color: var(--cream-3);
  max-width: 50ch;
  margin: 1rem auto 0;
  text-align: center;
}

/* Form */
.contact-form {
  max-width: 640px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,154,91,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238B7E68' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group option { background: var(--bg-card); color: var(--cream); }

.btn-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.82rem;
  overflow: clip;
}
.btn-sending,
.btn-done { position: absolute; }

/* Submit states */
.contact-form:not(.is-sending):not(.is-done)  .btn-sending { display: none; }
.contact-form:not(.is-sending):not(.is-done)  .btn-done    { display: none; }
.contact-form.is-sending .btn-text             { opacity: 0; }
.contact-form.is-sending .btn-done             { display: none; }
.contact-form.is-done    .btn-text             { opacity: 0; }
.contact-form.is-done    .btn-sending          { display: none; }

.btn-done svg { width: 22px; height: 22px; }

.form-note {
  font-size: 0.76rem;
  color: var(--cream-3);
  text-align: center;
  line-height: 1.6;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line-2);
  padding-block: 3rem;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--cream-3);
  letter-spacing: 0.06em;
}
.footer-legal {
  font-size: 0.7rem;
  color: var(--bg-card);
  /* intentionally near-invisible — legal text shouldn't dominate */
  color: rgba(139,126,104,.4);
}


/* ════════════════════════════════════════════════════════════
   TILT (cards hover effect)
   ════════════════════════════════════════════════════════════ */
.tilt-target {
  transform-style: preserve-3d;
  transform: perspective(800px);
  will-change: transform;
}


/* ════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
