/* =========================================================
   CARTELERA — PRÓXIMOS / HOME
   Diferencias respecto de cartelera-base.css + responsive propio.
========================================================= */

.zam-card-fecha-mobile-list{
    display:none;
}

.zam-cartelera-wrap{
    width:100%;
    min-height:100vh;
    padding:50px 0 80px;
    box-sizing:border-box;
    background: linear-gradient( to bottom, rgba(29,29,29,0) 50px, rgba(29,29,29,.5) 80px, rgba(29,29,29,1) 120px )
}

.zam-filtros-wrap{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:20px;
    flex-wrap:wrap;
    position: relative;
    top: 44px;
}

.zam-view-list{
    display:flex;
    flex-direction:column;
    gap:0px;
}

/* ==========================================================================
   RESPONSIVE HOME CARTELERA
========================================================================== */

@media(max-width:980px){

    .zam-cartelera-wrap{
        padding:32px 0 60px;
        overflow-x:hidden;
    }

    .zam-cartelera-cabezal{
        width:92%;
        height:auto;
        min-height:0;
        margin:14px auto 10px;
        padding:16px;
        flex-direction:column;
        align-items:stretch;
        gap:14px;
    }

    .zam-cartelera-cabezal-left{
        justify-content:center;
        gap:12px;
    }

    .zam-cartelera-GZ svg{
        width:52px;
    }

    .zam-cartelera-titulo{
        font-size:25px;
        text-align:center;
    }

    .zam-cartelera-cabezal-right{
        width:100%;
        padding-right:0;
        justify-content:center;
        gap:10px;
        flex-wrap:wrap;
    }

    .gz-boton-rojo{
        height:46px;
        font-size:22px;
        padding-left:42px;
    }

    .gz-boton-inner{
        padding:0 16px 0 20px;
    }

    .gz-boton-flecha{
        margin-left:16px;
        font-size:21px;
    }

    .gz-boton-mano{
        left:22px;
        top:-8px;
        width:24px;
    }

    .gz-Gcal{
        width:46px;
        height:46px;
        margin-left:0;
    }

    .gz-Gcal img{
        width:46px;
    }

    .zam-cartelera-container{
        width:92%;
        padding:0 14px 26px;
        min-height:0;
    }

    .zam-filtros-wrap{
        top:0;
        justify-content:center;
        padding:18px 0 20px;
    }

    .zam-filtros-left{
        width:100%;
        justify-content:center;
        gap:10px;
    }

    .zam-cartelera-grid{
        grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
        gap:20px;
    }
}

@media(max-width:640px){

    .zam-cartelera-wrap{
        padding:22px 0 50px;
    }

    .zam-cartelera-cabezal{
        width:92%;
        border-radius:16px 0;
        padding:14px 12px;
    }

    .zam-cartelera-cabezal-left{
        flex-direction:column;
        gap:6px;
    }

    .zam-cartelera-GZ svg{
        width:48px;
    }

    .zam-cartelera-titulo{
        font-size:24px;
        line-height:1.05;
    }

    .zam-cartelera-cabezal-right{
        display:grid;
        grid-template-columns:1fr 44px 44px;
        align-items:center;
        gap:8px;
    }

    .gz-boton-rojo{
        width:100%;
        height:44px;
        font-size:18px;
        padding-left:34px;
        border-radius:10px;
    }

    .gz-boton-inner{
        padding:0 10px 0 16px;
        border-radius:10px;
    }

    .gz-boton-flecha{
        margin-left:8px;
        font-size:17px;
    }

    .gz-boton-mano{
        left:17px;
        top:-7px;
        width:21px;
    }

    .gz-Gcal{
        width:44px;
        height:44px;
        border-radius:10px;
    }

    .gz-Gcal img{
        width:40px;
    }

    .zam-cartelera-container{
        width:92%;
        padding:0 10px 24px;
    }

    .zam-filtros-wrap{
        padding:14px 0 18px;
    }

    .zam-filtros-left{
        display:grid;
        grid-template-columns:minmax(0,1fr) 36px auto;
        gap:8px;
    }

    .zam-tipos{
        display:none;
    }

    .zam-tipo-btn{
        width:100%;
        height:36px;
        padding:0 8px;
        font-size:11px;
    }

    .zam-separador{
        display:none;
    }

    .zam-busqueda{
        width:auto;
        height:36px;
        grid-column:1 / 2;
        padding:0 10px;
    }

    .zam-busqueda input{
        width:100%;
        height:36px;
        font-size:12px;
    }

    #zam-buscar-remates{
        padding-left:8px;
    }

    .zam-vistas{
        grid-column:3 / 4;
        justify-content:flex-end;
        gap:8px;
    }

    .zam-vista-btn{
        width:36px;
        height:36px;
    }

    .zam-cartelera-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .zam-mes-titulo{
        font-size:24px;
        margin-bottom:16px;
        padding:10px 12px;
    }

    .zam-card-thumb{
        aspect-ratio:1.35/1;
    }

    .zam-card-info{
        bottom:12px;
    }

    .zam-card-main{
        gap:10px;
        min-height:64px;
    }

    .zam-card-fecha{
        padding:7px 10px;
    }

    .zam-card-day-num{
        font-size:25px;
    }

    .zam-card-title{
        font-size:21px;
    }

    .zam-card-subtitle{
        font-size:13px;
    }

    .zam-card-icons{
        right:8px;
        bottom:-8px;
        gap:6px;
    }

    .zam-card-icon{
        width:20px;
        height:20px;
    }
}

