/* ============================================
   TEATROPOLIS LANDING PAGE - DESIGN SYSTEM
   ============================================ */

/* Import Fonts */
@import url('./google-fonts.css');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Colors - Theatrical Palette */
  --color-burgundy: #4A1C40;
  --color-burgundy-dark: #2D1127;
  --color-teal: #5DADA6;
  --color-teal-light: #7BC4BE;
  --color-navy: #1A1A2E;
  --color-cream: #F5E6D3;
  --color-gold: #D4AF37;
  --color-gold-light: #E8C96F;
  
  /* Gradients */
  --gradient-theatrical: linear-gradient(135deg, var(--color-burgundy) 0%, var(--color-navy) 100%);
  --gradient-spotlight: radial-gradient(circle at center, rgba(245, 230, 211, 0.15) 0%, transparent 70%);
  --gradient-curtain: linear-gradient(90deg, var(--color-burgundy-dark) 0%, var(--color-burgundy) 50%, var(--color-burgundy-dark) 100%);
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(93, 173, 166, 0.4);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-cream);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Responsiveness on images */
img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--color-teal);
  box-shadow: var(--shadow-md);
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.header-scrolled {
  padding: 1rem 2rem;
  background: rgba(26, 26, 46, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.logo-text-top {
  font-family: var(--font-accent);
  color: var(--color-teal);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: -2px; /* Pull closer to the logo */
  line-height: 1;
  font-weight: 600;
  padding-left: 75px; /* Push past the mask icon */
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo:hover .logo-wrapper {
  transform: scale(1.05);
}

.login-link {
  color: var(--color-cream);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  opacity: 0.8;
  letter-spacing: 1px;
}

.login-link:hover {
  color: var(--color-teal);
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-theatrical);
  overflow: hidden;
  padding-top: 80px;
}

/* Hero Background Image */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Hero Image Overlay */
.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 28, 64, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
  z-index: 2;
}

/* Curtain Frame */
.curtain-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}

.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  background: var(--gradient-curtain);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.curtain-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.curtain-right {
  right: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

/* Decorative Stars */
.star {
  position: absolute;
  color: var(--color-gold);
  font-size: 2rem;
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.star:nth-child(2) { top: 15%; right: 8%; animation-delay: 1s; }
.star:nth-child(3) { bottom: 20%; left: 10%; animation-delay: 2s; }
.star:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 1.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.marquee-frame {
  background: var(--color-teal);
  padding: 3rem 4rem;
  border-radius: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--color-burgundy);
}

/* Marquee Lights */
.marquee-lights {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.light {
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-gold-light);
  animation: lightBlink 1.5s ease-in-out infinite;
}

.light:nth-child(2n) { animation-delay: 0.5s; }
.light:nth-child(3n) { animation-delay: 1s; }

@keyframes lightBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--color-gold-light); }
  50% { opacity: 0.3; box-shadow: 0 0 5px var(--color-gold); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 4px;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--color-burgundy);
  margin-bottom: 2rem;
  font-style: italic;
}

.btn-cta {
  display: inline-block;
  padding: 1.25rem 3rem;
  background: var(--color-burgundy);
  color: var(--color-cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn-cta:hover {
  background: var(--color-burgundy-dark);
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-cta-icon {
  margin-left: 8px;
  animation: bounce 2s infinite;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: var(--spacing-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 3px;
  color: var(--color-teal);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--color-gold);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-cream);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================================
   SOMOS SECTION
   ============================================ */
.somos {
  background: var(--color-navy);
  position: relative;
}

.somos-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.somos-text {
  padding-right: 2rem;
}

.somos-block h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-cream);
  letter-spacing: 1px;
  margin: 0;
}

.somos-block p {
  color: rgba(245, 230, 211, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

.somos-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--color-teal);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(93, 173, 166, 0.2);
  aspect-ratio: 4/5;
}

.somos-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.somos-image-wrapper:hover img {
  transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--gradient-theatrical);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-spotlight);
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-cream);
}

.mission-box {
  background: rgba(93, 173, 166, 0.1);
  border-left: 4px solid var(--color-teal);
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
}

.mission-box strong {
  color: var(--color-teal);
  font-size: 1.2rem;
}

/* Benefit List Styles (Nuestra Esencia) */
.about-main-title {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.benefit-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-icon {
  color: var(--color-teal);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  color: var(--color-gold);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-accent);
  font-weight: 700;
}

.benefit-desc {
  color: var(--color-cream);
  font-size: 1.05rem;
  line-height: 1.5;
  display: block;
}

