* {
    border: 0;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

:root {
    --nav_pantalla: 80px;
}

/* Oculta el contenido de la página hasta que el usuario inicie sesión */
/* #contenido {
    display: none;
    text-align: center;
    padding: 20px;
} */

/* Contenedor de los copos */
#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Permite clics en el contenido detrás */
    overflow: hidden;
    z-index: 5;
    /* Encima de todo el contenido */
}

/* Copos de nieve */
.snowflake {
    position: absolute;
    top: -5%;
    font-size: 20px;
    color: white !important;
    /* Color forzado */
    filter: brightness(100) !important;
    /* Convertir todo a blanco */
    animation: fall linear infinite;
    will-change: transform, opacity;
}

/* Animación de los copos */
@keyframes fall {
    0% {
        transform: translateX(0) translateY(-10vh) rotate(0deg);
    }

    50% {
        transform: translateX(20px) translateY(50vh) rotate(180deg);
    }

    100% {
        transform: translateX(-20px) translateY(110vh) rotate(360deg);
        opacity: 0.5;
    }
}

/* Contenedor de copos */


/* Personalización del scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background: gray;
    /* Azul Bootstrap */
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgb(146, 146, 146);
    /* Azul oscuro al pasar el mouse */
}

body::-webkit-scrollbar-track {
    background: transparent;
    /* Color claro para el fondo */
}

/* Estilo del botón flotante */
#backToTop {
    position: fixed;
    /* Fijo en la pantalla */
    bottom: 20px;
    right: 20px;
    display: none;
    /* Oculto inicialmente */
    /* background-color: transparent; */
    color: gray;
    border: none;
    border-radius: 2em;
    /* width: 50px;
    height: 50px; */
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Siempre encima del contenido */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
    /* background-color: rgb(146, 146, 146); */
    color: darkgrey;
}

#backToTop svg {
    width: 35px;
    height: 35px;
    border-radius: 20%;
    background-color: white;
}



/* ------------------------  NAV ------------------------ */

nav li {
    list-style-type: none;
}

nav a {
    cursor: pointer;
}

/* ------------------------ MAIN ------------------------ */
#id_Icono:hover {
    transform: scale(1.05);
    transition: transform .3s ease;
}


#id_PantallaTV {
    height: 55vw;
    display: none;

    position: fixed;
    z-index: 10;
}

#id_series {
    display: none;
}

#id_viendo {
    display: none;
}

.class_CanalBoton {
    filter: drop-shadow(0 0 20px black);
    align-items: center;
    opacity: 0;
    transition: opacity .5s ease;
}

.mostrarHaciaArriba {
    animation: mostrarArriba 0.5s;
}

@keyframes mostrarArriba {
    0% {
        transform: translatey(60px);
    }

    100% {
        transform: translatey(0);
    }
}

.class_CanalBoton img {
    filter: drop-shadow(0 0 20px dimgrey);
}

.class_CanalBoton:hover {
    transform: scale(1.05);
    transition: transform .3s ease;
}

.class_CanalBoton:focus {
    background-color: rgb(88, 88, 88) !important;
}

.class_CapituloBoton img {
    filter: drop-shadow(0 0 20px dimgrey);
    /* aspect-ratio: 1/1; */
}

.class_CapituloBoton:hover {
    transform: scale(1.05);
    transition: transform .3s ease;
}

.class_CapituloBoton:focus {
    background-color: rgb(88, 88, 88) !important;
}


.tooltip-inner {
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    padding: 8px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333;
}

.progress {
    position: relative;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    height: 100%;
    transition: width 0.5s;
}

.velocidad-centro,
.velocidad-izquierda,
.velocidad-derecha {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
    color: #000;
    /* siempre negro */
}

.velocidad-centro {
    left: 0;
    right: 0;
    justify-content: center;
}

.velocidad-izquierda {
    left: 10px;
    justify-content: flex-start;
}

.velocidad-derecha {
    right: 10px;
    justify-content: flex-end;
}

/* body {
    background-color: #f8f9fa;
} */

.card {
    max-width: 600px;
    margin: 50px auto;
}

/* .id_optPais:hover, .id_categoria:hover{
    background-color: lightgray !important;
} */



/* ------------------------ FOOTER ------------------------ */

/* footer { */
    /* display: flex;
    position: fixed;
    bottom: 0;
    justify-content: center;
    z-index: -1; */
/* } */


/* Pantalla fija para celular */
/* ------------------------  NAV ------------------------ */
nav {
    position: sticky !important;
    top: 0;
    z-index: 10;
    height: calc(var(--nav_pantalla) / 2);
    flex-direction: column;
}

