/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    color: white;

    background:
        radial-gradient(circle at top, #8c00d4 0%, #430078 35%, #12002d 75%, #070014 100%);

    overflow-x: hidden;
}


/* =========================================
   PANTALLAS
========================================= */

.pantalla {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 30px 20px;
}

.pantalla.activa {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   FONDO DECORATIVO
========================================= */

.pantalla::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);

    background-size: 35px 35px;

    pointer-events: none;
}


/* =========================================
   PANTALLA DE INICIO
========================================= */

.inicio-contenido {
    width: 900px;
    max-width: 95%;
    text-align: center;

    padding: 50px 35px;

    border: 3px solid #ffffff;
    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(31, 8, 75, 0.98),
            rgba(8, 5, 39, 0.98)
        );

    box-shadow:
        0 0 20px #ff00ff,
        0 0 50px rgba(190, 0, 255, 0.6);

    position: relative;
    z-index: 1;
}

.trofeo {
    font-size: 80px;
    margin-bottom: 5px;

    filter: drop-shadow(0 0 10px #ffd700);
}

.inicio-contenido h1 {
    font-size: clamp(60px, 10vw, 110px);
    font-weight: 900;

    color: white;

    text-shadow:
        0 0 5px #00c8ff,
        0 0 15px #00c8ff,
        4px 4px 0 #5420a5;
}

.inicio-contenido h2 {
    font-size: clamp(24px, 4vw, 42px);
    color: #ffd700;

    margin-top: -10px;

    text-shadow:
        0 0 8px #ff9900;
}

.linea-dorada {
    height: 5px;
    width: 250px;

    margin: 25px auto;

    background: linear-gradient(
        90deg,
        transparent,
        #ffd700,
        #ffffff,
        #ffd700,
        transparent
    );

    box-shadow: 0 0 12px #ffd700;
}

.texto-inicio {
    font-size: 22px;
    line-height: 1.6;

    max-width: 700px;
    margin: 0 auto 35px;

    color: #eeeeff;
}


/* =========================================
   BOTONES PRINCIPALES
========================================= */

.boton-principal {
    border: none;
    border-radius: 15px;

    padding: 18px 45px;

    font-size: 22px;
    font-weight: 900;

    color: #18002f;

    background: linear-gradient(
        180deg,
        #fff36b,
        #ffc400,
        #ff9800
    );

    cursor: pointer;

    box-shadow:
        0 5px 0 #b96b00,
        0 0 20px rgba(255, 208, 0, 0.8);

    transition: 0.2s;
}

.boton-principal:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 7px 0 #b96b00,
        0 0 30px rgba(255, 220, 0, 1);
}

.boton-principal:active:not(:disabled) {
    transform: translateY(2px);
}

