/* ============================================================
   DANZA PARA TRANSFORMAR — styles.css
   I Concurso Coreográfico Amateur · Aranjuez 2026
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (already critical ones in <head>)
   ============================================================ */
:root {
  --color-primary: #F4DAD1;
  --color-primary-dark: #E8C4B8;
  --color-primary-light: #FCDDD2;
  --color-bg-dark: #000000;
  --color-bg-card: #1A1A1A;
  --color-text-light: #FFFFFF;
  --color-text-muted: #9E9E9E;
  --color-gold: #C8A951;
  --color-glow: rgba(244, 218, 209, 0.15);
  --color-border: rgba(244, 218, 209, 0.12);
  --color-border-hover: rgba(244, 218, 209, 0.25);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-card: 1.5rem;
  --radius-pill: 9999px;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input,
select,
textarea {
  font-family: var(--font-body);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Utility */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}



/* ============================================================
   4. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--color-primary);
  font-style: italic;
}

.nav-links {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 0;
  }
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 1.5px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger:hover {
  background: var(--color-border);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg-card);
  border-left: 1px solid var(--color-border);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu[hidden] {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  color: var(--color-text-light);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.25s, padding-left 0.25s;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.mobile-nav-cta {
  margin-top: 1.5rem;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: none;
  padding: 1rem;
}

.mobile-nav-cta:hover {
  background: var(--color-primary-dark);
  padding-left: 0;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(244, 218, 209, 0);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 30px rgba(244, 218, 209, 0.25);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(244, 218, 209, 0.4);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
  border: 2px solid transparent;
}

.btn--white:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn--large {
  padding: 1.1rem 2.8rem;
  font-size: 0.95rem;
}

/* Shine animation on CTA */
.btn--shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }

  30% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

.nav-cta {
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
}

/* ============================================================
   6. PILLS & BADGES
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pill--default {
  background: rgba(244, 218, 209, 0.10);
  border: 1px solid rgba(244, 218, 209, 0.30);
  color: var(--color-text-light);
}

.pill--accent {
  background: rgba(244, 218, 209, 0.10);
  border: 1px solid rgba(244, 218, 209, 0.25);
  color: var(--color-primary);
}

.pill--gold {
  background: rgba(200, 169, 81, 0.12);
  border: 1px solid rgba(200, 169, 81, 0.35);
  color: var(--color-gold);
  transition: background 0.3s, transform 0.3s;
}

.pill--gold:hover {
  background: rgba(200, 169, 81, 0.2);
  transform: translateY(-2px);
}

/* ============================================================
   7. SECTION BASE
   ============================================================ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--dark {
  background: var(--color-bg-dark);
}

.section--card {
  background: var(--color-bg-card);
}

.section--cta {
  background: linear-gradient(135deg, rgba(244, 218, 209, 0.08) 0%, rgba(232, 196, 184, 0.04) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.section-title--gold {
  color: var(--color-gold);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Wave dividers */
.wave-divider {
  position: relative;
  margin-top: -1px;
  margin-bottom: -1px;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   8. HERO
   ============================================================ */
#hero {
  /* Changed from height: 100vh to min-height to prevent clipping on mobile */
  min-height: 100vh;
  /* min-height: 600px; */
  /* Removed or kept as logic implies */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fix for mobile text overlap */
  padding-top: 80px;
  padding-bottom: 2rem;
  /* Add breathing room at bottom */
}

@media (max-width: 768px) {
  #hero {
    height: auto;
    padding-top: 100px;
    /* More space for navbar */
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0.8rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(244, 218, 209, 0.04) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(244, 218, 209, 0.05) 0%, transparent 55%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-20vh) translateX(var(--drift));
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
  max-width: 900px;
  will-change: transform;
  /* Ensure header doesn't overlap on small screens */
  margin-top: 2rem;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-badge .pill {
  background: rgba(244, 218, 209, 0.10);
  border: 1px solid rgba(244, 218, 209, 0.30);
  color: var(--color-text-light);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  margin: 0 0.15em;
  opacity: 0;
  transform: translateY(50px);
}

