/* 🌄 FONDO GENERAL DEL SITIO */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;

    background-image: url('../img/fondo_formulario.jpg');
    background-size: cover;
    background-position: 0% -135px; /* ← sube 40px */
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* 🧩 CONTENEDOR PRINCIPAL DEL FORMULARIO */
main.container {
    background-color: rgba(255, 255, 255, 0.92); /* Fondo blanco translúcido */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    max-width: 960px;
    width: 95%;
    margin: 2rem auto;
    flex: 1;
}

/* 🎯 BLOQUES DINÁMICOS */
.bloque-dinamico,
.bloque-contraste {
    background-color: rgba(255, 255, 255, 0.92); /* Transparente */
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

/* 📌 ENCABEZADO PEGADO CON SOMBRA */
.encabezado-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* 🎨 BARRA DE PROGRESO */
.progress {
    height: 30px;
    background-color: #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    transition: width 0.4s ease-in-out;
    font-size: 14px;
    align-items: center;
    display: flex;
    justify-content: center;
    white-space: nowrap;        /* ✅ No cortar texto */
    min-width: 90px;            /* ✅ Mínimo para que quepa “Paso X de Y” */
    overflow: hidden;           /* ✅ Evita desbordes */
    padding: 0 10px;            /* ✅ Separación interna */
    height: 100%;               /* ✅ Asegura que use todo el alto */
}



/* 📝 ETIQUETAS */
label, .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* ✏️ INPUTS Y SELECTS */
input, select, textarea {
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
}

/* ✅ BOTÓN DE ENVÍO */
.btn-success {
    background-color: #198754;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #157347;
}

/* 📎 FOOTER SIEMPRE ABAJO */
footer {
    background-color: rgba(255, 255, 255, 0.92);
    color: #333;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid #ccc;
    margin-top: auto;
}