.boton-deshabilitado {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================
   TRIVIA
========================================= */

.trivia-contenedor {
    width: 1000px;
    max-width: 96%;

    text-align: center;

    position: relative;
    z-index: 1;
}


/* Barra superior */

.barra-superior {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.pregunta-numero,
.puntaje {
    padding: 13px 22px;

    border-radius: 12px;

    background: rgba(8, 4, 35, 0.95);

    border: 2px solid #b85cff;

    box-shadow:
        0 0 15px rgba(190, 0, 255, 0.5);

    font-size: 19px;
    font-weight: 900;
}

.puntaje {
    color: #ffd700;
}

.pregunta-numero span {
    color: #00d9ff;
}


/* Título */

.titulo-trivia {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.trofeo-pequeno {
    font-size: 50px;

    filter: drop-shadow(0 0 8px #ffd700);
}

.titulo-trivia h1 {
    font-size: 45px;

    color: white;

    text-shadow:
        0 0 8px #00d9ff,
        3px 3px 0 #5d1ca8;
}

.titulo-trivia p {
    color: #ffd700;

    font-size: 18px;
    font-weight: bold;
}


/* =========================================
   CAJA DE PREGUNTA
========================================= */

.pregunta-caja {
    position: relative;

    padding: 35px 40px;

    margin-bottom: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(16, 10, 53, 0.98),
            rgba(5, 7, 28, 0.98)
        );

    border-top: 3px solid #ffffff;
    border-bottom: 3px solid #d94cff;

    box-shadow:
        0 0 20px rgba(160, 0, 255, 0.5);

    clip-path: polygon(
        2% 0,
        98% 0,
        100% 50%,
        98% 100%,
        2% 100%,
        0 50%
    );
}

.pregunta-caja h2 {
    font-size: clamp(22px, 3vw, 32px);

    line-height: 1.35;

    color: white;
}


/* =========================================
   OPCIONES
========================================= */

.opciones {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.opcion {
    width: 100%;

    min-height: 75px;

    padding: 15px 25px;

    display: flex;

    align-items: center;

    text-align: left;

    border-radius: 18px;

    border: 3px solid white;

    background:
        linear-gradient(
            90deg,
            #111a4d,
            #07152d,
            #111a4d
        );

    color: white;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(150, 0, 255, 0.6);

    transition: 0.2s;
}

.opcion:hover:not(.bloqueada) {
    transform: scale(1.015);

    border-color: #ff61ff;

    box-shadow:
        0 0 20px #ff00ff;
}

.letra {
    min-width: 55px;

    color: #ffd000;

    font-size: 25px;
    font-weight: 900;
}

.texto-opcion {
    flex: 1;
}


/* =========================================
   RESPUESTA CORRECTA / INCORRECTA
========================================= */

.opcion.correcta {
    background:
        linear-gradient(
            90deg,
            #064d2a,
            #087a3e,
            #064d2a
        );

    border-color: #39ff88;

    box-shadow:
        0 0 25px rgba(0, 255, 110, 0.8);
}

.opcion.incorrecta {
    background:
        linear-gradient(
            90deg,
            #5d0c18,
            #9c1729,
            #5d0c18
        );

    border-color: #ff3b4f;

    box-shadow:
        0 0 25px rgba(255, 0, 50, 0.8);
}

.opcion.bloqueada {
    cursor: default;
}


/* =========================================
   MENSAJE DE RESPUESTA
========================================= */

.mensaje-respuesta {
    min-height: 35px;

    margin-top: 15px;

    font-size: 20px;
    font-weight: bold;
}

.mensaje-correcto {
    color: #48ff92;
}

.mensaje-incorrecto {
    color: #ff5969;
}


/* =========================================
   BOTÓN SIGUIENTE
========================================= */

.boton-siguiente {
    margin-top: 18px;

    padding: 14px 35px;

    border: 2px solid #ffffff;
    border-radius: 12px;

    background: linear-gradient(
        180deg,
        #7d21ff,
        #4b00a8
    );

    color: white;

    font-size: 19px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 0 15px rgba(170, 0, 255, 0.7);

    transition: 0.2s;
}

.boton-siguiente:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.boton-siguiente:not(:disabled):hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 25px #d000ff;
}


/* =========================================
   RESULTADO FINAL
========================================= */

.resultado-contenedor {
    width: 700px;
    max-width: 95%;

    text-align: center;

    padding: 50px 35px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 5, 65, 0.98),
            rgba(7, 4, 30, 0.98)
        );

    border: 3px solid white;

    box-shadow:
        0 0 25px #ff00ff,
        0 0 60px rgba(170, 0, 255, 0.6);

    position: relative;
    z-index: 1;
}

.trofeo-final {
    font-size: 100px;

    filter: drop-shadow(0 0 15px #ffd700);

    margin-bottom: 10px;
}

.resultado-contenedor h1 {
    font-size: clamp(30px, 6vw, 55px);

    color: white;

    text-shadow:
        0 0 10px #00d9ff;
}

.texto-resultado {
    font-size: 20px;

    color: #ddd7ff;

    margin-bottom: 25px;
}

.resultado-puntaje {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin: 25px auto 20px;

    padding: 25px;

    width: 80%;

    border-radius: 20px;

    border: 3px solid #ffd000;

    background:
        linear-gradient(
            180deg,
            #33204e,
            #101027
        );

    box-shadow:
        0 0 20px rgba(255, 210, 0, 0.5);
}

.resultado-puntaje > span {
    font-size: 20px;
    color: #ffd700;
    font-weight: bold;
}

.resultado-puntaje strong {
    font-size: 60px;
    color: white;

    text-shadow:
        0 0 10px #00d9ff;
}

.mensaje-final {
    font-size: 21px;
    font-weight: bold;

    color: #ffffff;

    margin-bottom: 30px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .pantalla {
        padding: 15px 10px;
    }

    .inicio-contenido {
        padding: 35px 20px;
    }

    .trofeo {
        font-size: 60px;
    }

    .texto-inicio {
        font-size: 18px;
    }

    .boton-principal {
        width: 100%;
        padding: 16px 20px;
        font-size: 18px;
    }

    .barra-superior {
        flex-direction: column;
    }

    .pregunta-numero,
    .puntaje {
        width: 100%;
    }

    .titulo-trivia h1 {
        font-size: 34px;
    }

    .trofeo-pequeno {
        font-size: 40px;
    }

    .pregunta-caja {
        padding: 28px 25px;
    }

    .opcion {
        min-height: 65px;
        padding: 12px 15px;
        font-size: 17px;
    }

    .letra {
        min-width: 40px;
        font-size: 21px;
    }

    .resultado-puntaje strong {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    color: white;
}

}


.ovsi-return { position:fixed; z-index:9999; top:12px; left:12px; padding:10px 14px; color:#fff; background:#071d2d; border:1px solid rgba(255,255,255,.35); border-radius:4px; font:700 13px/1.2 Arial,sans-serif; text-decoration:none; box-shadow:0 4px 18px rgba(0,0,0,.22); }
