/* Overrides Kingnews */

:root {
  /* Fluido como la demo Kingnews; tope solo en pantallas muy anchas */
  --site-max-width: 100%;
  --site-gutter: 1.875rem;
  --header-bar-height: 56px;
}

@media (min-width: 1820px) {
  :root {
    --site-max-width: 1788px;
  }
}

/* El tema pone overflow:hidden en .site y rompe position:sticky */
#page.site {
    overflow: visible;
}

/* Misma columna de contenido: cabecera y main */
.site-header__wrap.container,
.site #content.site-content.container {
    width: 100%;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    box-sizing: border-box;
}

/* El row del tema no compensa el padding con border-box: queda 60px corto a la derecha */
.site #content .site-content__wrap.row {
    width: calc(100% + (2 * var(--site-gutter)));
    max-width: calc(100% + (2 * var(--site-gutter)));
    margin-left: calc(-1 * var(--site-gutter));
    margin-right: calc(-1 * var(--site-gutter));
    overflow: visible;
}

#primary,
#secondary {
    overflow: visible;
}

.site-header__wrap.container {
    padding-top: 6px;
    padding-bottom: 0;
}

/* Tipografía menú — Noto Sans 12px (como Kingnews) */
.site-header__default .main-navigation__default .menu > li > a,
.site-header__default .main-navigation a {
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header__default .main-navigation__default .menu > li > a {
    padding: 18px 12px;
}

.site-header__bar .main-navigation__default .menu > li > a {
    padding: 0 12px;
    height: var(--header-bar-height);
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 1120px) {
    .site-header__default .main-navigation__default .menu > li > a {
        font-size: 12px;
        padding: 20px 14px;
    }

    .site-header__bar .main-navigation__default .menu > li > a {
        padding: 0 14px;
    }
}

@media (max-width: 1119px) {
    .site-header__default .main-navigation__default .menu > li > a {
        font-size: 12px;
        padding: 16px 8px 20px;
    }

    .site-header__bar .main-navigation__default .menu > li > a {
        padding: 0 8px;
    }
}

.site-header__default .header-container {
    border-bottom: 2px solid #000;
    position: relative;
    overflow: visible;
}

/* Layout cabecera: logo 1/4 + banner/menú 3/4 (tablet y escritorio) */
.site-header__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    grid-template-rows: auto;
    align-items: stretch;
    width: 100%;
}

.site-header__layout--with-banner {
    grid-template-rows: auto var(--header-bar-height);
}

.site-header__logo-slot {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.5rem 0.75rem;
}

.site-header__layout--with-banner .site-header__logo-slot {
    grid-row: 1 / -1;
    position: relative;
    min-height: 0;
    padding: 0;
    align-self: stretch;
    overflow: hidden;
    z-index: 0;
}

.site-header__layout--with-banner .site-header__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem 0.75rem;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.site-header__banner {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    align-self: start;
    line-height: 0;
}

.site-header__bar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-width: 0;
    min-height: var(--header-bar-height);
    height: var(--header-bar-height);
    box-sizing: border-box;
}

.site-header__bar .header-menu {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: stretch;
    height: 100%;
}

@media (min-width: 940px) {
    .site-header__bar .main-navigation__default {
        display: block;
        text-align: left;
        height: 100%;
        max-width: 100%;
        vertical-align: top;
    }

    .site-header__bar .main-navigation-inner {
        height: 100%;
    }

    .site-header__bar .main-navigation__default .menu {
        align-items: stretch;
        height: 100%;
    }

    .site-header__bar .main-navigation__default .menu > li {
        display: flex;
        align-items: stretch;
    }
}

.site-header__bar .social-list--header {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

.site-header__layout--with-banner .site-header__bar {
    grid-row: 2;
    background: #fff;
}

@media (min-width: 940px) {
    .site-header__layout--with-banner .site-header__bar {
        position: relative;
        z-index: 1;
    }
}

.site-header__logo .site-logo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.site-header__logo .site-logo.retina-logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    object-position: center center;
}

.site-header__layout--with-banner .site-header__logo .site-logo.retina-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-header__layout--with-banner .site-header__logo .site-logo__link,
.site-header__layout--with-banner .site-header__logo .site-logo.retina-logo {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.site-header__banner .site-banner--embedded {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.site-header__banner .site-banner--embedded .site-banner__slide,
.site-header__banner .site-banner--embedded picture,
.site-header__banner .site-banner--embedded a {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Proporción 1200×180: el alto baja fluido con el ancho, sin escalones */
.site-header__banner .site-banner--embedded img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1200 / 180;
    display: block;
    max-height: none;
    object-fit: unset;
    object-position: center center;
    vertical-align: top;
}

.site-header__banner .site-banner--rotator {
    width: 100%;
    aspect-ratio: 1200 / 180;
    position: relative;
    overflow: hidden;
}

.site-header__banner .site-banner--rotator .site-banner__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.site-header__banner .site-banner--rotator .site-banner__slide.is-active {
    position: absolute;
    opacity: 1;
    visibility: visible;
}

.site-header__banner .site-banner--rotator .site-banner__slide picture,
.site-header__banner .site-banner--rotator .site-banner__slide a {
    width: 100%;
    height: 100%;
}

.site-header__banner .site-banner--rotator img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
}

/* Menú en flex: evita el hueco de 1px entre el primer y segundo ítem (inline-block) */
.site-header__default .main-navigation__default .menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
}

