.banner {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--naranja);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    z-index: 5000;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
    font-size: 0.9rem;
}

.banner.show {
    top: 90px;
}

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #94BAC4 !important;
    /* Forzado total */
    border-top: 2px solid rgba(255, 255, 255, 0.4) !important;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: white !important;
    opacity: 0.8 !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.nav-item.active {
    color: white;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav-lightning .nav-icon {
    opacity: 1 !important;
}

/* --- CLOUDS --- */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.nube {
    position: absolute;
    background: #ffffff;
    /* Blanco puro para que coincida con Leo */
    border-radius: 50px;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    animation: moverNubes linear infinite;
    transform: translateX(-250px);
}

@keyframes moverNubes {
    from {
        transform: translateX(-250px);
    }

    to {
        transform: translateX(110vw);
    }
}

.nube::after,
.nube::before {
    content: '';
    position: absolute;
    background: #ffffff;
    /* Blanco puro */
    border-radius: 50%;
}

.nube::after {
    width: 50%;
    height: 140%;
    top: -60%;
    left: 15%;
}

.nube::before {
    width: 40%;
    height: 110%;
    top: -40%;
    left: 45%;
}

/* --- TITLES & GRIDS --- */
main {
    padding: 0 20px 100px;
    position: relative;
    z-index: 1;
}

.view {
    padding-top: 20px;
    padding-bottom: 80px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
}

.main-title {
    font-family: var(--premium-font);
    font-size: 2.2rem;
    text-align: center;
    color: var(--naranja);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-top: 10px;
    margin-bottom: 30px;
    text-shadow: 0 4px 12px rgba(251, 133, 0, 0.1);
}

.auth-logo {
    font-size: 60px;
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saga-card {
    box-shadow: none !important;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* --- PATH MAP --- */
.path-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 500px;
    margin: -10px auto 0;
    position: relative;
    z-index: 10;
}

.pos-0 {
    transform: translateX(-110px);
}

.pos-1 {
    transform: translateX(0px);
}

.pos-2 {
    transform: translateX(110px);
}

.map-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    transition: 0.3s;
}

.map-node {
    width: 160px;
    height: 70px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 0 #cbd5e0;
    z-index: 10;
    position: relative;
    margin-top: 10px;
    padding-bottom: 12px;
    /* Espacio para las barras */
}

.level-progress-bars {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    width: 80%;
    height: 6px;
}

.progress-bar-segment {
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: 0.3s;
}

.progress-bar-segment.filled {
    background: var(--verde);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.map-node.completed {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 0 #94a3b8, 0 15px 25px rgba(0, 0, 0, 0.1);
}

.map-node.ready {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 0 var(--naranja), 0 0 30px rgba(251, 133, 0, 0.2);
    /* animation: pulseReadyCloud 2s infinite; Eliminar pulso si es muy ruidoso */
}

.map-node.locked {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    filter: grayscale(1);
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- BUTTONS --- */
.btn-exit {
    position: absolute;
    top: 75px;
    left: 20px;
    background: var(--gris-oscuro);
    border: 1.5px solid white;
    color: white;
    width: auto;
    padding: 0 12px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0 var(--texto), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-exit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 var(--texto), 0 8px 18px rgba(0, 0, 0, 0.12);
    background: white;
    color: var(--gris-oscuro);
    border-color: var(--gris-oscuro);
}

.btn-exit:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--naranja-oscuro);
}

.btn-back-nav {
    background: var(--gris-oscuro);
    border: 1.5px solid white;
    color: white;
    padding: 7px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--texto);
    font-size: 0.8rem;
}

.btn-back-nav:hover {
    background: white;
    color: var(--gris-oscuro);
    border-color: var(--gris-oscuro);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 var(--texto);
}

.btn-back-nav:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--texto);
}

/* --- MODALS --- */
.modal-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 24px;
}

.modal-card {
    background: white;
    padding: 40px 30px;
    border-radius: 35px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    color: var(--texto);
    animation: modalIn 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leo-lion-container {
    position: absolute;
    top: 300px;
    /* Bajado aún más y tamaño reducido */
    right: 15px;
    width: 200px;
    height: 170px;
    background: white !important;
    border-radius: 50%;
    z-index: 950;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
    /* Sombra muy suave como en la imagen */
}

/* El video dentro del óvalo blanco, con 10% de zoom y recorte vertical */
.leo-lion-container .leo-lion-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    filter: url(#chroma-key-filter);
    transform: scale(1.10);
    clip-path: inset(2% 0%);
    /* Recorte del 2% arriba y abajo */
}


/* --- LEO INTEGRADO EN TARJETA (REEMPLAZA ICONO) --- */
.game-leo-icon-container {
    width: 180px;
    height: 180px;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.game-leo-icon-container .leo-lion-video {
    width: 110%;
    /* Ligeramente más grande para llenar bien el circulo */
    height: 110%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .game-leo-icon-container {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 600px) {
    .leo-lion-container {
        width: 160px;
        height: 130px;
        border-radius: 65px;
        top: 240px;
        right: 10px;
        padding: 8px;
    }
}

/* --- LEO WELCOME SVG --- */
.leo-welcome-svg-container {
    display: flex;
    justify-content: center;
    margin: 10px auto 20px;
    width: 100%;
    max-width: 150px;
    animation: floating 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.leo-welcome-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(-3deg);
    }
}

/* Título del episodio premium */
.episode-title {
    font-family: var(--premium-font);
    font-weight: 900;
    color: var(--texto);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin: 0;
    max-width: 200px;
    line-height: 1.1;
}

/* --- BOTÓN SIGUIENTE EPISODIO --- */
.btn-next-episode {
    background: var(--naranja) !important;
    color: white !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 0 var(--naranja-oscuro) !important;
    transition: 0.1s !important;
    font-family: var(--premium-font) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-transform: uppercase;
}

.btn-next-episode:active {
    transform: translateY(4px) !important;
    box-shadow: 0 4px 0 var(--naranja-oscuro) !important;
}

.btn-next-episode.locked {
    background: #94a3b8 !important;
    /* Gris bloqueado */
    color: #f1f5f9 !important;
    box-shadow: 0 8px 0 #64748b !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

/* Animaciones de Carga */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}