/*==============================================================
  COMPONENTS — Editorial Style
  Alinea todos los componentes del blog al tono del ejemplo:
  Libre Baskerville + Mulish · paleta #faf9f7 · sin box-shadows
==============================================================*/

/* ─────────────────────────────────────────────
   1. LIKE BUTTON (views · likes · comments · read time)
───────────────────────────────────────────── */
.like-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    color: #aaa;
    font-weight: 400;
    margin-bottom: 1rem;
}

.like-bar i {
    font-size: 13px;
    margin-right: 4px;
    vertical-align: middle;
}

.like-bar .heartIcon {
    cursor: pointer;
    transition: color 0.2s;
}

.like-bar .heartIcon:hover,
.like-bar .heartIcon.liked {
    color: #c0392b;
}

/* Override del span inline que envuelve el componente */
.blog-details .article > span,
.post-entry > span,
.most-read__item span:has(.heartIcon) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 14px;
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    color: #aaa;
    margin-bottom: 0.75rem;
}


/* Ritmo entre categorías consecutivas: en vez de que todas
   compartan el mismo fondo blanco, las pares alternan a un
   tono cálido (el mismo que ya usa "Lo más leído"). */
.culture-category {
    padding: 4.5rem 0;
}

.culture-category--tint {
    background-color: #faf9f7;
}

