/* ════════════════════════════════════════════════════
   Carbón Libros — main.css v2
   Tipografías: Arché Grotesk (sans) + Fenix (serif)
   ════════════════════════════════════════════════════ */

/* ── FUENTES PROPIAS ── */
@font-face {
    font-family: 'Arche';
    src: url('../fonts/CFArcheGrotesk-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Arche';
    src: url('../fonts/CFArcheGrotesk-Italic.woff2') format('woff2');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Arche';
    src: url('../fonts/CFArcheGrotesk-Medium.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Arche';
    src: url('../fonts/CFArcheGrotesk-MediumItalic.woff2') format('woff2');
    font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Fenix';
    src: url('../fonts/CFFenix-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Fenix';
    src: url('../fonts/CFFenix-Italic.woff2') format('woff2');
    font-weight: 400; font-style: italic; font-display: swap;
}

/* ── VARIABLES ── */
:root {
    --bg:    #191919;
    --fg:    #F0F0EC;
    --mid:   #9e9e9e;
    --dim:   #585858;
    --rule:  1px solid #303030;
    --sans:  'Arche', system-ui, sans-serif;
    --serif: 'Fenix', Georgia, serif;
    --nav-h: 54px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.nav {
    position: sticky; top: 0; z-index: 200;
    background: var(--bg);
    border-bottom: var(--rule);
    height: var(--nav-h);
    display: flex;
    align-items: stretch;
}
.nav-brand {
    display: flex; align-items: center;
    padding: 0 1.25rem;
    border-right: var(--rule);
    flex-shrink: 0;
    line-height: 0;
    transition: opacity .15s;
}
.nav-brand:hover { opacity: .7; }
.nav-logo-c { height: 26px; width: auto; display: block; }

.nav-links {
    display: flex; align-items: center;
    padding: 0 1.75rem; gap: 2rem; flex: 1;
}
.nav-link {
    font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--mid); transition: color .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--fg); }

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%; height: 88vh; min-height: 440px; max-height: 720px;
    overflow: hidden; border-bottom: var(--rule);
    background: #0e0e0e;
    display: flex; align-items: flex-end;
}
.hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.02); }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(6,6,6,.95) 0%, rgba(6,6,6,.25) 50%, transparent 80%);
}
.hero-dark { position: absolute; inset: 0; background: #0e0e0e; }
.hero-content {
    position: relative; z-index: 2;
    padding: 0 2.5rem 3rem; width: 100%;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.hero-text { max-width: 700px; }
.hero-title {
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 600; letter-spacing: -.03em;
    color: var(--fg); line-height: .93; margin-bottom: .75rem;
}
.hero-bajada {
    font-family: var(--serif);
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    line-height: 1.65; color: rgba(240,240,236,.6);
    font-weight: 400;
}
.hero-cta {
    flex-shrink: 0; font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--fg); border: 1px solid rgba(240,240,236,.22);
    padding: .7rem 1.5rem; transition: all .15s;
    align-self: flex-end; white-space: nowrap;
}
.hero-cta:hover { background: var(--fg); color: var(--bg); }

/* ════════════════════════════════════════════════════
   CATÁLOGO — GRID
   ════════════════════════════════════════════════════ */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 2rem; border-bottom: var(--rule);
}
.section-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.section-count { font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.book-card { border-right: var(--rule); border-bottom: var(--rule); }
.book-card:nth-child(2n) { border-right: none; }
.book-card-empty { border-bottom: var(--rule); }

.book-card-link {
    display: flex; flex-direction: column; height: 100%;
    transition: opacity .18s;
}
.book-card-link:hover { opacity: .85; }

.cover-zone {
    display: flex; justify-content: center; align-items: flex-end;
    padding: 2.75rem 2rem 2.25rem;
    transition: background-color .4s;
}
.book-cover {
    width: 58%; max-width: 240px; min-width: 120px;
    aspect-ratio: 11.5 / 17;
    box-shadow:
        0 4px 12px rgba(0,0,0,.12),
        0 12px 28px rgba(0,0,0,.14),
        0 24px 40px rgba(0,0,0,.10);
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
}
.book-card-link:hover .book-cover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 18px rgba(0,0,0,.14),
        0 20px 38px rgba(0,0,0,.16),
        0 36px 52px rgba(0,0,0,.12);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-placeholder {
    width: 100%; height: 100%; background: #222;
    display: flex; flex-direction: column;
    justify-content: space-between; padding: 14px 12px;
}
.cover-num { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,240,236,.35); }
.cover-placeholder-title { font-size: 11px; font-weight: 600; color: rgba(240,240,236,.7); line-height: 1.2; }

