/* =====================================================================
   BROTES 2026 — Rediseño 3D inmersivo
   Tokens de marca + sistema de diseño
   ===================================================================== */
:root {
  --color-bg-dark: #000000;
  --color-bg-soft: #0a0d0b;
  --color-text-bright: #f4f6f5;
  --color-laurisilva: #1a3e2a;
  --color-laurisilva-light: #2f6b48;
  --color-tierra: #5d4037;
  --color-accent: #d4d4d8;
  --color-gold: #c9a86a;
  /* Brotes Sans -> Montserrat (geométrica, Avant-Garde) */
  --font-serif: "Montserrat", system-ui, -apple-system, sans-serif; /* titulares (Ultra Bold) */
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;  /* textos (Light) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-bright);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--color-laurisilva-light); color: #fff; }

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: #000;
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.skip-link:focus { left: 12px; top: 12px; }

.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;
}

/* ===================== Tipografía ===================== */
.serif { font-family: var(--font-serif); }
.tag, .small-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.85;
}

.massive-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0.4em 0;
}
.massive-text .outline {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(244, 246, 245, 0.55);
}

.desc-text {
  font-size: 1.05rem;
  color: rgba(244, 246, 245, 0.78);
  font-weight: 300;
  max-width: 60ch;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 1.2rem; }
.mb-4 { margin-bottom: 2.4rem; }
.mt-4 { margin-top: 2.4rem; }

/* ===================== Fondo de vídeo global ===================== */
.global-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.global-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.7) brightness(0.55);
}
.global-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(26, 62, 42, 0.35), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.92));
}

/* ===================== Canvas 3D ===================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#bg-canvas.ready { opacity: 1; }

/* ===================== Loader ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--color-bg-dark);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 120px;
  height: auto;
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.loader-bar-container {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.loader-bar {
  width: 0%; height: 100%;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

/* ===================== Header ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background 0.4s, padding 0.4s;
}
.header.scrolled {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.header-logo-img { width: 38px; height: auto; }
.logo-text {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}
.header-right { display: flex; align-items: center; gap: 22px; }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(244,246,245,0.5);
  padding: 6px 6px;
  transition: color 0.3s;
  text-transform: uppercase;
}
.lang-btn.active { color: var(--color-gold); }
.lang-sep { opacity: 0.3; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-text-bright);
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-text { font-size: 0.8rem; letter-spacing: 0.18em; font-weight: 600; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.hamburger .line {
  height: 1.5px; background: var(--color-text-bright);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.hamburger .line:first-child { width: 26px; }
.hamburger .line:last-child { width: 18px; margin-left: auto; }
body.menu-open .hamburger .line:first-child { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .hamburger .line:last-child { width: 26px; transform: translateY(-6.5px) rotate(-45deg); }

/* ===================== Overlay menu ===================== */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-bg-dark);
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.overlay-menu.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
  pointer-events: auto;
}
.menu-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.menu-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.menu-overlay-dark {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.85), rgba(26,62,42,0.55));
}
.menu-content {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.huge-links { list-style: none; margin: 0; padding: 0; }
.huge-links li { overflow: hidden; }
.menu-link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: inline-block;
  color: rgba(244,246,245,0.65);
  transition: color 0.3s, transform 0.4s var(--ease);
  position: relative;
}
.menu-link:hover { color: var(--color-text-bright); transform: translateX(18px); }
.menu-link::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: var(--color-gold);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease);
}
.menu-link:hover::after { clip-path: inset(0 0 0 0); }
.menu-right { display: flex; flex-direction: column; gap: 28px; }
.menu-info-block h4 {
  font-size: 0.72rem; letter-spacing: 0.22em; margin: 0 0 6px;
  color: var(--color-gold); font-weight: 600;
}
.menu-info-block p { margin: 0; color: rgba(244,246,245,0.8); font-size: 0.95rem; }

.menu-cronopia {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(201,168,106,0.4);
  border-radius: 8px;
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
}
.menu-cronopia:hover {
  background: rgba(201,168,106,0.12);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}