#id_nav {
    height: var(--nav_pantalla);
    flex-direction: column;
    z-index: 20;
}

#id_navSeries {
    height: var(--nav_pantalla/2);
    flex-direction: column;
}

/* ---------------MAIN --------------- */
#id_PantallaTV {
    position: sticky !important;
    top: calc(var(--nav_pantalla) / 2);
    z-index: 10;
}

.Class_PantallaTV {
    top: var(--nav_pantalla) !important;
}

#contentCanvas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2vh;
    text-align: center;
}

.luces {
    background-image: url(../../lh6.googleusercontent.com/-0-h4Co-Y-nI/TuuwZct5hrI/AAAAAAAAB-g/RKjXYFZwlHY/s500/luces%2012.gif);
    background-repeat: repeat-x;
    height: 47px;
    width: 100%;
    /* position:absolute;
    top:0;
    left:0; */
}


/* #id_optPais {
    font-size: 16px;
    padding: 10px !important;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    background-color: #fff;
    background-position: 10px center;
    background-repeat: no-repeat;
    background-size: 20px 15px;
    padding-left: 40px;
} */


/* Estilo dinámico para las banderas */
/* Argentina por defecto */
/* #id_optPais {
    background-image: url('https://flagcdn.com/w40/ar.png'); 
} */
/* Banderas asociadas */
/* #id_optPais[data-pais="Argentina"] { background-image: url('https://flagcdn.com/w40/ar.png'); }
#id_optPais[data-pais="España"] { background-image: url('https://flagcdn.com/w40/es.png'); }
#id_optPais[data-pais="Venezuela"] { background-image: url('https://flagcdn.com/w40/ve.png'); }
#id_optPais[data-pais="Paraguay"] { background-image: url('https://flagcdn.com/w40/py.png'); }
#id_optPais[data-pais="Estados unidos"] { background-image: url('https://flagcdn.com/w40/us.png'); }
#id_optPais[data-pais="Uruguay"] { background-image: url('https://flagcdn.com/w40/uy.png'); }
#id_optPais[data-pais="Perú"] { background-image: url('https://flagcdn.com/w40/pe.png'); }
#id_optPais[data-pais="Rusia"] { background-image: url('https://flagcdn.com/w40/ru.png'); }
#id_optPais[data-pais="Chile"] { background-image: url('https://flagcdn.com/w40/cl.png'); }
#id_optPais[data-pais="Canadá"] { background-image: url('https://flagcdn.com/w40/ca.png'); }
#id_optPais[data-pais="Ecuador"] { background-image: url('https://flagcdn.com/w40/ec.png'); }
#id_optPais[data-pais="México"] { background-image: url('https://flagcdn.com/w40/mx.png'); }
#id_optPais[data-pais="Costa Rica"] { background-image: url('https://flagcdn.com/w40/cr.png'); }
#id_optPais[data-pais="Colombia"] { background-image: url('https://flagcdn.com/w40/co.png'); }
#id_optPais[data-pais="Reino Unido"] { background-image: url('https://flagcdn.com/w40/gb.png'); }
#id_optPais[data-pais="Bulgaria"] { background-image: url('https://flagcdn.com/w40/bg.png'); }
#id_optPais[data-pais="Brasil"] { background-image: url('https://flagcdn.com/w40/br.png'); }
#id_optPais[data-pais="Croacia"] { background-image: url('https://flagcdn.com/w40/hr.png'); }
#id_optPais[data-pais="Balcanes"] { background-image: url('https://flagcdn.com/w40/ba.png'); }
#id_optPais[data-pais="Serbio"] { background-image: url('https://flagcdn.com/w40/rs.png'); }
#id_optPais[data-pais="Francia"] { background-image: url('https://flagcdn.com/w40/fr.png'); }
#id_optPais[data-pais="Italia"] { background-image: url('https://flagcdn.com/w40/it.png'); }
#id_optPais[data-pais="Panamá"] { background-image: url('https://flagcdn.com/w40/pa.png'); } */


/* Notificacion ----------------------------------*/
#notification-container {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 9999;
    width: 350px;
}

.notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    padding: 15px;
    border-radius: 12px;
    color: white;
    width: 100%;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    background-color: black;
}

.notification .message {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.notification .close-btn {
    margin-top: 10px;
    padding: 5px 15px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: white;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Colores de las notificaciones */
.notification.red {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.8), rgba(255, 94, 77, 0.8));
}

.notification.yellow {
    background: linear-gradient(45deg, rgba(255, 191, 0, 0.8), rgba(255, 230, 0, 0.8));
}

