* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color: white;

    overflow-x: hidden;

    background:
        linear-gradient(
            rgba(13, 8, 35, .78),
            rgba(13, 8, 35, .88)
        ),
        url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=2000&q=80");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* =========================================
   VOLVER
========================================= */

.volver {

    display: inline-block;

    margin: 25px 6%;

    padding: 12px 20px;

    color: white;

    text-decoration: none;

    border-radius: 30px;

    background:
        rgba(255,255,255,.10);

    border:
        1px solid rgba(255,255,255,.20);

    backdrop-filter: blur(15px);

    transition: .3s;
}


.volver:hover {

    transform:
        translateX(-5px);

    background:
        rgba(255,255,255,.20);
}


/* =========================================
   ENCABEZADO
========================================= */

.encabezado {

    width: 88%;
    max-width: 1200px;

    margin:
        10px auto 35px;

    display: flex;

    align-items: center;

    gap: 20px;
}


.icono {

    width: 80px;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 25px;

    font-size: 45px;

    background:
        linear-gradient(
            135deg,
            #3155d9,
            #e34a7b
        );

    box-shadow:
        0 15px 45px
        rgba(80,70,255,.4);
}


.encabezado h1 {

    font-size:
        clamp(35px, 6vw, 60px);

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #b9c8ff,
            #ffb7d5
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.encabezado p {

    margin-top: 5px;

    color:
        #d0c7df;

    font-size: 17px;
}


/* =========================================
   INTRO
========================================= */

.intro {

    width: 88%;
    max-width: 1100px;

    margin:
        0 auto 45px;

    padding: 35px;

    text-align: center;

    border-radius: 30px;

    background:
        rgba(20,15,45,.70);

    border:
        1px solid
        rgba(255,255,255,.15);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.30);
}


.intro span {

    display: inline-block;

    padding: 8px 15px;

    border-radius: 30px;

    color:
        #d7caff;

    background:
        rgba(103,87,255,.20);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;
}


.intro h2 {

    margin-top: 15px;

    font-size:
        clamp(28px,4vw,45px);
}


.intro p {

    max-width: 700px;

    margin:
        12px auto 0;

    color:
        #c6bdd4;

    line-height: 1.7;
}


/* =========================================
   JUEGO
========================================= */

.juego {

    width: 90%;
    max-width: 1200px;

    margin:
        auto;
}


/* =========================================
   MAPA
========================================= */

.mapa {

    position: relative;

    min-height: 700px;

    overflow: hidden;

    border-radius: 40px;

    background:

        linear-gradient(
            rgba(30,90,130,.20),
            rgba(25,40,90,.30)
        ),

        radial-gradient(
            circle at 20% 30%,
            rgba(80,180,255,.20),
            transparent 25%
        ),

        radial-gradient(
            circle at 80% 70%,
            rgba(255,120,180,.15),
            transparent 25%
        ),

        rgba(15,20,45,.78);

    border:
        1px solid
        rgba(255,255,255,.15);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.40);

    backdrop-filter:
        blur(10px);
}


/* =========================================
   TÍTULO MAPA
========================================= */

.titulo-mapa {

    position: absolute;

    top: 25px;
    left: 30px;

    z-index: 10;
}


.titulo-mapa h2 {

    font-size: 25px;
}


.titulo-mapa p {

    margin-top: 5px;

    color:
        #bcb3ca;
}


/* =========================================
   CAMINO
========================================= */

.camino {

    position: absolute;

    width: 650px;
    height: 400px;

    top: 160px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-12deg);

    border:
        7px dashed
        rgba(255,255,255,.30);

    border-left-color:
        transparent;

    border-bottom-color:
        transparent;

    border-radius: 50%;

    opacity: .65;
}


/* =========================================
   CIUDADES
========================================= */

.ciudad {

    position: absolute;

    z-index: 5;

    width: 130px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: white;

    background: none;

    border: none;

    cursor: pointer;

    transition: .35s;
}


.ciudad:hover {

    transform:
        scale(1.12)
        translateY(-5px);
}


.circulo {

    width: 95px;
    height: 95px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 42px;

    background:

        linear-gradient(
            145deg,
            #ffffff,
            #d9d5ff
        );

    border:
        6px solid
        #5367e8;

    box-shadow:

        0 0 0 8px
        rgba(83,103,232,.20),

        0 15px 35px
        rgba(0,0,0,.35);

    transition: .3s;
}


.ciudad:hover .circulo {

    border-color:
        #ff75a8;

    box-shadow:

        0 0 0 10px
        rgba(255,117,168,.20),

        0 20px 45px
        rgba(0,0,0,.45);
}


.ciudad strong {

    font-size: 17px;

    text-shadow:
        0 2px 8px black;
}


.ciudad small {

    color:
        #d8d1e5;

    font-size: 11px;

    text-align: center;
}


/* =========================================
   POSICIONES
========================================= */

.paris {

    top: 150px;
    left: 20%;
}


.lyon {

    top: 310px;
    left: 43%;
}


.niza {

    top: 500px;
    left: 68%;
}


.burdeos {

    top: 390px;
    left: 17%;
}


.marsella {

    top: 530px;
    left: 42%;
}


/* =========================================
   DECORACIÓN
========================================= */

.nube {

    position: absolute;

    font-size: 45px;

    opacity: .45;

    animation:
        flotar 5s ease-in-out infinite;
}


.nube1 {

    top: 110px;
    right: 12%;
}


.nube2 {

    bottom: 80px;
    left: 8%;

    animation-delay: 2s;
}