.site-header__default .main-navigation__default .menu > li {
    margin-right: 0;
    display: block;
    flex: 0 0 auto;
}

.site-header__default .main-navigation__default .menu > li > a::before {
    bottom: -2px;
    height: 2px;
    transition: none;
    z-index: 3;
}

.site-header__bar .main-navigation__default .menu > li > a::before {
    bottom: -2px;
}

/* Icono X (Twitter) — mismo hover que el resto: círculo amarillo + icono negro */
.site-header__default .social-list--header .menu-item--social-x > a::before,
.site-header__default .social-list--header .menu-item--social-x .social-list__placeholder::before,
.social-list--header .menu-item--social-x > a[href*="twitter.com"]::before,
.social-list--header .menu-item--social-x > a[href*="x.com"]::before {
    content: "";
    font-family: inherit;
    font-size: 0;
    line-height: 0;
    border-radius: 50%;
    color: #999;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
    mask-image: none;
    -webkit-mask-image: none;
    transition: 0.4s all ease;
}

.site-header__default .social-list--header .menu-item--social-x > a:hover::before,
.social-list--header .menu-item--social-x > a[href*="twitter.com"]:hover::before,
.social-list--header .menu-item--social-x > a[href*="x.com"]:hover::before {
    color: #000;
    background-color: #fff602;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
}

.site-header__bar .social-list--header .social-list__items {
    gap: 0.35rem;
}

#masthead.site-header {
    position: static;
    background: #fff;
}

.site-header__wrap {
    background: #fff;
    width: 100%;
}

.site-logo.retina-logo img {
    height: auto;
}

.site-header__layout:not(.site-header__layout--with-banner) .site-header__logo .site-logo.retina-logo img {
    max-height: 40px;
}

.footer-logo img {
    height: 72px;
    width: auto;
}

/* Footer: logo + copyright en una línea, centrado */
.site-footer {
    padding-top: 0.75rem;
    padding-bottom: 1.375rem;
}

/* Kingnews deja 120px bajo #primary en escritorio: mucho hueco antes del footer */
#primary {
    margin-bottom: 0 !important;
}

#secondary {
    margin-bottom: 0;
}

#secondary .widget:last-child {
    margin-bottom: 0;
}

.site #content .site-content__wrap {
    padding-bottom: 1rem;
}

.site-footer .footer-container,
.site-footer .site-info,
.site-footer .footer-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.site-footer .site-info__flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    text-align: center;
}

.site-footer .footer-logo {
    flex: 0 0 auto;
    line-height: 0;
}

.site-footer .footer-logo img {
    height: 72px;
    width: auto;
    display: block;
}

.site-footer .site-info__mid-box,
.site-footer .site-info__copyright {
    margin: 0;
    padding: 0;
}

.site-footer .site-info__copyright {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.site-branding .site-logo {
    border: 0 !important;
    margin-bottom: 0;
}

.site-content__wrap {
    width: 100%;
}

.site-banner {
    margin: 0 auto 0.75rem;
    overflow: visible;
}

.site-banner--embedded {
    margin: 0;
}

.site-banner--rotator {
    position: relative;
    overflow: hidden;
}

.site-banner picture,
.site-banner a {
    display: block;
    line-height: 0;
}

.site-banner img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center center;
    display: block;
    vertical-align: top;
}

.site-banner--rotator .site-banner__slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transition: opacity 0.45s ease;
}

.site-banner--rotator .site-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Banner integrado en cabecera */
body.has-site-banner .site-header__wrap {
    padding-bottom: 0;
}

body.has-site-banner .site #content .site-content__wrap {
    padding-top: 1.25rem;
}

/* Sin banner: misma separación entre línea negra y portada */
body:not(.has-site-banner) .site #content .site-content__wrap {
    padding-top: 1.25rem;
}

@media (min-width: 940px) {
    body.has-site-banner .site #content .site-content__wrap,
    body:not(.has-site-banner) .site #content .site-content__wrap {
        padding-top: 1.5rem;
    }
}

body.has-site-banner .home-category-tabs,
body.has-site-banner .home-featured-grid-wrap {
    margin-top: 0;
}

.home-carousel-wrap {
    margin-bottom: 2.5rem;
}

.home-featured-grid-wrap {
    margin-bottom: 2.5rem;
}

/* Grid destacado: 1 grande + 4 pequeñas (plantilla Kingnews) */
.home-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
}

.home-featured-grid__main {
    min-height: 0;
}

