
/* =========================================================
   BETALA NETA — CSS CORREGIDO DEFINITIVO
   ORDENADOR + CELULAR
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    background: #d9d9d9;
    color: #3C78D8;

    font-family: "Lobster", cursive;
}

button,
a {
    font-family: "Lobster", cursive;
}


/* =========================================================
   BARRA GENERAL
========================================================= */

.general-barra {
    position: fixed;

    top: 30px;
    left: 50%;

    transform: translateX(-50%);

    width: 92%;
    max-width: 1250px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 30px;

    background: rgba(255, 255, 255, .18);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .25),
        inset 0 1px 1px rgba(255, 255, 255, .25);

    z-index: 9999;
}


/* =========================================================
   LOGO
========================================================= */

.general-logo a {
    color: #ffffff;
    text-decoration: none;

    font-size: 30px;

    transition: .25s ease;
}

.general-logo a:hover {
    opacity: .8;
}


/* =========================================================
   MENÚ
========================================================= */

.general-menu {
    display: flex;
    align-items: center;

    gap: 32px;

    position: relative;
}

.general-menu > a,
.boton-temporadas {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    border-radius: 999px;

    color: #ffffff;
    text-decoration: none;

    font-size: 21px;

    transition:
        background .25s ease,
        backdrop-filter .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.general-menu > a.activo,
.general-menu > a.active,
.boton-temporadas.activo,
.boton-temporadas.active {
    background: rgba(255, 255, 255, .22);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .35);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, .12),
        inset 0 1px 1px rgba(255, 255, 255, .30);
}

.general-menu > a:hover,
.boton-temporadas:hover {
    background: rgba(255, 255, 255, .18);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, .30);

    transform: translateY(-2px);
}


/* =========================================================
   TEMPORADAS
========================================================= */

.menu-temporadas {
    position: relative;
    display: flex;
}

.boton-temporadas {
    display: flex;
}

.submenu-temporadas {
    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    transform: translateX(-50%) translateY(-5px);

    width: 250px;

    padding: 14px;

    display: none;

    flex-direction: column;
    gap: 9px;

    background: rgba(60, 120, 216, .92);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .28);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 10000;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.submenu-temporadas::before {
    content: "";

    position: absolute;

    top: -15px;
    left: 0;

    width: 100%;
    height: 15px;
}

.menu-temporadas:hover .submenu-temporadas {
    display: flex;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

.submenu-temporadas > a {
    width: 100%;
    min-height: 45px;

    padding: 9px 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #ffffff;
    text-decoration: none;
    text-align: center;

    font-family: "Lobster", cursive;
    font-size: 18px;

    background: rgba(255, 255, 255, .16);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 16px;

    transition:
        background .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.submenu-temporadas > a:hover {
    background: rgba(255, 255, 255, .28);

    transform: translateY(-2px);
}

.submenu-temporadas > a.temporada-activa {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .45);
}

.punto-activo {
    margin-left: 7px;

    font-size: 10px;
    color: #ffffff;
}


/* =========================================================
   AURA IA
========================================================= */

.aura-ia {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;

    background: rgba(255, 255, 255, .25);

    color: #ffffff;
    text-decoration: none;

    flex-shrink: 0;

    transition: .25s ease;
}

.aura-ia:hover {
    background: rgba(255, 255, 255, .45);

    transform: translateY(-2px);
}

.aura-icono {
    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #3C78D8;

    color: #ffffff;

    font-size: 15px;
}

.aura-texto {
    font-size: 14px;
    font-weight: bold;
}


/* =========================================================
   PRESENTACIÓN
========================================================= */

.general-presentacion {
    position: relative;

    width: 100%;
    height: 90vh;
    min-height: 660px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background: #000;

    border-radius: 55px;
}

.serie-info {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 0 70px 70px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-end;

    overflow: hidden;

    isolation: isolate;
}


/* =========================================================
   PORTADA ORDENADOR
========================================================= */

.serie-info > .serie-logo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 0;

    z-index: -3;

    display: block;
}


/* =========================================================
   SERIE INFO
========================================================= */

.serie-info {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 0 70px 70px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-end;

    overflow: hidden;

    isolation: isolate;
}