.stats-card {
  background: rgba(26, 26, 46, 0.8);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  border: 3px solid var(--color-teal);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.5rem;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-sublabel {
  font-size: 1rem;
  color: var(--color-cream);
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* About Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 5;
}

/* Gallery Grid - Generic reusable class */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 2px solid var(--color-teal);
  transition: var(--transition-smooth);
  background: var(--color-navy);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 28, 64, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 2rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
  background: var(--color-navy);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: linear-gradient(135deg, var(--color-burgundy) 0%, var(--color-navy) 100%);
  border-radius: 20px;
  border: 2px solid var(--color-teal);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.program-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(93, 173, 166, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.program-card:hover::before {
  opacity: 1;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--color-gold);
}

.program-card-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.program-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-card-image {
  transform: scale(1.1);
}

.program-card-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.program-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-teal);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.program-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.program-benefits-list li {
  color: var(--color-cream);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.program-benefits-list li:last-child {
  margin-bottom: 0;
}

.program-benefits-list li i {
  color: var(--color-teal);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ============================================
   IMPACT SECTION
   ============================================ */
.impact {
  background: var(--color-navy);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.impact-card {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(93, 173, 166, 0.2);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-curtain);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.impact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.5); /* Gold tint */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(93, 173, 166, 0.1);
}

.impact-card:hover::before {
  transform: scaleX(1);
}

.impact-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.impact-card h3 {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--color-cream);
  margin-bottom: 1rem;
  font-weight: 700;
}

.impact-card p {
  color: rgba(245, 230, 211, 0.85); /* Cream with opacity */
  line-height: 1.6;
  font-size: 1rem;
}

/* Highlighted card for Allies */
.impact-card-highlight {
  background: linear-gradient(135deg, rgba(74, 28, 64, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
  border-color: var(--color-teal);
}

.impact-card-highlight .impact-icon {
  color: var(--color-teal);
}

.impact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--color-teal-light);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.impact-link i {
  transition: transform 0.3s ease;
}

.impact-link:hover {
  color: var(--color-gold);
}

.impact-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   AGE GROUPS SECTION
   ============================================ */
.age-groups {
  background: var(--gradient-theatrical);
  position: relative;
}

.age-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.age-card {
  background: rgba(26, 26, 46, 0.9);
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--color-teal);
  transition: var(--transition-smooth);
}

.age-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.age-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.age-card:hover .age-image {
  transform: scale(1.1);
}

.age-content {
  padding: 2rem;
  text-align: center;
}

.age-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.age-range {
  color: var(--color-teal);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.age-content p {
  color: var(--color-cream);
  line-height: 1.7;
}

.age-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: inline-block;
  text-align: left;
}

.age-benefits-list li {
  color: var(--color-cream);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.age-benefits-list li:last-child {
  margin-bottom: 0;
}

.age-benefits-list li i {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ============================================
   MUNICIPAL THEATER SECTION
   ============================================ */
.theater-section {
  position: relative;
  background: var(--color-navy);
  padding: 6rem 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: image-set(url('../images/teatropolis/gallery/gallery-2.webp') type('image/webp'), url('../images/teatropolis/gallery/gallery-2.jpg'));
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.theater-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--color-navy) 80%);
}

.theater-content {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.theater-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.theater-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-cream);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.theater-subtitle {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 600;
}

.theater-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 1.5rem;
}

.theater-features {
  list-style: none;
  margin-top: 2rem;
}

.theater-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-cream);
}

.theater-features i {
  color: var(--color-teal);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.theater-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.theater-card {
  background: linear-gradient(135deg, var(--color-burgundy) 0%, var(--color-burgundy-dark) 100%);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212, 175, 55, 0.2);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  position: relative;
  max-width: 400px;
  width: 100%;
}

.theater-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.theater-card-inner {
  border: 2px dashed var(--color-gold);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  background: rgba(26, 26, 46, 0.6);
}

.theater-card-icon {
  font-size: 4rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.theater-card h4 {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.theater-card h5 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-teal);
  margin-bottom: 1rem;
  line-height: 1;
}

.theater-card p {
  color: var(--color-gold);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.theater-card-decoration {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-navy);
  text-align: center;
  padding: var(--spacing-xl) 2rem;
  position: relative;
}

.cta-box {
  background: var(--color-burgundy-dark);
  padding: 5rem 3rem 4rem;
  border-radius: 30px;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid var(--color-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.2);
  position: relative;
  /* overflow: hidden removed so the badge is not cut off */
}

.cta-box-bg {
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--color-gold);
  z-index: 2;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(93, 173, 166, 0.2);
}

.cta-box-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/teatropolis/gallery/gallery-2.jpg') center/cover;
  opacity: 0.15;
  border-radius: 26px;
  z-index: -1;
}

