/* Variables de color y tipografía */
:root {
    --color-primary: #7AC1E1;
    --color-secondary: #C6C5C5;
    --color-accent: #3B89AC;
    --color-dark: #303031;
    --font-roboto: 'Roboto', sans-serif;
}

html{
    scroll-behavior: smooth;
}

/* Estilos globales */
body {
    margin: 0;
    font-family: var(--font-roboto);
    background-color: #ffffff;
    color: var(--color-dark);
}

header {
    width: 100%;
    background-color: #ffffff;
    position: fixed; /* Fijo en la parte superior */
    top: 0;
    left: 0;
    z-index: 1000; /* Superpuesto */
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px; /* Espaciado desde la parte inferior */
    right: 20px; /* Espaciado desde el lado derecho */
    background-color: var(--color-primary); /* Color de WhatsApp */
    color: #fff;
    border-radius: 50%; /* Forma circular */
    width: 60px; /* Tamaño del botón */
    height: 60px; /* Tamaño del botón */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra del botón */
    z-index: 1000; /* Asegura que esté encima de otros elementos */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .whatsapp-float:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el cursor */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
  }
  
  .whatsapp-float i {
    font-size: 28px; /* Tamaño del ícono */
  }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 7rem;
    padding-left: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--color-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 1rem;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--color-accent);
}

/* Estilos para el menú hamburguesa */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* Cambiar a tache cuando se hace clic */
.hamburger.active i:before {
    content: '\f00d'; /* Unicode para el tache en FontAwesome */
}

.home-section {
  background-color: white;
  text-align: center;
  padding: 60px 20px;
}
.home-title {
  font-size: 24px;
  color: black;
  padding-top: 3rem;
  margin-bottom: 40px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.home-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}



/* Estilos para el banner de James */
.banner {
  background: linear-gradient(-45deg, #7AC1E1, #3B89AC, #303031);
  background-size: 400% 400%;
  animation: gradientAnimation 8s infinite linear;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 180px;
  position: relative;
  overflow: hidden;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-text {
  color: white;
  font-size: 1.8rem;
  max-width: 46%;
  font-weight: bold;
  margin-right: 10px;
  letter-spacing: 3px;
}

.banner img {
  max-height: 540px;
  width: auto;
  position: relative;
  z-index: 2;
}

.buy-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: background-color 0.3s;
  }
  .contact-left,
  .contact-right {
    flex: 1;
    box-sizing: border-box;
  }
  
  .contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 40px 50px;
  }
  
  .contact-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3B89AC;
  }
  
  .subscribe-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  
  .contact-section {
    display: flex;
    background-color: #ffffff;
    color: #333333;
    box-sizing: border-box;
    padding: 80px 80px 40px; /* Más espacio arriba */
    gap: 20px;
  }
  
  .contact-left,
  .contact-right {
    flex: 1;
    box-sizing: border-box;
  }
  
  .contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
  
  .contact-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3B89AC;
    letter-spacing: 2px;
  }
  
  .subscribe-text {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8; /* Mejor espacio entre líneas */
    margin-bottom: 30px; /* Más espacio debajo del texto */
  }
  
  
  .contact-right form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-right label {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;

  }
  
  .contact-right input,
  .contact-right textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem; /* Consistente con los campos */
    font-family: inherit; /* Usa la misma tipografía que los inputs */
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  .contact-right button {
    padding: 8px 16px; /* Botón más pequeño */
    font-size: 1rem; /* Tamaño ajustado del texto */
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    letter-spacing: 2px;
    transition: background-color 0.3s ease;
    align-self: center; /* Centra el botón dentro del formulario */
  }
  
  .contact-right button:hover {
    background-color: var(--color-accent);
  }


/* Estilos generales del footer */
footer {
  background-color: #fff;
  padding: 20px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  padding-top: 5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  
}

/* Parte izquierda */
.footer-left h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* Parte central */
.footer-center {
  text-align: center;
  flex: 1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: inline-block;
  margin: 0 10px;
}

.footer-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #555;
}
/* Sección de presentación */
.presentacion-entrenador {
  background-color: var(--color-dark);
  color: white;
  padding: 60px 20px;
  font-family: var(--font-roboto);
}