.home-featured-grid__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-height: 0;
}

body.home .home-carousel-wrap .home-carousel {
    width: 100%;
}

.home-carousel--full .carousel-card {
    min-height: 320px;
}

.home-carousel--full .carousel-card img,
.home-carousel--full .carousel-card__placeholder {
    min-height: 320px;
}

.home-carousel--full .carousel-card__title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

#primary .home-category-tabs {
    margin-bottom: 2.5rem;
}

#primary .home-category-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
    #primary .home-category-panel__grid {
        grid-template-columns: 1fr;
    }
}

/* Section headings — línea solo después del título (estilo Kingnews) */
.section-heading {
    display: block;
    margin-bottom: 1.5rem;
    padding: 0;
    border-bottom: 0;
}

.section-heading--split {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading--lined {
    position: relative;
    border-bottom: 0;
}

.section-heading--lined .section-heading__title.h2-style {
    position: relative;
    display: inline;
    margin: 0;
    padding: 0;
    font-family: "Noto Serif", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.85vw, 1.625rem);
    line-height: 1.15;
    background: transparent;
    top: -3px;
}

/* Línea negra: empieza tras el título, a media altura del texto */
.section-heading--lined .section-heading__title.h2-style::after {
    position: absolute;
    display: inline-block;
    content: "";
    width: 2000px;
    height: 1px;
    left: 100%;
    margin-left: 0.75rem;
    bottom: 3px;
    background: #000;
    z-index: 0;
    pointer-events: none;
}

.section-heading__title {
    margin: 0;
}

/* Página de categoría: poco aire sobre la descripción, menos hueco bajo el bloque */
.page-header {
    display: block;
    width: 100%;
    margin-bottom: 1rem !important;
}

.page-header .taxonomy-description.entry-content {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-header .taxonomy-description.entry-content p {
    margin: 0;
}

.page-header + .overlay-grid {
    margin-top: 0;
}

.home-category-tabs {
    margin-bottom: 2.5rem;
}

.home-category-tabs__nav {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-left: auto;
    padding-bottom: 6px;
    background: transparent;
    text-align: right;
}

.home-category-tabs__nav .main-navigation-inner,
.home-category-tabs__nav .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-category-tabs__nav .menu > li {
    display: block;
    margin: 0;
    flex: 0 0 auto;
    line-height: 0;
}

.home-category-tabs__btn {
    position: relative;
    display: inline-block;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0 12px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    top: -3px;
}

/* Subrayado azul a la altura de la línea negra del título */
.home-category-tabs__btn::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -3px;
    height: 1px;
    background: #02afff;
    opacity: 0;
    transition: left 200ms ease-out, right 200ms ease-out;
    z-index: 2;
}

.home-category-tabs__btn:hover::before,
.home-category-tabs__nav .menu > li.current-menu-item .home-category-tabs__btn::before,
.home-category-tabs__btn.is-active::before {
    left: 0;
    right: 0;
    opacity: 1;
}

.home-category-tabs__btn:hover,
.home-category-tabs__nav .menu > li.current-menu-item .home-category-tabs__btn,
.home-category-tabs__btn.is-active {
    color: #02afff;
}

.home-category-tabs__panel[hidden] {
    display: none !important;
}

.home-category-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.home-category-panel__grid > .overlay-card {
    min-height: 320px;
}

.home-category-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    min-height: 100%;
    padding: 1.1rem 1.15rem 1.15rem;
    background: #fff;
}

.home-category-list__item:nth-child(n + 3) {
    padding-top: 1.25rem;
}

.home-category-list__main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.home-category-list__thumb {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
    overflow: hidden;
    line-height: 0;
}

.home-category-list__thumb img,
.home-category-list__thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.home-category-list__thumb-placeholder {
    background: linear-gradient(135deg, #d8dde3, #b8c0c8);
}

.home-category-list__content {
    flex: 1 1 auto;
    min-width: 0;
}

.home-category-list__title {
    margin: 0 0 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.home-category-list__title a {
    color: #222;
    text-decoration: none;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.home-category-list__title a:hover {
    color: #02afff;
}

.home-category-list__excerpt {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.home-category-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    width: 100%;
    font-size: 0.85rem;
}

.home-category-list__meta-line--date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #02afff;
    font-style: italic;
}

.home-category-list__meta-line--date .fa {
    font-style: normal;
}

.home-category-list__meta-line--author {
    color: #666;
}

.home-category-list__meta-line--author::before {
    content: "·";
    margin-right: 0.75rem;
    color: #999;
}

@media (max-width: 960px) {
    .home-category-panel__grid {
        grid-template-columns: 1fr;
    }

    .home-category-list__item:nth-child(n + 3) {
        padding-top: 1.25rem;
    }
}

@media (max-width: 640px) {
    .home-category-list__main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .home-category-list__thumb {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

/* Overlay cards */
.overlay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.overlay-grid--featured {
    margin-top: 0.5rem;
}

.overlay-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: #ddd;
}

.overlay-card--large {
    min-height: 480px;
    height: 100%;
}

.overlay-card--small {
    min-height: 238px;
}

.overlay-card__link {
    display: block;
    height: 100%;
    min-height: inherit;
    position: relative;
}

.overlay-card__link img,
.overlay-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.overlay-card__placeholder {
    background: linear-gradient(135deg, #ccc, #999);
}

.overlay-card:hover img {
    transform: scale(1.04);
}

.overlay-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 52%, transparent 100%);
    color: #fff;
}

.overlay-card__body {
    padding: 1.25rem 1.5rem 1.35rem;
}

.overlay-card--small .overlay-card__body {
    padding: 1rem 1.15rem 1.1rem;
}

.overlay-card__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    background: #f7e700;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.55rem;
    line-height: 1.2;
}

.overlay-card--small .overlay-card__badge {
    top: 18px;
    left: 18px;
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
}

.overlay-card__meta,
.carousel-card__content .overlay-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.55rem;
}