.menu-cronopia-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,246,245,0.6);
}
.menu-cronopia-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--color-gold);
}
.menu-cronopia-arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.menu-cronopia:hover .menu-cronopia-arrow { transform: translate(3px, -3px); }

/* ===================== Main / secciones ===================== */
main { position: relative; z-index: 10; }
section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px); }
.container { max-width: var(--maxw); margin: 0 auto; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ===================== Hero ===================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-content { max-width: 900px; }
.hero-tag {
  margin-bottom: 30px;
  padding: 10px 22px;
  border: 1px solid rgba(244,246,245,0.2);
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 18vw, 13rem);
  font-weight: 900;
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title.outline {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244,246,245,0.55);
}
.hero-desc {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  margin-top: 30px;
  color: rgba(244,246,245,0.85);
  font-family: var(--font-sans);
}
.hero-subdesc {
  font-size: 0.9rem;
  opacity: 0.55;
  margin-top: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-down-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.6;
}
.scroll-down-indicator .line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--color-gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================== Paneles de cristal (entorno unificado) ===================== */
.glass-panel {
  background: rgba(8, 12, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  padding: clamp(34px, 5vw, 68px);
}

/* ===================== Sección cinematográfica (bailarina · 04.mp4) ===================== */
.cinematic-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  background: transparent;
  /* funde la sección completa con el entorno por arriba y abajo */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.cinematic-video { position: absolute; inset: 0; z-index: 0; }
.cinematic-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.8) brightness(0.62);
  /* el propio vídeo se disuelve en los bordes para evitar cortes secos */
  -webkit-mask-image: radial-gradient(ellipse 120% 85% at 50% 50%, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 120% 85% at 50% 50%, #000 45%, transparent 92%);
}
.cinematic-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(26,62,42,0.25), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 85%),
    linear-gradient(180deg, var(--color-bg-dark), rgba(10,13,11,0.15) 35%, rgba(10,13,11,0.15) 65%, var(--color-bg-dark));
}
.cinematic-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: 1100px;
}
.cinematic-line {
  font-family: var(--font-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 0.95;
  margin: 0.2em 0;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.cinematic-sub {
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(244,246,245,0.92);
  max-width: 52ch;
  margin-top: 1.2rem;
}
.cinematic-marquee {
  position: absolute;
  bottom: 9vh; left: 0; right: 0;
  z-index: 2;
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  animation: marquee 28s linear infinite;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-gold);
}
.marquee-track span { opacity: 0.9; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== Realce 3D de elementos ===================== */
.tilt-card { transition: transform 0.3s var(--ease), box-shadow 0.4s var(--ease); transform-style: preserve-3d; will-change: transform; }
.tilt-card:hover { box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.img-block.tilt-card { border-radius: 14px; }
.img-block.tilt-card .img-caption { transform: translateZ(40px); }
.breakout-desc-item.tilt-card {
  background: rgba(8, 12, 10, 0.35);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 26px 24px;
}
.breakout-desc-item.tilt-card:hover { border-color: rgba(201,168,106,0.45); }

/* ===================== Manifiesto ===================== */
.sticky-section { background: transparent; }
.sidebar-info-card {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  bottom: 40px;
  z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  max-width: 220px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
}
.sidebar-info-card.show { opacity: 1; transform: none; }
.sidebar-info-item h4 {
  margin: 0 0 3px; font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--color-gold); font-weight: 600;
}
.sidebar-info-item p { margin: 0; font-size: 0.82rem; color: rgba(244,246,245,0.85); }

.sticky-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sticky-content-inner {
  max-width: 560px;
  background: rgba(8, 12, 10, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(28px, 4vw, 48px);
}
.small-tag { margin-bottom: 1.4rem; }
.sticky-content-inner .desc-text { margin-bottom: 1.2rem; }
.signature { font-style: italic; opacity: 0.7; font-size: 1rem; margin: 1.6rem 0 2rem; font-family: var(--font-sans); font-weight: 300; }

.img-block { position: relative; border-radius: 8px; overflow: hidden; }
.parallax-img {
  width: 100%; height: auto;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.img-block:hover .parallax-img { transform: scale(1.05); }
.img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 24px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.img-caption h3 { margin: 0 0 4px; font-size: 1.1rem; letter-spacing: 0.1em; }
.img-caption p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* ===================== Botones ===================== */
.btn-brutalist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1px solid var(--color-text-bright);
  background: transparent;
  color: var(--color-text-bright);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  transition: color 0.4s, border-color 0.4s;
}
.btn-brutalist::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--color-gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn-brutalist:hover { color: #000; border-color: var(--color-gold); }
.btn-brutalist:hover::before { transform: translateY(0); }
.btn-brutalist span { position: relative; z-index: 1; }
.btn-full { width: 100%; }
.btn-brutalist.outline-only { border-color: rgba(255,255,255,0.4); }

/* ===================== Programa ===================== */
.lineup-section { background: transparent; }
.lineup-section .container {
  background: rgba(8, 12, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.program-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 40px 0 50px;
}
.tab-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(244,246,245,0.7);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: all 0.3s;
}
.tab-btn:hover { border-color: var(--color-gold); color: var(--color-text-bright); }
.tab-btn.active { background: var(--color-gold); color: #000; border-color: var(--color-gold); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.phase-tag { display: block; text-align: center; margin-bottom: 2rem; color: var(--color-gold); font-weight: 500; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.program-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.program-card:hover { border-color: rgba(201,168,106,0.5); background: rgba(255,255,255,0.05); }
.program-card.highlight { border-color: rgba(201,168,106,0.35); background: rgba(201,168,106,0.06); }
.card-num { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--color-gold); font-weight: 600; }
.program-card h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin: 14px 0 12px; line-height: 1.2; letter-spacing: -0.01em; }
.card-desc { font-size: 0.92rem; color: rgba(244,246,245,0.72); margin: 0 0 20px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }

/* ===================== Breakout / reglas ===================== */
.breakout-video {
  position: relative;
  background: transparent;
  overflow: hidden;
}
.breakout-content { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.breakout-desc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.breakout-desc-item h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--color-gold); }
.breakout-desc-item p { font-size: 0.95rem; color: rgba(244,246,245,0.8); margin: 0; }

/* ===================== Registro ===================== */
.registration-section { background: transparent; }
.reg-container {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(8, 12, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  padding: clamp(34px, 5vw, 64px);
}
.reg-header { margin-bottom: 40px; }
.brutalist-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,246,245,0.7); }
.form-row input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 15px 18px;
  color: var(--color-text-bright);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.form-row input:focus { outline: none; border-color: var(--color-gold); background: rgba(255,255,255,0.06); }
.form-row input.invalid { border-color: #e06464; }
.form-row-checkbox { display: flex; gap: 12px; align-items: flex-start; }
.form-row-checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-gold); flex-shrink: 0; }
.form-row-checkbox label { font-size: 0.85rem; color: rgba(244,246,245,0.7); line-height: 1.5; }
.form-error {
  background: rgba(224,100,100,0.12);
  border: 1px solid rgba(224,100,100,0.4);
  color: #f0b4b4;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}
.form-error.show { display: block; }

.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn-brutalist.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-screen { display: none; text-align: center; padding: 40px 0; }
.success-screen.show { display: block; animation: fadeUp 0.6s var(--ease); }
.success-badge {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--color-laurisilva-light);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin: 0 auto 24px;
}
.text-green { color: var(--color-laurisilva-light); }

