/* ============================================
   OSFIT – CLUB DE BOXEO
   Design System & Styles
   ============================================ */

/* — Google Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* — CSS Custom Properties — */
:root {
  /* Colors */
  --black: #000000;
  --dark: #0A0A0A;
  --dark-card: #111111;
  --dark-card-hover: #1A1A1A;
  --dark-border: #1F1F1F;
  --red: #D5222A;
  --red-hover: #EF3038;
  --red-dark: #94151B;
  --red-glow: rgba(213, 34, 42, 0.4);
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-300: #B0B0B0;
  --gray-500: #6B6B6B;
  --gray-700: #333333;
  --gray-900: #141414;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --section-padding-mobile: 80px 0;
  --container-max: 1400px;
  --container-padding: 0 60px;
  --container-padding-mobile: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders */
  --border-radius: 2px;
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}



/* — Container — */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* — Section Title — */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.section-title .accent {
  color: var(--red);
}

/* Structural-safe Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: glitch-simple 6s infinite;
}


@keyframes glitch-simple {

  0%,
  75%,
  100% {
    text-shadow: none;
    transform: none;
    opacity: 1;
  }

  76% {
    text-shadow: 4px 0 var(--red), -3px 0 rgb(255, 97, 97);
    transform: translate(3px, -1px) skewX(5deg);
  }

  77% {
    text-shadow: -4px 0 var(--red), 3px 0 rgb(255, 97, 97);
    transform: translate(-3px, 1px) skewX(-5deg);
  }

  78% {
    text-shadow: 2px 2px var(--red), -2px -2px rgb(255, 97, 97);
    transform: translate(0, 0);
  }

  79% {
    text-shadow: none;
    transform: none;
  }

  80% {
    text-shadow: 6px 0 rgba(255, 0, 0, 0.6), -4px 0 rgb(255, 191, 191);
    transform: scale(1.02);
  }

  81% {
    text-shadow: none;
    transform: none;
  }

  82% {
    text-shadow: -3px 0 var(--red);
    transform: translateX(-2px);
  }

  83% {
    text-shadow: none;
    transform: none;
  }
}

@keyframes glitch-img-simple {

  0%,
  75%,
  100% {
    filter: none;
    transform: none;
    opacity: 1;
  }

  76% {
    filter: drop-shadow(4px 0 var(--red)) drop-shadow(-3px 0 rgb(255, 97, 97));
    transform: translate(3px, -1px) skewX(5deg);
  }

  77% {
    filter: drop-shadow(-4px 0 var(--red)) drop-shadow(3px 0 rgb(255, 97, 97));
    transform: translate(-3px, 1px) skewX(-5deg);
  }

  78% {
    filter: drop-shadow(2px 2px var(--red)) drop-shadow(-2px -2px rgb(255, 97, 97));
    transform: translate(0, 0);
  }

  79% {
    filter: none;
    transform: none;
  }

  80% {
    filter: drop-shadow(6px 0 rgba(255, 0, 0, 0.6)) drop-shadow(-4px 0 rgb(255, 191, 191));
    transform: scale(1.02);
  }

  81% {
    filter: none;
    transform: none;
  }

  82% {
    filter: drop-shadow(-3px 0 var(--red));
    transform: translateX(-2px);
  }

  83% {
    filter: none;
    transform: none;
  }
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray-300);
  font-weight: 300;
  max-width: 700px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* Offset for anchor links to account for sticky header - further adjusted */
