/* =========================================================
   BLOG · ALE MARTELL
========================================================= */

.blog-section,
.blog-listing{
    padding:100px 0;
    background:#FAF8F2;
}

.blog-header,
.blog-listing-header{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
    gap:60px;
    align-items:end;
    margin-bottom:44px;
}

.blog-header h2,
.blog-listing-header h1{
    max-width:760px;
    margin:10px 0 0;
    color:#4B4F35;
    font-size:clamp(42px,4.2vw,66px);
    line-height:.98;
}

.blog-header > p,
.blog-listing-header > p{
    max-width:520px;
    margin:0 0 4px;
    color:#65665A;
    font-size:16px;
    line-height:1.8;
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    align-items:start;
}

.blog-card{
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(99,103,66,.14);
    background:#fff;
    box-shadow:0 14px 36px rgba(75,79,53,.07);
    transition:transform .28s ease,box-shadow .28s ease;
}

.blog-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 50px rgba(75,79,53,.12);
}

.blog-card-image{
    display:block;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#E1E2CF;
}

.blog-card-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .4s ease;
}

.blog-card:hover .blog-card-image img{
    transform:scale(1.035);
}

.blog-card-content{
    padding:24px;
}

.blog-card-meta{
    display:flex;
    justify-content:space-between;
    gap:14px;
    margin-bottom:16px;
    padding-bottom:14px;
    border-bottom:1px solid rgba(99,103,66,.13);
    color:#8A8D5E;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
}

.blog-card h3{
    margin:0 0 12px;
    font-size:24px;
    line-height:1.17;
}

.blog-card h3 a{
    color:#4B4F35;
    text-decoration:none;
}

.blog-card p{
    margin:0 0 20px;
    color:#65665A;
    font-size:15px;
    line-height:1.72;
}

.blog-card-link,
.blog-footer-link a{
    color:#4B4F35;
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    text-decoration:none;
}

.blog-card-link span,
.blog-footer-link span{
    display:inline-block;
    margin-left:5px;
    transition:transform .22s ease;
}

.blog-card-link:hover span,
.blog-footer-link a:hover span{
    transform:translateX(3px);
}

.blog-footer-link{
    margin-top:30px;
    text-align:right;
}


/* LISTADO COMPLETO */

.blog-public-main{
    min-height:60vh;
}

.blog-grid-all{
    margin-top:10px;
}


/* DETALLE */

.blog-detail-header{
    padding:110px 0 58px;
    background:#F4F1E7;
}

.blog-detail-header-inner{
    max-width:1050px;
}

.blog-detail-meta{
    display:flex;
    gap:18px;
    align-items:center;
    margin-bottom:20px;
    color:#8A8D5E;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
}

.blog-detail h1{
    max-width:1050px;
    margin:0;
    color:#4B4F35;
    font-size:clamp(46px,6vw,82px);
    line-height:.98;
    letter-spacing:-.035em;
}

.blog-detail-header p{
    max-width:820px;
    margin:28px 0 0;
    color:#65665A;
    font-size:18px;
    line-height:1.75;
}

.blog-detail-image{
    margin-top:46px;
}

.blog-detail-image img{
    width:100%;
    max-height:680px;
    display:block;
    object-fit:cover;
}

.blog-detail-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 290px;
    gap:70px;
    align-items:start;
    padding-top:58px;
    padding-bottom:100px;
}

.blog-detail-content{
    max-width:800px;
}

.blog-detail-content p{
    margin:0 0 26px;
    color:#35372D;
    font-size:17px;
    line-height:1.9;
}

.blog-detail-aside{
    position:sticky;
    top:120px;
    padding:26px;
    background:#4B4F35;
    color:#fff;
}

.blog-detail-aside span{
    display:block;
    margin-bottom:8px;
    color:#B9BB98;
    font-size:11px;
    font-weight:800;
    letter-spacing:.10em;
}

.blog-detail-aside strong{
    display:block;
    font-size:25px;
    line-height:1.15;
}

.blog-detail-cta{
    display:inline-block;
    margin-top:25px;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}


/* 404 */

.blog-not-found{
    padding:130px 0;
    background:#FAF8F2;
}

.blog-not-found h1{
    margin:10px 0 18px;
    color:#4B4F35;
    font-size:clamp(42px,5vw,70px);
}

.blog-not-found p{
    max-width:620px;
    margin:0 0 28px;
    color:#65665A;
    font-size:16px;
    line-height:1.8;
}