/* ===================== FAQ ===================== */
.faq-section { background: transparent; }
.faq-inner-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(8, 12, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  padding: clamp(34px, 5vw, 64px);
}
.faq-accordion { margin-top: 40px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-trigger {
  width: 100%;
  background: none; border: none;
  color: var(--color-text-bright);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
}
.faq-icon-status { font-size: 1.6rem; color: var(--color-gold); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq-trigger[aria-expanded="true"] .faq-icon-status { transform: rotate(45deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-panel-content { padding-bottom: 26px; color: rgba(244,246,245,0.75); font-size: 1rem; max-width: 70ch; }

/* ===================== Footer ===================== */
.footer { background: rgba(0,0,0,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: clamp(60px,8vh,100px) clamp(20px,5vw,56px) 40px; border-top: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 10; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; }
.footer-logo { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 16px; }
.footer-tagline { font-size: 0.95rem; color: rgba(244,246,245,0.65); max-width: 40ch; }
.footer-links h4, .footer-contact h4 { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--color-gold); margin: 0 0 16px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(244,246,245,0.7); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-text-bright); }
.footer-contact p { font-size: 0.9rem; color: rgba(244,246,245,0.7); margin: 0 0 12px; }
.footer-contact a { text-decoration: underline; }
.footer-bottom { max-width: var(--maxw); margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: rgba(244,246,245,0.5); }
.footer-legal { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-legal a { text-decoration: underline; }
.footer-legal .separator { opacity: 0.3; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .menu-content { grid-template-columns: 1fr; gap: 40px; }
  .menu-right { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .sticky-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-info-card { display: none; }
  .logo-text { display: none; }
}

@media (max-width: 560px) {
  .header { padding: 16px 20px; }
  .program-card { padding: 26px 22px; }
}

/* ===================== Reduce motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #bg-canvas { opacity: 1; }
}

/* =====================================================================
   CAPA ESPECTÁCULO (FX) — versión web-brotes-espectacular
   ===================================================================== */

/* Revelado más cinematográfico (entra con desenfoque y profundidad) */
.reveal {
  filter: blur(12px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease), letter-spacing 1.1s var(--ease);
}
.reveal.in { filter: blur(0); }

/* Disolución al salir: el contenido se difumina e integra en el fondo */
.reveal.dissolve {
  opacity: 0;
  transform: translateY(-50px) scale(0.97);
  filter: blur(10px);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-laurisilva-light), var(--color-gold));
  z-index: 200;
  box-shadow: 0 0 18px rgba(201, 168, 106, 0.7);
  will-change: transform;
}

/* Cursor con estela luminosa */
.fx-cursor-dot, .fx-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  margin-left: -4px; margin-top: -4px;
  will-change: transform;
}
.fx-cursor-dot {
  width: 8px; height: 8px;
  background: var(--color-gold);
  box-shadow: 0 0 14px 3px rgba(201, 168, 106, 0.8);
}
.fx-cursor-ring {
  width: 42px; height: 42px;
  margin-left: -21px; margin-top: -21px;
  border: 1px solid rgba(201, 168, 106, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s, background 0.3s;
  backdrop-filter: invert(0.04);
}
.fx-cursor-hover .fx-cursor-ring {
  width: 74px; height: 74px;
  margin-left: -37px; margin-top: -37px;
  border-color: rgba(201, 168, 106, 0.9);
  background: rgba(201, 168, 106, 0.08);
}
.fx-cursor-hover .fx-cursor-dot { opacity: 0.5; }

.btn-brutalist { transition: color 0.4s, border-color 0.4s, transform 0.25s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .reveal.dissolve { opacity: 1; transform: none; filter: none; letter-spacing: normal; }
  .scroll-progress, .fx-cursor-dot, .fx-cursor-ring { display: none; }
}

/* =====================================================================
   Ocultar barra de scroll nativa (estética), manteniendo el desplazamiento
   ===================================================================== */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

/* Teaser con desenfoque para nombres no confirmados */
.blur-teaser {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
  display: inline-block;
}

/* Tarjeta visible pero textos desenfocados (no confirmados) */
.program-card.blurred-card {
  user-select: none;
  pointer-events: none;
}
.program-card.blurred-card h4,
.program-card.blurred-card p,
.program-card.blurred-card span {
  filter: blur(5px);
  opacity: 0.6;
}
