
/* ==========================================================================
   ESTILOS EDITORIALES PREMIUM · CUADERNO DE SAL (ANCHO COMPLETO 4 COLUMNAS)
   ========================================================================== */
.sn-blog-page-main {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 4vw, 4.5rem);
    margin-top: calc(var(--i2-header-h, 140px) + var(--i2-gap, 24px));
    margin-bottom: 0;
}

/* 1. HERO PANORÁMICO EDITORIAL CON IMAGEN */
.sn-blog-hero-wrap {
    position: relative;
    width: 100%;
    height: clamp(380px, 48vh, 500px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
}
.sn-blog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.sn-blog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transform: scale(-1.04, 1.04);
    animation: snBlogHeroZoom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes snBlogHeroZoom {
    0% {
        transform: scale(-1.05, 1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(-1, 1);
        opacity: 1;
    }
}

.sn-blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 18, 16, 0.7) 0%, rgba(18, 18, 16, 0.32) 48%, rgba(18, 18, 16, 0.04) 100%),
                linear-gradient(180deg, rgba(18, 18, 16, 0) 50%, rgba(18, 18, 16, 0.55) 100%);
    z-index: 2;
}
.sn-blog-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-sizing: border-box;
    color: #ffffff;
}

.sn-blog-hero-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--i2-sky, #81d7ee);
    margin: 0 0 0.65rem 0;
    display: block;
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    animation: snHeroTagIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

@keyframes snHeroTagIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.sn-blog-hero-title {
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem 0;
    color: #ffffff;
    max-width: 650px;
}

.sn-blog-hero-title .i2-mask-wrap:nth-child(1) .i2-mask-inner {
    animation: snHeroTitleMask 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}
