/* Blog Inpulso 43 — editorial calm (azul / piedra fresca) */
:root {
    --inpulso-azul: #2d4f82;
    --inpulso-rojo: #C64A49;
    --fondo-ergonomico: #CFC8B7;
    --blog-bg: #E6EBF0;
    --blog-ink: #152033;
    --blog-muted: #5A6573;
    --blog-paper: #F3F6F9;
    --blog-line: rgba(21, 32, 51, 0.1);
    --blog-deep: #1a2f4d;
    --fuente-titulos: 'Playfair Display', Georgia, serif;
    --fuente-textos: 'Montserrat', sans-serif;
    --radio-secciones: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--blog-bg);
    color: var(--blog-ink);
    font-family: var(--fuente-textos);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

html.lenis, html.lenis body { height: auto; }
html.lenis body { overflow-y: auto; }

.blog-page-wrap { position: relative; z-index: 1; }

/* —— Atmosphere —— */
.blog-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 12% 18%, rgba(45, 79, 130, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 45% at 88% 72%, rgba(198, 74, 73, 0.1), transparent 50%),
        linear-gradient(165deg, #DDE5ED 0%, #E8EDF2 45%, #E3E8EE 100%);
}

.blog-ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Liquid glass buttons (mismo sistema que index / talleres) —— */
.apple-glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--fuente-textos);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.apple-glass-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.apple-glass-btn.dark-glass {
    color: var(--blog-ink);
    background: rgba(20, 25, 22, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.apple-glass-btn.dark-glass:hover {
    background: rgba(20, 25, 22, 0.1);
    color: var(--blog-ink);
}

.apple-glass-btn--on-light {
    background: rgba(255, 255, 255, 0.42);
    color: var(--inpulso-azul);
    border: 1px solid rgba(45, 79, 130, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(45, 79, 130, 0.1);
}

.apple-glass-btn--on-light:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--inpulso-azul);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(45, 79, 130, 0.14);
}

/* —— Hero (full-bleed composition) —— */
.blog-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
}

.blog-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.06);
    animation: blogHeroDrift 18s ease-in-out infinite alternate;
}

@keyframes blogHeroDrift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero__media img { animation: none; transform: scale(1.04); }
}

.blog-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 22, 38, 0.42) 0%, rgba(12, 22, 38, 0.2) 32%, rgba(12, 22, 38, 0.72) 68%, rgba(12, 22, 38, 0.94) 100%),
        linear-gradient(90deg, rgba(21, 40, 68, 0.5) 0%, transparent 58%);
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 7.5rem 0 4.5rem;
}

