@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* Contenedor principal */
.container-form {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas grandes */
    gap: 50px;
    margin-top: 90px;
    padding: 0 20px; /* Padding para móviles */
}

/* Estilos para la sección de información */
.info-form h2 {
    margin-bottom: 15px;
    font-size: 35px;
}

.info-form p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-form a {
    font-size: 17px;
    display: block; /* Cambiamos a bloque para ocupar toda la línea */
    text-decoration: none;
    margin-bottom: 15px;
    color: black;
    font-weight: 700;
}

.info-form a i {
    color: orange;
    margin-right: 10px;
}

.info-form img {
    display: block;
    margin: 0 auto; /* Centramos la imagen */
    max-width: 100%; /* Hacemos la imagen responsive */
    height: auto;
}

/* Estilos para el formulario */
.formulario {
    display: flex;
    flex-direction: column; /* Una sola columna */
    gap: 20px; /* Espacio entre grupos */
}

.formulario__grupo {
    width: 100%; /* Ocupa todo el ancho */
}

.formulario__grupo-input {
    position: relative;
}

.formulario__input {
    width: 100%; /* Ocupa todo el ancho */
    padding: 15px 10px;
    font-size: 15px;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.formulario__input:focus {
    border-color: orange;
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

.formulario__validacion-estado {
    position: absolute;
    right: 10px;
    bottom: 15px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.formulario__input-error {
    font-size: 12px;
    color: red;
    margin-top: 5px;
    display: none;
}

.formulario__input-error-activo {
    display: block;
}

.formulario__grupo-terminos {
    text-align: center;
    margin-top: 20px;
}

.formulario__checkbox {
    cursor: pointer;
    margin-right: 10px;
}

.formulario__span {
    font-size: 14px;
}

.formulario__mensaje {
    display: none;
    padding: 15px;
    border-radius: 5px;
    background: #f00;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.formulario__mensaje-activo {
    display: block;
}

.formulario__grupo-btn-enviar {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.formulario__btn {
    padding: 15px 35px;
    background: orange;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario__btn:hover {
    background: #e39463;
}

.formulario__mensaje-exito {
    font-size: 18px;
    color: green;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.formulario__mensaje-exito-activo {
    display: block;
}

/* Estilos para la validación */
.formulario__grupo-correcto .formulario__validacion-estado {
    color: green;
    opacity: 1;
}

.formulario__grupo-incorrecto .formulario__validacion-estado {
    color: red;
    opacity: 1;
}

.formulario__grupo-incorrecto .formulario__input {
    border-color: red;
}

/* Estilos para el reCAPTCHA */
#grupo__recaptcha {
    margin: 20px 0;
  }
  
  .g-recaptcha {
    display: inline-block;
    margin: 10px 0;
  }
  
  #recaptcha-error {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: none;
  }

/* Responsive */
@media screen and (max-width: 768px) {
    .container-form {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        gap: 30px;
    }

    .info-form h2 {
        font-size: 28px; /* Reducimos el tamaño del título */
    }

    .info-form p {
        font-size: 15px; /* Reducimos el tamaño del texto */
    }

    .info-form a {
        font-size: 15px; /* Reducimos el tamaño de los enlaces */
    }

    .formulario__input {
        font-size: 14px; /* Reducimos el tamaño de la fuente */
    }

    .formulario__btn {
        width: 100%; /* Botón ocupa todo el ancho */
    }
}

/* Responsive menu*/

@media (max-width: 768px) {
    .nav_menu {
        display: block;
    }

    .nav_link {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%; /* Cambiamos de right a left */
        width: 250px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.1); /* Ajustamos la sombra */
        padding-top: 60px;
        transition: left 0.3s ease-in-out; /* Cambiamos de right a left */
        z-index: 1000; /* Asegura que el menú esté por encima del contenido */
    }

    .nav_link.show {
        left: 0; /* Cambiamos de right a left */
    }

    .nav_items {
        text-align: center;
        padding: 10px 15px; /* Reducimos el padding vertical */
        margin: 0; /* Eliminamos el margen */
    }

    .nav_links {
        font-size: 18px;
        display: block;
        padding: 5px 8px; /* Reducimos el padding */
    }

    .nav_close {
        display: block;
        position: absolute;
        top: 5px;
        right: 15px;
        color: #333;
    }

    /* Ocultar los iconos cuando el menú no esté desplegado */
    .nav_link:not(.show) .nav_close,
    .nav_link:not(.show) .nav_menu {
        display: none;
    }

    .hero_cont {
        flex-direction: column;
        text-align: center;
    }

    .hero_containerimgs {
        max-width: 100%;
    }

    .hero_title {
        font-size: 1.8rem;
    }
}


