.formulario {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 2px;
    color: #333;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: none;
}

select {
    appearance: none;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    font-size: 16px;
    padding: 10px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 1024px) {
    .form-container {
        max-width: 90%; /* Aumenta el ancho máximo en tablets */
    }

    h1 {
        font-size: 18px; /* Reduce ligeramente el tamaño del título */
    }

    input, textarea, select {
        font-size: 14px; /* Ajusta el tamaño de las entradas de texto */
    }

    button {
        font-size: 14px; /* Ajusta el tamaño del botón */
    }
}

@media (max-width: 768px) {
    .formulario {
        padding: 10px; /* Reduce el padding general */
    }

    .form-container {
        max-width: 100%; /* Ocupa casi toda la pantalla en móviles */
        padding: 15px; /* Reduce el padding interior */
    }

    h1 {
        font-size: 16px; /* Reduce más el tamaño del título en móviles */
    }

    input, textarea, select {
        font-size: 12px; /* Tamaño más pequeño de texto para inputs */
        padding: 8px; /* Reduce el padding interno de los campos */
    }

    button {
        font-size: 14px;
        padding: 10px; /* Reduce el padding del botón */
    }
}