@media(max-width:380px){

    .zam-cartelera-titulo{
        font-size:22px;
    }

    .gz-boton-rojo{
        font-size:16px;
    }

    .zam-card-title{
        font-size:19px;
    }

    .zam-card-subtitle{
        font-size:12px;
    }
}

/* ==========================================================================
   para el fade in de las cards
========================================================================== */
.zam-card-remate{
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22,.61,.36,1);
}

.zam-card-remate.zam-show{
    opacity:.3;
    transform:translateY(50px);
}


/* ==========================================================================
   BOTÓN PREOFERTAS
========================================================================== */

.zam-cartelera-cabezal-right{
    display:flex;
    align-items:center;
    padding-right:24px;
}

.gz-boton-rojo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #d61116 0%, #c10c10 45%, #650507 100%);
    box-shadow: 0 10px 24px rgb(35 35 35 / 95%), inset 0 1px 0 rgb(55 54 54 / 12%), inset 0 -3px 6px rgba(0, 0, 0, .18);
    overflow: visible;
    transition: transform .18s ease, box-shadow .18s ease;
    padding:  0px 0px 0px 70px;
}

.gz-boton-rojo:hover{
     background: linear-gradient(180deg, #d61116 0%, #c10c10 45%, #650507 100%);
}

.gz-boton-rojo:hover .gz-boton-mano{
    transform:
        translateY(-4px)
        translateX(4px)
        
}

.gz-boton-rojo:hover .gz-boton-flecha{
    transform:translateX(6px);
}

.gz-boton-inner{
    position:relative;
    display:flex;
    align-items:center;
    height:100%;
    padding:0 30px 0 34px;
    border-radius:12px;
    overflow:hidden;
}

.gz-boton-inner span{
    flex:1;
    text-align:center;
    position:relative;
    z-index:2;
}

.gz-boton-inner::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.12),
            transparent
        );
    transition:left .7s ease;
}

.gz-boton-rojo:hover .gz-boton-inner::before{
    left:140%;
}

.gz-boton-rojo span{
    position:relative;
    z-index:2;
}

.gz-boton-flecha{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left:40px;
    background:none;
    border:none;
    width:auto;
    height:auto;
    font-size:28px;
    font-weight:700;
    line-height:1;
    color:#fff;
    transition:
        transform .18s ease,
        opacity .18s ease;
}

.gz-boton-rojo:hover .gz-boton-flecha{
    transform:translateX(4px);
    opacity:1;
}


.gz-boton-mano{
position: absolute;
    left: 48px;
    top: -12px;
    width: 30px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    transition: transform .2s ease;
}