/* ─────────────────────────────────────────────
   2. HOME POST PREVIEW  (.post-entry.lg)
   Compartido entre "Recientes" y los bloques por
   categoría, para que sea la misma tarjeta en todo
   el home — ya no hay un segundo sistema visual
   (el de main.css) conviviendo con el editorial.
───────────────────────────────────────────── */
.recent-posts .post-entry,
.culture-category .post-entry {
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.recent-posts .post-entry img,
.culture-category .post-entry img {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.3s;
}

.recent-posts .post-entry img:hover,
.culture-category .post-entry img:hover {
    opacity: 0.88;
}

.recent-posts .post-meta,
.culture-category .post-meta {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 6px;
}

.recent-posts .post-meta .categories,
.culture-category .post-meta .categories {
    color: var(--accent-color);
}

.recent-posts .post-entry h2,
.culture-category .post-entry h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-posts .post-entry.lg h2 {
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -0.01em;
    /* Reserva el alto de 2 líneas aunque el título solo ocupe 1,
       para que las tarjetas de una misma fila terminen parejas */
    min-height: 2.44em;
}

/* Tarjetas de categoría van a 4 por fila: título un poco más
   compacto que en "Recientes" (3 por fila) para que no se vea apretado */
.culture-category .post-entry.lg h2 {
    font-size: 17px;
    line-height: 1.3;
    min-height: 2.6em;
}

.recent-posts .post-entry h2 a,
.culture-category .post-entry h2 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-posts .post-entry h2 a:hover,
.culture-category .post-entry h2 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.recent-posts .post-entry p,
.culture-category .post-entry p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Recientes" va 3 por fila (más ancho): 3 líneas de overview.
   Las tarjetas de categoría van 4 por fila (más angostas): 2 líneas.
   Clamped en ambos casos para que las tarjetas de una misma fila
   terminen a la misma altura sin importar qué tan largo sea el texto. */
.recent-posts .post-entry p {
    -webkit-line-clamp: 3;
}

.culture-category .post-entry p {
    font-size: 14px;
    -webkit-line-clamp: 2;
}


/* ─────────────────────────────────────────────
   3. LO MÁS LEÍDO (.most-read) — franja a todo lo ancho,
   justo después del hero. Numerales grandes en serif,
   sin imágenes, separadores verticales entre columnas.
───────────────────────────────────────────── */
.most-read {
    background: #faf9f7;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.most-read__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.most-read__item {
    display: block;
    position: relative;
    padding: 0 28px 4px;
    text-decoration: none;
    border-left: 0.5px solid #e0ddd8;
}

.most-read__item:first-child {
    border-left: none;
    padding-left: 4px;
}

.most-read__number {
    display: block;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1;
    color: color-mix(in srgb, var(--accent-color), transparent 55%);
    margin-bottom: 1rem;
}

.most-read__title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
    color: #1a1916;
    margin: 0 0 0.9rem;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read__item:hover .most-read__title {
    color: var(--accent-color);
}

/* Like bar dentro de cada columna */
.most-read__item span:has(.heartIcon) {
    font-size: 10.5px;
    color: #aaa;
    gap: 0 10px;
}

@media (max-width: 991px) {
    .most-read__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .most-read__item:nth-child(odd) {
        border-left: none;
        padding-left: 4px;
    }

    .most-read__item:nth-child(even) {
        padding-right: 4px;
    }
}

@media (max-width: 576px) {
    .most-read__grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .most-read__item {
        border-left: none;
        border-top: 0.5px solid #e0ddd8;
        padding: 2rem 4px 0;
    }

    .most-read__item:first-child {
        border-top: none;
        padding-top: 0;
    }
}


/* ─────────────────────────────────────────────
   4. POST PREVIEW (category / blog list page)
   .blog-posts article
───────────────────────────────────────────── */
.blog-posts article {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    box-shadow: none;
    border: 0.5px solid #e8e5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.blog-posts article:hover {
    border-color: #c8c4be;
}

.blog-posts .post-img img {
    transition: transform 0.4s ease;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-posts article:hover .post-img img {
    transform: scale(1.04);
}

.blog-posts .post-date {
    background-color: var(--accent-color);
    color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    font-weight: 600;
}

.blog-posts .post-content {
    flex: 1 1 auto;
    padding: 20px 22px 22px;
}

.blog-posts .post-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-posts .post-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-posts .post-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.blog-posts .meta {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 0;
}

.blog-posts .meta span {
    font-size: 11px;
    color: #aaa;
}

.blog-posts p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.7;
    color: #555;
    margin-top: 12px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─────────────────────────────────────────────
   5. COMMENTS SECTION
───────────────────────────────────────────── */
.blog-comments {
    padding: 20px 0 10px;
    border-top: 0.5px solid #e0ddd8;
    margin-top: 2rem;
}

.blog-comments .comments-count {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    background: #fff;
    padding: 10px 0;
    border-bottom: 0.5px solid #e8e5e1;
}

/* Encabezado "Comentarios" pegajoso al hacer scroll dentro de la
   sección (antes vivía como <style> inline en el componente blade) */
.sticky-block {
    position: sticky;
    top: 77px;
    z-index: 10;
}

.blog-comments .comments-count .btn-link {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.blog-comments .comment {
    margin-top: 24px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #f0ede9;
}

.blog-comments .comment:last-child {
    border-bottom: none;
}

.blog-comments .comment .comment-img {
    margin-right: 14px;
    flex-shrink: 0;
}

.blog-comments .comment .comment-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0ddd8;
}

.blog-comments .comment h5 {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1916;
}

.blog-comments .comment h5 a {
    color: #1a1916;
    font-weight: 700;
}

.blog-comments .comment h5 a:hover {
    color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    padding-left: 12px;
    color: #bbb;
    transition: color 0.2s;
}

.blog-comments .comment h5 .reply:hover {
    color: var(--accent-color);
}

.blog-comments .comment h5 .reply i {
    font-size: 14px;
    vertical-align: middle;
}

.blog-comments .comment time {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 8px;
}

.blog-comments .comment p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: #3a3835;
    margin-bottom: 0;
}

.blog-comments .comment.comment-reply {
    padding-left: 36px;
    border-left: 1.5px solid #e8e5e1;
    margin-left: 22px;
}


/* ─────────────────────────────────────────────
   6. COMMENT FORM
───────────────────────────────────────────── */
.comment-form {
    padding-top: 2rem;
    border-top: 0.5px solid #e0ddd8;
    margin-top: 2rem;
}

.comment-form form {
    background-color: transparent;
    margin-top: 0;
    padding: 0;
    box-shadow: none;
}

.comment-form form h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.comment-form form p {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.comment-form form input,
.comment-form form textarea {
    background-color: #faf9f7;
    color: #1a1916;
    border: 0.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.comment-form form input:focus,
.comment-form form textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: none;
    outline: none;
}

.comment-form form input::placeholder,
.comment-form form textarea::placeholder {
    color: #bbb;
}

.comment-form form textarea {
    height: 130px;
    resize: vertical;
}

.comment-form form .form-group {
    margin-bottom: 18px;
}

.comment-form form .btn-primary {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 4px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    transition: background 0.2s;
}

.comment-form form .btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}


/* ─────────────────────────────────────────────
   7. NEWSLETTER CTA (#contacto)
───────────────────────────────────────────── */
#contacto .newsletter-form {
    max-width: 640px;
    margin: 2.5rem auto 0;
}

