/* ==========================================================================
   CHRISTIAN OLVERA - MÚSICA REGIONAL MEXICANA
   Platinum Editorial Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette - Regional Noir */
  --bg-surface: #16130b;
  --bg-charcoal: #080808;
  --bg-surface-low: #1f1b13;
  --bg-surface-container: #231f17;
  --bg-surface-high: #2d2a21;
  
  --primary-gold: #f2ca50;
  --primary-gold-metallic: #c5a028;
  --primary-gold-dark: #d4af37;
  --primary-gold-glow: rgba(242, 202, 80, 0.25);
  
  --text-on-surface: #eae1d4;
  --text-muted: #d0c5af;
  --text-antique: #ECEAE5;
  --outline-variant: rgba(153, 144, 124, 0.25);
  --outline-gold: rgba(197, 160, 40, 0.4);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1360px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-surface);
  color: var(--text-on-surface);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility Classes */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--primary-gold);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF0B8 0%, #F2CA50 50%, #C5A028 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Header Navigation */
.glass-header {
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-variant);
  transition: var(--transition-smooth);
}

.glass-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section & Layered Parallax */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-charcoal);
  /* Keep animated content clear of the clipped edge of the hero. */
  padding: 7rem 0 3rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../imagenes/banner1.webp');
  background-size: cover;
  background-position: center 25%;
  filter: brightness(0.45) contrast(1.15);
  transform: scale(1.05);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 8, 8, 0.2) 0%, rgba(8, 8, 8, 0.85) 75%, var(--bg-surface) 100%),
              linear-gradient(to top, var(--bg-surface) 0%, transparent 50%, rgba(8, 8, 8, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: min(100%, 1280px);
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  margin: 0 auto;
}

.hero-overlay-img {
  display: block;
  width: min(100%, 1120px);
  max-width: none;
  height: auto;
  margin: 0 auto 1.5rem auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.9));
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Editorial Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f2ca50 0%, #c5a028 100%);
  color: #080808;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 0px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(242, 202, 80, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242, 202, 80, 0.4);
  background: linear-gradient(135deg, #ffe088 0%, #d4af37 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--text-on-surface);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9375rem 2.25rem;
  border: 1px solid rgba(234, 225, 212, 0.4);
  border-radius: 0px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: rgba(242, 202, 80, 0.05);
}

.btn-spotify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #1DB954;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-spotify:hover {
  background-color: #1ed760;
  transform: scale(1.04);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #082012;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #2ee072;
  transform: scale(1.04);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-socials .social-icon {
  width: auto;
  height: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 9999px;
}

.footer-socials .social-icon span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
}

.social-youtube {
  background: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.social-instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.4);
}

.social-facebook {
  background: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.social-spotify {
  background: #1db954;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.35);
}

.social-tiktok {
  background: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.social-threads {
  background: #2a2a2a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.booking-form {
  background: var(--bg-surface-low);
  border: 1px solid var(--outline-gold);
  padding: 1.75rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.booking-field span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 600;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  background: var(--bg-charcoal);
  border: 1px solid var(--outline-variant);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.85rem 0.9rem;
  outline: none;
  width: 100%;
  border-radius: 0;
  color-scheme: dark;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--primary-gold);
}

.booking-field-full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Event / Tour Table Cards */
.event-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--outline-variant);
  background: transparent;
  transition: var(--transition-smooth);
  gap: 1.5rem;
}

.event-card:hover {
  background: var(--bg-surface-low);
  border-bottom-color: var(--outline-gold);
  transform: translateX(6px);
}

.event-card[hidden] {
  display: none;
}

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface-low);
  border: 1px solid var(--outline-gold);
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-list-footer {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.event-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--outline-gold);
  background: transparent;
  color: var(--primary-gold);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  padding: 0.75rem 1.1rem;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.event-toggle-btn:hover,
.event-toggle-btn:focus-visible {
  background: rgba(242, 202, 80, 0.1);
  outline: none;
}

.event-empty-state {
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  text-align: center;
}

/* Lightweight video cover: avoids loading the YouTube player until requested. */
.video-facade,
.video-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(rgba(8, 8, 8, 0.22), rgba(8, 8, 8, 0.58)), #080808 url('../imagenes/caratula-mas-te-recuerdo.webp') center / contain no-repeat;
  transition: filter 0.25s ease;
}

.video-facade:hover,
.video-facade:focus-visible {
  filter: brightness(1.16);
  outline: 1px solid var(--primary-gold);
  outline-offset: -5px;
}