.contenido-entrenador {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.imagen-entrenador img {
  max-width: 350px;
  width: 100%;
  height: auto;
}

.texto-entrenador {
  max-width: 600px;
}

.texto-entrenador h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.texto-entrenador p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-participar {
  display: inline-block;
  background-color: var(--color-primary);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn-participar:hover {
  background-color: var(--color-accent);
  color: #fff;
}
.trainer-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
     background: linear-gradient(to bottom,
     /* desvanecido arriba */
    var(--color-dark) 30%,     /* color base al centro */
    var(--color-dark) 70%,
    rgba(37, 37, 37, 0.626) 110% /* desvanecido abajo */
  ); /* <--- color de fondo completo */
    font-family: var(--font-roboto), sans-serif;
    color: var(--color-secondary);
    width: 100%;       /* Asegura que ocupe todo el ancho */
    box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
}


.trainer-background-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    color: var(--color-secondary);
    font-size: 5rem;
    font-weight: bold;
    line-height: 0.8;
    text-align: start;
    opacity: 0.8;
    transform: translateY(-50%);
    z-index: 1;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
}

.trainer-content {
    position: relative;
    display: flex;
    max-width: 1200px;
    width: 100%;
   
    overflow: hidden;
    z-index: 1;
}

.trainer-image {
    flex: 0 0 40%;
    padding-top: 0%;
}

.trainer-image img {
    display: block;
    width: 120%;
    height: 120;
    object-fit: cover;
    padding: 1px;
    margin-top: 80px; /* <-- Ajusta la cantidad según lo que necesites */
}


.trainer-info {
    flex: 1;
    padding-top: 10%;
    text-align: center;
}

.trainer-info h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: start;
    font-size: 2rem;
}

.trainer-info p {
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}


  .logo img {
  width: 150px;
  height: auto;
  max-width: 150%;
}

/* Ajuste opcional para pantallas muy pequeñas */
@media (max-width: 480px) {
  .logo img {
    width: 150px;
    height: 38px; /* o incluso menos si quieres más pequeño en móviles */
  }
}

/* Responsividad */
@media (max-width: 768px) {

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .78rem 1rem;
    }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%; /* Justo debajo del header */
        right: 0;
        background-color: #ffffff;
        width: 100%;
        padding: 1rem 0;
        transform: translateY(-100%); /* Inicialmente fuera de la pantalla */
        opacity: 0;
        visibility: hidden; /* Oculto */
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav-links.active {
        transform: translateY(0); /* Muestra el menú */
        opacity: 1; /* Lo hace visible */
        visibility: visible;
    }

    .nav-links.active li a {
        font-size: 1.2rem; /* Aumentar tamaño de fuente */
        padding-left: 1.8rem; /* Agregar espacio entre los elementos */
    }

    .hamburger {
        display: block;
    }

    /* Estado inicial del menú hamburguesa */
    .hamburger i:before {
        content: '\f0c9'; /* Código Unicode de FontAwesome para la hamburguesa */
    }
     .trainer-content {
        flex-direction: column;
        
    }

    .trainer-image {
      
        flex-basis: 100%;
    }
    .trainer-image img {
    display: block;
    width: 120%;
    height: 120;
    object-fit: cover;
    padding: 1px;
    margin-bottom: -120px; /* <-- Ajusta la cantidad según lo que necesites */
}

   

    .trainer-background-text {
        font-size: 6rem;
    }



    .home-content {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }
   

      .whatsapp-float {
        width: 50px; /* Tamaño más pequeño en pantallas pequeñas */
        height: 50px;
      }
    
      .whatsapp-float i {
        font-size: 24px;
      }

      .james-section {
        flex-direction: column;
        height: auto; /* Ajusta la altura automática para pantallas pequeñas */
      }
    
      .james-left,
      .james-right {
        flex: none;
        width: 100%;
      }
    
      .james-right img {
        height: auto; /* Ajusta la altura automáticamente en pantallas pequeñas */
      }

      .james-left{
        padding: 20px 20px;
      }

      .james-left h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 10px;
        text-align: center;
      }

      .contact-section {
        flex-direction: column;
        padding: 20px;
      }

      .contact-left {
        padding: 10px;
      }

      .contact-left h2 {
        font-size: 2rem;
        text-align: center;
        padding-top: 2rem;
      }
    
      .contact-left,
      .contact-right {
        width: 100%;
      }

      .footer-container {
        flex-direction: column;
        text-align: center;
      }
    
      .footer-left {
        margin-bottom: 20px;
      }

      .banner {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
        padding-top: 2rem;
    }
    
    .banner-text {
        max-width: 100%;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .banner img {
        max-height: 450px;
    }



    .trainer-background-text {
     margin-top: -400px;
        font-size: 4rem;
    }

    .trainer-info {
        padding: 50px 20px;
       margin-top: 35%;
    }
    .trainer-info h2 {
   text-align: center;
    font-size: 2.1rem;
}

  }
  
@media (max-width: 400px) {
    .trainer-info h2 {
    font-size: 2.4rem;
}
}
