.gpdge-grid{
    display:grid;
    grid-template-columns:repeat(var(--gpdge-cols,3),minmax(0,1fr));
    gap:var(--gpdge-gap,16px)
}
@media (max-width:980px){
    .gpdge-grid{
        grid-template-columns:repeat(var(--gpdge-cols-t,2),minmax(0,1fr))
    }
}
@media (max-width:600px){
    .gpdge-grid{
        grid-template-columns:repeat(var(--gpdge-cols-m,1),minmax(0,1fr))
    }
}

.gpdge-card{
    border-radius:0;
    overflow:hidden;
    background:#fff;
    position:relative
}

/* Línea negra vertical al lado izquierdo de la IMAGEN */
.gpdge-card .gpdge-card__media{
    position:relative
}
.gpdge-card .gpdge-card__media::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:1px;
    background:#000;
    z-index:1
}

/* Línea negra horizontal inferior */
.gpdge-card::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:1px;
    background:#000
}

.gpdge-style-border .gpdge-card,
.gpdge-style-boxed .gpdge-card{
    border:1px solid rgba(0,0,0,.12)
}
.gpdge-style-shadow .gpdge-card{
    box-shadow:0 10px 30px rgba(0,0,0,.08)
}
.gpdge-style-none .gpdge-card{
    border:0;
    box-shadow:none
}

.gpdge-eqheight .gpdge-card{
    display:flex;
    flex-direction:column
}
.gpdge-eqheight .gpdge-card__body{
    flex:1;
    display:flex;
    flex-direction:column
}
.gpdge-eqheight .gpdge-card__more{
    margin-top:auto
}

.gpdge-card__media img{
    width:100%;
    height:auto;
    display:block
}
.gpdge-card__media.gpdge-ratio-1-1{aspect-ratio:1/1}
.gpdge-card__media.gpdge-ratio-4-3{aspect-ratio:4/3}
.gpdge-card__media.gpdge-ratio-3-2{aspect-ratio:3/2}
.gpdge-card__media.gpdge-ratio-16-9{aspect-ratio:16/9}
.gpdge-card__media.gpdge-ratio-1-1 img,
.gpdge-card__media.gpdge-ratio-4-3 img,
.gpdge-card__media.gpdge-ratio-3-2 img,
.gpdge-card__media.gpdge-ratio-16-9 img{
    height:100%;
    object-fit:cover
}

.gpdge-card__body{
    padding:12px
}
.gpdge-card__title{
    margin:0 0 6px;
    font-size:16px;
    line-height:1.25
}
.gpdge-card__title a{
    text-decoration:none
}
.gpdge-card__meta{
    font-size:12px;
    opacity:.75;
    margin:6px 0 10px
}
.gpdge-card__meta a{
    text-decoration:none
}
.gpdge-card__excerpt{
    font-size:14px;
    line-height:1.45;
    opacity:.9
}
.gpdge-heading{
    font-size:1.25rem;
    font-weight:700;
    margin:0 0 14px
}
.gpdge-card__more{
    margin-top:10px
}
.gpdge-card__more-link{
    text-decoration:underline
}

.gpdge-pagination{
    margin-top:18px
}
.gpdge-pagination ul{
    display:flex;
    gap:8px;
    list-style:none;
    margin:0;
    padding:0;
    flex-wrap:wrap
}
.gpdge-pagination a,
.gpdge-pagination span{
    display:inline-block;
    padding:6px 10px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:8px;
    text-decoration:none
}
.gpdge-pagination .current{
    font-weight:700
}
.gpdge-prevnext{
    display:flex;
    gap:8px
}
.gpdge-prevnext a,
.gpdge-prevnext span{
    display:inline-block;
    padding:6px 10px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:8px;
    text-decoration:none
}
.gpdge-prevnext .gpdge-disabled{
    opacity:.5
}

/* ================================================
   EDITORIAL DATEBAR
   ================================================ */
.gpdge-layout-editorial-datebar .gpdge-card{
    border:1px solid rgba(0,0,0,.16);
    border-radius:0;
    box-shadow:none;
    overflow:hidden;
    background:#fff;
    height:100%
}
.gpdge-layout-editorial-datebar .gpdge-card__media img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    object-fit:cover
}
.gpdge-layout-editorial-datebar .gpdge-card__datebar{
    display:grid;
    grid-template-columns:104px 1fr;
    align-items:center;
    background:#eceeed;
    min-height:86px
}
.gpdge-layout-editorial-datebar .gpdge-card__datebox{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px 12px;
    color:#D2AA76;
    font-size:30px;
    line-height:1;
    font-weight:800
}
.gpdge-layout-editorial-datebar .gpdge-card__datebar-main{
    padding:12px 16px 12px 8px;
    display:flex;
    align-items:center;
    min-width:0;
    min-height:86px
}
.gpdge-layout-editorial-datebar .gpdge-card__title--datebar{
    margin:0;
    font-size:17px;
    line-height:1.15;
    font-weight:700;
    color:#5B5D5C;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:2.3em
}
.gpdge-layout-editorial-datebar .gpdge-card__title--datebar a{
    color:#5B5D5C;
    text-decoration:none
}
.gpdge-layout-editorial-datebar .gpdge-card__title--datebar a:hover{
    text-decoration:underline
}
.gpdge-layout-editorial-datebar.gpdge-style-border .gpdge-card,
.gpdge-layout-editorial-datebar.gpdge-style-boxed .gpdge-card,
.gpdge-layout-editorial-datebar.gpdge-style-shadow .gpdge-card,
.gpdge-layout-editorial-datebar.gpdge-style-none .gpdge-card{
    border:1px solid rgba(0,0,0,.16);
    box-shadow:none
}
@media (max-width:767px){
    .gpdge-layout-editorial-datebar .gpdge-card__datebar{
        grid-template-columns:88px 1fr;
        min-height:76px
    }
    .gpdge-layout-editorial-datebar .gpdge-card__datebox{
        font-size:26px;
        padding:12px 10px
    }
    .gpdge-layout-editorial-datebar .gpdge-card__datebar-main{
        min-height:76px;
        padding:10px 12px 10px 6px
    }
    .gpdge-layout-editorial-datebar .gpdge-card__title--datebar{
        font-size:15px
    }
}

