/* styles.css */
:root {
  --verde-oscuro: #2E4F21;
  --verde: #008E5E;
  --verde-claro: #e8f5e9;
  --gris: #f5f5f5;
  --texto: #333;
  --amarillo: #FFB236;
}

* {
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden; /* Evita el scroll lateral */
    width: 100%;
  }

h2{
    text-size-adjust: 50px;
    color: var(--verde-oscuro);
    font-size: 50px;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
  }

.pname{
  text-align: left;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* --- HEADER Y NAV --- */
.main-header {
    background-color: #008f5d; /* Color verde sólido */
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Botones del Nav */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn-clima {
    background-color: #f2c94c; /* Amarillo */
    color: #2d4a2a;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

.btn-contacto-nav {
    background-color: #1a2e1c; /* Verde casi negro */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
}

/* --- SECCIÓN HERO --- */
.hero {
    position: relative;
    height: 100vh; /* Ocupa todo el alto de la pantalla, como en la foto */
    
    /* IMAGEN DE EJEMPLO Y SUPERPOSICIÓN VERDE (OVERLAY) */
    background-image: linear-gradient(rgba(0, 143, 93, 0.8), rgba(0, 143, 93, 0.8)), /* Capa verde con 80% de opacidad */
    url('https://gymbro.website/distribuidora/image.jpg');
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    padding: 0 10%; /* Espaciado lateral */
}

.hero1 {
  position: relative;
  height: 50vh; /* Ocupa todo el alto de la pantalla, como en la foto */
  
  /* IMAGEN DE EJEMPLO Y SUPERPOSICIÓN VERDE (OVERLAY) */
  background-image: linear-gradient(rgba(98, 100, 99, 0.8), rgba(98, 100, 99, 0.8)), url('https://gymbro.website/distribuidora/encuestaclima.png');
  background-size: cover; /* Asegura que la imagen cubra todo el espacio */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center; /* Centra el contenido verticalmente */
  padding: 0 10%; /* Espaciado lateral */
}

.hero2 {
  position: relative;
  height: 50vh; /* Ocupa todo el alto de la pantalla, como en la foto */
  
  /* IMAGEN DE EJEMPLO Y SUPERPOSICIÓN VERDE (OVERLAY) */
  background-image: linear-gradient(rgba(98, 100, 99, 0.8), rgba(98, 100, 99, 0.8)), url('https://gymbro.website/distribuidora/100online.png');
  background-size: cover; /* Asegura que la imagen cubra todo el espacio */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center; /* Centra el contenido verticalmente */
  padding: 0 10%; /* Espaciado lateral */
}

/* El contenido del Hero (Texto y Botón) */
.hero-content {
    max-width: 800px;
    color: white; /* Texto blanco para contraste */
}

.hero-content h1 {
    font-size: 3.5rem; /* Título grande */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Botón "Solicitar diagnóstico" amarillo */
.btn-diagnostico {
    display: inline-block;
    background-color: #f2c94c; /* Amarillo de tu marca */
    color: #2d4a2a; /* Texto verde oscuro para contraste */
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-diagnostico:hover {
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 5px 15px rgba(242, 201, 76, 0.3); /* Sombra suave */
}

.btn-diagnostico {
    background-color: #f2c94c;
    color: #2d4a2a;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s;
}

.btn-diagnostico:hover {
    transform: scale(1.05);
}

.btn {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.btn1 {
  background: var(--amarillo);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn2{
    text-decoration: none;
    transition: background 0.3s;
    color: #2E4F21;
}

.btn:hover {
  background: #1b5e20;
}

.btn1:hover {
  background: #1b5e20;
}

.servicios {
  padding: 2rem;
}

.servicios-intro {
  padding: 80px 20px; /* Espacio arriba y abajo */
  text-align: center;
  background-color: #ffffff;
}

.servicios-intro .subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.servicios-intro .main-title {
  color: #1a3c1a; /* Verde oscuro similar al de la imagen */
  font-size: 2.5rem;
  max-width: 900px;
  margin: 0 auto 25px;
  line-height: 1.2;
}

.servicios-intro .description {
  color: #444;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background-color: #1a3c1a;
  color: white;
  padding: 12px 30px;
  border-radius: 50px; /* Botón ovalado */
  text-decoration: none;
  font-weight: 500;
}



.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid article {
  background: #e8f5e9; /* verde claro */
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.acciones {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn {
  background: #2e7d32;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.btn-sec {
  background: #fff;
  color: #2e7d32;
  border: 1px solid #2e7d32;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
}

.btn:hover, .btn-sec:hover {
  opacity: 0.8;
}

/* clima */

.uno {
   display: flex;
    width: 85%;
    margin-top: 30px;
    border-radius: 20px;
    padding: 5%;
    background: var(--verde-claro);
    margin-right: 15%;
}

.dos{
    display: flex;
    width: 85%;
    margin-top: 30px;
    border-radius: 20px;
    padding: 5%;
    background: var(--verde-oscuro);
    margin-left: 5%; 
}

.imagen1 {
  flex: 1;       /* 1 parte */
  background: #e8f5e9;
  align-items: center;
  display: flex;
}

.imagen1 img{
    border-radius: 30px; /* Ajusta este valor según qué tan curva la quieras */
    width: 100%;        /* Para que ocupe todo el ancho de su contenedor */
    display: block;      /* Evita espacios blancos extraños debajo de la imagen */
    object-fit: cover;
    margin-right: 1em;
}

.imagen2 {
  flex: 1;       /* 1 parte */
  background: var(--verde-oscuro);
  align-items: center;
  display: flex;
}

.imagen2 img{
    border-radius: 30px; /* Ajusta este valor según qué tan curva la quieras */
    width: 100%;        /* Para que ocupe todo el ancho de su contenedor */
    display: block;      /* Evita espacios blancos extraños debajo de la imagen */
    object-fit: cover;
    margin-right: 1em;
}

.texto1 {
  flex: 2;       /* 2 partes */
    margin-left: 1em;
    font-size: 24px;
    text-align: left;
}

.texto2 {
  flex: 2;       /* 2 partes */
    margin-left: 1em;
    font-size: 24px;
    color: white;
    text-align: left;
    margin-right: 10px;
}

.grid img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Equipos */
.equipo-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
  align-items: flex-start;
}

.equipo-seccion{
    margin-top: 3em;
    margin-bottom: 3em;
}

/* Lista de nombres */
.nombres-lista {
  width: 35%;
  display: flex;
  flex-direction: column;
}

.nombre-item {
  background: none;
  border: none;
  border-bottom: 2px solid var(--gris-borde); /* Línea gris debajo */
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* Estilo del botón activo (VERDE) */
.nombre-item.active {
  background-color: var(--verde-oscuro);
  color: white;
  border-radius: 8px; /* Bordes redondeados como en tu imagen */
  border-bottom: 2px solid transparent;
}

.nombre { font-weight: bold; font-size: 1.1rem; }
.cargo { font-size: 0.85rem; margin-top: 5px; opacity: 0.9; }

/* Línea divisoria central */
.divisor {
  width: 1px;
  background-color: var(--verde-oscuro);
  align-self: stretch;
}

/* Columna de información */
.info-detalle { width: 60%; }

.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

.cita {
  font-size: 1.8rem;
  color: #2c4230; /* Verde muy oscuro */
  line-height: 1.3;
  margin-bottom: 30px;
}

.firma { display: flex; align-items: center; gap: 15px; }
.foto-perfil { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Imagen sola */
.seccion-imagen-full {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Elimina espacio extra debajo de la imagen */
  }
  
  .imagen-full {
    width: 100%;
    height: auto; /* Mantiene la proporción */
    display: block;
    object-fit: cover; /* Asegura que cubra el espacio si defines una altura fija */
  }

/* Gestion equipos */
.gestion-seccion {
    padding: 80px 10%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* O la fuente que uses */
    background-color: #fff;
  }
  
  /* Encabezado */
  .gestion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 50px;
  }
  
  .titulo-principal {
    font-size: 3rem;
    color: #2d4a2a; /* Verde oscuro de la imagen */
    flex: 1;
    line-height: 1.1;
    margin: 0;
  }
  
  .subtitulo-texto {
    flex: 1;
    font-size: 1.1rem;
    color: #4a5d48;
    margin-top: 10px;
  }
  
  /* Grid de Servicios */
  .servicios-grid {
    display: flex;
    justify-content: space-between;
    gap: 0; /* Usaremos bordes para las líneas */
  }
  
  .servicio-card {
    flex: 1;
    padding: 0 40px;
    border-left: 1px solid #4a5d48; /* La línea vertical de la imagen */
  }
  
  /* Quitamos la línea a la primera tarjeta si no la quieres ahí, 
     o la dejamos como en la imagen que parece tenerla en todas */
  
  .servicio-card h3 {
    color: #2d4a2a;
    font-size: 2.2rem;
    margin: 20px 0 10px 0;
  }

  textarea {
    font-family: 'Roboto', sans-serif;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    resize: none;
  }
  
  .tagline {
    font-weight: bold;
    font-size: 0.9rem;
    color: #4a5d48;
    margin-bottom: 20px;
  }
  
  .descripcion {
    font-size: 1rem;
    color: #4a5d48;
    line-height: 1.5;
  }
  
  .icono-fa {
    margin-bottom: 15px;
  }
  
  .icono-fa i {
    font-size: 24px;      /* Tamaño del icono */
    color: #2d4a2a;      /* El mismo verde oscuro de tus títulos */
    display: block;
  }
  
  /* Responsivo para celulares */
  @media (max-width: 768px) {
    .gestion-header { flex-direction: column; }
    .servicios-grid { flex-direction: column; gap: 40px; }
    .servicio-card { border-left: none; border-top: 1px solid #4a5d48; padding: 20px 0; }
  }



.miembro {
  margin-bottom: 2rem;
  text-align: center;
}

.miembro img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* CAPACITACIONES */ 
.capacitaciones-seccion {
    padding: 60px 10%;
    background-color: #fff;
  }
  
  .capacitaciones-container {
    display: flex;
    gap: 25px; /* Espacio entre las dos tarjetas */
    align-items: stretch;
  }
  
  /* Tarjeta Verde */
  .card-info-verde {
    flex: 1;
    background-color: #008f5d; /* Verde de la marca */
    color: white;
    padding: 50px;
    border-radius: 30px; /* Bordes muy redondeados como en la foto */
    display: flex;
    flex-direction: column;
  }
  
  .card-info-verde h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 500;
  }
  
  .fecha {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  .descripcion-cap {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 40px;
  }
  
  /* Tags */
  .tags-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .tag {
    background-color: #b5e3d0; /* Verde muy clarito */
    color: #000;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
  
  /* Botón Blanco */
  .btn-saber-mas {
    background-color: white;
    color: #000;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    width: fit-content;
    transition: transform 0.2s;
  }
  
  .btn-saber-mas:hover {
    transform: scale(1.05);
  }
  
  /* Tarjeta de Imagen */
  .card-imagen {
    flex: 1;
  }
  
  .card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px; /* Mismo redondeado que la tarjeta verde */
  }
  
  /* Adaptación para móviles */
  @media (max-width: 900px) {
    .capacitaciones-container {
      flex-direction: column;
    }
    .card-info-verde {
      padding: 30px;
    }
  }

/* CONTACTOS */
.contacto-seccion {
    background-color: #008f5d; /* Fondo verde principal */
    padding: 80px 10%;
    color: white;
  }
  
  .contacto-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
  }
  
  /* Títulos e Información */
  .contacto-info { flex: 1; }
  
  .contacto-titulo {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 50px;
  }
  
  .resaltado-amarillo { color: #f2c94c; } /* El color amarillo de la imagen */
  
  .info-links { display: flex; flex-direction: column; gap: 15px; }
  
  .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 50px;
  }
  
  .info-item.bg-dark-green {
    background-color: var(--verde-oscuro); /* Fondo más oscuro para el teléfono */
    width: fit-content;
  }
  
  .info-item a, .info-item span { color: white; text-decoration: none; font-size: 1rem; }
  
  .redes-sociales { margin-top: 40px; display: flex; gap: 20px; font-size: 1.5rem;  }

  .redes-sociales a i {
    margin-top: 20px; display: flex; gap: 20px; font-size: 2.5rem;
    color: #ffffff; /* O el color que desees por defecto */
    transition: all 0.3s ease; /* Esto hace que el cambio sea suave */
    text-decoration: none;
    margin-right: 1em;
  }

  .info-item a, 
.redes-sociales a {
    text-decoration: none !important; /* Quita la línea de abajo */
    border: none;                     /* Por si acaso hay un borde */
    outline: none;                    /* Quita el recuadro al hacer clic */
}

.info-item i {
    text-decoration: none;
    display: inline-block; /* Ayuda a que no herede estilos de texto raros */
}
  
  /* Color al pasar el mouse (Hover) */
  .info-item:hover i, 
  .redes-sociales a:hover i {
    color: var(--amarillo); /* Cambia a amarillo como el título al pasar el mouse */
    transform: scale(1.2); /* Opcional: el icono se agranda un poquito */
  }
  
  /* Tarjeta del Formulario */
  .contacto-card-form {
    flex: 1;
    background-color: #f2f4f2; /* Gris muy claro */
    padding: 40px;
    border-radius: 30px;
    color: #2d4a2a;
  }
  
  .contacto-card-form h3 { margin-bottom: 25px; font-size: 1.5rem; }
  
  /* Estilo de los Intereses (Checkboxes ocultos) */
  .intereses-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
  
  .intereses-tags label input { display: none; }
  
  .intereses-tags span {
    padding: 8px 18px;
    border: 1px solid #b5e3d0;
    border-radius: 20px;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
    font-size: 0.9rem;
  }
  
  .intereses-tags input:checked + span {
    background-color: #008f5d;
    color: white;
    border-color: #008f5d;
  }
  
  /* Inputs minimalistas */
  .input-group { margin-bottom: 25px; border-bottom: 1px solid #008f5d; }
  
  .input-group input, .input-group textarea {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    color: #4b0082; /* Color púrpura del texto en la imagen */
    font-size: 1rem;
    outline: none;
  }
  
  /* Botón enviar */
  .btn-enviar {
    width: 100%;
    background-color: #008f5d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  /* ACOMPAÑANOS */
  .final-cta {
    padding: 100px 10%;
    background-color: #fff; /* Fondo blanco limpio */
    text-align: center;
    border-top: 10px solid #008f5d; /* Franja verde superior de la imagen */
  }

  .final-cta1 {
    padding: 100px 10%;
    background-color: #fff; /* Fondo blanco limpio */
    text-align: center;
  }
  
    .popup-oculto {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
    z-index: 1000;
  }

  .popup-oculto.mostrar { display: flex; }

  .popup-contenido {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-family: inherit; /* Para que mantenga tu tipografía */
  }

  .popup-contenido button {
    margin-top: 15px;
    background: #1a3c1a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
  }

  /************ popup ********/
  .demo-card {
    background-color: #f0f0f0; /* Gris claro de fondo */
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    margin: 20px auto;
    font-family: inherit;
  }

  .demo-header {
    color: #1a3c1a; /* Tu verde oscuro */
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .demo-input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }

  .demo-input-group label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
  }

  .demo-input-group input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #1a3c1a; /* Línea verde de la imagen */
    padding: 5px 0;
    outline: none;
    font-family: inherit;
  }

  .btn-demo-enviar {
    width: 100%;
    background-color: #1a3c1a;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
  }

  .modal-overlay {
      display: none; /* Crucial: arranca oculto */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 99999; /* Valor alto para que esté por encima de todo */
      justify-content: center;
      align-items: center;
  }


  .modal-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    animation: aparecer 0.3s ease;
  }

  .btn-cerrar {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #1a3c1a;
  }

  @keyframes aparecer {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }



  .cta-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .cta-texto {
    font-size: 2.2rem;
    color: #2d4a2a; /* El verde oscuro que venimos usando */
    line-height: 1.3;
    margin-bottom: 40px;
    font-weight: 500;
  }
  
  .btn-conectar {
    display: inline-block;
    background-color: #008f5d; /* Verde corporativo */
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 143, 93, 0.2);
  }

  .btn-clima1 {
    background-color: #f2c94c;
    color: #2d4a2a;
    padding: 10px 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
}
  
  /* Efecto interactivo para el botón final */
  .btn-conectar:hover {
    background-color: #2c4230; /* Se oscurece al pasar el mouse */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 6px 20px rgba(0, 143, 93, 0.3);
  }

 /* PIE DE PAGINA*/
footer {
  background: var(--verde);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

/* Tablet */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

    /* Fuerza a que los datos de contacto y el formulario se apilen verticalmente */
    .contacto-container {
        flex-direction: column !important;
        gap: 30px; /* Espacio entre los iconos y el formulario */
        padding: 0 5%;
    }

    /* Asegura que el formulario ocupe todo el ancho disponible */
    .contacto-card-form {
        width: 100%;
        flex: none; /* Desactiva el crecimiento flexible de PC */
        margin-top: 20px;
    }

    /* Opcional: Centrar el título de contacto en móvil */
    .contacto-seccion h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 30px;
    }

    /* Alineación de los iconos de redes sociales en móvil */
    .redes-sociales {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

/* Celular */
/* --- ESTILOS MENÚ HAMBURGUESA --- */

/* Oculto por defecto en escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 568px) {
    .uno, .dos {
        flex-direction: column;
        width: 95%; /* Casi todo el ancho en móvil */
        padding: 20px;
    }
    
    .texto1 {
        margin-left: 0;
        margin-top: 15px;
        text-align: left;
    }
    
    .hero-content h1 {
        font-size: 2.2rem; /* Título más pequeño para que no desborde */
    }

    /* Fix para el contenedor de capacitaciones que también puede desbordar */
    .capacitaciones-container {
        flex-direction: column;
        width: 100%;
    }
    .menu-toggle {
        display: block; /* Aparece en celular */
    }

    .main-nav {
        display: none; /* Se oculta el menú normal */
        position: absolute;
        top: 70px; /* Debajo del header */
        left: 0;
        width: 100%;
        background-color: #008f5d; /* Mismo verde que el header */
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Clase que activaremos con JS */
    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-clima, .btn-contacto-nav {
        width: 80%; /* Botones grandes en móvil */
        text-align: center;
    }

    .equipo-container {
      display: flex;
      max-width: 1000px;
      margin: 0 auto;
      gap: 15px;
      align-items: flex-start;
      margin-left: 15px;
      margin-right: 10px;
    }

    .cita {
      font-size: 1.3rem;
      color: #2c4230;
      line-height: 1.3;
      margin-bottom: 30px;
  }

  .tags-container {
      display: contents;
      gap: 10px;
      margin-bottom: 10px;
  }

  .tag{
      margin-bottom: 10px;
  }

  .btn-clima1 {
      background-color: #f2c94c;
      color: var(--verde-oscuro);
      padding: 10px 4rem;
      border-radius: 50px;
      text-decoration: none;
      font-weight: bold;
      font-size: 0.9rem;
  }

  .acciones {
    display: grid;
    margin-bottom: 20px;
  }

  .btn-sec {
    font-size: 0.9rem;
  }
}

.form-desplegable-v {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: all 0.6s ease-in-out !important;
  background-color: #f9f9f9;
}

.form-desplegable-v.abierto {
  max-height: 2000px !important; /* Altura suficiente para el form */
  opacity: 1 !important;
  padding: 40px 0 !important;
}

.demo-card-v {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.btn-cerrar-v {
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 35px;
  cursor: pointer;
  color: #999;
}

#contenedor-vertical {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}
/* La clase .abierto ahora solo servirá de apoyo */
#contenedor-vertical.abierto {
  max-height: 1500px;
  opacity: 1;
}