.newsletter-alert {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
}

.newsletter-alert--error {
    background: rgba(223, 21, 41, 0.12);
    border: 0.5px solid rgba(223, 21, 41, 0.4);
    color: #ff8d97;
}

.newsletter-alert--success {
    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.newsletter-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-form__field {
    flex: 1 1 220px;
}

.newsletter-form__input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    padding: 11px 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form__input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    outline: none;
    box-shadow: none;
}

.newsletter-form__row--submit {
    align-items: center;
    justify-content: space-between;
}

.newsletter-form__submit {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 4px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    margin-left: auto;
    transition: background 0.2s, opacity 0.2s;
}

.newsletter-form__submit:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.newsletter-form__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 575px) {
    .newsletter-form__row--submit {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form__submit {
        margin-left: 0;
    }
}

/* ─────────────────────────────────────────────
   8. SIDEBAR WIDGETS
───────────────────────────────────────────── */
.widget-item {
    margin-bottom: 28px;
    background-color: #faf9f7;
    border: 0.5px solid #e8e5e1;
    padding: 22px;
    border-radius: 6px;
}

.widget-title {
    font-family: 'Mulish', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    padding: 0 0 0 10px;
    margin: 0 0 16px 0;
    border-left: 2px solid var(--accent-color);
}

/* Recent posts */
.recent-posts-widget .post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid #eeebe7;
}

.recent-posts-widget .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-widget .post-item img {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
}

.recent-posts-widget .post-item h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    color: #1a1916;
}

.recent-posts-widget .post-item h4 a {
    color: #1a1916;
    transition: color 0.2s;
}

.recent-posts-widget .post-item h4 a:hover {
    color: var(--accent-color);
}

.recent-posts-widget .post-item time {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    color: #bbb;
    display: block;
    letter-spacing: 0.04em;
}

/* Author widget */
.blog-author-widget {
    border: 0.5px solid #e8e5e1;
    border-radius: 6px;
    padding: 20px;
    background: #faf9f7;
    margin-bottom: 20px;
}

.blog-author-widget img {
    max-width: 56px;
    height: 56px;
    object-fit: contain;
    margin-right: 14px;
    border-radius: 4px;
}

.blog-author-widget h4 {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1916;
    margin-bottom: 2px;
    padding: 0;
}

.blog-author-widget .social-links a {
    font-size: 16px;
    color: #bbb;
    margin-right: 6px;
    transition: color 0.2s;
}

.blog-author-widget .social-links a:hover {
    color: var(--accent-color);
}

/* Tags widget */
.tags-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags-widget ul li {
    display: inline-block;
}

.tags-widget ul a {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background-color: #f3f1ee;
    color: #777;
    border: 0.5px solid #ddd;
    border-radius: 3px;
    padding: 4px 12px;
    margin: 0 5px 7px 0;
    display: inline-block;
    transition: all 0.2s;
}

.tags-widget ul a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}


/* ─────────────────────────────────────────────
   8. PAGINATOR
───────────────────────────────────────────── */
.blog-pagination {
    padding-top: 0;
}

.blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination li a,
.blog-pagination li span {
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #888;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #e0ddd8;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    background: #faf9f7;
    min-width: 38px;
}

.blog-pagination li a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.blog-pagination li.active a,
.blog-pagination li a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.blog-pagination li.disabled span,
.blog-pagination li.disabled a {
    opacity: 0.35;
    pointer-events: none;
}


/* ─────────────────────────────────────────────
   9. PAGE TITLE (category / archive pages)
───────────────────────────────────────────── */
.page-title {
    background: #f3f1ee;
    border-bottom: 0.5px solid #e0ddd8;
    padding: 28px 0;
}

.page-title h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-title .breadcrumbs ol li a {
    color: var(--accent-color);
}

.page-title .breadcrumbs ol li.current {
    color: #aaa;
}

.page-title .breadcrumbs ol li + li::before {
    content: '·';
    padding-right: 6px;
    color: #ccc;
}

/* ─────────────────────────────────────────────
   10. HERO EDITORIAL (artículo destacado — pantalla completa)
   El progreso de scroll llega vía --hero-progress (JS en
   home-slider.blade.php). En prefers-reduced-motion la
   variable nunca cambia de 0, así que el hero queda estático.
───────────────────────────────────────────── */
.hero-editorial {
    position: relative;
    height: 100vh;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    background: #0b0b0a;
    isolation: isolate;
}