/* RESPONSIVE */

@media(max-width:900px){
    .blog-header,
    .blog-listing-header{
        grid-template-columns:1fr;
        gap:18px;
    }

    .blog-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .blog-detail-layout{
        grid-template-columns:1fr;
        gap:35px;
    }

    .blog-detail-aside{
        position:static;
    }
}

@media(max-width:620px){
    .blog-section,
    .blog-listing{
        padding:76px 0;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }

    .blog-card h3{
        font-size:22px;
    }

    .blog-card p{
        font-size:15px;
    }

    .blog-detail-header{
        padding:85px 0 42px;
    }

    .blog-detail-header p{
        font-size:16px;
    }

    .blog-detail-content p{
        font-size:16px;
        line-height:1.85;
    }
}

/* =========================================================
   BLOG · COMPARTIR PREMIUM
========================================================= */

.blog-share{
    margin-top:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:22px 24px;
    border:1px solid rgba(75,79,53,.13);
    border-radius:16px;
    background:linear-gradient(135deg,#FAF8F2 0%,#F3F0E5 100%);
    box-shadow:0 10px 30px rgba(75,79,53,.045);
}

.blog-share-intro span,
.blog-share-intro strong{
    display:block;
}

.blog-share-intro span{
    margin-bottom:5px;
    color:#8A8D5E;
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
}

.blog-share-intro strong{
    color:#4B4F35;
    font-size:16px;
    line-height:1.4;
}

.blog-share-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
}

.blog-share-btn{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 15px;
    border:0;
    border-radius:10px;
    color:#fff;
    font:inherit;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(36,37,31,.10);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.blog-share-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 11px 24px rgba(36,37,31,.14);
    filter:brightness(1.03);
}

.blog-share-btn.whatsapp{
    background:#25D366;
}

.blog-share-btn.facebook{
    background:#1877F2;
}