.overlay-card--small .overlay-card__meta,
.home-carousel--full .carousel-card__content .overlay-card__meta {
    margin-bottom: 0.4rem;
    gap: 0.1rem;
}

.overlay-card__meta-line,
.carousel-card__content .overlay-card__meta-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
}

.overlay-card--small .overlay-card__meta-line {
    font-size: 0.65rem;
}

.overlay-card__meta-line--date .fa,
.carousel-card__content .overlay-card__meta-line--date .fa {
    font-size: 0.68rem;
    opacity: 0.9;
}

.overlay-card__meta-line--author,
.carousel-card__content .overlay-card__meta-line--author {
    display: block;
}

.overlay-card__meta time,
.carousel-card__content .overlay-card__meta time {
    font-size: inherit;
    color: inherit;
}

.overlay-card__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.overlay-card--large .overlay-card__title {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    color: #02afff;
}

.overlay-card--small .overlay-card__title {
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
}

.overlay-card:not(.overlay-card--large):not(.overlay-card--small) .overlay-card__title {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.entry-meta .post-meta {
    color: inherit;
    font-size: inherit;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-meta time {
    font-size: inherit;
    color: inherit;
}

.post-meta__author::before {
    content: "·";
    margin-right: 0.5rem;
    opacity: 0.75;
}

.post-card__body .post-meta,
.posts-list__item .post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* Sidebar widgets: títulos igual que secciones principales */
#secondary .widget_search {
    padding: 0;
}

#secondary .widget .section-heading--lined {
    display: block;
    width: 100%;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

#secondary .widget_recent_entries ul li > a {
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

#secondary .widget_recent_entries .home-category-list__meta-line--author .post-author-link {
    display: inline;
    font-weight: 400;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    color: #02afff;
    font-style: italic;
    text-decoration: none;
}

#secondary .widget_recent_entries .home-category-list__meta-line--author .post-author-link:hover {
    color: #02afff;
    text-decoration: underline;
}

#secondary .widget_recent_entries .widget-recent-entries__meta {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Banner lateral */
.widget_sidebar_banner {
    margin-bottom: 2rem;
}

.sidebar-banner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sidebar-banner__item picture,
.sidebar-banner__item a {
    display: block;
    width: 100%;
}

.sidebar-banner__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* Zona estática portada */
.home-static-blocks {
    margin-top: 2.5rem;
}

.home-static-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.home-static-block:last-child {
    margin-bottom: 0;
}

.home-static-block__media {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 100%;
    min-width: 0;
}

.home-static-block__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.home-static-block__video-embed {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    border-radius: 2px;
}

.home-static-block__video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.home-static-block__heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin-bottom: 0;
}

.home-static-block__body {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.home-static-block__body:first-child {
    grid-row: 1;
}

.home-static-block__heading + .home-static-block__body {
    margin-top: 0;
}

.home-static-block__body > :first-child {
    margin-top: 0;
}

@media (max-width: 939px) {
    .home-static-block {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .home-static-block__heading,
    .home-static-block__body,
    .home-static-block__media {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .home-static-block__heading {
        margin-bottom: 0;
    }

    .home-static-block__media:empty {
        display: none;
    }

    .home-static-block__video-embed {
        min-height: 12.5rem;
    }
}

/* Sidebar search full width */
.widget_search--full {
    width: 100%;
    box-sizing: border-box;
}

.widget_search--full .search-form {
    width: 100%;
    display: block !important;
}

.widget_search--full .search-form__input-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
}

/* Search form */
.search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff !important;
    background-color: #02afff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(2, 175, 255, 0.35);
}

.search-form__submit:hover,
.search-form__submit:focus {
    background-color: #0299e0 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(2, 175, 255, 0.45);
}

.search-form__submit:focus-visible {
    outline: 2px solid #02afff;
    outline-offset: 2px;
}

.widget_search--full .search-form__field[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0.7rem 1rem !important;
    border: 1px solid #d2d1d1;
    border-radius: 3px;
    background-color: #fff;
}

.widget_search--full .search-form__submit,
.widget_search--full button[type="submit"] {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Carousel */
.widget_carousel {
    margin-bottom: 2rem;
}

.home-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.home-carousel__track {
    display: flex;
    transition: transform 0.45s ease;
}

.home-carousel__slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-card {
    display: block;
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: #ddd;
}

.carousel-card img,
.carousel-card__placeholder {
    width: 100%;
    min-height: 220px;
    object-fit: cover;
}

.carousel-card__placeholder {
    background: #bbb;
    min-height: 220px;
}

.carousel-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 52%, transparent 100%);
    color: #fff;
}