/* =========================================================
   CAPA OSCURA — MITAD INFERIOR IZQUIERDA
========================================================= */

.serie-info::before {
    content: "";

    position: absolute;

    left: 3%;
    bottom: 5%;

    width: 34%;
    height: 38%;

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, .10) 0%,
            rgba(0, 0, 0, .42) 55%,
            rgba(0, 0, 0, .08) 90%,
            transparent 100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, .40) 0%,
            rgba(0, 0, 0, .55) 45%,
            transparent 100%
        );

    z-index: -2;

    pointer-events: none;

    border-radius: 30px;
}


/* =========================================================
   ORDEN DE ELEMENTOS
========================================================= */

.indicadores-contenido {
    order: 1;
}

.tarjeta-sinopsis {
    order: 2;
}

.general-botones {
    order: 3;
}

.controles-movil {
    order: 3;
}


/* =========================================================
   INDICADORES
========================================================= */

.indicadores-contenido {
    position: relative;

    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    width: 100%;

    margin-bottom: 14px;

    z-index: 5;
}

.indicador {
    min-height: 48px;

    padding: 7px 13px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(255, 255, 255, .13);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 15px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .18),
        inset 0 1px 1px rgba(255, 255, 255, .25);

    color: #ffffff;
}

.indicador-principal {
    font-size: 15px;
    font-weight: bold;

    line-height: 1.1;

    white-space: nowrap;
}

.indicador-secundario {
    margin-top: 3px;

    font-size: 9px;

    opacity: .75;

    line-height: 1.1;

    white-space: nowrap;
}


/* =========================================================
   TARJETA DE SINOPSIS
========================================================= */

.tarjeta-sinopsis {
    position: relative;

    width: 400px;
    max-width: 70%;

    padding: 20px 25px;

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 25px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .25);

    z-index: 5;
}

.tarjeta-sinopsis p {
    color: #ffffff;

    font-size: 18px;
    line-height: 1.5;

    text-align: left !important;
}


/* =========================================================
   BOTONES DE CONTROL
========================================================= */

.general-botones {
    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    margin-top: 18px;

    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;

    z-index: 5;
}

.general-botones button,
.general-botones .boton-episodio {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 10px 24px;

    background: rgba(255, 255, 255, .17);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 28px;

    color: #3C78D8;

    text-decoration: none;

    font-size: 20px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .25);

    transition: .25s ease;
}

.general-botones button:hover,
.general-botones .boton-episodio:hover {
    background: rgba(255, 255, 255, .30);

    transform: translateY(-3px);
}


/* =========================================================
   CONTROLES MÓVILES
========================================================= */

.controles-movil,
.modal-movil {
    display: none !important;
}



/* =========================================================
   OCULTAR SUGERENCIAS DE LA CRYSTAL PILL
========================================================= */

.general-menu .sugerencias-ocultas {
    display: none !important;
}


/* =========================================================
   RECOMENDACIONES
========================================================= */

.vista-sugerencias .contenido-vista {
    width: 88%;
    margin: 70px auto;
    padding: 45px;

    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 35px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, .20);
}

.vista-sugerencias .encabezado-vista {
    text-align: center;
}



/* =========================================================
   EPISODIOS
   CONTORNO SOLO CON HOVER
========================================================= */

.episodio {
    width: 100%;

    background: rgba(255, 255, 255, .15);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /*
       IMPORTANTE:
       El borde existe pero es transparente.
       Por eso NO ocupa espacio adicional cuando aparece.
    */
    border: 2px solid transparent;

    border-radius: 22px;

    overflow: hidden;

    transform: translateY(0);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .15);

    transition:
        transform .30s ease,
        border-color .30s ease,
        box-shadow .30s ease;
}

.episodio:hover {
    border-color: #3C78D8;

    transform: translateY(-6px);

    box-shadow:
        0 14px 32px rgba(60, 120, 216, .30);
}


/* =========================================================
   CONTENIDO EPISODIOS
========================================================= */

.contenido-episodios {
    width: 100%;
    display: block;
}

.vista-episodios {
    width: 100%;
    display: block;
}

.vista-episodios[hidden] {
    display: none !important;
}

.episodios {
    width: 88%;

    margin: 70px auto;

    padding: 40px;

    text-align: center;

    background: rgba(255, 255, 255, .18);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 35px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .20);
}