.sn-blog-hero-title .i2-mask-wrap:nth-child(2) .i2-mask-inner {
    animation: snHeroTitleMask 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

@keyframes snHeroTitleMask {
    0% {
        transform: translate3d(0, 100%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.sn-blog-hero-lead {
    font-size: clamp(0.95rem, 1.08vw, 1.08rem);
    font-weight: 400;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 520px;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    animation: snHeroLeadIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

@keyframes snHeroLeadIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 2. LAYOUT EDITORIAL: GRID DE ARTÍCULOS + SIDEBAR A LA DERECHA */
.sn-blog-feed-section {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.sn-blog-layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(2rem, 3.2vw, 3.5rem);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.sn-blog-grid-4col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 2.4vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1380px) {
    .sn-blog-grid-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.5rem, 2.2vw, 2.25rem);
    }
}

@media (max-width: 1024px) {
    .sn-blog-layout-2col {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }
}

/* SIDEBAR EDITORIAL CUADERNO DE SAL */
.sn-blog-sidebar {
    width: 100%;
    position: sticky;
    top: calc(var(--i2-header-h, 140px) + 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .sn-blog-sidebar {
        position: static;
        top: auto;
    }
}

.sn-blog-widget {
    background: #ffffff;
    border: 1px solid rgba(18, 18, 16, 0.09);
    padding: clamp(1.4rem, 2vw, 1.85rem);
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sn-blog-widget-editorial {
    background: #fbf9f5;
    border-color: rgba(18, 18, 16, 0.08);
}

.sn-blog-widget-mint {
    background: rgba(154, 213, 198, 0.18);
    border-color: rgba(154, 213, 198, 0.45);
}

.sn-blog-widget-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #008874;
    margin: 0 0 0.45rem 0;
}

.sn-blog-widget-title {
    font-size: clamp(1.15rem, 1.35vw, 1.32rem);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: #121210;
    margin: 0 0 0.85rem 0;
}

.sn-blog-widget-text {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.62;
    color: rgba(18, 18, 16, 0.82);
    margin: 0 0 0.85rem 0;
}

.sn-blog-widget-text:last-child {
    margin-bottom: 0;
}

.sn-blog-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sn-blog-facts-list li {
    font-size: 0.85rem;
    line-height: 1.48;
    color: rgba(18, 18, 16, 0.82);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(18, 18, 16, 0.07);
}

.sn-blog-facts-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sn-blog-facts-list strong {
    color: #121210;
    font-weight: 600;
}

.sn-blog-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sn-blog-links-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    background: #fafbfc;
    border: 1px solid rgba(18, 18, 16, 0.07);
    font-size: 0.84rem;
    font-weight: 500;
    color: #121210;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sn-blog-links-list a:hover {
    transform: translateX(3px);
    background: #ffffff;
    border-color: rgba(18, 18, 16, 0.22);
}

.sn-blog-sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sn-blog-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.62rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: 999px;
    box-sizing: border-box;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.sn-blog-sidebar-btn-primary {
    background-color: var(--i2-mint, #9ad5c6);
    color: #121210;
    box-shadow: 0 2px 8px rgba(154, 213, 198, 0.35);
}

.sn-blog-sidebar-btn-primary:hover {
    background-color: #88c9b9;
    transform: translateY(-2px);
}

.sn-blog-sidebar-btn-secondary {
    background-color: transparent;
    color: #121210;
    border: 1.5px solid var(--i2-mint, #9ad5c6);
}

.sn-blog-sidebar-btn-secondary:hover {
    background-color: var(--i2-mint, #9ad5c6);
    transform: translateY(-2px);
}

@media (max-width: 950px) {
    .sn-blog-page-main {
        margin-top: calc(var(--i2-header-h, 68px) + 0.75rem);
        gap: 2.5rem;
    }
    .sn-blog-hero-content {
        padding: 2rem 24px;
    }
    .sn-blog-hero-title {
        font-size: clamp(1.55rem, 5.2vw, 1.85rem) !important;
        font-weight: 600 !important;
        line-height: 1.16 !important;
    }
    .sn-blog-hero-lead {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }
    .sn-blog-feed-section {
        padding: 0 8px;
        margin: 0 auto;
    }
    .sn-blog-grid-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
    .sn-post-title {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }
    .sn-post-excerpt {
        font-size: 0.88rem !important;
        line-height: 1.52 !important;
    }
}

@media (max-width: 580px) {
    .sn-blog-grid-4col {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .sn-post-card {
        max-width: 100% !important;
    }
}

/* TARJETA DE ARTÍCULO */
.sn-post-card {
    background-color: #ffffff;
    border: 1px solid rgba(18, 18, 16, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: clamp(420px, 30vw, 490px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1), transform 0.78s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    will-change: opacity, transform;
}

.sn-post-card.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.sn-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(18, 18, 16, 0.22);
    box-shadow: 0 18px 40px rgba(18, 18, 16, 0.09);
}

.sn-post-card:focus-visible {
    outline: 3px solid #0b1a2d;
    outline-offset: 4px;
}

.sn-post-card[data-i2-delay="1"] { transition-delay: 0.05s; }
.sn-post-card[data-i2-delay="2"] { transition-delay: 0.1s; }
.sn-post-card[data-i2-delay="3"] { transition-delay: 0.15s; }
.sn-post-card[data-i2-delay="4"] { transition-delay: 0.2s; }

.sn-post-img-box {
    width: 100%;
    height: clamp(165px, 12vw, 205px);
    overflow: hidden;
    position: relative;
    background: #f6f3eb;
}
.sn-post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.sn-post-card.is-visible .sn-post-img-box img {
    transform: scale(1);
}
.sn-post-card:hover .sn-post-img-box img {
    transform: scale(1.07);
}

.sn-post-tag-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #121210;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
    transition: transform 0.25s ease;
}
.sn-post-card:hover .sn-post-tag-pill {
    transform: translateY(-2px);
}

.sn-post-content {
    padding: clamp(1.3rem, 1.6vw, 1.8rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    box-sizing: border-box;
}

.sn-post-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(18, 18, 16, 0.55);
    margin-bottom: 0.9rem;
    font-weight: 400;
}

.sn-post-title {
    font-size: clamp(1.18rem, 1.4vw, 1.4rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 0.85rem 0;
    color: #121210;
    transition: color 0.25s ease;
}
.sn-post-card:hover .sn-post-title {
    color: #0b1a2d;
}

.sn-post-card .i2-mask-inner {
    transform: translate3d(0, 100%, 0);
    transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
}
.sn-post-card.is-visible .i2-mask-inner {
    transform: translate3d(0, 0, 0);
}

.sn-post-excerpt {
    font-size: clamp(0.88rem, 0.96vw, 1rem);
    font-weight: 400;
    line-height: 1.52;
    color: #2b2b2b;
    margin: 0 0 1.4rem 0;
}

.sn-post-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #121210;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}
.sn-post-action::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}
.sn-post-card:hover .sn-post-action {
    transform: translateX(5px);
    color: #0b1a2d;
}