.book-info {
    padding: 1.5rem 2rem 2rem;
    display: flex; flex-direction: column; gap: .5rem; flex: 1;
}
.book-collection { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.book-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; color: var(--fg); line-height: 1.1; }
.book-author { font-size: 13px; font-weight: 400; color: var(--mid); }
.book-ficha {
    font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--mid); padding-top: .9rem; margin-top: auto;
    border-top: var(--rule); transition: color .15s;
}
.book-ficha::after { content: ' →'; }
.book-card-link:hover .book-ficha { color: var(--fg); }

/* ════════════════════════════════════════════════════
   SINGLE LIBRO
   El .libro-layout es un grid de 2 columnas.
   (Nombre distinto a 'single-libro' porque WordPress añade
   esa clase automáticamente al <body> y colisionaba.)
   No depende de ningún wrapper de WordPress.
   ════════════════════════════════════════════════════ */

/* Back bar */
.single-back {
    padding: .6rem 2rem; border-bottom: var(--rule);
}
.single-back a {
    font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--mid); transition: color .15s;
}
.single-back a:hover { color: var(--fg); }

/* Grid */
.libro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
/* Ocultar cualquier elemento inyectado por WordPress */
.libro-layout > *:not(.single-cover):not(.single-data) {
    display: none !important;
}

/* Columna izquierda — portada — declaración única */
.single-cover {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
    border-right: var(--rule);
    transition: background-color .4s;
}
.single-book {
    position: relative; z-index: 1;
    width: min(78%, 480px);
    aspect-ratio: 11.5 / 17;
    box-shadow:
        0 4px 14px rgba(0,0,0,.13),
        0 16px 36px rgba(0,0,0,.16),
        0 32px 52px rgba(0,0,0,.12);
    overflow: hidden;
}
.single-book img { width: 100%; height: 100%; object-fit: cover; }
.single-placeholder {
    width: 100%; height: 100%; background: #222;
    display: flex; align-items: flex-end; padding: 18px;
    font-size: 13px; font-weight: 600; color: rgba(240,240,236,.7);
    line-height: 1.2;
}

/* Columna derecha — datos */
.single-data {
    padding: 4rem 3.5rem 3rem;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.s-collection {
    font-size: 10px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--dim); margin-bottom: 1.25rem;
}
.s-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600; letter-spacing: -.03em;
    color: var(--fg); line-height: .95; margin-bottom: .85rem;
}
.s-author {
    font-size: 1rem; color: var(--mid);
    padding-bottom: 2.5rem; margin-bottom: 2.5rem;
    border-bottom: var(--rule);
}
.s-desc {
    font-family: var(--serif);
    font-size: 1.05rem; line-height: 1.78;
    color: #aaaaaa; margin-bottom: 2.5rem;
}
.s-desc p + p { margin-top: .9em; }

