* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #080d20, #172554, #251044);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contenedor {
    width: 100%;
    max-width: 650px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #34456b;
    border-radius: 22px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.pantalla {
    display: none;
}

.pantalla.activa {
    display: block;
}

h1 {
    color: #70b7ff;
    font-size: 28px;
    margin-bottom: 10px;
}

h2 {
    margin-bottom: 15px;
}

.subtitulo {
    color: #a5b4fc;
    margin-bottom: 20px;
}

.icono-principal {
    font-size: 65px;
    margin: 20px;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #64748b;
    background: #1e293b;
    color: white;
    font-size: 16px;
    margin: 20px 0;
}

button {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
}

#inicio > button,
#resultados > button {
    width: 100%;
    margin-top: 10px;
}

.error {
    color: #f87171;
    margin-top: 10px;
}

.modelos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.tarjeta {
    padding: 25px 10px;
    min-height: 150px;
}

.tarjeta span {
    font-size: 35px;
}

.tarjeta h3 {
    margin: 10px 0;
}

.tarjeta p {
    font-size: 13px;
}

.tcp {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.osi {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.volver {
    display: block;
    background: #334155;
    margin-bottom: 20px;
}

.progreso {
    color: #93c5fd;
    margin: 12px;
}

.puntaje {
    margin-bottom: 20px;
}

.ruleta-contenedor {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 25px auto;
}

.ruleta {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 7px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    background: conic-gradient(
        #2563eb 0deg 36deg,
        #7c3aed 36deg 72deg,
        #0891b2 72deg 108deg,
        #db2777 108deg 144deg,
        #ca8a04 144deg 180deg,
        #16a34a 180deg 216deg,
        #ea580c 216deg 252deg,
        #4f46e5 252deg 288deg,
        #0d9488 288deg 324deg,
        #be123c 324deg 360deg
    );
    transition: transform 4s cubic-bezier(.15,.65,.15,1);
}

.numero-ruleta {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    color: #111827;
    font-weight: bold;
    display: grid;
    place-items: center;
    font-size: 13px;
    transform: translate(-50%, -50%);
}

.puntero {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    color: #facc15;
    font-size: 30px;
    z-index: 3;
}

.centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border: 4px solid white;
    border-radius: 50%;
    background: #111827;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: bold;
}

#boton-girar {
    width: 100%;
    background: #7c3aed;
}

.zona-pregunta {
    margin-top: 25px;
    padding: 18px;
    background: #1e293b;
    border-radius: 15px;
}

.zona-pregunta h3 {
    margin-bottom: 20px;
    line-height: 1.5;
}

.opcion {
    display: block;
    width: 100%;
    margin: 10px 0;
    background: #334155;
    text-align: left;
}

.opcion.correcta {
    background: #15803d;
}

.opcion.incorrecta {
    background: #b91c1c;
}

.opcion:disabled {
    cursor: default;
    opacity: 1;
}

#resultado-respuesta {
    margin: 15px 0;
    font-weight: bold;
}

#siguiente {
    width: 100%;
    background: #2563eb;
}

.oculto {
    display: none !important;
}

.resultado-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.resultado-card h1 {
    font-size: 45px;
    margin: 15px;
}

.secundario {
    background: #475569;
}

.icono-final {
    font-size: 65px;
    margin-bottom: 15px;
}

footer {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 450px) {
    .contenedor {
        padding: 22px 15px;
    }

    .modelos {
        grid-template-columns: 1fr;
    }

    .ruleta-contenedor {
        width: 250px;
        height: 250px;
    }

    h1 {
        font-size: 23px;
    }
}