.blog-hero__brand {
    margin: 0 0 0.85rem;
    font-family: var(--fuente-titulos);
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.95;
    opacity: 0;
    animation: blogRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.blog-hero__title {
    margin: 0 0 1rem;
    max-width: 16ch;
    font-family: var(--fuente-titulos);
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: blogRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.blog-hero__lead {
    margin: 0 0 1.75rem;
    max-width: 38ch;
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    opacity: 0;
    animation: blogRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.blog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0;
    animation: blogRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

@keyframes blogRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-hero--empty {
    min-height: 70vh;
    background: var(--blog-deep);
}

.blog-hero--empty .blog-hero__inner { padding-bottom: 5rem; }

.blog-empty-banner {
    width: min(920px, calc(100% - 2.5rem));
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    color: var(--inpulso-rojo);
    font-weight: 600;
    background: rgba(198, 74, 73, 0.08);
    border-left: 3px solid var(--inpulso-rojo);
}

/* —— Tools —— */
.blog-tools {
    width: min(1100px, calc(100% - 2.5rem));
    margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
    position: relative;
    z-index: 2;
    padding: 0 0 1.15rem;
    background: transparent;
    border-bottom: 1px solid var(--blog-line);
}

.blog-tools__label {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blog-muted);
}

.blog-search {
    width: 100%;
    min-height: 50px;
    margin-bottom: 0.85rem;
    padding: 0 0.15rem;
    border: 0;
    border-bottom: 1px solid rgba(21, 32, 51, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--blog-ink);
    font-family: var(--fuente-textos);
    font-size: 1rem;
    outline: none;
}

.blog-search:focus {
    border-bottom-color: var(--inpulso-azul);
}

.blog-filter-row {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(45, 79, 130, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.blog-filter-row::-webkit-scrollbar { display: none; }

.blog-filter {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    min-height: 40px;
    background: transparent;
    color: var(--blog-muted);
    font-family: var(--fuente-textos);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.blog-filter:hover { color: var(--inpulso-azul); }
.blog-filter.is-active {
    background: rgba(45, 79, 130, 0.12);
    color: var(--inpulso-azul);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.blog-filter:focus-visible { outline: 2px solid var(--inpulso-azul); outline-offset: 2px; }

/* —— Feed —— */
.blog-feed-head {
    width: min(1100px, calc(100% - 2.5rem));
    margin: clamp(1.5rem, 3.5vw, 2.5rem) auto 1rem;
}

.blog-feed-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    flex-wrap: nowrap;
}

.blog-feed-head__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.blog-feed-head h2 {
    margin: 0;
    font-family: var(--fuente-titulos);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 400;
    color: var(--blog-deep);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.blog-feed-head p {
    display: none;
}

.blog-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(45, 79, 130, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.blog-view-toggle__label {
    display: none;
    padding-left: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blog-muted);
}

.blog-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: transparent;
    color: var(--blog-muted);
    font-family: var(--fuente-textos);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.blog-view-btn:hover { color: var(--inpulso-azul); }
.blog-view-btn.is-active {
    background: rgba(45, 79, 130, 0.12);
    color: var(--inpulso-azul);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.blog-view-btn:focus-visible { outline: 2px solid var(--inpulso-azul); outline-offset: 2px; }

.blog-view-btn__icon {
    display: grid;
    gap: 2px;
    width: 14px;
}
.blog-view-btn__icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.blog-view-btn__icon--grid {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}
.blog-view-btn__icon--grid span {
    width: 5px;
    height: 5px;
    border-radius: 1px;
}

.blog-windows-grid {
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto clamp(3rem, 8vw, 5.5rem);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.editorial-card {
    display: grid;
    grid-template-columns: minmax(140px, 280px) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: stretch;
    padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
    border: 0;
    border-bottom: 1px solid var(--blog-line);
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Vista cuadrícula */
.blog-windows-grid[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.blog-windows-grid[data-view="grid"] .editorial-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0 0 1rem;
    border: 1px solid rgba(45, 79, 130, 0.1);
    border-bottom: 1px solid rgba(45, 79, 130, 0.1);
    background: rgba(255, 255, 255, 0.42);
    overflow: hidden;
}

.blog-windows-grid[data-view="grid"] .editorial-card:first-child {
    border-top: 1px solid rgba(45, 79, 130, 0.1);
}

.blog-windows-grid[data-view="grid"] .editorial-card:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(21, 32, 51, 0.1);
}

.blog-windows-grid[data-view="grid"] .window-cover,
.blog-windows-grid[data-view="grid"] .window-cover img {
    min-height: 180px;
    max-height: 200px;
}

.blog-windows-grid[data-view="grid"] .window-body-inner {
    padding: 0 0.95rem 0.25rem;
}

.blog-windows-grid[data-view="grid"] .window-excerpt {
    -webkit-line-clamp: 3;
}

.blog-windows-grid[data-view="grid"] .editorial-card h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.blog-windows-grid[data-view="grid"] .window-open-btn {
    padding: 10px 16px;
    font-size: 0.68rem;
}

.editorial-card:first-child { border-top: 1px solid var(--blog-line); }
.editorial-card:hover { background: rgba(255, 255, 255, 0.35); }
.editorial-card:focus-visible {
    outline: 2px solid var(--inpulso-azul);
    outline-offset: 4px;
}

.editorial-card.is-hidden-by-filter { display: none; }

.window-cover {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    background: #c9d2dc;
}

.window-cover img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-card:hover .window-cover img { transform: scale(1.05); }

.window-body-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.15rem 0.25rem 0.15rem 0;
}

.window-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.meta-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--inpulso-rojo);
}

.meta-time {
    font-size: 0.72rem;
    color: var(--blog-muted);
    font-weight: 500;
}

.window-author {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--inpulso-azul);
}

.window-body h3,
.editorial-card h3 {
    margin: 0 0 0.55rem;
    font-family: var(--fuente-titulos);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--blog-deep);
}

.window-excerpt {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--blog-muted);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.window-footer { margin-top: auto; }

.window-open-btn {
    pointer-events: none;
    min-height: 40px;
    padding: 12px 22px;
    font-size: 0.75rem;
}

.blog-empty-state {
    display: none;
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto 3rem;
    padding: 1.25rem 0;
    color: var(--blog-muted);
    text-align: center;
}

.blog-empty-state.is-visible { display: block; }

.blog-content-store { display: none; }

.gsap-fade { opacity: 1; }

/* —— Reader —— */
.reader-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    background: rgba(12, 20, 34, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.reader-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.reader-window {
    width: min(820px, 100%);
    margin: 0 auto;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--blog-paper);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(18px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reader-overlay.is-open .reader-window { transform: translateY(0); }

.reader-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid var(--blog-line);
    flex-shrink: 0;
}

.reader-chrome .window-title-bar {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blog-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-reader {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 2px;
    background: rgba(45, 79, 130, 0.08);
    color: var(--inpulso-azul);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.close-reader:hover {
    background: rgba(198, 74, 73, 0.12);
    color: var(--inpulso-rojo);
}

.reader-progress {
    height: 3px;
    width: 100%;
    background: rgba(45, 79, 130, 0.1);
    flex-shrink: 0;
}

.reader-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--inpulso-azul), var(--inpulso-rojo));
    transition: width 0.12s linear;
}

.reader-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    background:
        linear-gradient(90deg, rgba(45, 79, 130, 0.035) 0%, transparent 18%),
        var(--blog-paper);
    color: var(--blog-ink);
}

.reader-body:focus { outline: none; }

.reader-body h2 {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    color: var(--blog-deep);
    margin: 0 0 0.75rem;
    line-height: 1.18;
    font-weight: 400;
}

.reader-body .article-byline {
    color: var(--inpulso-rojo);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--blog-line);
}

.reader-body h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.28rem;
    color: var(--blog-ink);
    margin: 2rem 0 0.75rem;
    font-weight: 600;
}

