/* ========================================
   Teatro Real — Landing Abonos 26/27
   ======================================== */

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

:root {
  --color-black: #000000;
  --color-dark: #0e0e0e;
  --color-dark-gray: #1a1a1a;
  --color-medium-gray: #2a2a2a;
  --color-light-gray: #999999;
  --color-text-dark: #2a2a2a;
  --color-text-medium: #555555;
  --color-white: #ffffff;
  --color-red: #c8102e;
  --color-red-dark: #a00d24;
  --color-gold: #c9a84c;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c8102e #1a1a1a;
}

/* Scrollbar — Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #c8102e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00d24;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

/* --- Header / Top Navbar --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-container {
    max-width: 1110px;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0) 100%);
    pointer-events: none;
    height: 100px;
    width: 100%;
}

.header-nav a:before {
    content: "";
    height: 70px;
    width: 1px;
    position: absolute;
    left: 0;
    background: #fff;
    top: -51px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  padding: 6px 12px;
  position: relative;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--color-white);
}

.header-nav .nav-separator {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 760px;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background: var(--color-black);
  padding-top: 44px;
}

/* Hero image container — holds the image + gradient overlays */
.hero-img-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  margin:auto;
}

/* Lateral gradients (left & right black fade) */
/*
.hero-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 12%,
    rgba(0,0,0,0) 28%,
    rgba(0,0,0,0) 72%,
    rgba(0,0,0,0.6) 88%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
}
*/
/* Top gradient (black fade from top) */
/*
.hero-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 12%,
    rgba(0,0,0,0) 28%,
    rgba(0,0,0,0) 72%,
    rgba(0,0,0,0.6) 88%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
}
*/
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -20px;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero-logo img {
  height: 70px;
  width: auto;
  margin: 0 auto;
}

.hero-title-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(80px, 12vw, 200px);
  font-weight: 100;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.85;
  color: var(--color-white);
}

.hero-date {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
  margin-top: 8px;
  margin-bottom: 4px;
      align-self: start;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(80px, 13vw, 200px);
  font-weight: 100;
  letter-spacing: 0.05em;
  line-height: 0.85;
  align-self: end;
  margin-right: -124px;
    margin-top: -50px;
}

/* Hero category buttons */
.hero-buttons {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
      max-width: 1080px;
  margin: auto;
}

.hero-btn {
  display: inline-block;
  min-width: 200px;
  padding: 13px 48px;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,1);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.hero-btn:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* --- Promo Banner --- */
.promo-banner {
  position: relative;
  overflow: hidden;
  padding: 148px 0;
}

.promo-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #6d6d6d;
}

.promo-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%);
      opacity: 0.4;
}

.promo-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
}

.promo-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0px;
}

.promo-columns {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
}

.promo-left {
  width: 50%;
    text-align: right;
}

.promo-label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 10px;
  text-align: left;
}

.promo-claim {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -3.12px;
}

.promo-right {
  flex: 1;
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  padding-top: 30px;
  text-align: justify;
  width: 50%;
}

.promo-buttons {
  display: flex;
  gap: 40px;
  justify-content: space-around;
}

.promo-btn {
  display: inline-block;
  min-width: 220px;
  padding: 13px 48px;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,1);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.promo-btn:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}


/* ========================================
   SHOW SECTIONS — LIGHT BACKGROUND
   ======================================== */

/* Wrapper that makes the entire shows area white fullwidth */
.shows-wrapper {
  background: var(--color-white);
}

.section--light {
  background: var(--color-white);
  color: var(--color-text-dark);
}

/* --- Section Common --- */
.section {
  padding: 70px 0px;
  max-width: 1080px;
  margin: 0 auto;
}

/* Category titles: Montserrat weight 100, red, large */
.section-category-title {
  font-family: var(--font-body);
  font-size: clamp(40px, 5vw, 100px);
  font-weight: 100;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-red);
  margin-bottom: 20px;
}


/* ========================================
   SHOW CARDS — NEW DESIGN
   ======================================== */