/* ==========================================================================
   GOOGLE CALENDAR
========================================================================== */

.gz-Gcal{
    display:flex;
    align-items:center;
    justify-content:center;
    width:56px;
    height:56px;
    margin-left:20px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.08);
    opacity:.8;
    transition:
        transform .18s ease,
        opacity .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}
.gz-Gcal img{
    width:56px;
    height:auto;
    display:block;
    transition:
        transform .18s ease;
}

.gz-Gcal:hover{
    opacity:1;
    transform:translateY(-2px) ;
    box-shadow:
        0 8px 20px rgba(0,0,0,.25);
}

.gz-Gcal:hover img{
    transform:scale(1.08);
}
/* ==========================================================================
   CAMPO BUSQUEDA
========================================================================== */
.zam-busqueda-oculto{
    display:none !important;
}

.zam-busqueda{
   position:relative;
   display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    width: 140px;
    border: 1px solid rgba(255, 255, 255, .12);
    height: 34px;
    border-radius: 9px;
  
}

.zam-busqueda svg{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:16px;
    height:16px;
    opacity:.55;
    fill:#fff;
    pointer-events:none;
}

#zam-buscar-remates{
    padding-left:10px;
}

.zam-busqueda input{
background: none;
    border: 0;
    color: #fff;
    width: 120px;
    outline: none;
    height: 34px;
}

.zam-busqueda input::placeholder{
    color:rgba(255,255,255,.55);
}

.zam-busqueda{
    transition:.2s;
}

.zam-busqueda:focus-within{
    background:rgba(255,255,255,.08);
}

#zam-buscar-remates{
    background:none;
    border:0;
    outline:none;
    color:#e5e5e5;
}

#zam-buscar-remates::placeholder{
    color:rgba(255,255,255,.55);
}

.zam-separador{
    width:1px;
    height:22px;
    background:rgba(255,255,255,.12);
}
.zam-sin-resultados{
    display:none;
    text-align:center;
    padding:80px 20px;
    color:rgba(255,255,255,.65);
    font-size:18px;
    line-height:1.6;
    margin-top:50px;
}