.carousel-card__body {
    padding: 1.25rem 1.5rem 1.35rem;
}

.home-carousel--full .carousel-card__body {
    padding: 1.35rem 1.65rem 1.5rem;
}

.carousel-card__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    background: #f7e700;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.55rem;
    line-height: 1.2;
}

.carousel-card__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.home-carousel--full .carousel-card__title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #02afff;
}

.home-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.home-carousel__nav--prev {
    left: 8px;
}

.home-carousel__nav--next {
    right: 8px;
}

.empty-state {
    padding: 2rem;
    background: #f5f5f5;
    text-align: center;
}

.pagination-wrap {
    margin-top: 2rem;
}

.pagination-wrap nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-wrap a,
.pagination-wrap span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d2d1d1;
}

.related-posts {
    margin-top: 3rem;
}

.single .post-thumbnail img,
.entry-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 960px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-featured-grid__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overlay-card--large {
        min-height: 320px;
    }

    .overlay-card--small {
        min-height: 200px;
    }

    .overlay-grid {
        grid-template-columns: 1fr;
    }

    .section-heading--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .home-category-tabs__nav {
        margin-left: 0;
        width: 100%;
        padding-bottom: 0;
    }

    .home-category-tabs__nav .menu {
        justify-content: flex-start;
    }
}

@media (max-width: 939px) {
    /* Cabecera móvil/tablet: logo 1/5 + menú hamburguesa, banner debajo */
    .site-header__layout,
    .site-header__layout--with-banner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
        grid-template-rows: var(--header-bar-height) auto;
        position: relative;
    }

    .site-header__layout:not(.site-header__layout--with-banner) {
        grid-template-rows: var(--header-bar-height);
    }

    .site-header__logo-slot {
        grid-column: 1;
        grid-row: 1;
        position: static;
        min-height: 0;
        padding: 0.5rem 0.5rem 0.5rem 0;
        align-self: stretch;
        overflow: visible;
        z-index: 2;
        background: #fff;
    }

    .site-header__layout--with-banner .site-header__logo-slot {
        grid-row: 1;
    }

    .site-header__layout--with-banner .site-header__logo {
        position: static;
        inset: auto;
        padding: 0;
        overflow: visible;
    }

    .site-header__logo .site-logo.retina-logo img,
    .site-header__layout--with-banner .site-header__logo .site-logo.retina-logo img {
        max-height: 56px;
    }

    .site-header__bar {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        height: var(--header-bar-height);
        min-height: var(--header-bar-height);
        position: static;
        z-index: 2;
        background: #fff;
    }

    .site-header__layout--with-banner .site-header__bar {
        grid-row: 1;
        position: static;
    }

    .site-header__banner {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0.5rem 0 0;
    }

    .site-header__wrap.site-header__style-1 .menu-toggle-wrapper {
        display: block !important;
    }

    .site-header__default .header-container {
        position: relative;
    }

    .site-header__bar .header-menu {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        position: static;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .site-header__bar .menu-toggle-wrapper {
        min-width: 0 !important;
        flex: 0 0 auto;
    }

    /* Ocultar menú horizontal; solo hamburguesa visible */
    .site-header__bar .main-navigation__default {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;
        width: 0;
        height: 0;
        max-height: 0;
        position: absolute;
        left: -9999px;
    }

    .site-header__bar .main-navigation__default.is-open {
        display: block !important;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
        width: 100%;
        height: auto;
        max-height: none;
        position: absolute;
        top: var(--header-bar-height);
        left: 0;
        right: 0;
        margin-left: 0;
        background: #fff;
        z-index: 1003;
        border-top: 1px solid #d2d1d1;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .site-header__layout--with-banner .site-header__bar .main-navigation__default.is-open {
        top: var(--header-bar-height);
        left: 0;
        right: 0;
        width: 100%;
    }

    .site-header__bar .main-navigation__default .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 1rem 0;
        white-space: normal;
        width: 100%;
    }

    .site-header__bar .main-navigation__default .menu > li {
        display: block;
        width: 100%;
        flex: none;
    }

    .site-header__bar .main-navigation__default .menu > li > a {
        display: block;
        height: auto;
        padding: 0.75rem 1rem;
        text-align: center;
        white-space: normal;
    }

    .site-header__bar .main-navigation__default .menu > li > a::before {
        display: none !important;
    }

    .site-header__bar .social-list--header {
        display: none !important;
    }

    /* Márgenes laterales consistentes en contenido */
    .site #content.site-content.container,
    .site-header__wrap.container {
        --site-gutter: 1.25rem;
        width: 100%;
        max-width: 100%;
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
        box-sizing: border-box;
    }

    .site #content .site-content__wrap.row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    #content .site-content__wrap.row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 940px) {
    .menu-toggle-wrapper {
        display: none;
    }
}

