body{
    font-family:'Lucida Sans','Lucida Sans Regular','Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,sans-serif,Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin:0;
    height:100vh;
    background: radial-gradient(circle,#9bb5d8d2,#466796d1);
}

.contenedor{
    width:90%;
    max-width:400px;
    max-height:500px; 
    overflow:auto;   
    
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0px 0px 15px rgba(0,0,0,0.3);
}

header{
    background-color:#1f3b6d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 20px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    position:relative;
}

.main{
    height: calc(100vh - 80px);
    display:flex;
    justify-content:center;
    align-items:center;
}

.texto-header{
    text-align:center;
}

.texto-header h2{
    margin:0;
    font-size:14px;
}

.texto-header h1{
    margin:3px 0 0 0;
    font-size:18px;
}

.logo-izq{
    width:60px;
    position:absolute;
    left:15px;
}

.logo-der{
    width:60px;
    position:absolute;
    right:15px;
}

input{
    width:100%;
    padding:10px;
    margin:8px 0;
    border-radius:20px;
    border:1px solid #ccc;
    font-size:14px;
    padding-left:12px;
    outline:none;
    transition:0.3s;
    box-sizing:border-box;
}

input:focus{
    border-color:#4facfe;
    box-shadow:0px 0px 5px rgba(79,172,254,0.6);
}

button{
    background:#88A0BF;
    border:none;
    padding:10px;
    width:180px;
    color:black;
    font-size:15px;
    border-radius:25px;
    cursor:pointer;
    margin-top:20px;
    transition:all 0.3s ease;
    display:block;
    margin-left:auto;
    margin-right:auto;
}

button:hover{
    background:rgba(26,59,104,0.8);
    color:white;
    transform:scale(1.05);
    box-shadow:0px 5px 15px rgba(0,0,0,0.3);
}
.card{
    background:#ffffff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    margin-top:20px;

    width:100%;
    max-width:400px;
    min-width: 400px;
    height:300px; 

    display:flex;
    flex-direction:column;
    justify-content:center; 
}

.modalidad{
    text-align:center;
}

.tituloModalidad{
    font-size:18px;
    color:#0C2240;
    margin-bottom:10px;
}

#contenedorPreguntas{
    margin-top:10px;
}

.pregunta p{
    font-size:16px;
    font-weight:bold;
    color:#0C2240;
}

.opcion{
    display:flex;
    align-items:center;
    gap:8px;
    margin:8px 0;
    font-size:14px;
    cursor:pointer;
}

.opcion input{
    width:auto;
}

.barra{
    width:100%;
    height:10px;
    background:#ddd;
    border-radius:10px;
    margin-bottom:15px;
    overflow:hidden;
    display:none; 
}

#progreso{
    height:100%;
    width:0%;
    background:#4facfe;
    transition:0.5s;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(20px);}
    to{opacity:1; transform:translateY(0);}
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.main {
    width: 100%;
    padding: 10px;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.logo-izq, .logo-der {
    width: 60px;
}

.texto-header {
    width: 100%;
}

.texto-header h1 {
    font-size: 18px;
}

.texto-header h2 {
    font-size: 14px;
}

.card, .contenedorResultado {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 15px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

.tarjetaCarrera {
    margin-bottom: 20px;
}

@media (max-width: 600px) {

    .logo-izq, .logo-der {
        width: 50px;
    }

    .texto-header h1 {
        font-size: 16px;
    }

    .texto-header h2 {
        font-size: 12px;
    }

}
/* ===== ESTILO PREGUNTAS MODERNAS ===== */
.pregunta{
    width:100%;
    animation:fadeIn 0.5s ease;
}

/* NUMERO */
.numero{
    display:inline-block;
    background:#466796;
    color:white;
    padding:5px 12px;
    border-radius:8px;
    font-weight:bold;
    margin-bottom:10px;
}

/* TEXTO PREGUNTA */
.textoPregunta{
    font-size:18px;
    font-weight:bold;
    color:#0C2240;
    margin-bottom:20px;
}

/* OPCIONES */
.opciones{
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* CAJAS */
.opcionBox{
    background:#e4ecf7;
    padding:14px;
    border-radius:12px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    transition:0.3s;
    border:2px solid transparent;
}

/* LETRA A B C */
.opcionBox span{
    background:#466796;
    color:white;
    padding:5px 10px;
    border-radius:6px;
    font-weight:bold;
}

/* HOVER */
.opcionBox:hover{
    background:#d6e4f5;
    transform:scale(1.02);
}

/* SELECCIONADO */
.opcionBox input:checked + span{
    background:#0C2240;
}

.opcionBox input:checked ~ *{
    color:#0C2240;
}

.opcionBox input:checked{
    accent-color:#466796;
}

/* OCULTAR RADIO */
.opcionBox input{
    display:none;
}

/* BOTON */
.btnAceptar{
    margin-top:20px;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#466796;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.btnAceptar:hover{
    background:#2f4f7a;
    transform:scale(1.05);
}
/* FONDO */
body{
    margin:0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle,#9bb5d8,#466796);
    animation: fadeIn 1s ease-in;
}

/* CONTENEDOR */
.hero{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
    padding:40px;
}

/* TEXTO */
.hero-text{
    background:#ffffff;
    padding:30px;
    border-radius:20px;
    width:450px; /* MÁS PEQUEÑO */
    height:320px; /* MISMA ALTURA QUE IMAGEN */
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    display:flex;
    flex-direction:column;
    justify-content:center;
    animation: slideLeft 1s ease;
}

/* TEXTO MÁS EQUILIBRADO */
.hero-text h1{
    font-size:38px; /* MÁS CHICO */
    margin:0;
    line-height:1.2;
    color:#111;
}

/* RESALTADO */
.hero-text span{
    color:#466796;
}

/* BOTÓN */
.hero-text button{
    margin-top:20px;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    background:#466796;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.hero-text button:hover{
    background:#2f4f7a;
    transform:scale(1.05);
}

/* IMAGEN */
.hero-img{
    width:450px;
    height:320px; /* MISMO TAMAÑO */
    animation: slideRight 1s ease;
}

.hero-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:20px;
}

/* ANIMACIONES */
@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes slideLeft{
    from{
        transform:translateX(-50px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

@keyframes slideRight{
    from{
        transform:translateX(50px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

/* SALIDA */
.fadeOut{
    animation: desaparecer 0.5s forwards;
}

@keyframes desaparecer{
    to{
        opacity:0;
        transform:scale(0.95);
    }
}

/* RESPONSIVE */
@media(max-width:900px){
    .hero{
        flex-direction:column;
    }

    .hero-text,
    .hero-img{
        width:90%;
        height:auto;
    }

    .hero-text h1{
        font-size:28px;
    }
}