@media(max-width:640px){

    .zam-cartelera-cabezal{
        width:92%;
        margin-top:12px;
        padding:14px 12px 16px;
        gap:10px;
    }

    .zam-cartelera-cabezal-left{
        flex-direction:column;
        justify-content:center;
        width:100%;
        gap:6px;
    }

    .zam-cartelera-GZ svg{
        width:42px;
    }

    .zam-cartelera-titulo{
        font-size:22px;
        text-align:center;
    }

    .zam-cartelera-cabezal-right{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        width:100%;
        padding-right:0;
        gap:10px;
    }

    .gz-boton-rojo{
        width:86%;
        max-width:300px;
        height:54px;
        font-size:25px;
        padding-left:44px;
        border-radius:10px;
    }

    .gz-boton-inner{
        width:100%;
        justify-content:center;
        padding:0 12px;
    }

    .gz-boton-mano{
        left:26px;
        top:-12px;
        width:28px;
    }

    .gz-Gcal{
        width:48px;
        height:48px;
        margin:0 4px;
    }

    .gz-Gcal img{
        width:46px;
    }

    .zam-view-list .zam-cartelera-grid{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .zam-view-list .zam-card-remate{
        display:grid;
        grid-template-columns:82px 1fr;
        min-height:88px;
        border-radius:8px;
        overflow:hidden;
        background:#333;
    }

    .zam-view-list .zam-card-thumb{
        grid-column:1;
        grid-row:1 / 3;
        width:82px;
        height:100%;
        min-height:88px;
        aspect-ratio:auto;
    }

    .zam-view-list .zam-card-thumb img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .zam-view-list .zam-card-info{
        position:static;
        inset:auto;
        display:grid;
        grid-template-rows:34px 1fr;
        padding:0;
        min-width:0;
    }

    .zam-view-list .zam-card-main{
        display:grid;
        grid-template-columns:1fr;
        grid-row:1 / 3;
        height:100%;
        min-height:0;
        width:100%;
    }

    .zam-view-list .zam-card-fecha{
        grid-row:1;
        width:auto;
        height:34px;
        min-width:0;
        margin:0;
        padding:0 8px;
        border-radius:0;
        flex-direction:row;
        align-items:center;
        justify-content:flex-start;
        gap:5px;
        background:linear-gradient(180deg,#9f0000 0%,#850000 100%);
    }

    .zam-view-list .zam-card-fecha-top{
        margin:0;
        gap:3px;
    }

    .zam-view-list .zam-card-dow{
        font-size:9px;
        margin:0;
    }

    .zam-view-list .zam-card-fecha-bottom{
        align-items:center;
        gap:2px;
    }

    .zam-view-list .zam-card-day-num{
        font-size:20px;
        line-height:1;
    }

    .zam-view-list .zam-card-day-sep{
        top:0;
        margin:0;
        font-size:13px;
    }

    .zam-view-list .zam-card-month{
        margin:0 0 0 2px;
        font-size:9px;
    }

    .zam-view-list .zam-card-badge-list{
        display:none;
    }

    .zam-view-list .zam-card-textos{
         grid-row:2;
          padding:8px 10px!important;
        min-width:0;
        display:flex;
        flex-direction:column;
        justify-content:center;
    }

    .zam-view-list .zam-card-title{
        margin:0;
        font-size:18px;
        line-height:1;
        white-space:normal;
        overflow:hidden;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
    }

    .zam-view-list .zam-card-subtitle{
        margin-top:3px;
        font-size:11px;
        line-height:1.15;
        white-space:normal;
        overflow:hidden;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
    }

    .zam-view-list .zam-card-icons{
  position:absolute!important;
    right:8px!important;
    top:5px!important;
    bottom:auto!important;
    transform:none!important;
    display:flex!important;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    z-index:20;
}

    .zam-view-list .zam-card-icon{
        width:25px;
        height:25px;
        border-radius:7px;
        padding-top:3px;
        background:rgba(255,255,255,.14);
    }

    .zam-view-list .zam-card-icon svg{
        width:14px;
        height:14px;
    }

    .zam-view-list .zam-card-edit{
        width:25px;
        height:25px;
        top:5px;
        right:5px;
    }

    .zam-view-list .zam-card-edit svg{
        width:13px;
        height:13px;
    }
    .zam-view-list .zam-card-fecha{
    padding-right:92px !important;
}
.zam-view-list .zam-card-remate{
    position:relative!important;
}



.zam-view-list .zam-card-fecha-top,
.zam-view-list .zam-card-fecha-bottom{
    display:contents;
}

.zam-view-list .zam-card-fecha{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:4px!important;
    white-space:nowrap!important;
}

.zam-view-list .zam-card-dow{
    font-size:9px!important;
    margin:0!important;
}

.zam-view-list .zam-card-day-num{
    font-size:20px!important;
    line-height:1!important;
}

.zam-view-list .zam-card-day-sep{
    position:static!important;
    top:auto!important;
    margin:0!important;
    font-size:13px!important;
    line-height:1!important;
}

.zam-view-list .zam-card-month{
    margin:0 0 0 2px!important;
    font-size:9px!important;
}

.zam-view-list .zam-card-fecha{
    display:none!important;
}

.zam-view-list .zam-card-fecha-mobile-list{
    grid-row:1;
    display:flex!important;
    align-items:center;
    gap:4px;
    height:34px;
    padding:0 92px 0 8px;
    background:linear-gradient(180deg,#9f0000 0%,#850000 100%);
    color:#fff;
    white-space:nowrap;
    font-family:oswald,'arial narrow',sans-serif;
}

.zam-view-list .zam-card-fecha-mobile-list span{
    font-size:9px;
    line-height:1;
}

.zam-view-list .zam-card-fecha-mobile-list strong{
    font-size:20px;
    line-height:1;
    font-weight:600;
}

.zam-view-list .zam-card-fecha-mobile-list em{
    font-style:normal;
    font-size:13px;
    line-height:1;
}
}

/* ========================================================================== 
   CABEZAL MÓVIL COMPACTO
   Acciones sobre fondo bordó + título beige debajo
========================================================================== */
.zam-cartelera-atajos{
    display:flex;
    align-items:center;
    gap:10px;
}

@media(max-width:640px){

    .zam-cartelera-cabezal{
        display:flex;
        flex-direction:column;
        width:92%;
        margin:8px auto 10px;
        padding:0;
        gap:10px;
        background:transparent;
        border-radius:0;
        box-shadow:none;
    }

    /* PREOFERTAS + ATAJOS: primero, sobre el fondo bordó */
    .zam-cartelera-cabezal-right{
        order:1;
        display:grid;
        grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);
        align-items:center;
        width:100%;
        padding:0 12px;
        gap:6px;
        background:transparent;
        box-sizing:border-box;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo{
        width:100%;
        max-width:none;
        height:52px;
        margin:0;
        padding-left:32px;
        font-size:18px;
        line-height:.95;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo .gz-boton-inner{
        width:100%;
        padding:0 7px 0 11px;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo .gz-boton-inner span{
        line-height:1.02;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo .gz-boton-flecha{
        display:none;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo .gz-boton-mano{
        left:15px;
        top:-7px;
        width:22px;
    }

    .zam-cartelera-atajos{
        display:grid;
        grid-template-columns:1fr 1fr;
        align-items:center;
        justify-items:center;
        width:100%;
        gap:6px;
    }

    .zam-cartelera-atajos .gz-Gcal{
        width:50px;
        height:50px;
        margin:0;
        border-radius:10px;
    }

    .zam-cartelera-atajos .gz-Gcal img{
        width:45px;
        max-height:45px;
        object-fit:contain;
    }

    /* GZ + PRÓXIMOS REMATES: segundo, en su franja beige */
    .zam-cartelera-cabezal-left{
        order:2;
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:center;
        width:100%;
        min-height:54px;
        margin:0;
        padding:10px 14px;
        gap:9px;
        background:
            linear-gradient(
                135deg,
                #a27e43 0%,
                #755128 55%,
                #382313 100%
            );
        border-radius:14px 0;
        box-sizing:border-box;
        margin-top: 50px;
    }

    .zam-cartelera-GZ svg{
        width:35px;
        height:auto;
    }

    .zam-cartelera-titulo{
        margin:0;
        font-size:19px;
        line-height:1;
        white-space:nowrap;
        text-align:left;
    }
}

@media(max-width:380px){
    .zam-cartelera-titulo{
        font-size:17px;
    }

    .zam-cartelera-cabezal-right > .gz-boton-rojo{
        font-size:16px;
    }

    .zam-cartelera-atajos .gz-Gcal{
        width:48px;
        height:48px;
    }

    .zam-cartelera-atajos .gz-Gcal img{
        width:42px;
        max-height:42px;
    }
}

/* ==========================================================================
   BOTÓN PREOFERTAS — TABLET Y ESCRITORIO
   Recupera el diseño original
========================================================================== */

@media (min-width:641px){

    .zam-cartelera-cabezal-right > .gz-boton-rojo{
        position:relative;
        width:100%;
        height:56px;
        padding:0 0 0 70px;
        border-radius:12px;

        font-size:32px;
        line-height:1;
        font-weight:700;
        letter-spacing:.02em;

        overflow:visible;
    }

    .zam-cartelera-cabezal-right
    > .gz-boton-rojo
    .gz-boton-inner{
        width:100%;
        height:100%;
        padding: 0 50px 0 10px;
        overflow:hidden;
    }

    .zam-cartelera-cabezal-right
    > .gz-boton-rojo
    .gz-boton-inner span{
        font-size:inherit;
        line-height:1;
        white-space:nowrap;
    }

    .zam-cartelera-cabezal-right
    > .gz-boton-rojo
    .gz-boton-mano{
        position:absolute;
        left:30px;
        top:-12px;
        width:30px;
        height:auto;
        z-index:10;
    }
}