.blog-share-btn.instagram{
    background:
        radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.blog-share-btn.copy{
    background:#73784E;
}

.blog-share-icon{
    width:19px;
    height:19px;
    flex:0 0 19px;
    display:inline-flex;
}

.blog-share-icon svg{
    width:100%;
    height:100%;
    display:block;
    fill:currentColor;
}

.blog-share-feedback{
    display:none;
    flex-basis:100%;
    margin-top:2px;
    color:#646844;
    font-size:12px;
    font-weight:700;
}

.blog-share-feedback.is-visible{
    display:block;
}


/* ---------------------------------------------------------
   COMPARTIR DESDE LAS TARJETAS DEL INDEX
--------------------------------------------------------- */

.blog-card-bottom{
    margin-top:auto;
    padding-top:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    border-top:1px solid rgba(75,79,53,.10);
}

.blog-card-share{
    position:relative;
    display:flex;
    align-items:center;
    gap:7px;
}

.blog-card-share-btn{
    width:37px;
    height:37px;
    flex:0 0 37px;
    padding:0;
    border:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    cursor:pointer;
    text-decoration:none;
    box-shadow:0 6px 15px rgba(36,37,31,.10);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.blog-card-share-btn:hover{
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 9px 18px rgba(36,37,31,.16);
    filter:brightness(1.03);
}

.blog-card-share-btn.whatsapp{
    background:#25D366;
}

.blog-card-share-btn.facebook{
    background:#1877F2;
}

.blog-card-share-btn.instagram{
    background:
        radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.blog-card-share-btn.copy{
    background:#73784E;
}

.blog-card-share-btn.is-success{
    background:#4B4F35;
}

.blog-card-share-btn svg{
    width:17px;
    height:17px;
    display:block;
    fill:currentColor;
}

.blog-card-share .blog-share-feedback{
    position:absolute;
    right:0;
    bottom:46px;
    width:max-content;
    max-width:190px;
    padding:7px 9px;
    border-radius:7px;
    background:#4B4F35;
    color:#fff;
    font-size:11px;
    font-weight:700;
    box-shadow:0 8px 20px rgba(36,37,31,.16);
}

.blog-card-share .blog-share-feedback::after{
    content:"";
    position:absolute;
    right:13px;
    bottom:-5px;
    width:10px;
    height:10px;
    background:#4B4F35;
    transform:rotate(45deg);
}


/* Ensure cards can place bottom row nicely */
.blog-card-content{
    display:flex;
    flex-direction:column;
}

.blog-card-content > p{
    flex-grow:1;
}


@media(max-width:900px){

    .blog-share{
        align-items:flex-start;
        flex-direction:column;
    }

    .blog-share-actions{
        justify-content:flex-start;
    }

}


@media(max-width:640px){

    .blog-share{
        padding:19px;
    }

    .blog-share-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        width:100%;
    }

    .blog-share-btn{
        width:100%;
        min-height:47px;
        padding:0 12px;
        font-size:12px;
    }

    .blog-card-bottom{
        align-items:flex-start;
        flex-direction:column;
    }

    .blog-card-share{
        width:100%;
    }

    .blog-card-share-btn{
        width:41px;
        height:41px;
        flex-basis:41px;
    }

}

/* =========================================================
   BLOG · SHARE BUTTONS · LUXURY COMPACT
   Más finos, discretos y elegantes
========================================================= */

.blog-share{
    margin-top:28px;
    gap:22px;
    padding:18px 20px;
    border:1px solid rgba(75,79,53,.10);
    border-radius:14px;
    background:rgba(250,248,242,.88);
    box-shadow:0 8px 24px rgba(75,79,53,.035);
}

.blog-share-intro span{
    margin-bottom:3px;
    font-size:10px;
    letter-spacing:.16em;
}

.blog-share-intro strong{
    font-size:14px;
    font-weight:600;
}

.blog-share-actions{
    gap:7px;
}

.blog-share-btn{
    min-height:38px;
    padding:0 11px;
    gap:7px;
    border:1px solid rgba(75,79,53,.10);
    border-radius:999px;
    box-shadow:none;
    font-size:11px;
    font-weight:700;
    letter-spacing:.01em;
}

.blog-share-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(36,37,31,.08);
}

/* Tonos más sofisticados */
.blog-share-btn.whatsapp{
    background:#355F49;
}

.blog-share-btn.facebook{
    background:#405D82;
}

.blog-share-btn.instagram{
    background:
        linear-gradient(135deg,#9C6A70 0%,#8B5E78 45%,#6A6688 100%);
}

.blog-share-btn.copy{
    background:#6E7350;
}

.blog-share-icon{
    width:15px;
    height:15px;
    flex-basis:15px;
}


/* ---------------------------------------------------------
   INDEX · ICONOS MÁS PEQUEÑOS Y LUJOSOS
--------------------------------------------------------- */

.blog-card-bottom{
    margin-top:16px;
    padding-top:14px;
    gap:14px;
}

.blog-card-share{
    gap:6px;
}

.blog-card-share-btn{
    width:31px;
    height:31px;
    flex-basis:31px;
    border:1px solid rgba(255,255,255,.34);
    box-shadow:0 4px 12px rgba(36,37,31,.08);
}

.blog-card-share-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(36,37,31,.11);
}

.blog-card-share-btn.whatsapp{
    background:#355F49;
}

.blog-card-share-btn.facebook{
    background:#405D82;
}

.blog-card-share-btn.instagram{
    background:
        linear-gradient(135deg,#9C6A70 0%,#8B5E78 45%,#6A6688 100%);
}

.blog-card-share-btn.copy{
    background:#6E7350;
}

.blog-card-share-btn svg{
    width:14px;
    height:14px;
}

.blog-card-share .blog-share-feedback{
    bottom:39px;
    padding:6px 8px;
    border-radius:6px;
    font-size:10px;
}


/* ---------------------------------------------------------
   MÓVIL
--------------------------------------------------------- */

@media(max-width:640px){

    .blog-share{
        padding:16px;
    }

    .blog-share-actions{
        display:flex;
        flex-wrap:wrap;
        gap:7px;
    }

    .blog-share-btn{
        width:auto;
        min-height:38px;
        padding:0 10px;
        font-size:11px;
    }

    .blog-card-bottom{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }

    .blog-card-share{
        width:auto;
    }

    .blog-card-share-btn{
        width:31px;
        height:31px;
        flex-basis:31px;
    }
}


/* =========================================================
   AJUSTE FINAL · BOTÓN "COMPARTIR"
========================================================= */

.blog-share-btn.share{
    background:#5F6542;
    color:#fff;
}

.blog-card-share-btn.share{
    background:#5F6542;
    color:#fff;
}

.blog-share-btn.share:hover,
.blog-card-share-btn.share:hover{
    background:#6D734B;
}