html {
    scrollbar-gutter: stable;
}

/* ——— Artículo individual y archivo de etiquetas ——— */
.single-post .breadcrumbs,
.tag-archive .breadcrumbs,
.author-archive .breadcrumbs {
    margin: 0 0 1.25rem;
}

.single-post .breadcrumbs_items,
.tag-archive .breadcrumbs_items,
.author-archive .breadcrumbs_items {
    font-family: "Noto Serif", serif;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #222;
}

.single-post .breadcrumbs_item_link,
.tag-archive .breadcrumbs_item_link,
.author-archive .breadcrumbs_item_link {
    color: #222;
    font-weight: 700;
}

.single-post .breadcrumbs_item_link:hover,
.tag-archive .breadcrumbs_item_link:hover,
.author-archive .breadcrumbs_item_link:hover {
    color: #02afff;
}

.single-post .breadcrumbs_item_target,
.tag-archive .breadcrumbs_item_target,
.author-archive .breadcrumbs_item_target {
    color: #02afff;
    font-weight: 400;
}

.single-post .breadcrumbs_item_sep,
.tag-archive .breadcrumbs_item_sep,
.author-archive .breadcrumbs_item_sep {
    margin: 0 0.45rem;
    color: #666;
}

.single-post .entry-header,
.tag-archive .entry-header {
    margin-bottom: 1.5rem;
}

.author-archive .entry-header {
    margin-bottom: 0;
}

.single-post .entry-header .entry-meta--category,
.tag-archive .entry-header .entry-meta--category {
    display: block;
    margin-bottom: 0.65rem;
}

.author-archive .entry-header .entry-meta--category {
    display: block;
    margin-bottom: 0;
}

.author-archive .entry-header + .overlay-grid {
    margin-top: 0;
}

.single-post .entry-header .cat-links,
.tag-archive .entry-header .cat-links {
    display: block;
}

.single-post .entry-header .cat-links a,
.tag-archive .entry-header .cat-links__title {
    display: inline-block;
    background: #f7e700;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.55rem;
    line-height: 1.2;
    margin: 0;
}

.tag-archive .entry-header .cat-links__title {
    font-size: 0.7rem;
    margin: 0;
    border: 0;
}

.author-archive .entry-header .author-archive__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.author-archive .entry-header .author-archive__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-archive .entry-header .cat-links__title {
    margin: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    line-height: 1.2;
}

.single-post .entry-header .entry-title {
    margin: 0 0 0.85rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: #111;
}

.single-post .entry-meta--single {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #222;
}

.single-post .entry-header .entry-meta.entry-meta--single > span.posted-on,
.single-post .entry-header .entry-meta.entry-meta--single > span.comments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    line-height: 1.4;
}

.single-post .entry-header .entry-meta.entry-meta--single > span.byline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    margin-bottom: 0;
    line-height: 1.4;
}

.single-post .entry-meta--single .byline__text {
    display: inline;
    line-height: 1.4;
}

.single-post .entry-meta--single .byline__text .author,
.single-post .entry-meta--single .byline__text .post-author-link {
    display: inline;
    margin: 0;
    line-height: inherit;
    vertical-align: baseline;
}

.single-post .entry-header .entry-meta.entry-meta--single .byline span {
    margin: 0;
    margin-bottom: 0;
    line-height: inherit;
}

