:root {
  --bg-dark: #000000;
  --bg-card: #111111; 
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent: #CBF63F; 
  --font-primary: 'Outfit', 'Inter', sans-serif;
  --border-radius: 0px; 
  --transition: 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.8rem, 7vw, 3rem); 
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h2 span {
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 90%; 
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #000;
  padding: 1.2rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding: 1.5rem 0; 
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem 0;
  border-bottom: 1px solid #111;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 105px;
  transition: all 0.4s ease;
}

header.scrolled .logo img {
  height: 85px; /* Shrinks slightly on scroll to keep it compact */
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 1px;
  color: var(--text-muted);
}

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

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

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

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--accent);
}

/* Cursor indicator for clickable images */
.gallery-item img, .horarios-grid img, .about-img img {
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
  filter: grayscale(30%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: -1;
}

.hero-content {
  margin-top: auto;
  margin-bottom: 5rem;
}

/* Instalaciones & Entrenamiento Galleries */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.gallery-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
  filter: grayscale(0%);
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: grayscale(100%);
  opacity: 0.8;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1rem;
  opacity: 0;
  pointer-events: none; 
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption h4 {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Video Tour Section */
.tour-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 5rem;
  align-items: center;
}

.tour-video {
  display: flex;
  justify-content: center;
  background: #050505;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  min-width: 0;
}

.tour-video video {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid #222;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.tour-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.tour-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Acerca de */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  filter: grayscale(0%);
  transition: var(--transition);
}

.about-img:hover img {
  filter: grayscale(100%);
}

.about-text h2 {
  text-align: left;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Cuotas / Tarifas */
.pricing-section {
  background-color: var(--bg-card);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid #222;
  padding: 4rem 2rem;
  text-align: center;
  transition: var(--transition);
  background-color: #000;
}

.pricing-card:hover {
  border-color: var(--accent);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.pricing-card .price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Reseñas Slider (Single Item) */
.reviews-section {
  text-align: center;
}

.reviews-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 2rem;
  text-align: center;
  background: transparent;
  border: none;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.review-card p {
  font-weight: 300;
  font-size: 1.3rem;
  font-style: italic;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.review-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #333;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active, .slider-dot:hover {
  background-color: var(--accent);
}

/* Horarios */
.horarios-section {
  background-color: var(--bg-card);
  text-align: center;
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.horarios-grid img {
  margin: 0 auto;
  border: 1px solid #222;
  transition: var(--transition);
}

.horarios-grid img:hover {
  border-color: var(--accent);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.contact-info h3, .contact-form h3, .contact-map h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 1px solid #333;
  background-color: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-map {
  width: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  filter: grayscale(100%) invert(90%) contrast(80%);
}

/* Footer */
footer {
  background-color: #000;
  padding: 4rem 0;
  border-top: 1px solid #111;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1;
}

.footer-copy {
  color: #555;
  flex: 1;
  text-align: left;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex: 1;
}

.footer-links a {
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-credits {
  color: #555;
  flex: 1;
  text-align: right;
}

.footer-credits a {
  color: var(--text-muted);
  font-weight: 700;
}

.footer-credits a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .menu-toggle {
    display: block;
    margin-left: auto; 
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: -1;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Staggered link animation */
  .nav-links li, .nav-socials-mobile {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  }
  
  .nav-links.active li, .nav-links.active .nav-socials-mobile {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-links.active li:nth-child(1) { transition-delay: 0.10s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.20s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.30s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.40s; }
  .nav-links.active .nav-socials-mobile { transition-delay: 0.50s; }

  .nav-links a {
    font-size: 1.25rem; /* Reduced size as requested */
    color: var(--accent); /* All links corporate green requested */
  }
  
  /* Special Contact Button in Mobile Menu */
  .nav-links a.btn-mobile {
    background-color: var(--accent);
    color: #000;
    padding: 10px 40px;
    border-radius: 4px;
    font-weight: 800;
    margin-top: 0.5rem;
    font-size: 1.25rem;
  }
  
  .nav-socials-mobile {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .nav-socials-mobile a {
    font-size: 1.8rem;
    color: #fff;
    background: transparent;
    padding: 0;
  }
  
  .tour-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid, .gallery-grid.three-cols {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-copy, .footer-credits, .footer-links {
    text-align: center;
    justify-content: center;
    flex: none;
  }
}

/* Solid Header for Legal Pages */
header.header-solid {
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 0.35rem 0 !important;
  border-bottom: 1px solid #111 !important;
}
header.header-solid .logo img {
  height: 85px !important;
}

@media (max-width: 768px) {
  h1, h2, h3, h4, h5,
  .about-text h2,
  .tour-text h3,
  .contact-info h3,
  .contact-form h3,
  .contact-map h3 {
    text-align: center !important;
  }
  
  .btn {
    display: block !important;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