section[id] {
  scroll-margin-top: 50px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 24px auto 40px;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.no-gsap .hero-bg-logo {
  opacity: 1 !important;
}

.no-gsap .hero-badge,
.no-gsap .hero-title,
.no-gsap .hero-subtitle,
.no-gsap .hero-tagline,
.no-gsap .hero-description,
.no-gsap .hero-buttons,
.no-gsap .reveal,
.no-gsap .reveal-left,
.no-gsap .reveal-right,
.no-gsap .reveal-scale {
  opacity: 1 !important;
  transform: none !important;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  animation: pulse-loader 1.5s ease-in-out infinite;
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  text-indent: 8px;
  color: var(--gray-300);
  margin-top: 24px;
}

@keyframes pulse-loader {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  will-change: padding, background, border-color;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(196, 30, 30, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo img {
  width: 40px;
  height: 40px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--gray-300);
}

.nav-logo-mobile {
  display: none;
}

.nav-social-mobile {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  color: var(--gray-300);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition-medium);
}

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

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

.nav-links .nav-cta {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 8px !important;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--red-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-medium);
  transform-origin: center;
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  /* Fill at least the screen */
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
  /* Added back to prevent scaled images from spilling into other sections */
  perspective: 1200px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: contrast(110%);
  transform: scale(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--dark), transparent);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  padding-top: 70px;
  text-align: left;
  transform: translateX(-150px);
  /* Subtle shift to the left */
  transform-style: preserve-3d;
}

@media (max-width: 1024px) {
  .hero-content {
    margin: 0 auto;
    transform: none;
  }
}

.hero-bg-logo {
  position: absolute;
  top: 33%;
  left: 110%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 380px;
  height: 380px;
  opacity: 0;
  z-index: -1;
  pointer-events: auto;
  transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .hero-bg-logo {
    top: 36%;
    left: 74%;
    width: 155px;
    height: 155px;
  }
}

.hero-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: glitch-img-simple 6s infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--red);
  margin-bottom: 24px;
  opacity: 0;
}

.hero-badge::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 8px;
  opacity: 0;
  text-align: left;
  /* Restocentro left-align */
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 12px;
  color: var(--gray-300);
  margin: 0;
  margin-bottom: 30px;
  opacity: 0;
  text-align: left;
  /* Restocentro left-align */
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
  border: none;
  opacity: 0;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gray-300);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
}

@media (max-width: 1024px) {

  .hero-tagline,
  .hero-description {
    transform: none;
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateX(150px);
  /* Fully counteract the -150px shift to keep buttons centered on screen */
}

@media (max-width: 1024px) {

  .hero-content,
  .hero-buttons {
    transform: none;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  padding: 18px 40px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}

/* Pulse Highlight for CTA */
.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--red);
  border-radius: inherit;
  animation: btn-pulse-centro 2s infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

@keyframes btn-pulse-centro {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.15, 1.3);
    opacity: 0;
  }
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  padding: 18px 40px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(196, 30, 30, 0.08);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gray-500);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================
   ABOUT / PHILOSOPHY SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  height: 500px;
  transition: all var(--transition-medium);
  border: 1px solid transparent;
}

.about-image:hover,
.about-image.active-hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.1);
  transition: all var(--transition-slow);
}

.about-image:hover img,
.about-image.active-hover img {
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.08);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 30, 30, 0.2);
  pointer-events: none;
  transition: all var(--transition-medium);
}

.about-image:hover::after,
.about-image.active-hover::after {
  border-color: rgba(196, 30, 30, 0.5);
}

.about-image .image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--red);
  z-index: -1;
}

.about-text {
  padding-left: 20px;
}

.about-text p {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dark-card);
  border-left: 3px solid var(--red);
  transition: all var(--transition-medium);
}

.value-item:hover,
.value-item.active-hover {
  background: var(--dark-card-hover);
  transform: translateX(8px);
  border-left-width: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.value-item svg {
  width: 22px;
  height: 22px;
  fill: var(--red);
  flex-shrink: 0;
  transition: all var(--transition-medium);
  animation: icon-shake 2.5s ease-in-out infinite;
}

.value-item:hover svg,
.value-item.active-hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px var(--red-glow));
  animation-duration: 0.4s;
}

.value-item span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  transition: all var(--transition-medium);
}