/* Galería */
.s-gallery { margin-bottom: 2.5rem; }
.s-gallery-label {
    font-size: 10px; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--dim); margin-bottom: .75rem;
}
.s-gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.s-gallery-thumb {
    aspect-ratio: 1; overflow: hidden; cursor: zoom-in;
    background: #222; transition: opacity .18s;
}
.s-gallery-thumb:hover { opacity: .85; }
.s-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-gallery-empty { aspect-ratio: 1; background: #1e1e1e; border: 1px dashed #2a2a2a; }

/* Ficha técnica */
.s-ficha {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: var(--rule); margin-bottom: 2.5rem;
}
.fi { padding: .8rem 0; border-bottom: var(--rule); }
.fi:nth-child(odd) { border-right: var(--rule); padding-right: 1.5rem; }
.fi:nth-child(even) { padding-left: 1.5rem; }
.fl { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .25rem; }
.fv { font-size: 14px; color: #b0b0b0; }


/* Navegación anterior / siguiente */
.s-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: var(--rule); margin-top: auto;
}
.s-nav-prev, .s-nav-next {
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .65rem; text-align: center;
    transition: background .18s;
}
.s-nav-prev { border-right: var(--rule); }
.s-nav-prev:hover, .s-nav-next:hover { background: rgba(255,255,255,.04); }
.s-nav-dir {
    font-size: 22px; font-weight: 400;
    color: var(--dim); transition: color .18s; line-height: 1;
}
.s-nav-title {
    font-size: 12px; font-weight: 600;
    letter-spacing: .04em;
    color: #888; line-height: 1.3;
    transition: color .18s;
    max-width: 180px;
}
.s-nav-prev:hover .s-nav-dir, .s-nav-next:hover .s-nav-dir { color: var(--fg); }
.s-nav-prev:hover .s-nav-title, .s-nav-next:hover .s-nav-title { color: #c0c0c0; }

/* ════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════ */
.lb {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.94);
    display: flex; align-items: center; justify-content: center;
}
.lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; cursor: default; }
.lb-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(240,240,236,.4); background: none; border: none; cursor: pointer; transition: color .15s;
}
.lb-close:hover { color: var(--fg); }
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 600; color: rgba(240,240,236,.3);
    background: none; border: none; cursor: pointer; padding: 1rem; transition: color .15s;
}
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
.lb-prev:hover, .lb-next:hover { color: var(--fg); }
.lb-count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-size: 10px; color: rgba(240,240,236,.3); }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer-top {
    position: relative; overflow: hidden;
    background: #1c1c1e;
    border-top: var(--rule);
    padding: 2.25rem 2.5rem;
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: center;
}
/* Textura carbón — grano */
.footer-top::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='6' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
/* Brillo metálico del grafito */
.footer-top::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 0%, rgba(200,210,220,.03) 40%, rgba(200,210,220,.05) 50%, rgba(200,210,220,.02) 60%, transparent 100%);
}
/* Trama de puntos */
.footer-top > * { position: relative; z-index: 1; }
.footer-brand { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #d0d0d4; }
.footer-location { font-family: var(--serif); font-size: 13px; color: #9a9aa0; font-style: italic; }
.footer-email { font-size: 12px; color: #9a9aa0; letter-spacing: .04em; }

.footer-bottom {
    background: #111113;
    border-top: 1px solid #1e1e20;
    padding: 1rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-copy { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #56565c; }
.footer-fnav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-fnav .nav-link, .footer-fnav a {
    font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
    color: #6a6a72; text-decoration: none; transition: color .15s;
}
.footer-fnav .nav-link:hover, .footer-fnav a:hover { color: #c0c0c4; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .single-data { padding: 3rem 2rem; }
}

@media (max-width: 767px) {
    .libro-layout { display: block; }
    .single-cover {
        position: relative; top: auto; height: auto;
        border-right: none; border-bottom: var(--rule);
        padding: 3rem 2rem;
    }
    .single-book { width: 55vw; max-width: 200px; }
    .single-data { padding: 2rem 1.5rem 3rem; }
    .s-gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 540px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .book-card { border-right: none; }
    .book-card-empty { display: none; }
    .hero-content { padding: 0 1.25rem 2rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-cta { align-self: flex-start; }
    .nav-links { padding: 0 1rem; gap: 1.25rem; }
    .nav-brand { padding: 0 1rem; }
    .nav-link.hide-mobile { display: none; }
    .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.8rem; }
    .book-title { font-size: 1rem; }
}


/* ── Admin bar de WP no debe entrar al grid ── */
#wpadminbar {
    position: fixed !important;
}
/* Cuando admin bar está activa, compensar el nav sticky */
.admin-bar .nav {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .nav { top: 46px; }
}

/* ── DÓNDE CONSEGUIRLO — enlace a Distribución ── */
.s-distrib-link {
    display: flex; justify-content: space-between; align-items: center;
    border-top: var(--rule); border-bottom: var(--rule);
    padding: 1.1rem 0; margin-bottom: 2.5rem;
    transition: opacity .18s;
}
.s-distrib-link:hover { opacity: .65; }
.s-distrib-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--fg);
}
.s-distrib-arrow { font-size: 18px; color: var(--mid); }

/* ════════════════════════════════════════════════════
   PÁGINA PLANA / POST  (.page-flat)
   Columna central, imagen destacada arriba
   ════════════════════════════════════════════════════ */
.page-flat { width: 100%; }
.page-hero-img {
    width: 100%;
    max-height: 62vh;
    overflow: hidden;
    border-bottom: var(--rule);
}
.page-hero-img img {
    width: 100%; height: 100%;
    max-height: 62vh;
    object-fit: cover;
    display: block;
}
.page-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4.5rem;
}
.post-meta {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1.25rem;
}
.post-cat {
    font-size: 10px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--mid); transition: color .15s;
}
.post-cat:hover { color: var(--fg); }
.post-meta-sep { color: var(--dim); }
.post-date {
    font-family: var(--serif); font-style: italic;
    font-size: 12px; color: var(--dim);
}
.page-title {
    font-size: clamp(1.9rem, 4.5vw, 3.1rem);
    font-weight: 600; letter-spacing: -.03em;
    line-height: 1; color: var(--fg);
    margin-bottom: 2.25rem;
}

