/*
Theme Name: Twenty Twenty Child
Theme URI: https://cinemanias.mx/
Description: Tema hijo personalizado para Cinemanía basado en Twenty Twenty
Author: Cinemanía
Template: twentytwenty
Version: 1.0
*/

/* =====================================================
   AJUSTES GENERALES
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

a {
    color: white !important;
}

.site-title,
.site-description,
.main-navigation a {
    color: black !important;
}

.search-form,
.search-toggle,
.header-search,
.wp-block-search {
    display: none !important;
}


/* =====================================================
   HERO CINEMANÍA
===================================================== */

.cinemania-wrapper{
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #000;
}


.cinemania-pelicula{
    position: relative;
    display: none;
    width: 100vw;
    min-height:700px;

    left:50%;
    margin-left:-50vw;
}


.cinemania-pelicula.active{
    display:block;
    animation:cinemaniaFade 1s ease;
}



@keyframes cinemaniaFade{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}




.cinemania-background{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    z-index:1;
}


.cinemania-overlay{

    position:absolute;
    inset:0;
    z-index:1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92) 0%,
            rgba(0,0,0,.75) 25%,
            rgba(0,0,0,.40) 55%,
            rgba(0,0,0,.15) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,.25) 0%,
            rgba(0,0,0,0) 35%,
            rgba(0,0,0,.55) 100%
        );

}


.cinemania-content{

    position:relative;
    z-index:2;

    display:flex;
    align-items:center;

    gap:60px;

    width:100%;
    max-width:1400px;

    margin:0 auto;

    padding:80px 80px;

    box-sizing:border-box;

}




.cinemania-poster img{

    width:300px;
    max-width:100%;

    border-radius:15px;

    box-shadow:
    0 20px 40px rgba(0,0,0,.8);

}




.cinemania-info{

    max-width:650px;

}



.cinemania-info h1{

    font-size:55px;
    margin-bottom:20px;
    font-weight:800;
    color:#fff;
    text-shadow:0 4px 18px rgba(0,0,0,.65);

}



.cinemania-meta{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:25px;

}


.cinemania-meta span{

   background:rgba(255,193,7,.30);

    color:#fff;

    padding:2px 12px;

    border-radius:50px;

    border:1px solid rgba(255,193,7,.25);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    font-size:15px;

    font-weight:600;

    letter-spacing:.3px;

    box-shadow:
    0 8px 20px rgba(0,0,0,.90);

    transition:.3s ease;

}

.cinemania-meta span:hover{

    background:rgba(255,255,255,.20);

    transform:translateY(-3px);

}


.cinemania-sinopsis{

    font-size:18px;
    line-height:1.7;
    margin-bottom:20px;
    color:rgba(255,255,255,.92);
    text-shadow:0 2px 8px rgba(0,0,0,.45);

}



.cinemania-director{

    font-size:17px;
    margin-bottom:25px;
    color:#f0f0f0;

}



.cinemania-btn{

    display:inline-block;

    background:#ffc107;

    color:black!important;

    padding:14px 30px;

    border-radius:30px;

    text-decoration:none;

    font-weight:bold;

    transition:20s;

}



.cinemania-btn:hover{

    transform:scale(1.05);

}





/* MINI CARRUSEL */

.cinemania-thumbs{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;

    padding:20px;

    background:rgba(8,8,8,.55);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border-top:1px solid rgba(255,255,255,.08);

    margin-top:-25px;

    position:relative;
    z-index:5;

    flex-wrap:nowrap;
}

.cinemania-thumb{

    flex:0 0 auto;

    cursor:pointer;

    opacity:.5;

    transition:.3s;

}



.cinemania-thumb img{

    width:85px;
    height:125px;

    object-fit:cover;

    border-radius:10px;

    transition:.3s;

}



.cinemania-thumb:hover,
.cinemania-thumb.active{

    opacity:1;

    transform:translateY(-10px);

}

/* CELULAR */

@media(max-width:768px){

    .cinemania-wrapper{
        margin-top:0 !important;
    }

    .cinemania-pelicula{
        min-height:820px;
    }

    .cinemania-content{
        flex-direction:column;
        text-align:center;
        padding:40px 20px 70px;
        gap:25px;
    }

    .cinemania-background{
        background-position:center top;
    }

    .cinemania-poster img{
        width:180px;
    }

    .cinemania-info{
        max-width:100%;
    }

    .cinemania-info h1{
        font-size:35px;
    }

    .cinemania-sinopsis{
        font-size:16px;
    }

    .cinemania-meta{
        justify-content:center;
    }

    .cinemania-thumb{
        flex-shrink:0;
    }

    .cinemania-thumb img{
        width:90px;
        height:130px;
    }

    .cinemania-buttons{
        justify-content:center;
    }

}





/* ===== Forzar ancho completo del Hero ===== */

.entry-content > .cinemania-wrapper{
    width:100vw !important;
    max-width:100vw !important;

    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
}

.cinemania-wrapper{
    overflow:hidden;
}

.cinemania-buttons{

    display:flex;
    gap:15px;
    flex-wrap:wrap;
    align-items:center;

}


.comprar-btn{

    background:rgba(255,193,7,.25);

    color:white!important;

    border:1px solid rgba(255,193,7,.25);

    backdrop-filter:blur(8px);
}


.trailer-btn{

    background:rgba(255,193,7,.25);

    color:white!important;

    border:1px solid rgba(255,193,7,.25);

    backdrop-filter:blur(8px);

}


.comprar-btn:hover{

    transform:scale(1.05);

    background:#ff1f2d;

}


.trailer-btn:hover{

    background:rgba(255,255,255,.25);

}

/* Elimina el espacio entre el header y la cartelera */

.entry-content{
    margin-top:0 !important;
    padding-top:0 !important;
}

.post-inner{
    padding-top:0 !important;
}

.entry-header{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}
/* Subir la cartelera */
.cinemania-wrapper{
    position: relative;
    margin-top: -120px;
}

/* =====================================================
   CARRUSEL POSTERS MOBILE - SWIPE HORIZONTAL
===================================================== */

@media(max-width:768px){

    .cinemania-thumbs{

        justify-content:flex-start !important;

        overflow-x:auto !important;

        overflow-y:hidden;

        scroll-behavior:smooth;

        -webkit-overflow-scrolling:touch;

        scrollbar-width:none;

        padding-left:20px;
        padding-right:20px;

    }


    .cinemania-thumbs::-webkit-scrollbar{

        display:none;

    }


    .cinemania-thumb{

        flex:0 0 auto !important;

    }


}

/* =====================================================
   TIPOGRAFÍA CINEMANÍA
===================================================== */

.cinemania-info h1{
    font-family:'Bebas Neue', sans-serif !important;
    letter-spacing:1px;
}


.cinemania-info,
.cinemania-meta,
.cinemania-sinopsis,
.cinemania-director,
.cinemania-btn{
    font-family:'Montserrat', sans-serif !important;
}

/* =====================================================
   TIPOGRAFÍA PERSONALIZADA CINEMANÍA
===================================================== */

@font-face {
    font-family: 'CinemaniaCustom';
 src: url('/wp-content/themes/twentytwenty-child/assets/fonts/MyCustomFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* PRUEBA TEMPORAL */

*{
    /* PRUEBA */

*{
    font-family: 'MyCustomFont' !important;
}

body{
    background: red !important;
}

/* ===== Cinemanía ancho completo ===== */

.entry-content,
.entry-content > *,
.post-inner,
.container,
.site-content,
#site-content {
    max-width: none !important;
    width: 100% !important;
}

.cinemania-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}