.video-facade-play {
  color: var(--primary-gold);
  font-size: 3.75rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.65));
}

.video-facade-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-day {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  color: var(--primary-gold);
}

/* Music Singles Card */
.single-card {
  position: relative;
  background: var(--bg-surface-low);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.single-card:hover {
  border-color: var(--outline-gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.single-thumb-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.single-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.single-card:hover .single-thumb-wrapper img {
  transform: scale(1.08);
}

/* Fixed Bottom Contact Banner (Cintillo) */
.sticky-contact-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  background: rgba(12, 10, 6, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.85rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.whatsapp-banner-icon {
  display: flex;
  flex-shrink: 0;
}

.banner-brand-logo {
  width: 78px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* El logo dorado ya está recortado y optimizado; contain conserva todo su diseño. */
.site-logo {
  display: block;
  width: clamp(8.25rem, 13vw, 11rem);
  height: clamp(3.875rem, 6vw, 5.125rem);
  object-fit: contain;
  object-position: center;
}

.site-logo-footer {
  width: 11rem;
  height: 5.125rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface-high);
  cursor: pointer;
  border: 1px solid var(--outline-variant);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.9);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  border-color: var(--primary-gold);
}

.gallery-item:hover img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.06);
}

.explore-button {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 0.75rem 1rem;
  background: linear-gradient(to top, rgba(8,8,8,0.95), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--outline-gold);
  box-shadow: 0 0 50px rgba(0,0,0,0.9);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .event-card:hover {
    transform: none;
  }
  
  .event-card .event-action {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }

  .hero-overlay-img {
    width: min(100%, 600px);
    margin-bottom: 1.25rem;
    /* Avoid the upward floating frame being clipped on short mobile screens. */
    animation: none;
  }

  .sticky-contact-banner {
    padding: 0.75rem 1rem;
  }
}

/* Animations */

/* ==========================================================================
   TEAM CAROUSEL SECTION
   ========================================================================== */
.team-carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}

.team-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card {
  flex: 1 1 0;
  min-width: 180px;
  max-width: 230px;
  cursor: pointer;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card-inner {
  position: relative;
  border: 1px solid var(--outline-variant);
  background: var(--bg-surface);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.team-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--bg-charcoal);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.team-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.25) 55%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem;
  z-index: 2;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-role {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

/* Active & Hover States */
.team-card:hover .team-card-inner,
.team-card.active .team-card-inner {
  border-color: var(--outline-variant);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 10px rgba(0,0,0,0.2);
  transform: translateY(-4px);
}

.team-card:hover .team-image,
.team-card.active .team-image {
  transform: scale(1.10);
  filter: brightness(1.05) contrast(1.08);
}

.team-card.active {
  transform: scale(1.08);
  z-index: 5;
}

/* La tarjeta seleccionada queda al frente; en escritorio el acercamiento responde al mouse. */
@media (hover: hover) and (pointer: fine) {
  .team-card.active:hover .team-card-inner {
    border-color: var(--outline-gold);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 28px rgba(242, 202, 80, 0.16);
  }

  .team-card.active:hover .team-image {
    transform: scale(1.22);
  }
}

/* Nav Buttons */
.team-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(8, 8, 8, 0.8);
  border: 1px solid var(--outline-gold);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.team-nav-btn:hover {
  background: var(--bg-surface-low);
  color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.team-nav-btn.prev-btn { left: 0; }
.team-nav-btn.next-btn { right: 0; }

/* Dots */
.team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--outline-variant);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-dot.active,
.team-dot:hover {
  background: var(--primary-gold);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--primary-gold-glow);
}

/* Mobile responsive carousel track */
@media (max-width: 1024px) {
  .team-carousel-container {
    padding: 1rem 0;
  }
  .team-carousel-track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team-carousel-track::-webkit-scrollbar {
    display: none;
  }
  .team-card {
    flex: 0 0 75%;
    max-width: 280px;
    scroll-snap-align: center;
  }
  .team-card.active {
    transform: none;
  }
  /* En pantallas táctiles la tarjeta centrada/seleccionada conserva el protagonismo. */
  .team-card.active .team-card-inner {
    border-color: var(--outline-gold);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(242, 202, 80, 0.14);
  }
  .team-card.active .team-image {
    transform: scale(1.16);
    filter: brightness(1.08) contrast(1.1);
  }
  .team-nav-btn {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .team-card {
    flex: 0 0 45%;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
