/* ==========================================================================
   RTC DEPORTIVA & PREGÓN DEPORTIVO - DESIGN SYSTEM & STYLES
   Homenaje al Deporte Cochabambino & Rally de la Concordia 2026
   ========================================================================== */

:root {
  /* Color Palette - RTC Oficial (Verde Esmeralda Deportivo & Carbón) */
  --bg-dark: #0A0F14;
  --bg-card: #111A24;
  --bg-card-hover: #182433;
  --bg-glass: rgba(17, 26, 36, 0.85);
  
  --primary-green: #00A86B;
  --primary-green-hover: #00C880;
  --primary-green-glow: rgba(0, 168, 107, 0.45);
  
  --primary-red: #00A86B; /* Aliased for backward compatibility */
  --primary-red-glow: rgba(0, 168, 107, 0.45);
  
  --accent-gold: #FFB800;
  --accent-gold-glow: rgba(255, 184, 0, 0.3);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 168, 107, 0.5);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-green-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #1A2333 0%, var(--bg-dark) 70%);
  min-height: 100vh;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--tr-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--tr-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-img-header {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 168, 107, 0.3);
  transition: var(--tr-fast);
}

.logo-img-header:hover {
  transform: scale(1.03);
  background: #FFFFFF;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-text span {
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--tr-fast);
}

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

/* Header Buttons */
.btn-rally {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary-red) 0%, #C01826 100%);
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px var(--primary-red-glow);
  cursor: pointer;
  transition: var(--tr-smooth);
}

.btn-rally:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-red-glow);
  filter: brightness(1.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 184, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 184, 0, 0);
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   HERO SECTION & RALLY CARD
   ========================================================================== */
.hero {
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.poster-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-active);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px var(--primary-green-glow);
  transition: var(--tr-smooth);
  background: radial-gradient(circle at 50% 50%, #162432 0%, #0A0F14 100%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 540px;
}

.poster-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 45px var(--primary-green-glow);
}

.poster-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 46, 61, 0.12);
  border: 1px solid rgba(229, 46, 61, 0.3);
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Special Rally Card Component */
.rally-card {
  background: linear-gradient(145deg, #182233 0%, #0F1724 100%);
  border: 1px solid var(--border-active);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: var(--tr-smooth);
}

.rally-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.rally-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.rally-card-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.rally-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.rally-features {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.feature-pill i {
  color: var(--accent-gold);
}

.btn-live-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #B91423 100%);
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--primary-red-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-live-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--primary-red-glow);
  background: linear-gradient(135deg, #F53847 0%, #C91626 100%);
}



/* ==========================================================================
   AUDIO PLAYER SECTION
   ========================================================================== */
.section-audio {
  padding: 50px 0;
  background: rgba(19, 26, 38, 0.4);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.audio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.audio-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(229, 46, 61, 0.15);
  border: 1px solid rgba(229, 46, 61, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.6rem;
}

.audio-meta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.audio-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-play {
  width: 56px;
  height: 56px;
  background: var(--primary-red);
  color: #FFF;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-red-glow);
  transition: var(--tr-fast);
}

.btn-play:hover {
  transform: scale(1.06);
  background: #F83B4A;
}

/* Equalizer Bars Animation */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.eq-bar {
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: height 0.2s;
}

.equalizer.playing .eq-bar:nth-child(1) { animation: eq-anim 0.8s infinite ease-in-out; }
.equalizer.playing .eq-bar:nth-child(2) { animation: eq-anim 1.1s infinite ease-in-out; }
.equalizer.playing .eq-bar:nth-child(3) { animation: eq-anim 0.6s infinite ease-in-out; }
.equalizer.playing .eq-bar:nth-child(4) { animation: eq-anim 0.9s infinite ease-in-out; }

@keyframes eq-anim {
  0%, 100% { height: 4px; }
  50% { height: 22px; }
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.volume-slider {
  width: 90px;
  accent-color: var(--primary-red);
  cursor: pointer;
}

/* ==========================================================================
   HOMENAJE & SEMBLANZA SECTION
   ========================================================================== */
.section-tribute {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.tribute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.tribute-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.tribute-badge {
  display: inline-block;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.tribute-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tribute-dates {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.tribute-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Timeline Cards */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-red);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: var(--tr-fast);
}

.timeline-item:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-desc {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* ==========================================================================
   MOTORSPORT GALLERY SECTION
   ========================================================================== */
.section-gallery {
  padding: 80px 0;
  background: rgba(19, 26, 38, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.9) 0%, transparent 60%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFF;
}

.gallery-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 60px 0 30px 0;
  background: #07090D;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-copy strong {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   CAROUSEL COMPONENT STYLES
   ========================================================================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  background: #080D12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(10, 15, 20, 0.95) 0%, transparent 100%);
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.slide-caption span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(10, 15, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--tr-fast);
}

.carousel-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--tr-fast);
}

.carousel-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--primary-green);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .tribute-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audio-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .rally-features {
    flex-direction: column;
    gap: 0.6rem;
  }
}