.hero-editorial__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scale(calc(1 + var(--hero-progress, 0) * 0.12));
}

.hero-editorial__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-editorial.no-image {
    background: linear-gradient(160deg, #141311 0%, #0b0b0a 70%);
}

/* Degradado de lectura: la parte alta de la imagen queda despejada,
   se oscurece progresivamente hacia abajo y se funde en negro justo
   detrás del texto, sea cual sea la imagen de fondo. */
.hero-editorial__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(6, 6, 5, 0) 0%,
        rgba(6, 6, 5, 0) 38%,
        rgba(6, 6, 5, 0.18) 52%,
        rgba(6, 6, 5, 0.55) 70%,
        rgba(6, 6, 5, 0.88) 88%,
        rgba(6, 6, 5, 0.97) 100%);
    opacity: calc(0.92 + var(--hero-progress, 0) * 0.08);
}

/* Franja sutil detrás del header flotante, independiente del degradado
   del texto, para que el logo/menú se lean aunque arriba del todo la
   imagen sea muy clara. */
.hero-editorial::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    height: 140px;
    background: linear-gradient(180deg, rgba(6, 6, 5, 0.5) 0%, rgba(6, 6, 5, 0) 100%);
    pointer-events: none;
}

/* El header flota transparente sobre el hero a pantalla completa y se
   vuelve sólido en cuanto el usuario hace scroll (clase .scrolled,
   ya la pone main.js). Así el hero ocupa el 100% real del viewport
   en vez de quedar recortado por la altura del header. */
body:has(.hero-editorial) #header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body:has(.hero-editorial) #header .sitename {
    color: #faf9f7;
}

body:has(.hero-editorial) #header .navmenu > ul > li > a {
    color: #faf9f7;
}

body:has(.hero-editorial) #header .navmenu > ul > li > a:hover,
body:has(.hero-editorial) #header .navmenu > ul > li > a.active {
    color: var(--accent-color);
}

body:has(.hero-editorial) #header .header-social-links a {
    color: #faf9f7;
}

body.scrolled:has(.hero-editorial) #header {
    position: fixed;
    background: var(--background-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

body.scrolled:has(.hero-editorial) #header .sitename,
body.scrolled:has(.hero-editorial) #header .navmenu > ul > li > a {
    color: var(--nav-color);
}

body.scrolled:has(.hero-editorial) #header .navmenu > ul > li > a.active,
body.scrolled:has(.hero-editorial) #header .navmenu > ul > li > a:hover {
    color: var(--nav-hover-color);
}

body.scrolled:has(.hero-editorial) #header .header-social-links a {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.hero-editorial__content {
    position: absolute;
    inset: 0;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, calc(var(--hero-progress, 0) * 60px));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10vh 48px 8vh;
    max-width: 920px;
    width: 100%;
    color: #faf9f7;
    opacity: calc(1 - var(--hero-progress, 0) * 1.3);
}

.hero-editorial__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d8d4cc;
    margin-bottom: 1.4rem;
}

.hero-editorial__kicker .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-block;
}

.hero-editorial__title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 1.4rem;
    color: #faf9f7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-editorial__title a {
    color: inherit;
    text-decoration: none;
}

.hero-editorial__overview {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.7;
    color: #cfcbc2;
    max-width: 640px;
    margin: 0 0 1.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-editorial__footer {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.hero-editorial__footer > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 14px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: #cfcbc2;
}

.hero-editorial__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Mulish', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #faf9f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(250, 249, 247, 0.5);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s, gap 0.2s;
}

.hero-editorial__cta:hover {
    color: var(--accent-color);
    border-color: currentColor;
    gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-editorial__media,
    .hero-editorial__content {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-editorial {
        min-height: 100vh;
    }

    .hero-editorial__content {
        padding: 0 24px 12vh;
    }
}

/* ─────────────────────────────────────────────
   11. NAV — DROPDOWN DE CATEGORÍAS
───────────────────────────────────────────── */
@media (min-width: 1200px) {
    .navmenu .dropdown ul {
        border: 0.5px solid #e0ddd8;
        border-radius: 4px;
        box-shadow: none;
    }

    .navmenu .dropdown ul a {
        font-family: 'Mulish', sans-serif;
        font-size: 13px;
    }

    .navmenu .dropdown ul .active {
        color: var(--nav-dropdown-hover-color);
    }
}