.value-item:hover span,
.value-item.active-hover span {
  color: var(--white);
  font-weight: 700;
}

/* ============================================
   DISCIPLINES SECTION
   ============================================ */
.disciplines {
  padding: var(--section-padding);
  background: var(--black);
  position: relative;
}

.disciplines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.disciplines-header {
  text-align: center;
  margin-bottom: 80px;
}

.disciplines-header .section-divider {
  margin: 24px auto 40px;
}

.disciplines-header .section-subtitle {
  margin: 0 auto;
}

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.discipline-card {
  position: relative;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: all var(--transition-medium);
  cursor: default;
}

.discipline-card:hover,
.discipline-card.active-hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.discipline-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.discipline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.1);
  transition: all var(--transition-slow);
}

.discipline-card:hover .discipline-card-image img,
.discipline-card.active-hover .discipline-card-image img {
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.08);
}

.discipline-card-content {
  padding: 30px 24px;
  position: relative;
}

.discipline-card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.discipline-card:hover .discipline-card-content::before,
.discipline-card.active-hover .discipline-card-content::before {
  transform: scaleX(1);
}

.discipline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.discipline-card p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
  font-weight: 300;
}

.discipline-card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
  padding: var(--section-padding);
  position: relative;
}

.programs-header {
  margin-bottom: 60px;
  text-align: center;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.program-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 18px;
  text-align: center;
  transition: all var(--transition-medium);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  position: relative;
}

.program-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition-medium);
}

.program-card:hover,
.program-card.active-hover {
  border-color: rgba(196, 30, 30, 0.3);
  transform: translateY(-4px);
  background: var(--dark-card-hover);
}

.program-card:hover::after,
.program-card.active-hover::after {
  width: 100%;
}

.program-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 30, 0.1);
  border-radius: 50%;
  margin-bottom: 8px;
  transition: all var(--transition-medium);
}

.program-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  transition: all var(--transition-medium);
}

.program-card:hover .program-icon {
  background: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
}

.program-card:hover .program-icon svg {
  fill: var(--white);
}

/* Uniform shake animation for all program icons */
.icon-user,
.icon-flag,
.icon-bolt,
.icon-trophy,
.icon-kick,
.icon-target,
.icon-lift,
.icon-check {
  animation: icon-shake 2.5s ease-in-out infinite;
}

.program-card:hover .program-icon,
.program-card.active-hover .program-icon {
  background: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
  transform: translateY(-4px) scale(1.05);
}

.program-card:hover .program-icon svg,
.program-card.active-hover .program-icon svg {
  fill: var(--white);
}

/* Intensify shake on hover */
.program-card:hover .icon-user,
.program-card.active-hover .icon-user,
.program-card:hover .icon-flag,
.program-card.active-hover .icon-flag,
.program-card:hover .icon-bolt,
.program-card.active-hover .icon-bolt,
.program-card:hover .icon-trophy,
.program-card.active-hover .icon-trophy,
.program-card:hover .icon-kick,
.program-card.active-hover .icon-kick,
.program-card:hover .icon-target,
.program-card.active-hover .icon-target,
.program-card:hover .icon-lift,
.program-card.active-hover .icon-lift,
.program-card:hover .icon-check,
.program-card.active-hover .icon-check {
  animation-duration: 0.4s;
}

@keyframes icon-shake {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-1px) rotate(-3deg);
  }

  75% {
    transform: translateX(1px) rotate(3deg);
  }
}

@keyframes icon-pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

@keyframes icon-wave {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes icon-bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-3px);
  }
}

@keyframes icon-kick-anim {
  from {
    transform: translateX(0) rotate(0deg);
  }

  to {
    transform: translateX(2px) rotate(-8deg);
  }
}

@keyframes icon-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-lift-anim {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-4px) scale(1.05);
  }
}

@keyframes icon-check-anim {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.program-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 0;
}

.program-card p {
  display: none;
}

.program-card[style*="display: flex"] p {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.7;
  font-weight: 300;
}

