/* =========================
   BODY
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: white;
    background:
        radial-gradient(circle at top left,
            rgba(123, 44, 191, .25),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(255, 79, 163, .20),
            transparent 35%),
        #09090f;
    overflow-x: hidden;
}


/* =========================
   PRESENTACION
========================= */

#presentacion {
    width: 100%;
    max-width: 900px;
    background: rgba(20, 20, 30, .75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    padding: 20px 50px 20px 50px;
    box-shadow: 0 0 30px rgba(123, 44, 191, .25), 0 0 60px rgba(255, 79, 163, .10);
}


/* TITULO */

#presentacion h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #c77dff, #ff4fa3);

    /* Reemplazo limpio y estándar para evitar la advertencia */
    color: transparent;

    /* Recorte de fondo para el degradado */
    background-clip: text;
    -webkit-background-clip: text;
}


/* SUBTITULOS */

#presentacion h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #c77dff;
    font-size: 1.4rem;
}


/* TEXTO */

#presentacion p {

    line-height: 1.3;
    color: #d8d8d8;
    margin-bottom: 7px;
    font-size: 1rem;
}


/* BOTON */

#comenzarEncuesta {
    display: block;
    margin: 35px auto 0;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 16px 30px;
    border-radius: 15px;
    background:
        linear-gradient(90deg,
            #7b2cbf,
            #ff4fa3);
    transition: .3s;
}

#comenzarEncuesta:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px rgba(255, 79, 163, .4);
}

/* =====================
   PREGUNTAS
===================== */

.pregunta-section {
    width: 100%;
    max-width: 900px;
    background:
        rgba(20, 20, 30, .75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    padding: 20px 50px 20px 50px;
    box-shadow:
        0 0 30px rgba(123, 44, 191, .25),
        0 0 60px rgba(255, 79, 163, .10);
}

/* =====================
   PROGRESO
===================== */

.progreso {
    display: none;
    width: 100%;
    height: 12px;
    background: #1b1b24;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.barra {

    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(90deg,
            #7b2cbf,
            #ff4fa3);
}

/* Pregunta 1 de 8 */

.progreso-1 {
    width: 12.5%;
}

/* =====================
   CONTADOR
===================== */

.contador {
    display: block;
    text-align: center;
    color: #cfcfcf;
    margin-bottom: 25px;
}

/* =====================
   ICONO
===================== */

.icono {
    font-size: 70px;
    text-align: center;
    margin-bottom: 15px;
}

/* =====================
   TITULO
===================== */

.pregunta-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* =====================
   DESCRIPCION
===================== */

.descripcion-pregunta {
    text-align: center;
    color: #bdbdbd;
    margin-bottom: 35px;
}

/* =====================
   OPCIONES
===================== */

.opciones-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 20px;
}

.opcion-btn {
    background: #181824;
    color: white;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 22px;
    cursor: pointer;
    font-size: 1rem;
    transition: .3s;
}

.opcion-btn:hover {
    transform: translateY(-5px);
    border-color: #ff4fa3;
    box-shadow:
        0 0 20px rgba(255, 79, 163, .25);
}

/* Para cuando se seleccione */

.opcion-btn.activa {
    background:
        linear-gradient(135deg,
            #7b2cbf,
            #ff4fa3);
    border-color: transparent;
}

/* =====================
   BOTONES
===================== */

.navegacion {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-volver,
.btn-siguiente {
    border: none;
    color: white;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: bold;
    background:
        linear-gradient(90deg,
            #7b2cbf,
            #ff4fa3);
    transition: .3s;
}

.btn-volver:hover,
.btn-siguiente:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 20px rgba(255, 79, 163, .35);
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:700px) {
    .contador {
        text-align: center;
        margin-bottom: 15px;
    }

    .icono {
        font-size: 70px;
        text-align: center;
        margin-bottom: 0px;
    }

    .pregunta-section {
        padding: 30px 10px 30px 10px;
    }

    .pregunta-section h2 {
        font-size: 1.5rem;
    }

    .descripcion-pregunta {
        margin-bottom: 15px;
    }

    .opciones-grid {
        grid-template-columns: 1fr;
    }

    .opciones-grid {
        gap: 10px;
    }

    .opcion-btn {
        border-radius: 15px;
        padding: 20px;
    }


    .navegacion {
        flex-direction: column;
        gap: 15px;
    }
}

/* Campo de texto */

.campo-texto {
    width: 100%;
    background: #181824;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 1rem;
    margin-top: 10px;
}

.campo-texto:focus {
    outline: none;
    box-shadow:
        0 0 15px rgba(199, 125, 255, .4);
}




/* Botón finalizar */

.btn-finalizar {
    border: none;
    color: white;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: bold;
    background:
        linear-gradient(90deg,
            #7b2cbf,
            #ff4fa3);
    transition: .3s;
}

.btn-finalizar:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 20px rgba(255, 79, 163, .4);
}

/* =====================
   DESPEDIDA
===================== */

#despedida {
    text-align: center;
}

#despedida h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #c77dff, #ff4fa3);

    /* El truco estándar: color transparente */
    color: transparent;

    /* Recorte del fondo al texto */
    background-clip: text;
    -webkit-background-clip: text;
}

.descripcion-despedida {
    text-align: justify;
    color: #d8d8d8;
    line-height: 1.3;
    margin-bottom: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mensaje-final {
    margin-top: 30px;
    padding: 20px;
    border-radius: 20px;
    background:
        rgba(123, 44, 191, .15);
    border: 1px solid rgba(199, 125, 255, .25);
    color: #ffffff;
    font-weight: bold;
}

#despedida .icono {
    font-size: 90px;
    margin-bottom: 20px;
}


.opcion-btn.seleccionada {
    background:
        linear-gradient(135deg,
            #7b2cbf,
            #ff4fa3);
    border-color: transparent;
    box-shadow:
        0 0 20px rgba(255, 79, 163, .4);
}

/* =========================
   MOVIL
========================= */

@media(max-width:700px) {
    body {
        padding: 0;
    }

    #presentacion {
        width: 100%;
        padding: 10px 10px 30px 10px;
    }

    #presentacion h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* SUBTITULOS */

    #presentacion h2 {
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    /* TEXTO */

    #presentacion p {
        margin-bottom: 4px;
        font-size: 10pt;
    }


    #despedida {
    text-align: center;
}

#despedida h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.descripcion-despedida {
    text-align: left;
    line-height: 1.3;
    margin-bottom: 10px;
}

.mensaje-final {
    margin-top: 30px;
    padding: 20px;
}

#despedida .icono {
    font-size: 90px;
    margin-bottom: 20px;
}
}