/* ==========================================================================
   FIT & PLUS - MASTER STYLESHEET
   Design System: FIT & PLUS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-surface: #131313;
  --color-surface-lowest: #0e0e0e;
  --color-surface-dim: #131313;
  --color-surface-bright: #3a3939;
  --color-surface-container: #201f1f;
  --color-surface-container-high: #2a2a2a;
  --color-surface-container-highest: #353534;
  --color-on-surface: #e5e2e1;
  --color-on-surface-variant: #eabcb6;
  --color-primary: #ffb4ab;
  --color-primary-container: #ff5448;
  --color-on-primary: #690004;
  --color-secondary: #c3c6ce;
  --color-neon-lime: #CCFF00;
  --color-apex-red: #E50914;
  --color-apex-red-hover: #FF1820;

  --font-hero: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-technical: 'Barlow Condensed', sans-serif;
}

/* --- Base & Reset Styles --- */
@layer base {
  html {
    scroll-behavior: smooth;
    color-scheme: dark;
  }

  body {
    margin: 0;
    padding: 0;
    background-color: var(--color-surface-lowest);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

/* --- Custom Slim Modern Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0e0e0e;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

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

/* --- Text Selection Styling --- */
::selection {
  background-color: var(--color-primary-container);
  color: #5c0003;
}

/* --- Keyframe Animations --- */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: inline-flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* --- Glow and Neon Effects --- */
.glow-red {
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.45);
}

.glow-red-hover:hover {
  box-shadow: 0 0 45px rgba(255, 24, 32, 0.7);
}

.glow-lime {
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.35);
}

.glow-lime-hover:hover {
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.6);
}

.text-glow-red {
  text-shadow: 0 0 30px rgba(255, 84, 72, 0.5);
}

.text-glow-lime {
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}



/* --- Mobile Menu Drawer --- */
.mobile-nav-drawer {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer.closed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}


/* --- Black Sections Background Texture (fondo.webp) --- */
.bg-texture-black {
  position: relative;
  background-color: #050505;
  background-image: 
    linear-gradient(to bottom, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.30) 50%, rgba(5, 5, 5, 0.50) 100%),
    url('../assets/images/fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   SECCIÓN HORARIOS - GYM2 EN PC (PARALLAX NATIVO) / FONDOHORARIO EN MÓVIL (100% ANCHO + MOSAICO VERTICAL)
   ========================================================================== */

/* 1. DESKTOP / PC (>= 1025px): Pure Native CSS Parallax Gym2 */
@media (min-width: 1025px) {
  #horarios {
    background-image: 
      linear-gradient(to bottom, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.40) 50%, rgba(5, 5, 5, 0.90) 100%),
      url('../assets/images/gym2.webp');
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* 2. MOBILE & TABLETS (<= 1024px): fondohorario.webp ajustado sin repetición, recortado arriba y extendido abajo con degradado negro al final */
@media (max-width: 1024px) {
  #horarios {
    background-image: 
      linear-gradient(to bottom, rgba(5, 5, 5, 0.50) 0%, transparent 20%, transparent 80%, rgba(5, 5, 5, 1) 100%),
      url('../assets/images/fondohorario.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
  }
}





/* --- Subpages Background Texture --- */
.subpage-bg {
  background-image: linear-gradient(to bottom, rgba(5, 5, 5, 0.65), rgba(5, 5, 5, 0.65)), url('../assets/images/fondo.webp');
  background-repeat: repeat-y;
  background-size: 100% auto;
}
