/* Estilos generales */

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Ajuste del contenedor de títulos */
.titlulos {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra mejor el contenido */
    gap: 20px;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap; /* Evita que se desborde en pantallas pequeñas */
    text-align: left;
    margin-bottom: 20px;
}

/* Imagen */
.logo {
    max-width: 150px; /* Reduce el tamaño en móviles */
    height: auto;
}

/* Contenedor de los títulos */
.titlulos span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Títulos */
span h1, span h2, span h4 {
    margin: 0;
}

h1 {
    color: #004581;
    font-size: 50px;
    text-align: center;
}

h2 {
    color: #018abd;
    font-size: 35px;
    text-align: center;
}

h4 {
    color: #97cbdc;
    font-size: 20px;
    text-align: center;
}

/* Estilos del formulario */
form {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #ffffff, #f8f8f8); /* Fondo sutil */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;  /* Aumentar el max-width */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;  /* Aumentar el espacio entre elementos */
}

/* Etiquetas y campos de entrada */
label {
    font-weight: bold;
    color: #555;
    font-size: 18px;  /* Aumentar tamaño de la fuente */
}

select, input, textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;  /* Más espacio para que se vea más cómodo */
    border: 1px solid #ccc;
    border-radius: 6px;  /* Bordes ligeramente más redondeados */
    font-size: 16px;
    background-color: #004581; /* Color de fondo azul */
    color: white; /* Texto en blanco */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

textarea {
    resize: none;
}

/* Estilos cuando los campos de texto están en foco */
select:focus, input:focus, textarea:focus {
    border-color: #007bff;
    background-color: #f0f9ff;
    color: #000; /* Cambiar el color del texto a negro cuando se enfoque */
}

/* Preguntas */
.pregunta {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

input, textarea {
    width: 100%; /* Se ajusta al ancho del contenedor */
    max-width: 100%; /* Evita que se desborde */
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
}

/* Botón de envío */
button {
    background: #007bff;
    color: white;
    padding: 14px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 600px) {
    
    .titlulos {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px; /* Reduce el espacio en móviles */
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 15px; /* Agrega un padding lateral para evitar desbordes */
    }

    .titlulos span {
        text-align: center;
        align-items: center;
    }

    .logo {
        max-width: 120px; /* Reduce aún más el tamaño en móviles */
    }

    span h1 {
        font-size: 40px; /* Reduce tamaño para mejor adaptación */
    }

    span h2 {
        font-size: 28px;
    }

    span h4 {
        font-size: 18px;
    }
    
    form {
        width: 90%;
        max-width: 100%;
        padding: 15px;
    }
    
    input, select, textarea {
        width: 100%; /* Se ajusta al ancho del formulario */
        font-size: 15px;
        padding: 12px;
    }

    button {
        width: 100%; /* Para que el botón no sobresalga */
        font-size: 16px;
        padding: 12px;
    }
}