/* Contenido Gutenberg */
.entry-rich {
    font-family: var(--serif);
    font-size: 1.08rem; line-height: 1.8;
    color: #b4b4ae;
}
.entry-rich p + p { margin-top: 1em; }
.entry-rich h2, .entry-rich h3, .entry-rich h4 {
    font-family: var(--sans); color: var(--fg);
    letter-spacing: -.02em; line-height: 1.15;
    margin: 2.2em 0 .7em;
}
.entry-rich h2 { font-size: 1.5rem; font-weight: 600; }
.entry-rich h3 { font-size: 1.2rem; font-weight: 600; }
.entry-rich h4 { font-size: 1rem;  font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.entry-rich a { color: var(--fg); border-bottom: 1px solid #4a4a48; transition: border-color .15s; }
.entry-rich a:hover { border-color: var(--fg); }
.entry-rich blockquote {
    border-left: 2px solid #3a3a38;
    padding-left: 1.5rem; margin: 1.8em 0;
    font-style: italic; color: #9a9890;
}
.entry-rich ul, .entry-rich ol { padding-left: 1.4rem; margin: 1em 0; }
.entry-rich li + li { margin-top: .4em; }
.entry-rich figure { margin: 2em 0; }
.entry-rich img { width: 100%; height: auto; }
.entry-rich figcaption {
    font-family: var(--sans); font-size: 11px;
    color: var(--dim); margin-top: .6rem;
    letter-spacing: .04em;
}
.entry-rich hr {
    border: none; border-top: var(--rule);
    margin: 2.5em 0;
}

/* ════════════════════════════════════════════════════
   BLOG — grilla 2 columnas, imagen cuadrada a sangre
   ════════════════════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.blog-card { border-right: var(--rule); border-bottom: var(--rule); }
.blog-card:nth-child(2n) { border-right: none; }
.blog-card-link {
    display: flex; flex-direction: column; height: 100%;
    transition: opacity .18s;
}
.blog-card-link:hover { opacity: .85; }
.blog-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #222;
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card-link:hover .blog-card-img img { transform: scale(1.025); }
.blog-card-placeholder { width: 100%; height: 100%; background: #202020; }
.blog-card-info {
    padding: 1.5rem 2rem 2rem;
    display: flex; flex-direction: column; gap: .5rem; flex: 1;
}
.blog-card-meta {
    display: flex; align-items: center; gap: .5rem;
}
.blog-card-cat {
    font-size: 10px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.blog-card-date {
    font-family: var(--serif); font-style: italic;
    font-size: 11px; color: var(--dim);
}
.blog-card-title {
    font-size: 1.15rem; font-weight: 600;
    letter-spacing: -.02em; color: var(--fg); line-height: 1.15;
}
.blog-empty {
    grid-column: 1 / -1;
    padding: 4rem 2rem; text-align: center;
    font-family: var(--serif); font-style: italic; color: var(--dim);
}
.blog-pagination {
    display: flex; justify-content: space-between;
    padding: 1rem 2rem; border-bottom: var(--rule);
}
.blog-pagination a {
    font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--mid); transition: color .15s;
}
.blog-pagination a:hover { color: var(--fg); }

/* ════════════════════════════════════════════════════
   AUTORES — grilla 3 columnas
   ════════════════════════════════════════════════════ */
.autores-intro {
    max-width: 720px;
    padding: 2.5rem 2rem 1rem;
}
.autores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.autor-card {
    border-right: var(--rule); border-bottom: var(--rule);
    padding: 0 0 2rem;
    display: flex; flex-direction: column;
}
.autor-card:nth-child(3n) { border-right: none; }
.autor-photo {
    aspect-ratio: 1; overflow: hidden; background: #222;
    margin-bottom: 1.4rem;
    filter: grayscale(1) contrast(1.04);
    transition: filter .4s ease;
}
.autor-card:hover .autor-photo { filter: grayscale(0) contrast(1); }
.autor-photo img { width: 100%; height: 100%; object-fit: cover; }
.autor-photo-placeholder { width: 100%; height: 100%; background: #202020; }
.autor-name {
    font-size: 1.1rem; font-weight: 600;
    letter-spacing: -.02em; color: var(--fg);
    padding: 0 1.75rem; margin-bottom: .6rem;
}
.autor-bio {
    font-family: var(--serif);
    font-size: .92rem; line-height: 1.7;
    color: #9e9e98;
    padding: 0 1.75rem; margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.autor-libros {
    margin-top: auto;
    padding: .9rem 1.75rem 0;
    border-top: var(--rule);
    margin-left: 1.75rem; margin-right: 1.75rem;
    padding-left: 0; padding-right: 0;
    display: flex; flex-direction: column; gap: .4rem;
}
.autor-libro-link {
    font-size: 11px; font-weight: 600;
    letter-spacing: .06em;
    color: var(--mid); transition: color .15s;
}
.autor-libro-link:hover { color: var(--fg); }

/* ── Refinamientos generales ── */
::selection { background: #F0F0EC; color: #191919; }
a:focus-visible, button:focus-visible {
    outline: 1px solid rgba(240,240,236,.5);
    outline-offset: 2px;
}

/* ── Responsive de las secciones nuevas ── */
@media (max-width: 900px) {
    .autores-grid { grid-template-columns: repeat(2, 1fr); }
    .autor-card:nth-child(3n) { border-right: var(--rule); }
    .autor-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card { border-right: none; }
    .autores-grid { grid-template-columns: 1fr; }
    .autor-card { border-right: none !important; }
    .page-body { padding: 2.5rem 1.25rem 3.5rem; }
}