.hero-title .word.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 0.6s ease, transform 0.6s 0.6s ease;
}

.hero-dates {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-dates.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 0.8s ease, transform 0.6s 0.8s ease;
}

.date-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.date-sep {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(244, 218, 209, 0.4);
  font-weight: 300;
}

.date-label {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}

/* Countdown */
.countdown-wrapper {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.countdown-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 1s ease, transform 0.6s 1s ease;
}

.countdown-label-top {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 218, 209, 0.10);
  border-radius: 1rem;
  padding: 1.2rem 2rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-num {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform 0.2s ease;
}

.countdown-num.flip {
  transform: translateY(-4px);
}

.countdown-unit {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

.countdown-sep {
  font-size: 1.8rem;
  color: rgba(244, 218, 209, 0.3);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.4rem;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s 1.2s ease, transform 0.6s 1.2s ease;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  transition: color 0.3s;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator:hover {
  color: var(--color-primary);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================================
   9. SECTION 2: MANIFIESTO
   ============================================================ */
.manifiesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .manifiesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.manifiesto-text .section-title {
  margin-bottom: 1.5rem;
}

.manifiesto-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.organiza-text {
  margin-top: 1.2rem;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.6;
}

.manifiesto-image {
  position: relative;
}

.image-blob {
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(244, 218, 209, 0.03);
  aspect-ratio: 5/6;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.image-blob:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(244, 218, 209, 0.06);
}

.image-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   10. SECTION 3: PARTICIPAR - CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 40px rgba(244, 218, 209, 0.06);
}

.card--tilt:hover {
  transform: translateY(-6px);
}

.card-icon {
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.categories-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.categories-note strong {
  color: var(--color-primary);
}

/* ============================================================
   11. SECTION 4: BENTO GRID
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item--large {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
  }

  .bento-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-item--medium {
    grid-column: span 2;
  }
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.5rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 40px rgba(244, 218, 209, 0.05);
}

.bento-item--large {
  background: linear-gradient(135deg, rgba(244, 218, 209, 0.06) 0%, rgba(0, 0, 0, 0) 60%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.bento-icon--large {
  margin-bottom: 2rem;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.bento-item--large .bento-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.bento-text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bento-item--small .bento-text {
  font-size: 0.82rem;
}

/* ============================================================
   12. SECTION 5: STEPPER
   ============================================================ */
.stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .stepper {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
  }
}

/* Connecting line */
.stepper-line {
  display: none;
}

@media (min-width: 768px) {
  .stepper-line {
    display: block;
    position: absolute;
    top: 46px;
    left: calc(16.67% - 0px);
    right: calc(16.67% - 0px);
    height: 2px;
    background: rgba(244, 218, 209, 0.08);
  }

  .stepper-line-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 1.5s ease;
  }
}

/* Vertical line on mobile */
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0 0 3rem;
  flex: 1;
}

@media (min-width: 768px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    gap: 0;
  }
}

/* Mobile vertical line */
.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: rgba(244, 218, 209, 0.08);
}

.step:last-child::before {
  display: none;
}

@media (min-width: 768px) {
  .step::before {
    display: none;
  }
}

.step-number-bg {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.04;
  line-height: 1;
  top: -1rem;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .step-number-bg {
    left: 50%;
    transform: translateX(-50%);
    top: -1rem;
  }
}

.step-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-bg-dark), 0 0 0 5px rgba(244, 218, 209, 0.2);
  z-index: 1;
  transition: box-shadow 0.3s;
}

.step:hover .step-dot {
  box-shadow: 0 0 0 4px var(--color-bg-dark), 0 0 0 8px rgba(244, 218, 209, 0.15);
}

@media (min-width: 768px) {
  .step-dot {
    margin-bottom: 1.5rem;
  }
}

.step-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

@media (min-width: 768px) {
  .step-content {
    width: 100%;
  }
}

.step-icon {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .step-icon {
    display: none;
  }
}