.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.shows-grid-hidden {
  display: none;
  margin-top: 30px;
}

.shows-grid-hidden.visible {
  display: grid;
}

.show-card {
  display: block;
  text-align: center;
  transition: transform 0.3s ease;
}

.show-card:hover {
  transform: translateY(-4px);
}

/* --- Card Image Container --- */
.show-card-image {
  position: relative;
  overflow: hidden;
}

.show-card-image img {
  width: 100%;
  aspect-ratio: 340 / 400;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
#opera .show-card-image img {opacity: 0.5;}

.show-card:hover .show-card-image img {
  transform: scale(1.03);
}

/* Full overlay — flex column distributing composer/title/bottom */
.show-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px 24px;
  pointer-events: none;
  z-index: 5;
}

/* Composer label — top of the card */
.show-card-composer {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  text-align: center;
}

/* Show title — red, bold, centered in the middle */
.show-card-title {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 40px);
  font-weight: 800;
  color: var(--color-red);
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.show-card-title--white {
  color: var(--color-white);
}

/* Bottom group: arrow + dates together */
.show-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Red arrow button */
.show-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--color-red);
  border-radius: 12px;
  color: var(--color-white);
  font-size: 22px;
  pointer-events: auto;
  transition: background 0.3s, transform 0.3s;
}

.show-card-arrow i {
  color: var(--color-white);
}

.show-card:hover .show-card-arrow {
  transform: scale(1.1);
  background: var(--color-red-dark);
}

/* Dates — bold, large, no background, inside the card bottom */
.show-card-dates {
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  text-align: center;
}

/* --- Card Info (directors, etc.) — outside the image, on white bg --- */
.show-card-info {
  padding: 6px 10px 20px;
  text-align: center;
}

.show-card-detail {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-medium);
  line-height: 1.7;
}

.show-card-detail strong {
  font-weight: 600;
  color: var(--color-text-dark);
}


/* --- VER MÁS Button --- */
.ver-mas-container {
  text-align: center;
  margin-top: 40px;
}

.btn-ver-mas {
  display: inline-block;
  padding: 13px 48px;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text-dark);
  border: 1px solid rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-ver-mas:hover {
  border-color: var(--color-text-dark);
  background: var(--color-text-dark);
  color: var(--color-white);
}


/* ========================================
   VOCES GRID
   ======================================== */

.voces-grid {
  /*display: grid;
  grid-template-columns: repeat(3, 1fr);*/
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
}

.voces-grid > * {
  flex: 0 0 calc(33.333% - 1rem); /* equivalente visual a 3 columnas */
}
.show-card--voces .show-card-composer {
  visibility: hidden;
}

.show-card--voces .show-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.6) 100%
  );
}

/* White dates for voces & danza (dark backgrounds) */
.show-card-dates--white {
  color: var(--color-white);
}

/* Danza cards — white text for dark images */
.show-card--danza .show-card-composer {
  color: var(--color-white);
}

.show-card--danza .show-card-info .show-card-detail {
  color: var(--color-text-medium);
}

.show-card--danza .show-card-info .show-card-detail strong {
  color: var(--color-text-dark);
}


/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: var(--color-white);
  text-align: center;
  padding: 10px 40px 70px;
}

.btn-abonate {
  display: inline-block;
  padding: 13px 48px;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-abonate:hover {
  background: var(--color-red);
  color: var(--color-white);
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 70px 40px 30px;
  background: #090909;
  min-height: 490px;
}

/* Background image — hero image in grayscale, very dark */
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: none;
    object-position: center bottom;
    margin: auto;
}

/* Dark overlay to blend with black */
.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /*background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.7) 100%
  );*/
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Contact row */
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  flex-flow: column;
}

.footer-contact-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

.footer-contact-link:hover {
  opacity: 0.7;
}

.footer-contact-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.footer-contact-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,1);
  flex-shrink: 0;
}

/* Logo */
.footer-logo {
  margin-bottom: 100px;
}

