/* ===== RESET ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BODY ===== */

body{
    background:#f4f7fb;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* ===== HEADER ===== */

header{
    background:linear-gradient(135deg,#0f4c81,#1c6db8);
    color:white;
    padding:30px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

header h1{
    font-size:2rem;
    margin-bottom:10px;
}

header p{
    font-size:1rem;
    opacity:.95;
}

/* ===== CONTENEDOR ===== */

.container{
    width:95%;
    max-width:1000px;
    margin:30px auto;
}

/* ===== TARJETA ===== */

.section{
    display:none;
    background:white;
    padding:35px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    animation:fadeIn .4s ease;
}

.section.active{
    display:block;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ===== TITULOS ===== */

.section h2{
    color:#0f4c81;
    margin-bottom:25px;
    border-bottom:3px solid #e8eef6;
    padding-bottom:10px;
}

.section h3{
    color:#1c6db8;
    margin-top:20px;
    margin-bottom:10px;
}

/* ===== OBJETIVO ===== */

.intro-box{
    line-height:1.8;
}

.intro-box p{
    margin-bottom:15px;
    text-align:justify;
}

/* ===== FORMULARIOS ===== */
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #cfd8e3;
    border-radius:10px;
    font-size:16px;
    background:#fff;
}

.form-group select:focus{
    outline:none;
    border-color:#1c6db8;
}

.form-group select:disabled{
    background:#eef2f6;
    color:#8a97a6;
}
/* ===== PREGUNTAS ===== */

.question{
    margin-bottom:30px;
    padding:20px;
    border:1px solid #e6eaf0;
    border-radius:12px;
    background:#fafbfd;
}

.question p{
    font-weight:600;
    margin-bottom:15px;
    color:#333;
}

/* ===== OPCIONES ===== */

.options{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.options label{
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:15px;
}

.options input[type="radio"]{
    width:18px;
    height:18px;
    cursor:pointer;
}

/* ===== PROGRESS ===== */

.progress-container{
    width:100%;
    height:18px;
    background:#dbe6f2;
    border-radius:30px;
    overflow:hidden;
    margin-bottom:25px;
}

#progress-bar{
    width:0%;
    height:100%;
    background:linear-gradient(
        90deg,
        #0f4c81,
        #1c6db8
    );
    transition:.4s;
}

/* ===== BOTONES ===== */

.buttons{
    margin-top:25px;
    display:flex;
    justify-content:space-between;
}

.buttons button{
    border:none;
    padding:12px 25px;
    border-radius:12px;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
    transition:.3s;
}

#prevBtn{
    background:#6c757d;
    color:white;
}

#prevBtn:hover{
    background:#5b636a;
}

#nextBtn{
    background:#0f4c81;
    color:white;
}

#nextBtn:hover{
    background:#0c3e68;
}

/* ===== FINALIZAR ===== */

.submit-btn{
    background:#198754;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
}

.submit-btn:hover{
    background:#157347;
}

/* ===== FOOTER ===== */

footer{
    margin-top:auto;
    background:#0f4c81;
    color:white;
    text-align:center;
    padding:15px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

    .options{
        flex-direction:column;
        gap:10px;
    }

    .buttons{
        flex-direction:column;
        gap:10px;
    }

    .buttons button{
        width:100%;
    }

}