.step-num-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.25rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.step-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   13. SECTION 6: TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 1rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(244, 218, 209, 0.08);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline-line {
    left: 28px;
    transform: none;
  }
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: var(--color-primary);
  transition: height 1.5s ease;
}

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .timeline-item {
    flex-direction: row;
    padding-left: 60px;
  }

  .timeline-item--left,
  .timeline-item--right {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .timeline-item--left {
    flex-direction: row;
    padding-right: calc(50% + 2.5rem);
  }

  .timeline-item--right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 2.5rem);
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(244, 218, 209, 0.15);
  border: 2px solid rgba(244, 218, 209, 0.30);
  transform: translateX(-50%);
  z-index: 1;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

@media (max-width: 767px) {
  .timeline-dot {
    left: 28px;
    transform: translateX(-50%);
  }
}

.timeline-dot.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(244, 218, 209, 0.15);
}

.timeline-dot--pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 20px rgba(244, 218, 209, 0.04);
}

.timeline-item--highlight .timeline-content {
  background: rgba(244, 218, 209, 0.04);
  border-color: rgba(244, 218, 209, 0.20);
}

.timeline-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

.timeline-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================================
   14. SECTION 7: PREMIOS
   ============================================================ */
.section-title--gold {
  background: linear-gradient(90deg, #C8A951, #E8D49A, #C8A951, #E8D49A);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-gold 4s linear infinite;
}

@keyframes shimmer-gold {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: end;
}

@media (min-width: 640px) {
  .podium-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
  }
}

.prize-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.prize-card:hover {
  transform: translateY(-4px);
}

.prize-card--gold {
  border-color: rgba(200, 169, 81, 0.5);
  box-shadow: 0 4px 30px rgba(200, 169, 81, 0.1);
}

.prize-card--gold:hover {
  box-shadow: 0 8px 50px rgba(200, 169, 81, 0.2);
}

.prize-card--silver {
  border-color: rgba(180, 180, 180, 0.4);
}

.prize-card--bronze {
  border-color: var(--color-primary-dark);
}

.prize-card--featured {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.prize-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.prize-rank {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.prize-card--featured .prize-rank {
  font-size: 4.5rem;
}

.prize-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.prize-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Mentions */
.mentions-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.mentions-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.mentions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Particles canvas */
.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   15. SECTION 8: JURADO
   ============================================================ */
.jury-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .jury-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.jury-member {
  text-align: center;
  transition: transform 0.3s;
}

.jury-member:hover {
  transform: translateY(-4px);
}

.jury-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-bg-card), rgba(244, 218, 209, 0.08));
  transition: box-shadow 0.3s, border-color 0.3s;
}

.jury-member:hover .jury-avatar {
  box-shadow: 0 8px 30px rgba(244, 218, 209, 0.12);
  border-color: var(--color-border-hover);
}

