:root {
    --fondo: #05010a;
    --texto: #f0f0f0;
    --cian: #00d4ff;
    --rosa: #ff00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fondo);
    color: var(--texto);
    font-family: 'Lexend', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

#title-trivia {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(90deg, var(--cian), var(--rosa), var(--cian));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
    animation: glow 3s ease-in-out infinite alternate;
}

#subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 60px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
    animation: fadeInUpper 1.5s ease-out;
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

#subtitle::before, #subtitle::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cian), transparent);
}

#subtitle::before { top: 0; }
#subtitle::after { bottom: 0; }

h3 {
    margin: 50px 0 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 80px 0 50px;
}

.cyan {
    color: var(--cian);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.cyan {
    font-size: 2.1rem;
}

.opciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 30px auto;
}

/* ---------------------------------------------------------- */
/* BOTONES */
.btn-opcion {
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid var(--cian);
    border-radius: 12px;
    color: var(--texto);
    font-size: 1.3rem;
    font-weight: 500;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-opcion:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--rosa);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

.btn-opcion.seleccionado {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--rosa);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
    outline: none;
}

/* ---------------------------------------------------------- */
/* BOTON DE VER RESULTADO */
#btn-finalizar {
    display: block;
    margin: 50px auto;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: 'Lexend', sans-serif;
    background: linear-gradient(90deg, var(--rosa), var(--cian));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

#btn-finalizar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

/* ---------------------------------------------------------- */
/* PANTALLAZO FINAL */
#pantalla-resultado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cuadro-mensaje {
    background: var(--fondo);
    border: 3px solid var(--cian);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 30px var(--cian);
}

.cuadro-mensaje h2 {
    color: var(--rosa);
    margin-bottom: 20px;
}

.cuadro-mensaje p {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.cuadro-mensaje button {
    background: var(--cian);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.botones-finales {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-final {
    background: transparent;
    border: 2px solid var(--cian);
    color: var(--texto);
    padding: 12px 25px;
    border-radius: 10px;
    font-family: 'Lexend', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-final:hover {
    background: var(--cian);
    color: var(--fondo);
    box-shadow: 0 0 15px var(--cian);
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

/* ---------------------------------------------------------- */
/* CREDITOS */
footer {
    background-color: #03010a;
    padding: 30px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

.social-btn:hover {
    background-color: #ffffff;
    color: #05010a;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.footer-credits {
    text-align: center;
    width: 100%;
}

.footer-credits p {
    margin: 5px 0;
    display: block;
}

.footer-credits .spans a {
    color: var(--rosa);
    text-decoration: none;
    font-weight: bold;
}

.footer-credits .spans a:hover {
    text-decoration: underline;
}

/* EFECTOS DE RESPLANDOR */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 0, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.4);
    }
}

@keyframes fadeInUpper {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-credits {
        display: flex;
        flex-direction: column;
        gap: 12px; 
        width: 100%;
    }

    .footer-credits p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .spans a {
        display: inline-block;
        padding: 2px 5px;
    }
}