.program-card .program-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-border);
}

/* ============================================
   COMMUNITY SECTION (Full-width cinematic)
   ============================================ */
.community {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.community-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.community-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.2);
}

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.4) 18%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 1) 100%);
}

.community-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  text-align: center;
}

.community-content .section-title {
  margin: 0 auto;
}

.community-content .section-divider {
  margin: 24px auto 40px;
}

.community-content p {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.9;
  font-weight: 300;
  margin: 0 auto 24px;
}

.community-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-300);
  margin-top: 8px;
}

/* ============================================
   BLACK SHEEP MANIFESTO SECTION
   ============================================ */
.manifesto {
  padding: var(--section-padding);
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 20px;
}

.manifesto-title .red {
  color: var(--red);
}

.manifesto-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gray-500);
  margin-bottom: 80px;
}

.manifesto-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-item {
  padding: 40px 24px;
  position: relative;
}

.manifesto-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--red);
}

.manifesto-item .number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}

.manifesto-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 12px;
}

.manifesto-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: var(--section-padding);
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header .section-divider {
  margin: 24px auto 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1) saturate(0.9);
  transition: all var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item.active-hover img {
  filter: brightness(0.8) contrast(1.1) saturate(1.1);
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-item-overlay span {
  display: none;
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */
.schedule {
  padding: var(--section-padding);
  background: var(--black);
  position: relative;
}

.schedule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.schedule-header {
  text-align: center;
  margin-bottom: 60px;
}

.schedule-header .section-divider {
  margin: 24px auto 40px;
}

.schedule-table-card {
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--black);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.schedule-table th {
  background: var(--dark);
  /* Solid background to prevent overlap bleed */
  color: var(--white);
  padding: 24px 15px;
  text-align: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  /* Sticky to top of table-responsive */
  z-index: 25;
}

.schedule-table th:first-child {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
  background: var(--dark) !important;
  border-right: none !important;
  box-shadow: inset -2px 0 0 var(--red);
  /* Only right-side inset shadow */
}

.schedule-table td {
  padding: 20px 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.95rem;
  color: var(--white) !important;
  /* Unified White */
  font-family: var(--font-heading);
  /* Unified Heading Font */
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.08);
  /* Stronger hover contrast */
}

.time-col {
  position: sticky;
  left: 0;
  z-index: 10;
  width: 130px;
  background: var(--dark) !important;
  color: var(--red) !important;
  font-weight: 700;
  font-size: 0.95rem !important;
  border-right: none !important;
  /* Eliminamos el borde de tabla conflictivo */
  box-shadow: inset -2px 0 0 var(--red);
  /* La barra roja ahora es una sombra interna fija */
}

/* Discipline Styling - Re-normalized for uniformity */
.boxing,
.featured,
.bjj,
.kids {
  color: var(--white) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

.table-indicator {
  display: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .table-indicator {
    display: block;
  }
}

.schedule-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.schedule-cta .btn-primary,
.schedule-cta .btn-outline {
  min-width: 220px;
  justify-content: center;
}

/* ============================================
   COACHES SECTION
   ============================================ */
.coaches {
  padding: var(--section-padding);
  position: relative;
}

.coaches-header {
  margin-bottom: 60px;
}

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

.coach-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.coach-card:hover,
.coach-card.active-hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.coach-image {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.coach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.1);
  transition: all var(--transition-slow);
}

.coach-card:hover .coach-image img,
.coach-card.active-hover .coach-image img {
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.08);
}

/* Ajuste para móvil: evitar corte de cabezas */
@media (max-width: 768px) {
  .coach-image img {
    object-position: center 32%;
  }
}

.coach-info {
  padding: 28px 24px;
  position: relative;
}

.coach-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.coach-card:hover .coach-info::before,
.coach-card.active-hover .coach-info::before {
  transform: scaleX(1);
}

.coach-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 4px;
}