.jury-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jury-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.jury-role {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Criteria */
.criteria-section {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.criteria-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .criteria-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.criteria-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.criteria-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

.criteria-icon {
  color: var(--color-primary);
  margin: 0 auto 1rem;
}

.criteria-name {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   16. SECTION 9: SEDES
   ============================================================ */
.venues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .venues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.venue-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.venue-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 40px rgba(244, 218, 209, 0.06);
}

.venue-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venue-card:hover .venue-image img {
  transform: scale(1.04);
}

.venue-info {
  padding: 1.75rem;
}

.venue-phase {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.venue-detail {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   17. SECTION 10: CTA / INSCRIPCIÓN
   ============================================================ */
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.cta-badge {
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Pre-inscription form (Option B — commented out by default) */
.preinscripcion-form {
  text-align: left;
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.form-input {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group--checkbox {
  margin: 1rem 0;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--color-primary);
  margin-top: 2px;
}

.form-checkbox-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-organiza {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.footer-link:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 218, 209, 0.30);
  color: var(--color-primary);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-link-small {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color 0.25s;
}

.footer-link-small:hover {
  color: var(--color-primary);
}

/* ============================================================
   19. AOS OVERRIDES
   ============================================================ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ============================================================
   20. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  .hero-title .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-subtitle,
  .hero-dates,
  .countdown-wrapper,
  .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn--shine::after {
    display: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .section-title--gold {
    animation: none;
  }
}

/* ============================================================
   21. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
  .btn--large {
    padding: 1rem 2rem;
    font-size: 0.85rem;
  }

  .countdown {
    padding: 1rem 1rem;
    gap: 0.25rem;
  }

  .countdown-block {
    min-width: 48px;
  }

  .countdown-num {
    font-size: 1.6rem;
  }

  .countdown-sep {
    font-size: 1.4rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero-ctas {
    gap: 0.75rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --section-padding: 8rem;
  }

  .hero-title {
    font-size: clamp(5rem, 7vw, 7rem);
  }
}

/* ============================================================
   22. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(244, 218, 209, 0.25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 218, 209, 0.4);
}

/* ============================================================
   23. SELECTION STYLING
   ============================================================ */
::selection {
  background: rgba(244, 218, 209, 0.25);
  color: var(--color-text-light);
}

/* ============================================================
   ADDITIONS: Real images integration
   ============================================================ */

/* ---- HERO: real background image ---- */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.40) saturate(0.65);
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1.0) translate(0, 0);
  }

  100% {
    transform: scale(1.07) translate(-1%, 1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img {
    animation: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(244, 218, 209, 0.05) 100%);
}

/* ---- HERO CARTEL image ---- */
.hero-cartel {
  margin-bottom: 0.5rem;
}

.hero-cartel-img {
  max-width: min(560px, 88vw);
  width: 100%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(244, 218, 209, 0.15));
}

/* ---- SEPARADOR SECTION ---- */
.section-separator {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.separator-img-wrap {
  position: absolute;
  inset: 0;
}

.separator-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.5);
}

.separator-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  display: block;
}

.wave-top {
  top: 0;
}

.wave-bottom {
  bottom: 0;
}

/* ---- PARTICIPAR CARDS with photo ---- */
.card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card--photo:hover .card-photo {
  transform: scale(1.06);
}

.card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.6) 100%);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
}

.card--photo .card-title {
  margin-bottom: 0.5rem;
}

/* ---- BENTO GRID with photo ---- */
.bento-item--photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.bento-item--large.bento-item--photo {
  min-height: 300px;
}

.bento-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.7);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.bento-item--photo:hover .bento-photo {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.bento-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.78) 100%);
}

.bento-text-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  margin-top: auto;
}

.bento-item--large .bento-text-content {
  padding: 2rem;
}

/* ---- STEPPER with subtle separator bg ---- */
.section--separator-bg {
  position: relative;
  overflow: hidden;
}

.section--separator-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/separador.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.06) saturate(0.4);
  pointer-events: none;
}

/* ---- FULL-BACKGROUND sections (premios, jurado, inscripcion) ---- */
.section--full-bg {
  position: relative;
  overflow: hidden;
}

.full-bg-wrap {
  position: absolute;
  inset: 0;
}

.full-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.full-bg-overlay {
  position: absolute;
  inset: 0;
}

/* For premios & inscripcion: very dark overlay — content must be legible */
.full-bg-overlay--heavy {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.78) 50%,
      rgba(26, 10, 6, 0.85) 100%);
}

/* For jurado: card-tone overlay to maintain section feel */
.full-bg-overlay--card {
  background: linear-gradient(135deg,
      rgba(26, 26, 26, 0.90) 0%,
      rgba(26, 26, 26, 0.82) 50%,
      rgba(10, 6, 4, 0.88) 100%);
}

/* ---- JURY AVATAR placeholder (no photo yet) ---- */
.jury-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-card), rgba(244, 218, 209, 0.12));
}

.jury-initials {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---- VENUE cards — image zoom on hover already in styles.css ---- */
/* Ensure teatro-real.jpg tall enough */
.venue-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venue-card:hover .venue-image img {
  transform: scale(1.04);
}

/* ---- CTA section inherits full-bg — text always readable ---- */
/* ============================================================
   14. MODAL FORM LIGHTBOX
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.is-visible {
  opacity: 1;
}

.modal-content {
  background: var(--color-bg-card);
  width: 100%;
  max-width: 900px;
  height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}