.episodios h2 {
    font-size: 42px;

    color: #3C78D8;

    text-align: center;

    margin-bottom: 35px;
}

.lista-episodios {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

    width: 100%;
}

.episodio-oculto,
.episodio-contenido-oculto,
.episodio-info-oculto {
    display: none !important;
}


/* =========================================================
   CONTENIDO DEL EPISODIO
========================================================= */

.episodio-contenido {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;

    text-align: center;
}

.episodio img {
    width: 100%;
    height: 220px;

    display: block;

    object-fit: cover;
    object-position: center;
}

.episodio-info {
    width: 100%;

    text-align: center;
}

.titulo-episodio {
    width: calc(100% - 30px);

    margin: 12px auto;

    padding: 13px 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(255, 255, 255, .18);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .12),
        inset 0 1px 1px rgba(255, 255, 255, .30);

    color: #3C78D8;

    font-size: 18px;

    text-decoration: none;
}

.descripcion-episodio {
    width: calc(100% - 20px);

    margin: 5px auto 15px;

    color: #3C78D8;

    font-size: 15px;

    line-height: 1.4;

    text-align: center;
}

.play-episodio {
    display: none;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .20);

    border: 1px solid rgba(255, 255, 255, .35);

    color: #3C78D8;

    text-decoration: none;
}


/* =========================================================
   FINAL DE TEMPORADA
========================================================= */

.fin {
    display: block;

    width: 100%;

    grid-column: 1 / -1;

    justify-self: stretch;

    margin-top: 25px;

    color: #3C78D8;

    font-size: 25px;

    text-align: center;
}

/* =========================================================
   PANELES
========================================================= */

/* =========================================================
   VISTA DETALLES — DISEÑO ORIGINAL
========================================================= */

.vista-detalles {
    width: 100%;
    min-height: 360px;

    position: relative;

    padding: 35px 40px;

    overflow: hidden;

    background: #d9d9d9;

    color: #fff;
}

/* =========================================================
   VISTA DETALLES
========================================================= */

.vista-detalles {
    width: 100%;
    min-height: 360px;

    position: relative;

    padding: 35px 40px;

    overflow: hidden;

    background: #d9d9d9;

    color: #222;
}


/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.detalles-pelicula {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 28px 30px;

    display: grid;

    grid-template-columns:
        minmax(420px, 1.55fr)
        minmax(250px, 0.75fr)
        minmax(250px, 0.75fr);

    column-gap: 42px;

    align-items: start;

    background: #d9d9d9;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 30px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   COLUMNAS
========================================================= */

.detalles-columna {
    min-width: 0;
}

.detalles-columna.izquierda {
    padding-top: 0;
}

.detalles-columna.central {
    padding-top: 0;
}

.detalles-columna.derecha {
    padding-top: 0;
}


/* =========================================================
   TÍTULO
========================================================= */

.detalles-titulo {
    margin: 0 0 22px;

    font-size: 27px;
    line-height: 1.2;

    font-weight: 700;

    color: #3c78d8;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.detalles-descripcion {
    max-width: 590px;

    margin: 0;

    font-size: 22px;
    line-height: 1.7;

    font-weight: 400;

    color: #3c78d8;
}


/* =========================================================
   DATOS
========================================================= */

.dato-detalle {
    margin: 0 0 21px;

    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;

    border-radius: 0;

    min-height: auto;

    display: block;

    font-family: "Times New Roman";
}


/* =========================================================
   TÍTULO DEL DATO
========================================================= */

.dato-titulo {
    display: block;

    margin: 0 0 5px;

    font-size: 20px;

    line-height: 1.3;

    font-weight: 400;

    text-transform: none;

    letter-spacing: 0;

    color: #3c78d8;

    font-family: "lobster";
}


/* =========================================================
   VALOR
========================================================= */

.dato-valor {
    display: block;

    margin: 0;

    font-size: 18px;

    line-height: 1.55;

    font-weight: 600;

    background: #d9d9d9;

    color: #222;

}


/* =========================================================
   CLASIFICACIÓN
========================================================= */

.dato-etiqueta {
    display: inline-flex;

    align-items: center;

    padding: 2px 6px;

    min-height: 20px;

    border-radius: 3px;

    background: #4b4f5b;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   TARJETAS DE AUDIO
========================================================= */

.audio-grande {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =========================================================
   CADA DATO EN SU PROPIA TARJETA
========================================================= */

.audio-item {
    padding: 22px 24px;

    min-height: 100px;

    background: #d9d9d9

    border: 1px solid rgba(60, 120, 216, 0.12);

    border-radius: 14px;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.07);

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 8px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   FORMATOS
========================================================= */

.formatos-detalle {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 7px;
}

.formatos-detalle span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 30px;

    min-height: 20px;

    padding: 2px 7px;

    border-radius: 3px;

    background: #4b4f5b;

    color: #ffffff;

    font-size: 12px;

    line-height: 1;

    font-weight: 700;
}


/* =========================================================
   BOTÓN VOLVER
========================================================= */

.volver-episodios {
    display: block;

    margin: 30px auto 0;

    padding: 10px 20px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.65);

    color: #222;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.volver-episodios:hover {
    background: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .vista-detalles {
        padding: 28px 20px;
    }

    .detalles-pelicula {
        grid-template-columns: 1fr;

        row-gap: 25px;

        padding: 24px 20px;
    }

    .detalles-titulo {
        font-size: 28px;
    }

    .detalles-descripcion {
        max-width: none;

        font-size: 16px;

        line-height: 1.55;
    }

    .dato-detalle {
        margin-bottom: 18px;
    }
}


/* =========================================================
   BOTÓN VOLVER
========================================================= */

.volver-episodios {
    display: block;

    margin: 30px auto 0;

    padding: 10px 20px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.07);

    color: #ffffff;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.volver-episodios:hover {
    background: rgba(255, 255, 255, 0.12);

    transform: translateY(-1px);
}