/* ================================================
   EFEMERIDES DESTACADO LAYOUT
   ================================================ */
.gpdge-layout-efemerides-destacado{
    display:flex;
    flex-direction:column;
    gap:var(--gpdge-gap,16px)
}

.gpdge-layout-efemerides-destacado .gpdge-grid--efemerides{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:var(--gpdge-gap,16px);
    align-items:stretch
}

/* Destacada ocupa 2 columnas */
.gpdge-layout-efemerides-destacado .gpdge-card--featured{
    grid-column:span 2
}

.gpdge-layout-efemerides-destacado .gpdge-card{
    border:1px solid rgba(0,0,0,.16);
    border-radius:0;
    box-shadow:none;
    overflow:hidden;
    background:#fff;
    position:relative;
    height:100%
}

/* Línea negra vertical al lado izquierdo */
.gpdge-layout-efemerides-destacado .gpdge-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:1px;
    background:#000;
    z-index:1
}

/* Línea negra horizontal inferior */
.gpdge-layout-efemerides-destacado .gpdge-card::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:1px;
    background:#000
}

/* Card normal estándar */
.gpdge-layout-efemerides-destacado .gpdge-card__media img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block
}

/* Featured proporcional */
.gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__media img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block
}

/* Card adyacente a la destacada: puede estar a izquierda o derecha */
.gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured{
    display:flex;
    flex-direction:column;
    height:100%
}

.gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__media{
    flex:1 1 auto;
    min-height:0;
    display:flex
}

.gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__media img{
    width:100%;
    height:100%;
    min-height:100%;
    object-fit:cover;
    display:block
}

.gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__datebar{
    flex:0 0 auto;
    min-height:100px
}

.gpdge-layout-efemerides-destacado .gpdge-card__title--featured{
    font-size:22px;
    line-height:1.2;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden
}

.gpdge-layout-efemerides-destacado .gpdge-card__datebar{
    display:grid;
    grid-template-columns:104px 1fr;
    align-items:center;
    background:#eceeed;
    min-height:100px
}

.gpdge-layout-efemerides-destacado .gpdge-card__datebox{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
    color:#D2AA76;
    font-size:28px;
    line-height:1;
    font-weight:800
}

.gpdge-layout-efemerides-destacado .gpdge-card__datebar-main{
    padding:14px 16px 14px 8px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
    min-height:100px;
    overflow:hidden
}

.gpdge-layout-efemerides-destacado .gpdge-card__title--datebar{
    margin:0;
    font-size:16px;
    line-height:1.2;
    font-weight:700;
    color:#5B5D5C;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow:ellipsis;
    max-height:3.6em
}

.gpdge-layout-efemerides-destacado .gpdge-card__title--datebar a{
    color:#5B5D5C;
    text-decoration:none
}
.gpdge-layout-efemerides-destacado .gpdge-card__title--datebar a:hover{
    text-decoration:underline
}

@media (max-width:980px){
    .gpdge-layout-efemerides-destacado .gpdge-grid--efemerides{
        grid-template-columns:repeat(var(--gpdge-cols-t,2),minmax(0,1fr))
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured{
        grid-column:span 2
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__media img{
        height:240px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__media img{
        height:150px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__media img{
        height:100%;
        min-height:100%
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebar{
        grid-template-columns:90px 1fr;
        min-height:94px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebox{
        font-size:26px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebar-main{
        min-height:94px
    }
}

@media (max-width:600px){
    .gpdge-layout-efemerides-destacado .gpdge-grid--efemerides{
        grid-template-columns:1fr
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured,
    .gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured{
        grid-column:span 1
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebar{
        grid-template-columns:80px 1fr;
        min-height:90px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebox{
        font-size:24px;
        padding:10px 8px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__datebar-main{
        min-height:90px;
        padding:10px 12px 10px 6px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__title--datebar{
        font-size:14px;
        max-height:3.6em
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__media img{
        height:190px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__media img{
        height:140px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__media{
        display:block;
        flex:0 0 auto;
        height:auto
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--next-to-featured .gpdge-card__media img{
        height:140px;
        min-height:140px
    }

    .gpdge-layout-efemerides-destacado .gpdge-card__title--featured{
        font-size:18px
    }
}

/* Bloque para celulares unicamente */
@media (max-width:600px){

    .gpdge-layout-efemerides-destacado .gpdge-card--featured{
        border:1px solid rgba(0,0,0,.16);
        box-shadow:none;
    }

 .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__media img{
    height:370px;
    object-fit:cover;
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__datebar{
        min-height:100px;
        background:#eceeed;
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__datebox{
        font-size:24px;
        font-weight:800;
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__datebar-main{
        min-height:100px;
        padding:10px 12px 10px 6px;
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured .gpdge-card__title--datebar{
        font-size:14px;
        line-height:1.2;
        -webkit-line-clamp:3;
        max-height:3.6em;
    }

    .gpdge-layout-efemerides-destacado .gpdge-card--featured::after{
        content:'';
        display:none;
    }
}