.reader-body p {
    font-size: 1.05rem;
    color: #2a3440;
    line-height: 1.9;
    margin: 0 0 1.35rem;
}

.reader-body ul {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
    color: #2a3440;
    line-height: 1.9;
}

.reader-body li { margin-bottom: 0.65rem; }
.reader-body strong { color: var(--blog-ink); font-weight: 600; }

.reader-body .article-cover,
.reader-body .article-figure {
    margin: 0 0 1.75rem;
    overflow: hidden;
}

.reader-body .article-cover img,
.reader-body .article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.reader-body .article-author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 2rem 0 1.5rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--blog-line);
    border-bottom: 1px solid var(--blog-line);
}

.reader-body .article-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reader-body .article-author-bio {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--blog-muted);
    margin: 0;
}

.reader-body .article-cta { display: none; }

.reader-actions {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--blog-line);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.reader-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

/* —— Footer (page-local mirror) —— */
.jm-footer {
    background: var(--fondo-ergonomico);
    padding: 6vh 5vw 4vh;
    border-radius: var(--radio-secciones) var(--radio-secciones) 0 0;
    margin-top: 2rem;
}

.jm-footer-logo-img {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link-group h4 {
    margin: 0 0 0.75rem;
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    font-weight: 600;
    color: var(--blog-deep);
}

.footer-link-group p {
    margin: 0 0 0.35rem;
    color: var(--blog-muted);
    font-size: 0.9rem;
}

.footer-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social-list a {
    color: var(--inpulso-azul);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-social-list a:hover { text-decoration: underline; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(21, 32, 51, 0.12);
}

.footer-links a {
    color: var(--blog-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--inpulso-azul); }

/* —— Responsive —— */
@media (max-width: 980px) {
    .blog-windows-grid[data-view="grid"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

@media (max-width: 820px) {
    .blog-hero__inner { padding: 6.5rem 0 3.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Lista móvil: miniatura + texto en fila (clara vs cuadrícula) */
    .blog-windows-grid[data-view="list"] {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .blog-windows-grid[data-view="list"] .editorial-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.85rem;
        align-items: center;
        padding: 0.9rem 0;
    }
    .blog-windows-grid[data-view="list"] .window-cover,
    .blog-windows-grid[data-view="list"] .window-cover img {
        min-height: 96px;
        max-height: 96px;
        height: 96px;
        width: 96px;
    }
    .blog-windows-grid[data-view="list"] .window-cover {
        width: 96px;
        flex-shrink: 0;
    }
    .blog-windows-grid[data-view="list"] .window-excerpt {
        display: none;
    }
    .blog-windows-grid[data-view="list"] .window-footer {
        display: none;
    }
    .blog-windows-grid[data-view="list"] .editorial-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 560px) {
    .blog-tools { width: calc(100% - 1.5rem); }
    .blog-feed-head,
    .blog-windows-grid,
    .blog-empty-state { width: calc(100% - 1.5rem); }

    .blog-feed-head {
        margin: 1.15rem auto 0.85rem;
    }
    .blog-feed-head__row {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.65rem;
    }
    .blog-feed-head__copy {
        flex: 1 1 auto;
    }
    .blog-view-toggle {
        width: auto;
        flex: 0 0 auto;
        max-width: 58%;
        justify-content: center;
        padding: 0.28rem;
    }
    .blog-view-btn {
        flex: 1 1 0;
        justify-content: center;
        min-height: 40px;
        padding: 0.55rem 0.55rem;
        gap: 0.3rem;
    }
    .blog-view-btn__text { display: inline; font-size: 0.62rem; }

    .blog-filter-row {
        border-radius: 22px;
        padding: 0.3rem;
    }
    .blog-filter {
        min-height: 38px;
        padding: 0.5rem 0.8rem;
    }

    /* Cuadrícula móvil: 2 columnas de tarjetas (se nota el cambio) */
    .blog-windows-grid[data-view="grid"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .blog-windows-grid[data-view="grid"] .editorial-card {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0 0 0.75rem;
        border-radius: 2px;
    }
    .blog-windows-grid[data-view="grid"] .window-cover,
    .blog-windows-grid[data-view="grid"] .window-cover img {
        min-height: 120px;
        max-height: 130px;
        width: 100%;
        height: auto;
    }
    .blog-windows-grid[data-view="grid"] .window-cover {
        width: 100%;
    }
    .blog-windows-grid[data-view="grid"] .window-body-inner {
        padding: 0 0.65rem 0.15rem;
    }
    .blog-windows-grid[data-view="grid"] .window-excerpt,
    .blog-windows-grid[data-view="grid"] .window-footer,
    .blog-windows-grid[data-view="grid"] .window-author {
        display: none;
    }
    .blog-windows-grid[data-view="grid"] .editorial-card h3 {
        font-size: 0.95rem;
        line-height: 1.25;
        margin-bottom: 0;
    }
    .blog-windows-grid[data-view="grid"] .window-meta {
        margin-bottom: 0.35rem;
    }
    .blog-windows-grid[data-view="grid"] .meta-time {
        display: none;
    }

    .blog-hero__actions { flex-direction: column; align-items: stretch; }
    .apple-glass-btn { width: 100%; }
    .reader-body { padding: 1.25rem 1.1rem 1.75rem; }
}


.blog-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 5vw 2.5rem;
}
.blog-load-more-wrap .apple-glass-btn {
    color: var(--inpulso-azul);
    text-shadow: none;
}