/* =========================================================
   VISTA AUDIO Y SUBTÍTULOS
========================================================= */

.vista-audio {
    width: 100%;
    min-height: 360px;

    padding: 35px 40px;

    background: #d9d9d9;

    color: #222;

    overflow: hidden;
}


/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.vista-audio .contenido-vista {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 30px 32px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   ENCABEZADO
========================================================= */

.vista-audio .encabezado-vista {
    margin-bottom: 28px;

    text-align: center;
}


/* CONFIGURACIÓN */

.vista-audio .etiqueta-vista {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.08em;

    color: #3c78d8;
}


/* AUDIO Y SUBTÍTULOS */

.vista-audio .encabezado-vista h2 {
    margin: 0;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 700;

    color: #3c78d8;
}


/* =========================================================
   TARJETAS DE AUDIO
========================================================= */

.audio-grande {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =========================================================
   CADA DATO EN SU PROPIA TARJETA
========================================================= */

.audio-item {
    padding: 22px 24px;

    min-height: 100px;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(60, 120, 216, 0.12);

    border-radius: 14px;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.07);

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 8px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   EFECTO TARJETAS
========================================================= */

.audio-item:hover {
    transform: translateY(-10px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   TÍTULO DEL DATO
========================================================= */

.audio-item .detalle-label {
    display: block;

    margin: 0;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 500;

    color: #3c78d8;
}


/* =========================================================
   INFORMACIÓN DEL DATO
========================================================= */

.audio-item strong {
    display: block;

    margin: 0;

    font-size: 17px;

    line-height: 1.45;

    font-weight: 700;

    color: #222;
}


/* =========================================================
   BOTÓN VOLVER
========================================================= */

.vista-audio .volver-episodios {
    display: block;

    margin: 28px auto 0;

    padding: 10px 20px;

    border: 1px solid rgba(60, 120, 216, 0.20);

    border-radius: 8px;

    background: rgba(60, 120, 216, 0.10);

    color: #3c78d8;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.vista-audio .volver-episodios:hover {
    background: rgba(60, 120, 216, 0.17);

    transform: translateY(-6px);
}


/* =========================================================
   TÍTULO Y DESCRIPCIÓN DEL EPISODIO
   SOLO VISIBLES EN CELULAR
========================================================= */

.episodio-info,
.descripcion-episodio {
    display: none;
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 768px) {

    .episodio-info {
        display: block;
    }

    .descripcion-episodio {
        display: block;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .vista-audio {
        padding: 28px 20px;
    }

    .vista-audio .contenido-vista {
        padding: 24px 20px;
    }

    .vista-audio .encabezado-vista h2 {
        font-size: 25px;
    }

    .audio-grande {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .audio-item {
        min-height: 90px;

        padding: 20px;
    }

}

/* =========================================================
   BOTÓN VOLVER
========================================================= */

.vista-audio .volver-episodios {
    display: block;

    margin: 30px auto 0;

    padding: 10px 20px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 25px;

    background: #d9d9d9

    color: #222;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.vista-audio .volver-episodios:hover {
    background: rgba(255, 255, 255, 0.9);

    transform: translateY(-1px);
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .vista-audio {
        padding: 28px 20px;
    }

    .vista-audio .encabezado-vista h2 {
        font-size: 25px;
    }

    .audio-grande {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .audio-item {
        min-height: 90px;

        padding: 20px;
    }

}



/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 800px) {

    .vista-detalles {
        padding: 28px 20px;
    }

    .detalles-pelicula {
        grid-template-columns: 1fr;

        row-gap: 25px;
    }

    .detalles-titulo {
        font-size: 28px;
    }

    .detalles-descripcion {
        max-width: none;

        font-size: 16px;

        line-height: 1.55;
    }

    .dato-detalle {
        margin-bottom: 18px;
    }

}

/* =========================================================
   SUGERENCIAS
   CONTORNO SOLO CON HOVER
========================================================= */

.vista-sugerencias {
    width: 100%;
}

.vista-sugerencias[hidden] {
    display: none !important;
}

.vista-sugerencias .contenido-vista {
    width: 88%;

    margin: 70px auto;

    padding: 45px;
}

.vista-sugerencias .lista-sugerencias {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    align-items: start;
}


/* =========================================================
   TARJETA DE SUGERENCIA
========================================================= */

.vista-sugerencias .sugerencia {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    /*
       Transparente normalmente.
       El azul aparece únicamente con :hover.
    */
    border: 3px solid transparent;

    border-radius: 22px;

    background: rgba(255, 255, 255, .12);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .15);

    transform: translateY(0);

    transition:
        transform .30s ease,
        border-color .30s ease,
        box-shadow .30s ease;
}


/* =========================================================
   HOVER SUGERENCIA
========================================================= */

.vista-sugerencias .sugerencia:hover {
    border-color: #3C78D8;

    transform: translateY(-6px);

    box-shadow:
        0 14px 32px rgba(60, 120, 216, .30);
}


/* =========================================================
   IMAGEN DE SUGERENCIA
========================================================= */

.vista-sugerencias .sugerencia-imagen {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;
    object-position: center;

    transition:
        transform .30s ease;
}

.vista-sugerencias .sugerencia:hover .sugerencia-imagen {
    transform: scale(1.02);
}


/* =========================================================
   VOLVER
========================================================= */

.volver-episodios {
    margin-top: 30px;

    padding: 13px 25px;

    border: 1px solid rgba(255, 255, 255, .35);

    border-radius: 25px;

    background: rgba(255, 255, 255, .16);

    color: #3C78D8;

    font-size: 18px;

    cursor: pointer;
}

.volver {
    text-align: center;

    padding: 20px 0 60px;
}

.boton-volver {
    display: inline-block;

    padding: 15px 35px;

    background: rgba(255, 255, 255, .14);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .35);

    border-radius: 35px;

    color: #3C78D8;

    text-decoration: none;

    font-size: 24px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #3C78D8;

    padding: 20px 10px;

    text-align: center;
}

footer p {
    font-size: 18px;

    line-height: 1.5;

    color: #d9d9d9;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) and (min-width: 769px) {

    .lista-episodios {
        grid-template-columns: repeat(2, 1fr);
    }

    .vista-sugerencias .lista-sugerencias {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    body {
        padding-bottom: 100px;
    }


    /* =====================================================
       BARRA
    ===================================================== */

    .general-barra {
        top: 15px;

        width: 95%;

        padding: 15px 20px;
    }

    .general-menu {
        display: none !important;
    }

    .general-logo a {
        font-size: 24px;
    }


    /* =====================================================
       PRESENTACIÓN
    ===================================================== */

    .general-presentacion {
        width: 100%;

        height: auto;

        min-height: 0;

        padding: 95px 15px 20px;

        display: block;

        background: #000;
    }

    .serie-info {
        width: 100%;

        height: auto;

        padding: 0;

        display: flex;

        flex-direction: column;

        align-items: center;

        overflow: visible;

        background: transparent;

        isolation: auto;
    }


    /* =====================================================
       SIN CAPA OSCURA
    ===================================================== */

    .serie-info::before {
        display: none !important;
        content: none !important;
    }


    /* =====================================================
       PORTADA
    ===================================================== */

    .serie-info > .serie-logo {
        position: relative !important;

        inset: auto !important;

        width: 100% !important;

        height: auto !important;

        max-width: 550px;

        object-fit: contain;

        object-position: center;

        border-radius: 25px;

        z-index: 1;

        display: block !important;

        order: 0;
    }

    .serie-info > .serie-logo ~ .serie-logo {
        display: none !important;
    }


    /* =====================================================
       INDICADORES
    ===================================================== */

    .serie-info > .indicadores-contenido {
        display: flex !important;

        width: 100%;

        max-width: 550px;

        margin-top: 15px;

        margin-bottom: 0;

        order: 1;
    }


    /* =====================================================
       SINOPSIS
    ===================================================== */

    .tarjeta-sinopsis {
        width: 100%;

        max-width: 550px;

        margin-top: 15px;

        padding: 16px;

        border-radius: 18px;

        background: rgba(255, 255, 255, .13);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border: 1px solid rgba(255, 255, 255, .30);

        z-index: 2;

        order: 2;
    }

    .tarjeta-sinopsis p {
        color: #d9d9d9;

        font-size: 15px;

        line-height: 1.45;
    }


    /* =====================================================
       BOTONES ORDENADOR
    ===================================================== */

    .general-botones {
        display: none !important;
    }


    /* =====================================================
       CONTROLES MÓVILES
    ===================================================== */

    .controles-movil {
        width: 100%;

        max-width: 550px;

        display: grid !important;

        margin-top: 15px;

        padding: 0;

        background: transparent;

        border: none;

        box-shadow: none;

        z-index: 5;

        order: 3;
    }

    .boton-movil-ver {
        width: 100%;

        min-height: 52px;

        padding: 8px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 16px;

        background: rgba(255, 255, 255, .20);

        border: 1px solid rgba(255, 255, 255, .40);

        color: #3C78D8;

        text-decoration: none;

        font-size: 17px;
    }

    .acciones-movil {
        width: 100%;

        display: flex;

        gap: 8px;

        margin-top: 8px;
    }

    .boton-movil {
        flex: 1;

        min-height: 42px;

        padding: 5px 6px;

        border-radius: 14px;

        background: rgba(255, 255, 255, .14);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        border: 1px solid rgba(255, 255, 255, .40);

        color: #3C78D8;

        font-size: 14px;

        cursor: pointer;
    }


    /* =====================================================
       SUGERENCIAS — CELULAR
    ===================================================== */

    .vista-sugerencias {
        width: 100%;
    }

    .vista-sugerencias .contenido-vista {
        width: 92%;

        margin: 25px auto;

        padding: 20px;
    }

    .vista-sugerencias .lista-sugerencias {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .vista-sugerencias .sugerencia {
        width: 100%;

        overflow: hidden;

        /*
           SIN BORDE AZUL PERMANENTE EN CELULAR
        */
        border: 3px solid transparent;

        border-radius: 18px;

        background: rgba(255, 255, 255, .12);

        box-shadow:
            0 8px 20px rgba(0, 0, 0, .15);

        transform: none;
    }

    .vista-sugerencias .sugerencia-imagen {
        display: block;

        width: 100%;

        height: auto;

        aspect-ratio: 16 / 10;

        object-fit: cover;

        object-position: center;
    }


    /* =====================================================
       EPISODIOS — CELULAR
    ===================================================== */

    .episodios {
        width: 92%;

        margin: 25px auto;

        padding: 20px;

        border-radius: 25px;

        background: rgba(255, 255, 255, .18);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .20);
    }

    .episodios h2 {
        font-size: 30px;

        margin-bottom: 20px;
    }

    .lista-episodios {
        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }

    .episodio {
        width: 100%;

        border: 2px solid transparent;

        border-radius: 20px;

        transform: none;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, .15);
    }


    /*
       En pantallas táctiles no dejamos que
       el navegador mantenga un :hover visual.
    */

    .episodio:hover {
        border-color: transparent;

        transform: none;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, .15);
    }


    /* =====================================================
       TARJETA EPISODIO
    ===================================================== */

    .episodio-contenido {
        display: grid;

        grid-template-columns:
            90px
            1fr
            50px;

        align-items: center;

        width: 100%;
    }

    .episodio img {
        width: 90px;

        height: 65px;

        display: block;

        object-fit: cover;

        object-position: center;

        border-radius: 12px;
    }

    .episodio-info {
        width: 100%;
    }

    .titulo-episodio {
        font-size: 17px;

        padding: 12px;

        text-align: center;
    }

    .descripcion-episodio {
        font-size: 14px;

        width: calc(100% - 20px);

        margin: 5px auto 15px;
    }

    .play-episodio {
        display: flex;

        width: 44px;

        height: 44px;

        margin: 0 auto;

        align-items: center;
        justify-content: center;
    }


    /* =====================================================
       PANELES DE ORDENADOR OCULTOS
    ===================================================== */

    .contenido-ordenador,
    
    
    .contenido-vista {
        display: flex !important;
    }


    .vista-detalles,
    .vista-audio {
      display: none;
    }

    /* =====================================================
       MODALES
    ===================================================== */

    .modal-movil {
        position: fixed;

        inset: 0;

        width: 100%;
        height: 100%;

        padding: 20px;

        display: none;

        align-items: center;
        justify-content: center;

        background: rgba(0, 0, 0, .55);

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);

        z-index: 20000;
    }

    .modal-movil.activo {
        display: flex !important;
    }

    .modal-contenido {
        position: relative;

        width: 100%;

        max-width: 500px;

        max-height: 85vh;

        overflow-y: auto;

        padding: 25px 20px;

        border-radius: 25px;

        background: rgba(60, 120, 216, .90);

        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);

        border: 1px solid rgba(255, 255, 255, .35);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, .35);

        color: #d9d9d9;

        text-align: center;
    }

    .modal-contenido h2 {
        margin-bottom: 20px;

        font-size: 28px;

        color: #ffffff;
    }

    .modal-contenido p {
        font-size: 16px;

        line-height: 1.5;

        margin-bottom: 15px;

        color: #d9d9d9;
    }

    .modal-cerrar {
        position: absolute;

        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;

        border: none;

        border-radius: 50%;

        background: rgba(255, 255, 255, .20);

        color: #ffffff;

        font-size: 20px;

        cursor: pointer;
    }

    .opcion-modal {
        width: 100%;

        min-height: 50px;

        margin-top: 10px;

        padding: 12px 15px;

        border-radius: 17px;

        background: rgba(255, 255, 255, .14);

        border: 1px solid rgba(255, 255, 255, .30);

        color: #ffffff;

        font-size: 17px;

        text-decoration: none;

        display: flex;

        align-items: center;
        justify-content: center;

        cursor: pointer;
    }


    /* =====================================================
       VOLVER
    ===================================================== */

    .volver {
        text-align: center;

        padding: 20px 0 60px;
    }

    .boton-volver {
        display: inline-block;

        padding: 15px 35px;

        background: rgba(255, 255, 255, .14);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        border: 1px solid rgba(255, 255, 255, .35);

        border-radius: 35px;

        color: #3C78D8;

        text-decoration: none;

        font-size: 24px;

        transition: .25s;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    footer {
        background: #3C78D8;

        padding: 20px 10px;

        text-align: center;
    }

    footer p {
        font-size: 20px;

        color: #d9d9d9;
    }


    /* =====================================================
       TEMPORADAS OCULTAS EN CELULAR
    ===================================================== */

    .submenu,
    .submenu-temporadas,
    .menu-temporadas,
    .opcion-temporadas,
    .temporadas,
    .boton-temporadas {
        display: flex !important;
    }
}