:root {
  --primary-red: #ff4250;
  --dark-bg: #0d0d0d;
  --light-bg: #1a1a1a;
  --text: #ffffff;
  --font-main: 'Poppins', sans-serif;
  --font-title: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background: var(--dark-bg); color: var(--text); }

/* LOADER */
#loader{ position:fixed; inset:0; background:var(--bg-dark); display:flex; align-items:center; justify-content:center; z-index:99999; }
.loader-content{ text-align:center; position:relative; }
.loader-content img{ width:90px; height:90px; border-radius:50%; animation:pop 1.2s ease infinite; margin-bottom:10px; }
.loader-content p{ font-family:'Oswald',sans-serif; color:var(--primary-red); letter-spacing:3px; font-size:0.9rem; }
.pulse-ring{ position:absolute; top:35px; left:50%; transform:translateX(-50%); width:120px; height:120px; border:2px solid rgba(230,57,70,0.4); border-radius:50%; animation:pulse 1.5s infinite; }
@keyframes pulse{ 0%{transform:translateX(-50%) scale(0.8); opacity:1} 100%{transform:translateX(-50%) scale(1.4); opacity:0} }
@keyframes pop{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

/* NAVBAR */
header { position: fixed; top:0; left:0; right:0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index:1000; }
.navbar { display:flex; justify-content:space-between; align-items:center; padding:1rem 2rem; }
.logo-container {
  display: flex;
  align-items: center;   /* centra verticalmente */
  gap: 8px;              /* espacio pequeño entre imagen y texto */
}

.navbar-logo {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.logo { font-family: var(--font-title); font-size:1.5rem; font-weight:700; }
.logo span { color: var(--primary-red); }
.nav-links { display:flex; gap:1.5rem; list-style:none; }
.nav-links a { color: var(--text); text-decoration:none; font-weight:600; transition:.3s; }
.nav-links a:hover { color: var(--primary-red); }
.menu-toggle { display:none; font-size:1.5rem; color: var(--text); cursor:pointer; }
@media(max-width:768px){ .nav-links{display:none;flex-direction:column;background:#111;padding:1rem;border-radius:8px;position:absolute;top:70px;right:20px;} .nav-links.active{display:flex;} .menu-toggle{display:block;} }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1) saturate(1.2);
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
  color: #ddd;
}

.btn {
  background: var(--primary-red);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}
.btn:hover {
  background: #ff7a5a;
  transform: scale(1.05);
}

/* Animación */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* SECTIONS */
.section { padding:5rem 2rem; text-align:center; opacity:0; transform:translateY(40px); transition:all 0.8s ease; }
.section.visible { opacity:1; transform:translateY(0); }
.section.dark { background: var(--light-bg); }
.section h2 { font-family:var(--font-title); font-size:2rem; color: var(--primary-red); margin-bottom:1rem; }
.section p { max-width:700px; margin:0 auto 2rem; color:#ccc; }

/* MOTIVACION BARRA */
.motivation-marquee {
  background: #0d0d0d;
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,66,80,0.3);
  border-bottom: 1px solid rgba(255,66,80,0.3);
}

.marquee-track {
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: scrollText 18s linear infinite;
}

.marquee-content span {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--primary-red);
  letter-spacing: 2px;
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* -- SERVICIOS -- */
.servicios-group {
  margin-bottom: 5rem;
}

.group-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;

  width: 60%;
  height: 3px;

  background: var(--primary-red);
  border-radius: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
}

.card.bg {
  position: relative;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: flex-end;

  opacity: 0;
  transform: translateY(60px) scale(0.95);

  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s ease,
    box-shadow 0.4s ease;
}

/* cuando aparecen */
.card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }

.card .overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.88),
      rgba(0,0,0,0.15)
    );

  transition: 0.4s ease;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 1.3rem;
  text-align: left;
}

.card-content h3 {
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card-content p {
  color: #ddd;
  line-height: 1.4;
  font-size: 0.95rem;
}

.card h3 {
  margin-bottom: .5rem;
  color: var(--primary-red);
}



.card.bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: inherit;
  background-size: cover;
  background-position: center;

  transition: transform 0.8s ease;
  z-index: 0;
}

.card.bg:hover::before {
  transform: scale(1.08);
}


/***** TRAINERS *****/

/* ===== ENTRENADORES MODERNOS ===== */

.trainer {
  background: #121212;
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);

  opacity: 0;

  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.9s ease,
    box-shadow 0.4s ease;
}

/* imágenes */
.trainer img {
  width: 100%;
  height: 570px;
  object-fit: cover;
  display: block;

  transition: transform 0.6s ease;
}

/* contenido */
.trainer h3 {
  margin: 1rem 1rem 0.3rem;
  color: var(--primary-red);
}

.trainer h4 {
  margin: 0 1rem 0.8rem;
  color: #bbb;
}

.trainer p {
  margin: 0 1rem 1.5rem;
  color: #aaa;
  line-height: 1.5;
}

/* hover premium */
.trainer:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 35px rgba(0,0,0,0.35),
    0 0 20px rgba(255,66,80,0.15);
}

.trainer:hover img {
  transform: scale(1.05);
}