.footer-logo img {
  height: 80px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

/* Bottom row: social + app */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,1);
  font-size: 15px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-white);
}

.footer-app-separator {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.footer-app {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-app-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,1);
  letter-spacing: 0.5px;
}

.footer-badge img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.footer-badge:hover img {
  opacity: 0.8;
}

/* Legal */
.footer-legal {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,1);
  letter-spacing: 0.5px;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(60px, 10vw, 120px);
  }
  .hero-subtitle {
    font-size: clamp(60px, 11vw, 130px);
  }
  .hero-buttons {
    gap: 16px;
    bottom: 40px;
  }
  .hero-btn {
    min-width: 160px;
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 3px;
  }
  .shows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .voces-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .promo-columns {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .promo-right {
    padding-top: 0;
    text-align: center;
  }
  .promo-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }
  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .header-nav.open {
    display: flex;
  }
  .header-nav a {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .header-nav .nav-separator {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }
  /* Footer responsive */
  .site-footer {
    padding: 50px 20px 24px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 6px;
  }
  .footer-contact-dot {
    display: none;
  }
  .footer-logo img {
    height: 60px;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 20px;
  }
  .footer-app-separator {
    width: 40px;
    height: 1px;
  }
  .footer-app {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    min-height: 500px;
  }
  .hero-logo img {
    height: 50px;
  }
  .hero-title {
    font-size: clamp(44px, 12vw, 80px);
  }
  .hero-subtitle {
    font-size: clamp(44px, 13vw, 90px);
  }
  .hero-date {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .hero-content {
    padding: 0 20px;
  }
  .hero-buttons {
    bottom: 30px;
    padding: 0 20px;
    gap: 10px;
  }
  .hero-btn {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
    font-size: 11px;
    letter-spacing: 2px;
  }
  .section {
    padding: 50px 20px;
  }
  .section-category-title {
    font-size: 36px;
    letter-spacing: 0.15em;
    margin-bottom: 36px;
  }
  .shows-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .voces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .promo-banner {
    padding: 50px 0;
  }
  .promo-banner-inner {
    padding: 0 20px;
  }
  .promo-claim {
    font-size: 26px;
  }
  .promo-right {
    font-size: 13px;
  }
  .promo-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .promo-btn {
    min-width: 200px;
    padding: 16px 40px;
    font-size: 12px;
    letter-spacing: 3px;
  }
  .show-card-title {
    font-size: 18px;
  }
  .show-card-composer {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

/* ========================================
   ANIMATIONS — Hero entrance & scroll reveals
   ======================================== */

/* Hero elements: hidden by default */
.hero-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When hero is animated, reveal elements with staggered delay */
.hero.hero-animated .hero-animate {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero-animated .hero-animate[data-delay="0"] { transition-delay: 0ms; }
.hero.hero-animated .hero-animate[data-delay="1"] { transition-delay: 200ms; }
.hero.hero-animated .hero-animate[data-delay="2"] { transition-delay: 400ms; }
.hero.hero-animated .hero-animate[data-delay="3"] { transition-delay: 600ms; }
.hero.hero-animated .hero-animate[data-delay="4"] { transition-delay: 800ms; }

/* Scroll-triggered elements: hidden by default */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animated[data-delay="0"] { transition-delay: 0ms; }
.animate-on-scroll.animated[data-delay="1"] { transition-delay: 200ms; }
.animate-on-scroll.animated[data-delay="2"] { transition-delay: 400ms; }
.animate-on-scroll.animated[data-delay="3"] { transition-delay: 600ms; }


@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
    letter-spacing: 0.1em;
  }
  .hero-subtitle {
    font-size: 40px;
  }
  .hero-buttons {
    flex-direction: column;
    bottom: 20px;
    gap: 8px;
    align-items: center;
  }
  .hero-btn {
    min-width: 200px;
  }
  .shows-grid,
  .voces-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .show-card-title {
    font-size: 20px;
  }
  .section-category-title {
    font-size: 28px;
    letter-spacing: 0.1em;
  }
}