/* 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;
}

/* RESET GLOBAL IMPORTANTE: */
/* Esto asegura que el padding no afecte el ancho total de los elementos */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

.contenedor {
    width: 80%;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ajuste general para imágenes dentro de picture */
.contenedor picture img {
    width: 100%;
    height: auto;
    display: block;
}

.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;
}

/* CORRECCIÓN DE ANCHOS */
input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 100%; /* Cambiado de 98% a 100% para ocupar todo el espacio */
    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;
    /* box-sizing ya está aplicado globalmente arriba */
}

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);
}

/* --- ESTILOS TÍTULO ETAPA --- */
.titulo-etapa {
    text-align: center;
    color: #243373;
    font-weight: 700;
    margin: 20px 0 10px 0;
    font-size: 2.5rem; 
    text-transform: uppercase;
}

/* RESPONSIVE (MÓVILES) */
@media (max-width: 720px) {
    .contenedor {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .texto {
        font-size: 1rem; /* Texto un poco más pequeño en móvil */
        padding: 15px;
    }

    form {
        padding: 10px; /* Menos padding interno en el form */
    }

    .formulario {
        width: 100%;
        padding: 10px; /* Menos padding en el contenedor azul */
        box-sizing: border-box;
        border-radius: 0px;
    }

    fieldset {
        font-size: 1rem;
        padding: 10px; /* Fieldset más compacto */
    }

    /* AJUSTE SOLICITADO: MENOS SEPARACIÓN EN MÓVILES */
    .form-group {
        margin-bottom: 0.5rem; /* Reducido de 1rem a 0.5rem */
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    select {
        margin-bottom: 5px; /* Reducido de 10px a 5px */
        padding: 0.4rem; /* Un poco menos de relleno vertical */
    }

    /* Ajuste responsivo del título */
    .titulo-etapa {
        font-size: 1.8rem;
        margin: 15px 0;
    }
}