.single-post .entry-meta--single .byline__avatar-link {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.single-post .entry-meta--single .byline__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.single-post .entry-header .entry-meta.entry-meta--single span {
    line-height: 1.4;
}

.single-post .entry-header .entry-meta.entry-meta--single .posted-on time,
.single-post .entry-header .entry-meta.entry-meta--single .comments-count {
    margin: 0;
    padding: 0;
}

.single-post .entry-meta--single .byline .author {
    display: inline;
    color: #02afff;
    font-weight: 400;
}

.single-post .entry-meta--single .posted-on time,
.single-post .entry-meta--single .comments-count {
    color: #02afff;
    font-style: italic;
}

.single-post .entry-meta--single .posted-on .fa,
.single-post .entry-meta--single .comments-link .fa {
    color: #02afff;
    font-style: normal;
    font-size: 1em;
    line-height: 1;
    flex-shrink: 0;
}

.single-post .post-thumbnail {
    margin-bottom: 1.25rem;
}

.single-post .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.single-post .related-posts {
    margin-top: 2.5rem;
}

.single-post .entry-footer--tags,
.single-post .entry-footer--tags-placeholder {
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

.single-post .entry-footer--tags .entry-meta,
.single-post .entry-footer--tags-placeholder .entry-meta {
    display: block;
    padding: 0;
}

.single-post .entry-footer--tags .tags-links,
.single-post .entry-footer--tags-placeholder .tags-links--placeholder {
    display: block;
    font-family: "Noto Serif", serif;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #111;
}

.single-post .entry-footer--tags .tags-links .fa,
.single-post .entry-footer--tags-placeholder .tags-links--placeholder .fa {
    margin-right: 0.35rem;
    color: #888;
    font-style: normal;
}

.single-post .entry-footer--tags .tags-links a,
.single-post .entry-footer--tags-placeholder .tags-links--placeholder a {
    display: inline;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: inherit;
    font-family: inherit;
    font-style: inherit;
    font-size: inherit !important;
    font-weight: inherit;
    color: #02afff;
    text-decoration: none;
}

.single-post .entry-footer--tags-placeholder .tags-links--placeholder a {
    cursor: default;
}

.tag-archive .entry-header .taxonomy-description,
.author-archive .entry-header .taxonomy-description {
    margin-top: 0.75rem;
}

.single-post .post-navigation {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
    margin-bottom: 0;
}

.single-post .post-navigation .nav-links .nav-prev span svg,
.single-post .post-navigation .nav-links .nav-next span svg {
    color: #bbb;
}

.single-post .post-navigation + .comments-area {
    margin-top: 0;
}

.single-post .comments-area {
    margin-top: 2rem;
}

.single-post .comments-title.h4-style,
.single-post .comment-reply-title.h4-style {
    font-family: "Noto Serif", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.2;
}

.single-post .comments-area--placeholder .comments-title.h4-style {
    margin-bottom: 0.35rem;
}

.single-post .comments-area--placeholder .comment-list .comment {
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.single-post .comments-area--placeholder .comment-list > li + li {
    padding-top: 0.85rem;
}

.single-post .comments-area--placeholder .comment-body--no-avatar .comment-content-wrap {
    margin-top: 0;
    max-width: 100%;
}

.single-post .comments-area--placeholder .comment-meta {
    margin-bottom: 0.25rem;
}

.single-post .comments-area--placeholder .comment-content p {
    margin-bottom: 0.35rem;
}

.single-post .comments-area--placeholder .comment-list + .comment-respond {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
}

.single-post .comments-area--placeholder .comment-reply-title {
    margin-bottom: 1rem;
}

.single-post .comments-area--placeholder .comment-notes {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.single-post .comments-area--placeholder .comment-form-author,
.single-post .comments-area--placeholder .comment-form-email,
.single-post .comments-area--placeholder .comment-form-url {
    margin-bottom: 0.5rem;
}

.single-post .comments-area--placeholder .comment-form-comment {
    margin-bottom: 0.85rem;
}

.single-post .comments-area--placeholder .comment-form-comment textarea {
    height: auto;
    min-height: 120px;
}

.single-post .comments-area--placeholder .comment-form-cookies-consent {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.single-post .comments-area--placeholder .form-submit {
    margin-top: 0;
}

.single-post .comments-area .comment-author-name,
.single-post .comments-area .comment-date {
    color: #02afff;
}

.single-post .comments-area .comment-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-style: italic;
}

.single-post .comments-area .comment-list .comment {
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.single-post .comments-area .comment-list > li + li {
    padding-top: 0.85rem;
}

.single-post .comments-area .comment-body--no-avatar .comment-content-wrap {
    margin-top: 0;
    max-width: 100%;
}

.single-post .comments-area .comment-meta {
    margin-bottom: 0.25rem;
}

.single-post .comments-area .comment-content p {
    margin-bottom: 0.35rem;
}

.single-post .comments-area .comment-list + .comment-respond {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
}

.single-post .comments-area .comment-reply-title {
    margin-bottom: 1rem;
}

.single-post .comments-area .comment-notes {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.single-post .comments-area .comment-form-author,
.single-post .comments-area .comment-form-email,
.single-post .comments-area .comment-form-url {
    margin-bottom: 0.5rem;
}

.single-post .comments-area .comment-form-comment {
    margin-bottom: 0.85rem;
}

.single-post .comments-area .comment-form-comment textarea {
    height: auto;
    min-height: 120px;
}

.single-post .comments-area .form-submit {
    margin-top: 0;
}

.single-post .comments-area .comment-form__field {
    background: #f7f7f7;
    border: 1px solid #ddd;
    font-style: italic;
    color: #222;
    width: 100%;
    box-sizing: border-box;
}

.single-post .comments-area .comment-form__field::placeholder {
    color: #888;
    opacity: 1;
}

.single-post .comments-area .comment-form__field.is-invalid {
    border-color: #c0392b;
}

.single-post .comments-area .comment-form__error {
    display: block;
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.85rem;
}

.single-post .comments-area .comment-form__notice {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
}

.single-post .comments-area .comment-form__notice--success {
    background: #eef9f0;
    border: 1px solid #b7e0c2;
    color: #1f6b3b;
}

.single-post .comments-area .comment-form__notice--error {
    background: #fdeeee;
    border: 1px solid #efb8b8;
    color: #8a1f1f;
}

.single-post .comments-area .comment-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.single-post .comments-area .form-submit .submit {
    background: #f7e700;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.single-post .comments-area .form-submit .submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.single-post .comments-area--placeholder .comment-author-name,
.single-post .comments-area--placeholder .comment-date {
    color: #02afff;
}

.single-post .comments-area--placeholder .comment-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-style: italic;
}

.single-post .comments-area--placeholder .comment-form__field {
    background: #f7f7f7;
    border: 1px solid #ddd;
    font-style: italic;
    color: #666;
}

.single-post .comments-area--placeholder .comment-form__field::placeholder {
    color: #888;
    opacity: 1;
}

.single-post .comments-area--placeholder .form-submit .submit {
    background: #f7e700;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: not-allowed;
    opacity: 0.85;
}

.single-post .comments-area--placeholder .comment-notes {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* ——— Páginas legales ——— */
body.legal-page .breadcrumbs {
    margin: 0 0 1.25rem;
}

body.legal-page .breadcrumbs_items {
    font-family: "Noto Serif", serif;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #222;
}

body.legal-page .breadcrumbs_item_link {
    color: #222;
    font-weight: 700;
}

body.legal-page .breadcrumbs_item_link:hover {
    color: #02afff;
}

body.legal-page .breadcrumbs_item_target {
    color: #02afff;
    font-weight: 400;
}

body.legal-page .breadcrumbs_item_sep {
    margin: 0 0.45rem;
    color: #666;
}

.legal-page__title {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: #111;
}

.legal-page__content h2 {
    margin: 1.5rem 0 0.65rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.legal-page__content h3 {
    margin: 1rem 0 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.legal-page__content p,
.legal-page__content li {
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-page__content ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.legal-page__content a {
    color: #02afff;
    text-decoration: underline;
}

.legal-page__cookie-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #02afff;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ——— Footer legal ——— */
.site-footer__legal {
    margin-top: 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
}

.site-footer__legal a {
    color: #02afff;
    text-decoration: none;
}

.site-footer__legal a:hover {
    text-decoration: underline;
}

.site-footer__legal-sep {
    margin: 0 0.45rem;
    color: #888;
}

/* ——— Comentarios: aceptación privacidad ——— */
.single-post .comments-area .comment-form-privacy-consent,
.single-post .comments-area .comment-form__privacy-error {
    order: 4;
}

.single-post .comments-area .comment-form__recaptcha-error {
    order: 3;
}

.single-post .comment-form-privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #333;
}

.single-post .comment-form-privacy-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.single-post .comment-form-privacy-consent a {
    color: #02afff;
    text-decoration: underline;
}

/* ——— Modal de cookies (3 pestañas) ——— */
.cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 70%);
    z-index: 9999;
}

.cookie-settings-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    z-index: 10000;
    color: #111;
}

.cookie-settings-popup__title {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cookie-settings-popup__subtitle {
    margin: 0 0 0.75rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cookie-settings-popup p,
.cookie-settings-popup label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #333;
}

.cookie-settings-popup h6 {
    margin: 0.85rem 0 0.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cookie-settings-popup__cookie-list {
    margin: 0.35rem 0 0.75rem 1.1rem;
    padding: 0;
    list-style: disc;
    font-size: 0.88rem;
}

.cookie-settings-popup__cookie-list li {
    margin-bottom: 0.35rem;
}

.cookie-settings-popup__inline-btn {
    display: inline;
    padding: 0;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font: inherit;
    cursor: pointer;
}

.tab-buttons-cookie {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-link-cookie {
    padding: 0.5rem 1rem;
    border: none;
    background: #eee;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.tab-link-cookie.active {
    background: #ccc;
    font-weight: 700;
}

.tab-content-cookie {
    display: none;
}

.tab-content-cookie.is-active {
    display: block;
}

.buttons-cookie-div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.button-cookie {
    padding: 0.5rem 1rem;
    border: none;
    color: #fff;
    background-color: #28bd25;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

body.cookie-consent-open {
    overflow: hidden;
}

.legal-page__content--centered {
    text-align: center;
}

.legal-page__content--centered h2 {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.legal-page__plain-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.legal-page__plain-list li {
    margin-bottom: 0.5rem;
}

.legal-page__plain-list li > p,
.cookie-settings-popup__cookie-list li > p {
    display: inline;
    margin: 0;
}

@media (max-width: 600px) {
    .cookie-settings-popup {
        width: 90vw;
        padding: 1rem;
    }

    .tab-buttons-cookie,
    .buttons-cookie-div {
        flex-direction: column;
    }

    .button-cookie {
        width: 100%;
    }
}