.coach-info .coach-role {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 400;
  margin-bottom: 12px;
}

.coach-info p {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   CTA FINAL SECTION
   ============================================ */
.cta-final {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.2);
}

.cta-final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.4) 18%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 1) 100%);
}

.cta-final-content {
  position: relative;
  z-index: 2;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 24px;
}

.cta-final h2 .red {
  color: var(--red);
}

.cta-final p {
  font-size: 1.15rem;
  color: var(--gray-300);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding);
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.contact-info .section-divider {
  margin-left: 0;
}

.contact-info>p {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: all var(--transition-medium);
}

.contact-item:hover {
  border-color: rgba(196, 30, 30, 0.3);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 30, 0.1);
  border: 1px solid rgba(196, 30, 30, 0.2);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--red);
}

.contact-item-text h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--gray-300);
  font-weight: 300;
}

.contact-item-text a:hover {
  color: var(--red);
}

.contact-map {
  width: 100%;
  height: 450px;
  border: 1px solid var(--dark-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-medium);
}

.contact-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(196, 30, 30, 0.1));
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--transition-medium);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* El truco del invert(90%) y hue-rotate(180deg) permite que el mapa sea oscuro
     pero mantiene los colores originales (como el PIN rojo) casi intactos. */
  filter: invert(90%) hue-rotate(180deg) brightness(1.1) contrast(1.3) saturate(0.8);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.contact-map:hover {
  border-color: var(--red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(196, 30, 30, 0.2);
}

.contact-map:hover iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(1.2) contrast(1.2) saturate(1.2);
  transform: scale(1.03);
}

.contact-map:hover::after {
  opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--dark-border);
  background: var(--black);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.footer-logo img {
  height: 40px;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  flex: 2;
}

.footer-legal a {
  color: var(--gray-400);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-legal a:hover {
  color: var(--red);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex: 1;
}

.footer-bottom {
  text-align: center;
}

.footer-text {
  color: var(--gray-500);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

/* Legal Modal Specific Styles */
.modal-body.legal-content {
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-body.legal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-body.legal-content::-webkit-scrollbar-thumb {
  background: var(--red);
}

.modal-body.legal-content h1,
.modal-body.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 20px 0 10px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.modal-body.legal-content p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION REDESIGN
   ============================================ */
.testimonials {
  padding: 120px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 40px;
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: default;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--red);
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(1.05);
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-15px);
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.testimonial-card:hover::after {
  opacity: 0.5;
  transform: scale(1);
}

.testimonial-quote-icon {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--red);
  line-height: 1;
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.1;
  pointer-events: none;
}

.testimonial-content {
  margin-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.testimonial-rating svg {
  width: 14px;
  height: 14px;
  fill: var(--red);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-300);
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--red);
  box-shadow: 0 0 15px rgba(196, 30, 30, 0.2);
}

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

.testimonial-card:hover .testimonial-avatar img {
  transform: scale(1.1);
}

.testimonial-author-info h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-author-info span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.testimonials-footer {
  text-align: center;
  margin-top: 80px;
}

.google-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  padding: 15px 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: all 0.3s ease;
  position: relative;
}

.google-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(196, 30, 30, 0.05);
}

.google-link svg {
  width: 20px;
  height: 20px;
}

.testimonials-carousel-container {
  position: relative;
  margin-top: 80px;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.testimonials-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0;
  cursor: default;
  align-items: stretch;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel .testimonial-card {
  flex: 0 0 320px;
  max-width: 350px;
  height: 400px;
  cursor: default;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: -80px;
  right: -80px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  margin: 0 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1);
}

.carousel-prev svg,
.carousel-next svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 1300px) {
  .carousel-nav {
    left: 0;
    right: 0;
  }
}

@media (max-width: 1080px) {
  .testimonials-carousel-container {
    max-width: 670px;
    /* 2 cards visible */
  }
}

