/* estilosformulario.css */
/* Variables de color */
:root {
    --primary-color: #bbce0f;
    --secondary-color:rgb(85, 130, 0);
    --text-color-2: 232952;
    --text-color: #ffffff;
    --background-color: #232952;
    --error-color: #ba3c18;
    --hover-secondary-color: #c82333;
}
html, body {
    overflow-x: hidden;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.contenedor {
    /* max-width: 900px; */
    width: 80%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contenedor img {
    width: 100%;
    height: auto;
}
.texto {
    text-align: justify;
    font-size: 1.2rem;
    color: #474747;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    padding: 1rem;
}
.texto ol {
    padding-left: 20px;
}
.texto ol li {
    margin-bottom: 10px;
}
.formulario {
    width: 100%;
    margin: 0px auto 0;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.formulario ul li {
    list-style-type: none;
    margin-bottom: 1rem;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 5px;
}

fieldset {
    font-size: 1.2rem;
    padding: 15px;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: var(--text-color);
    border: 1px solid #ccc;
}

legend {
    font-weight: 600;
    color: #f2f2f2;
    padding: 0 10px;
}

/* Campos del formulario */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 98%;
    padding: 0.5rem;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

#contenedorNoches, #contenedorHabitacion {
    display: none;
}

/* Botones */
button[type="submit"],
button[type="reset"] {
    width: 80%;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-2);
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 1rem auto 0;
    display: block;
}

button[type="reset"] {
    background-color: var(--error-color);
    color: #ffffff;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

button[type="reset"]:hover {
    background-color: var(--hover-secondary-color);
}

@media (max-width: 720px) {
    .contenedor {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    h1 {
        font-size: 1.2rem;
    }
    form {
        padding: 0;
    }

    .formulario {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 0px;
    }

    fieldset {
        font-size: 1rem;
    }
}