.trainer-info {
  padding: 1rem;
  background: linear-gradient(to top, #121212, #1a1a1a);
}

/* posiciones iniciales */

.trainer:nth-child(1) {
  transform: translateX(-120px);
}

.trainer:nth-child(2) {
  transform: translateY(-120px);
}

.trainer:nth-child(3) {
  transform: translateY(120px);
}

.trainer:nth-child(4) {
  transform: translateX(120px);
}

/* cuando aparecen */

.trainer:nth-child(1) {
  transition-delay: 0.2s;
}

.trainer:nth-child(2) {
  transition-delay: 0.3s;
}

.trainer:nth-child(3) {
  transition-delay: 0.4s;
}

.trainer:nth-child(4) {
  transition-delay: 0.5s;
}

.trainer.visible {
  opacity: 1;
  transform: translate(0,0);
}

.trainer h3 {
  color: #ff4250;
  margin-bottom: 0.3rem;
}

.trainer h4 {
  color: #bbb;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.trainer p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.4;
}

/****** HORARIOS *******/
.horarios-section {
  text-align: center;
}

.horarios-header h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: .5rem;
}

.horarios-header p {
  color: #ccc;
  margin-bottom: 2rem;
}

.horarios-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab {
  background: #222;
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .3s;
  border: none;
}

.tab.active {
  background: linear-gradient(45deg, var(--primary-red), #ff7a5a);
}

.horarios-panel {
  max-width: 700px;
  margin: auto;
}

.horario-dia {
  display: none;
}

.horario-dia.active {
  display: block;
  animation: fadeIn .6s ease;
}

.hora-card {
  background: #1a1a1a;
  margin: .5rem 0;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* UBICACIÓN */
.section-ubicacion, .contacto-modern, footer{ padding:6rem 2rem; text-align:center; }
.section-ubicacion h2, .contacto-content h2 { color: #e63946; font-size:2.5rem; }
.ubicacion-grid{ display:flex; gap:2rem; flex-wrap:wrap; align-items:stretch; justify-content:center; }
.map-container{ flex:1 1 500px; border-radius:15px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,0.4); }
.ubicacion-info{ flex:1 1 300px; background:#222; padding:2rem; border-radius:15px; text-align:left; box-shadow:0 10px 30px rgba(0,0,0,0.3); border-left:4px solid #e63946; }
.btn-maps{ display:inline-block; margin-top:1.5rem; background:linear-gradient(45deg,#e63946,#ff4d5a); color:white; padding:.8rem 1.2rem; border-radius:50px; text-decoration:none; transition:transform .3s ease; }
.btn-maps:hover{ transform:scale(1.05); }

/* TESTIMONIOS */
.testimonials-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  align-items: stretch;
}

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

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.testimonial {
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  background: #121212;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: left;

  border-left: 3px solid var(--primary-red);

  width: auto;      /* 🔥 CLAVE */
  min-width: 0;     /* 🔥 evita overflow */
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

/* animación */
.testimonial.visible {
  opacity: 1;
  transform: translateY(0);
}

/* texto */
.testimonial p {
  color: #ccc;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonial h4 {
  color: var(--primary-red);
  font-weight: 600;
}

/* CONTACTO */
/* ===== CONTACTO MODERNO ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;

  margin-top: 2rem;
}

.contact-card {
  background: #121212;

  border-radius: 18px;
  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  text-decoration: none;
  color: white;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;

  border: 1px solid rgba(255,255,255,0.05);

  opacity: 0;
  transform: translateY(40px);
}

/* animación */
.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* iconos */
.contact-card i {
  font-size: 2rem;
  color: var(--primary-red);

  transition: transform 0.4s ease;
}

/* texto */
.contact-card span {
  font-weight: 600;
  font-size: 1rem;
}

/* hover */
.contact-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.35),
    0 0 20px rgba(255,66,80,0.15);

  border: 1px solid rgba(255,66,80,0.3);
}

.contact-card:hover i {
  transform: scale(1.15);
}

.whatsapp i {
  color: #25D366;
}

.instagram i {
  color: #E1306C;
}

.phone i {
  color: #ff4250;
}

.email i {
  color: #4dabff;
}

/* FOOTER */
/* ===== FOOTER MODERNO MINIMAL ===== */

.footer {
  position: relative;

  background: #080808;

  padding: 5rem 2rem 2rem;

  overflow: hidden;
}

/* glow rojo arriba */
.footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;

  transform: translateX(-50%);

  width: 500px;
  height: 250px;

  background: rgba(255, 66, 80, 0.18);

  filter: blur(120px);

  pointer-events: none;
}

/* contenido */
.footer-container {
  position: relative;
  z-index: 2;

  max-width: 900px;
  margin: auto;

  text-align: center;
}

/* logo */
.footer-logo {
  font-family: var(--font-title);

  font-size: 2.5rem;
  font-weight: 700;

  margin-bottom: 1rem;

  letter-spacing: 1px;
}

.footer-logo span {
  color: var(--primary-red);
}

/* frase */
.footer-text {
  color: #aaa;

  font-size: 1rem;
  letter-spacing: 3px;

  text-transform: uppercase;

  margin-bottom: 2rem;
}

/* línea */
.footer-line {
  width: 120px;
  height: 3px;

  margin: auto auto 2rem;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--primary-red),
      transparent
    );
}

/* copyright */
.footer-copy {
  color: #666;

  font-size: 0.95rem;

  letter-spacing: 0.5px;
}

.footer-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }

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

  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
}