.avion {

    position: absolute;

    top: 105px;
    right: 28%;

    font-size: 45px;

    transform: rotate(-15deg);

    animation:
        volar 4s ease-in-out infinite;
}


/* =========================================
   PANEL RETO
========================================= */

.panel-reto {

    position: relative;

    margin:
        35px auto;

    padding: 35px;

    max-width: 850px;

    text-align: center;

    border-radius: 35px;

    background:
        rgba(20,15,45,.94);

    border:
        1px solid
        rgba(255,255,255,.16);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.45);

    animation:
        aparecer .5s ease;
}


.panel-reto.oculto {

    display: none;
}


.cerrar {

    position: absolute;

    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.10);

    cursor: pointer;

    font-size: 18px;
}


.bandera {

    font-size: 55px;

    margin-bottom: 5px;
}


#numeroCiudad {

    color:
        #a89cff;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


#tituloCiudad {

    margin-top: 8px;

    font-size: 38px;
}


#descripcionCiudad {

    margin:
        10px auto 25px;

    color:
        #bdb3ca;

    max-width: 600px;
}


/* =========================================
   RETO
========================================= */

.reto {

    padding: 25px;

    border-radius: 25px;

    background:
        rgba(255,255,255,.055);

    border:
        1px solid
        rgba(255,255,255,.08);
}


.reto-label {

    color:
        #a98cff;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;
}


.reto h3 {

    margin:
        12px 0 25px;

    font-size: 24px;
}


/* =========================================
   OPCIONES
========================================= */

.opciones {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.opcion {

    padding: 16px;

    color: white;

    background:
        rgba(103,83,200,.18);

    border:
        1px solid
        rgba(170,145,255,.25);

    border-radius: 18px;

    cursor: pointer;

    font-size: 16px;

    transition: .3s;
}


.opcion:hover {

    transform:
        translateY(-4px);

    background:
        rgba(125,100,255,.30);
}


.opcion:disabled {

    cursor: default;
}


.opcion.correcta {

    background:
        rgba(30,190,120,.25);

    border-color:
        #51e6a3;
}


/* =========================================
   RESULTADO
========================================= */

.resultado {

    min-height: 50px;

    margin-top: 20px;

    padding: 12px;

    border-radius: 15px;

    line-height: 1.5;
}


.resultado.correcto {

    color:
        #9effc9;

    background:
        rgba(40,200,130,.12);
}


.resultado.incorrecto {

    color:
        #ff9cae;

    background:
        rgba(255,70,100,.10);
}


/* =========================================
   MARCADOR
========================================= */

.marcador {

    width: 90%;
    max-width: 900px;

    margin:
        35px auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.marcador > div {

    padding: 20px;

    text-align: center;

    border-radius: 22px;

    background:
        rgba(20,15,45,.75);

    border:
        1px solid
        rgba(255,255,255,.12);

    backdrop-filter:
        blur(15px);
}


.marcador span {

    display: block;

    font-size: 25px;

    margin-bottom: 5px;
}


.marcador strong {

    display: block;

    font-size: 28px;
}


.marcador small {

    color:
        #978da4;
}


/* =========================================
   LEO
========================================= */

.leo {

    width: 90%;
    max-width: 900px;

    margin:
        30px auto 70px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 22px;

    border-radius: 25px;

    background:
        rgba(20,15,45,.75);

    border:
        1px solid
        rgba(160,130,255,.20);

    backdrop-filter:
        blur(15px);
}


.leo-avatar {

    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 25px;

    font-size: 40px;

    background:
        linear-gradient(
            135deg,
            #7650db,
            #32205d
        );

    animation:
        flotar 3s ease-in-out infinite;
}


.leo strong {

    color:
        #b995ff;

    font-size: 14px;
}


.leo p {

    margin-top: 6px;

    color:
        #eee9f4;

    line-height: 1.5;
}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes flotar {

    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}


@keyframes volar {

    0%,100% {
        transform:
            translate(0,0)
            rotate(-15deg);
    }

    50% {
        transform:
            translate(35px,-20px)
            rotate(-8deg);
    }
}


@keyframes aparecer {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    .mapa {

        min-height: 650px;
    }


    .camino {

        width: 500px;
    }


    .paris {

        left: 12%;
    }


    .lyon {

        left: 40%;
    }


    .niza {

        left: 62%;
    }


    .burdeos {

        left: 8%;
    }


    .marsella {

        left: 37%;
    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .encabezado {

        width: 90%;
    }


    .icono {

        width: 60px;
        height: 60px;

        font-size: 32px;
    }


    .encabezado h1 {

        font-size: 32px;
    }


    .intro {

        width: 90%;

        padding: 25px 18px;
    }


    .mapa {

        min-height: 850px;

        border-radius: 30px;
    }


    .titulo-mapa {

        left: 20px;
    }


    .camino {

        width: 250px;
        height: 600px;

        top: 160px;

        transform:
            translateX(-50%)
            rotate(15deg);
    }


    .ciudad {

        width: 110px;
    }


    .circulo {

        width: 75px;
        height: 75px;

        font-size: 32px;
    }


    .paris {

        top: 160px;
        left: 20%;
    }


    .lyon {

        top: 300px;
        left: 58%;
    }


    .burdeos {

        top: 400px;
        left: 15%;
    }


    .marsella {

        top: 540px;
        left: 58%;
    }


    .niza {

        top: 680px;
        left: 20%;
    }


    .opciones {

        grid-template-columns: 1fr;
    }


    .panel-reto {

        padding: 25px 18px;
    }


    .marcador {

        gap: 8px;
    }


    .marcador > div {

        padding: 15px 5px;
    }


    .leo {

        align-items: flex-start;
    }

}