@media (max-width: 768px) {
  .testimonials-carousel-container {
    max-width: 100%;
  }

  .testimonials-carousel {
    padding: 20px 0;
    gap: 0;
  }

  .testimonials-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: unset;
    max-width: none;
    height: auto;
    min-height: 400px;
    padding: 60px 40px;
  }

  .carousel-nav {
    display: flex;
    top: auto;
    bottom: -60px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    gap: 20px;
  }
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-border);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--red);
  background: rgba(196, 30, 30, 0.1);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-300);
  transition: fill var(--transition-fast);
}

.footer-social a:hover svg {
  fill: var(--red);
}

/* ============================================
   GSAP ANIMATION CLASSES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-400);
  transition: fill 0.3s ease;
}

.modal-close:hover svg {
  fill: var(--red);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(196, 30, 30, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--red);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  text-transform: uppercase;
}

.modal-body {
  text-align: center;
}

.modal-body p {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.modal-tag-container {
  display: flex;
  justify-content: center;
}

.modal-tag-container .program-tag {
  background: rgba(196, 30, 30, 0.1);
  color: var(--red);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(196, 30, 30, 0.2);
}

/* Animations for modal transition */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifesto-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 0 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image .image-accent {
    display: none;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 250px);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-padding: var(--container-padding-mobile);
    --section-padding: var(--section-padding-mobile);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 6vh 20px 40px;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--dark-border);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 4px;
    width: 100%;
    text-align: center;
  }

  .nav-logo-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
  }

  .nav-logo-mobile::after {
    display: none !important;
  }

  .nav-social-mobile {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .nav-social-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(196, 30, 30, 0.1);
    border: 1px solid rgba(196, 30, 30, 0.3);
    color: var(--white);
    transition: all var(--transition-fast);
    padding: 0;
  }

  .nav-social-mobile a::after {
    display: none !important;
  }

  .nav-social-mobile a:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-3px);
  }

  .nav-logo-mobile img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(196, 30, 30, 0.3));
  }

  .hero {
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 120px;
  }

  .hero-title {
    font-size: clamp(3.5rem, 12vw, 6rem);
  }

  .hero-subtitle {
    letter-spacing: 6px;
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    /* Center for better balance on tablet */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 16px 30px;
  }

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

  .discipline-card-image {
    height: 220px;
  }

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

  .manifesto-items {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }

  .community-stats {
    flex-direction: column;
    gap: 30px;
  }

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

  .coach-image {
    height: 300px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-logo,
  .footer-legal,
  .footer-social {
    justify-content: center;
    flex: none;
    width: 100%;
  }

  .footer-legal {
    gap: 15px;
  }

  .hero-scroll {
    display: none;
  }

  .community {
    padding: 100px 0;
  }

  .cta-final {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

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

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

  .gallery-item:first-child {
    grid-column: span 1;
  }

  .gallery-item {
    height: 250px;
  }

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

/* — Scrollbar — */
::-webkit-scrollbar {
  width: 6px;
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body,
  html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* — Selection — */
::selection {
  background: var(--red);
  color: var(--white);
}

/* — Mobile Hero Adjustment (Final Override) — */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 100px !important;
    transform: translateY(-60px) !important;
  }

  .hero-bg-logo {
    top: 32% !important;
  }
}

@media (max-width: 600px) {
  .schedule-table-wrapper { width: 100%; overflow-x: hidden; }
  .schedule-table { width: 100%; min-width: 0; table-layout: fixed; }
  .schedule-table th,
  .schedule-table td { padding: 13px 9px; font-size: 12px; letter-spacing: .3px; white-space: normal; overflow-wrap: anywhere; }
  .schedule-table th:first-child,
  .schedule-table td:first-child { width: 42%; }
  .schedule-table th:last-child,
  .schedule-table td:last-child { width: 58%; text-align: right; }
}
/* Floating WhatsApp contact */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}

.whatsapp-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }
}