.notification.green {
    background: linear-gradient(45deg, rgba(0, 255, 125, 0.8), rgba(0, 255, 85, 0.8));
}

/* Animación para el slide-in */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos del mensaje para la notificación verde */
.notification.green .message {
    font-size: 14px;
    text-align: left;
}

.notification.green .message strong {
    color: #ffcc00;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #notification-container {
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
    }

    .notification {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Notificacion ----------------------------------*/


/*----------------- Click derecho -------------------*/
.submenu {
    position: absolute;
    background: #575757;
    border: 1px solid #ccc;
    padding: 5px;
    display: none;
    list-style: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20%;
}

.submenu li {
    padding: 5px 10px;
    cursor: pointer;
    color: #fff;
}

.submenu li:hover {
    background: #575757;
}


/* Estilos para el alert */
.noscript-alert {
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    /* background: linear-gradient(135deg, #4a5568, #2d3748); */
    /* gris oscuro con degradado */
    color: #f7fafc;
    /* blanco suave */
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.noscript-alert h5 {
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
}

.noscript-alert p.intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Details estilos */
details {
    background: rgba(255 255 255 / 0.05);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: inset 0 0 8px rgb(255 255 255 / 0.1);
}

details:hover {
    background: rgba(255 255 255 / 0.1);
}

/* Summary con flex y flecha personalizada */
summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    user-select: none;
}

/* Quitar flecha default */
summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▶";
    display: inline-block;
    transform-origin: center;
    transition: transform 0.25s ease;
    color: #f6ad55;
    /* naranja claro */
    font-weight: 900;
    position: relative;
    top: 1px;
}

details[open] summary::before {
    transform: rotate(90deg);
    color: #fbbf24;
    /* amarillo */
}

/* Imagen del navegador */
summary img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}

/* Párrafos dentro de details */
details p {
    margin-top: 0.75rem;
    margin-left: 2.9rem;
    /* para alinearse con el texto, considerando icono + gap */
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    user-select: text;
}

/* Código inline */
code {
    background: rgba(255 255 255 / 0.15);
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    font-family: monospace;
    font-weight: 600;
}

/* Mensaje final */
.noscript-alert p.footer {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 2rem;
    user-select: none;
}

/* Lista de pasos */
.steps-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #f6ad55;
    /* naranja suave */
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    user-select: text;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    background: #fbbf24;
    /* amarillo */
    color: #2d3748;
    /* fondo oscuro */
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    text-align: center;
    line-height: 1.6rem;
    margin-top: 0.1rem;
    box-shadow: 0 0 5px rgb(251 191 36 / 0.5);
    user-select: none;
}

.steps-list code {
    background: rgba(255 255 255 / 0.15);
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    font-family: monospace;
    font-weight: 600;
    color: #fefcbf;
}

/*----------------- Click derecho -------------------*/


@media all and (min-width:800px) {}


@media all and (min-width:800px) {
    /* @media all and (min-width:500px) { */

    /* ------------------------  NAV ------------------------ */
    nav {
        flex-direction: row;
    }

    #id_nav {
        height: calc(var(--nav_pantalla) / 2);
        flex-direction: row;
    }

    #id_navSeries {
        /* height: calc(var(--nav_pantalla) / 2); */
        flex-direction: row;
    }

    /* ---------------MAIN --------------- */
    #id_PantallaTV {
        position: relative !important;
        top: 0 !important;
        /* position: relative;
        top: 0; */


        /* Estaba en cero */
        z-index: 10;
        height: calc(100vh - calc(var(--nav_pantalla)/2));
        transition: all 0.3s ease-in-out;

        cursor: grab;
    }


    #id_PantallaTV.sticky {
        top: calc(var(--nav_pantalla)/2) !important;
        left: 0px;
        /* bottom: 400px; */
        z-index: 10;
        width: 450px;
        height: 255px;
        position: fixed !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 3px solid gray;
        background-color: white;
        overflow: hidden;
        border-radius: .5em;
    }

    #id_PantallaTV:active {
        cursor: grabbing;
        /* Cambia el cursor mientras arrastras */
    }

    /* Barra de búsqueda */
    .search-bar {
        position: fixed;
        /* Fija la barra en la pantalla */
        /* top: calc(var(--nav_pantalla)/2) !important;
        right: 0; */

        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        padding: 2px !important;
        margin: 2px !important;
        border-radius: 8px 8px 0 0;
        width: 100%;
        max-width: 500px;
    }

}


@media all and (orientation: landscape) {}

@media all and (min-width:1280px) {}