/* ------------------------------------------------------------
   RESET & BASE
------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ------------------------------------------------------------
   VARIABLES
------------------------------------------------------------ */
:root {
  --bg: #05060A;
  --bg-soft: #0B0D14;

  --text: #F5F5F7;
  --text-soft: #A1A1AA;

  --accent: #7CFB4C;
  --accent-dark: #58d936;

  --radius: 10px;
  --transition: 0.25s ease;
}

/* ------------------------------------------------------------
   GLOBAL ELEMENTS
------------------------------------------------------------ */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background-color: var(--accent);
  color: #000;
}

.btn-secondary {
  background-color: var(--bg-soft);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: #151722;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid #111;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark {
  background-color: var(--accent);
  color: #000;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.logo-text {
  color: var(--text);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   BOTÓN CAMBIAR IDIOMA
------------------------------------------------------------ */
.btn-lang {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-lang:hover {
  background: var(--accent);
  color: #000;
}


/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  padding-top: 130px;
  padding-bottom: 100px;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  margin: 1rem 0 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.hero-meta-label {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background-color: var(--bg-soft);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 320px;
  text-align: center;
  border: 1px solid #181A20;
}

.hero-card-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.hero-card-btn {
  margin-top: 1.4rem;
}

/* ------------------------------------------------------------
   WHY / FEATURES
------------------------------------------------------------ */
.why {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.why-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
  background-color: var(--bg-soft);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #15171d;
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   CLASSES
------------------------------------------------------------ */
.classes {
  padding: 100px 0;
}

.classes-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.class-card {
  background-color: var(--bg-soft);
  padding: 2.2rem 2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid #15171d;
  position: relative;
}

.class-card h3 {
  margin-bottom: 0.6rem;
  padding-right: 5rem;
}


/* Píldora verde */
.class-tag {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   TRAINERS
------------------------------------------------------------ */
.trainers {
  padding: 100px 0;
}

.trainer-avatar {
  width: 100%;
  height: 260px;
  background-image: var(--avatar);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 1px solid #181A20;
  margin-bottom: 1rem;
}

.trainer-photo {
  width: 100%;
  height: 260px;         /* Ajusta la altura si quieres */
  object-fit: cover;     /* Recorta sin distorsionar */
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid #181A20;
}


.trainers-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.trainer-card {
  background-color: var(--bg-soft);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid #15171d;
}

.trainer-avatar {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1c26, #0d0e14);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   PRICING
------------------------------------------------------------ */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background-color: var(--bg-soft);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #15171d;
  text-align: center;
}

.price-card-featured {
  border-color: var(--accent);
}

.price-value {
  margin: 1rem 0 1.5rem;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.price-features {
  list-style: none;
  margin: 0 0 1.5rem;
}

.price-features li {
  margin-bottom: 0.6rem;
  color: var(--text-soft);
}

/* ------------------------------------------------------------
   CONTACT
------------------------------------------------------------ */
.contact {
  padding: 100px 0;
}

.contact-inner {
  background-color: var(--bg-soft);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid #15171d;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
}

.contact-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: #0b0d14;
  color: var(--text);
}

.form-helper {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #111;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Botón flotante (por defecto oculto, lo activamos en móvil) */
.floating-cta {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 200;
}

/* pequeño “rebote” al pasar el ratón (o tap) */
.floating-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}


/* 
------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-header {
    padding: 0.7rem 0;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
  }

  .logo {
    flex: 1 1 auto;
  }

  .lang-switch {
    margin-left: auto;
  }

  .btn-lang {
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 999px;
  }

  .main-nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  /* Ocultamos el botón grande del header en móvil */
  .header-cta {
    display: none;
  }

  /* Mostramos el botón flotante en móvil */
  .floating-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* En escritorio ocultamos el flotante (por si acaso) */
@media (min-width: 769px) {
  .floating-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}
