/* Reseteo de estilo */
* {
    box-sizing: border-box;
}

body, html {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('images/fondo1.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ajuste adicional para dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    body, html {
        min-height: -webkit-fill-available;
    }
}

/* Contenedor del formulario */
.form-container {
    width: 100%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.85); /* Fondo semitransparente */
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra */
    margin: 20px; /* Margen para espacios reducidos */
}

/* Título del formulario */
h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
}

/* Etiquetas de los campos */
label {
    font-size: 1em;
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #333;
    letter-spacing: 0.05em;
}

/* Campos de entrada de datos */
input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    font-size: 1em;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

/* Placeholder */
input::placeholder {
    color: #999;
}

/* Efecto de foco en el campo */
input:focus {
    border-bottom: 1px solid #333;
}

/* Botón de envío */
button {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #34495e;
}

button::before {
    content: '\f1d8'; /* Ícono de envío */
    font-family: 'FontAwesome';
    margin-right: 10px;
}

/* Media query para pantallas grandes (laptops y computadoras de escritorio) */
@media (min-width: 1024px) {
    .form-container {
        max-width: 600px;
        padding: 30px;
    }

    h2 {
        font-size: 2em;
    }

    label {
        font-size: 1.1em;
    }

    input[type="text"], input[type="email"], input[type="tel"] {
        font-size: 1.1em;
        padding: 15px;
    }

    button {
        font-size: 1.2em;
    }
}

/* Media query para dispositivos medianos en orientación vertical (iPads y tablets) */
@media (min-width: 768px) and (max-width: 1023px) {
    .form-container {
        max-width: 90%;
        padding: 25px;
    }

    h2 {
        font-size: 1.8em;
    }

    label {
        font-size: 1em;
    }

    input[type="text"], input[type="email"], input[type="tel"] {
        font-size: 1em;
        padding: 14px;
    }

    button {
        font-size: 1.1em;
        padding: 14px;
    }
}

/* Media query para dispositivos pequeños (celulares) */
@media (max-width: 767px) {
    .form-container {
        max-width: 95%;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    label {
        font-size: 0.9em;
    }

    input[type="text"], input[type="email"], input[type="tel"] {
        font-size: 0.9em;
        padding: 10px;
    }

    button {
        font-size: 1em;
        padding: 12px;
    }
}