.cta-badge {
  background: rgba(212, 175, 55, 0.9);
  color: var(--color-burgundy-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-cream);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.cta-box p {
  font-size: 1.25rem;
  color: var(--color-teal-light);
  margin-bottom: 2rem;
  margin-top: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  color: var(--color-cream);
}

.contact-item i {
  color: var(--color-gold);
  font-size: 1.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.25rem 3rem;
  background: #25D366;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  transition: var(--transition-bounce);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  width: 100%;
  margin-top: 1.5rem;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-pulse {
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy);
  padding: 5rem 2rem 2rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-teal) 50%, var(--color-burgundy) 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.footer-slogan {
  color: var(--color-cream);
  opacity: 0.8;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 350px;
}

.footer-heading {
  font-family: var(--font-accent);
  color: var(--color-gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-smooth);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: '\2192';
  margin-right: 8px;
  color: var(--color-teal);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-teal-light);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact p {
  color: var(--color-cream);
  opacity: 0.9;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--color-teal);
  color: var(--color-navy);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(93, 173, 166, 0.4);
  border-color: var(--color-teal);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  opacity: 0.6;
  font-size: 0.95rem;
}

.footer-admin-link {
  color: var(--color-cream);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-admin-link:hover {
  color: var(--color-teal);
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .footer-logo-img {
    margin: 0 auto 1.5rem auto;
    display: block;
  }
  
  .footer-slogan {
    margin: 0 auto;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1rem;
  }

  .header-content {
    gap: 0.5rem;
  }

  .logo-text-top {
    padding-left: 44px;
    font-size: 0.7rem;
  }

  .logo-image {
    height: auto;
    max-height: 35px;
    max-width: 50vw; /* Prevents overflow on very small devices */
  }

  .login-link {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Hero improvements for mobile */
  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }

  .marquee-frame {
    padding: 2rem 1.25rem;
    border-width: 6px;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
    max-width: 100% !important;
    margin: 0 auto 1.5rem !important;
    line-height: 1.5;
  }

  .btn-cta {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
    width: auto;
    max-width: 100%;
  }

  .curtain-left,
  .curtain-right {
    width: 8%;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .somos-container {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 2rem !important;
  }

  .somos-text {
    padding-right: 0;
  }

  .somos-visual {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .somos-image-wrapper {
    aspect-ratio: 3/2 !important;
  }

  .somos-text .section-title {
    font-size: 2.8rem !important;
  }

  .somos-text .section-subtitle {
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .age-groups-grid {
    grid-template-columns: 1fr;
  }

  .age-image {
    height: 200px;
  }

  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 4rem;
  }

  .program-card-image-wrapper {
    height: 200px;
  }

  .theater-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .theater-title {
    font-size: 2.5rem;
  }

  .theater-card {
    transform: rotate(0);
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero-content {
    padding: 0.75rem;
  }

  .marquee-frame {
    padding: 1.5rem 1rem;
    border-width: 4px;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 1.9rem;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin: 0 auto 1.25rem !important;
    line-height: 1.4;
    padding: 0 0.5rem;
  }

  .btn-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  /* Hide decorative curtains on small mobile */
  .curtain-left,
  .curtain-right {
    display: none;
  }

  /* Reduce star decorations */
  .star {
    font-size: 1rem;
  }

  /* Header more compact */
  .header {
    padding: 0.5rem 0.75rem;
  }

  .logo-text-top {
    padding-left: 35px;
    font-size: 0.6rem;
  }

  .logo-image {
    max-height: 28px;
  }

  /* Reduce marquee lights */
  .marquee-lights {
    height: 20px;
    top: -10px;
  }

  .light {
    width: 8px;
    height: 8px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   IMAGE-SPECIFIC UTILITIES
   ============================================ */

/* Hero Image Enhancements */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-fade {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.hero-image-fade.loaded {
  opacity: 1;
}

/* Program Card Image Enhancements */
.program-card-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--color-navy);
}

.program-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.program-card:hover .program-card-image-overlay {
  opacity: 1;
}

/* Age Group Image Enhancements */
.age-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--color-navy);
}

.age-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

/* Image Loading States */
.image-placeholder {
  background: linear-gradient(90deg, var(--color-burgundy-dark) 0%, var(--color-burgundy) 50%, var(--color-burgundy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 1.5rem;
}

.image-skeleton {
  background: linear-gradient(
    90deg,
    rgba(74, 28, 64, 0.3) 0%,
    rgba(93, 173, 166, 0.2) 50%,
    rgba(74, 28, 64, 0.3) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Image Utilities */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contain-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Image Aspect Ratios */
.aspect-ratio-16-9 {
  aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1/1;
}

/* Image Filters and Effects */
.image-grayscale {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.image-grayscale:hover {
  filter: grayscale(0%);
}

.image-brightness-hover {
  transition: filter 0.3s ease;
}

.image-brightness-hover:hover {
  filter: brightness(1.1);
}

/* Gallery Lightbox Support */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(93, 173, 166, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--color-cream);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: none;
  border: none;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--color-teal);
  transform: rotate(90deg);
}




.fade-in-up {
  animation: none !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.loaded .fade-in-up,
.fade-in-up {
  opacity: 1 !important;
}

/* Fix: gallery overlay should not block click events */
.gallery-item-overlay {
  pointer-events: none;
}
