/* Bestiario v0.10 - acentos vino globales, sutiles y editoriales */

:root {
    --wine-soft: rgba(var(--wine-rgb),.08);
    --wine-line: rgba(var(--wine-rgb),.28);
}

::selection { background: var(--wine); color: var(--paper); }

/* Header y navegacion */
.topbar-link {
    padding: 4px 11px;
    border: 1px solid rgba(var(--paper-rgb),.12);
    border-radius: 999px;
    background: var(--wine);
    color: var(--paper);
    transition: background .25s ease, color .25s ease, transform .25s var(--ease), border-color .25s ease;
}
.topbar-link:hover {
    background: var(--beige);
    color: var(--green);
    border-color: var(--beige);
    transform: translateY(-1px);
}
.primary-nav ul { gap: clamp(11px,1.45vw,24px); }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--wine); }
.icon-button:hover { background: var(--wine); border-color: var(--wine); }

/* Jerarquia editorial: el vino aparece sobre todo en microtitulos y detalles. */
.home-hero .eyebrow,
.featured-section .section-heading:not(.light) .eyebrow,
.explore-intro .eyebrow,
.manifesto-home-copy .eyebrow,
.readings-heading .eyebrow,
.social-home-copy .eyebrow,
.archive-hero .eyebrow,
.authors-hero .eyebrow,
.about-hero .eyebrow,
.contact-page-hero .eyebrow,
.columns-page-hero .eyebrow,
.issue-magazine-hero .eyebrow,
.article-hero .eyebrow,
.author-hero .eyebrow,
.taxonomy-hero:not(.dark-taxonomy) .eyebrow,
.columns-latest-heading .eyebrow,
.issue-content-heading .eyebrow {
    color: var(--wine);
}

/* Separadores breves para dar ritmo sin pintar bloques completos. */
.section-heading:not(.light) h2::after,
.columns-latest-heading h2::after,
.issue-content-heading h2::after {
    content: '';
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 16px;
    background: var(--wine);
    transform-origin: left center;
    transition: width .35s var(--ease);
}
.section-heading:not(.light):hover h2::after,
.columns-latest-heading:hover h2::after,
.issue-content-heading:hover h2::after { width: 92px; }

/* Enlaces, metadata y controles */
.text-link:not(.light):hover,
.article-byline a:hover,
.entry-content a:hover { color: var(--wine); }
.article-byline a { color: var(--wine); }
.entry-content a { text-decoration-color: var(--wine-line); }
.circle-link:hover,
.page-numbers.current,
.page-numbers:hover { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.button-outline:hover { background: var(--wine); border-color: var(--wine); color: var(--paper); }

/* Tarjetas: linea vino al interactuar, manteniendo imagen y papel como protagonistas. */
.post-card-image,
.collaborator-photo { position: relative; }
.post-card-image::after,
.collaborator-photo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--wine);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .4s var(--ease);
    pointer-events: none;
}
.post-card:hover .post-card-image::after,
.collaborator-card:hover .collaborator-photo::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Home */
.readings-status-current,
.readings-status-total { color: var(--wine); }
.social-home-link:hover,
.social-home-link:focus-visible { background: var(--wine); }
.social-home-link:hover .social-home-icon,
.social-home-link:focus-visible .social-home-icon { background: rgba(var(--paper-rgb),.08); }

/* Formularios y estados */
.archive-filter select:focus,
.archive-filter input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.editorial-form input:focus,
.editorial-form textarea:focus,
.editorial-form select:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px var(--wine-soft);
}
.form-consent input { accent-color: var(--wine); }
.editorial-form input[type="file"]::file-selector-button:hover { background: var(--wine); }

/* Footer: solo un detalle, sin competir con el verde principal. */
.footer-label { color: var(--beige); }
.footer-nav a:hover { color: var(--beige); }
.footer-bottom a { position: relative; }
.footer-bottom a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1px;
    background: var(--wine);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.footer-bottom a:hover::after { transform: scaleX(1); }

/* Accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .mobile-nav > ul > li.current-menu-item > a,
    .mobile-nav > ul > li.current_page_item > a {
        color: var(--beige);
        box-shadow: inset 3px 0 0 var(--wine);
        padding-left: 14px;
    }
    .mobile-panel-footer > a:hover { color: var(--beige); }
}

@media (max-width: 680px) {
    .section-heading:not(.light) h2::after,
    .columns-latest-heading h2::after,
    .issue-content-heading h2::after {
        width: 42px;
        margin-top: 12px;
    }
}
