/**
 * Home editorial — Fase 3
 * Layout revista digital para index.php
 */

:root {
    --mn-brand: #225ad3;
    --mn-ink: #0a0a0a;
    --mn-muted: #666666;
    --mn-surface: #f5f6f8;
    --mn-radius: 12px;
    --mn-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --mn-breaking: #e53935;
}

/* ─── Masthead ─── */
.home-masthead {
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

.home-masthead__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mn-muted);
}

.home-masthead__title {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--mn-ink);
}

.news-featured .home-masthead__title {
    padding: 0 !important;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.03em;
    background: transparent !important;
    text-align: left !important;
    color: var(--mn-ink) !important;
}

/* ─── Breaking bar ─── */
.breaking-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--mn-ink);
    border-radius: var(--mn-radius);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: var(--mn-shadow);
}

.breaking-bar__badge {
    flex-shrink: 0;
    background: var(--mn-breaking);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    animation: breaking-pulse 2s ease-in-out infinite;
}

@keyframes breaking-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.breaking-bar__title {
    margin: 0;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.breaking-bar__title a {
    color: #ffffff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.breaking-bar__title a:hover {
    opacity: 0.85;
}

/* ─── Hero overlay (portada full / magazine main) ─── */
.hero-overlay {
    position: relative;
    border-radius: var(--mn-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--mn-shadow);
}

.hero-overlay__link {
    display: block;
    line-height: 0;
}

.hero-overlay__link img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1200 / 630;
    transition: transform 0.4s ease;
}

.hero-overlay__link .lazy-bg,
.hero-overlay__link .item.lazy-bg {
    display: block;
    width: 100%;
    min-height: 0;
    margin-bottom: 0;
    aspect-ratio: 600 / 400;
    transition: transform 0.4s ease;
}

.hero-overlay:hover .hero-overlay__link img,
.hero-overlay:hover .hero-overlay__link .lazy-bg {
    transform: scale(1.02);
}

.hero-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
    color: #ffffff;
}

.hero-overlay__content h2,
.hero-overlay__content h3,
.hero-overlay__content h2 a,
.hero-overlay__content h3 a {
    color: #ffffff;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 8px 0 10px;
    padding: 0;
}

.hero-overlay__content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    max-width: 720px;
}

.hero-overlay--compact .hero-overlay__link img {
    aspect-ratio: 600 / 400;
}

.hero-overlay--side {
    margin-bottom: 0;
}

.hero-overlay--side .hero-overlay__content {
    padding: 18px 16px 16px;
}

.hero-overlay--side .hero-overlay__content h2,
.hero-overlay--side .hero-overlay__content h3,
.hero-overlay--side .hero-overlay__content h2 a,
.hero-overlay--side .hero-overlay__content h3 a {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.25;
    margin: 0;
}

/* ─── Hero split (portada == 2) ─── */
.hero-split {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
    background: #ffffff;
    border-radius: var(--mn-radius);
    padding: 20px;
    box-shadow: var(--mn-shadow);
}

.hero-split--reverse {
    flex-direction: row-reverse;
}

.hero-split__media {
    flex: 1 1 280px;
    min-width: 0;
}

.hero-split__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 600 / 400;
    border-radius: 10px;
}

.hero-split__body {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-split__body h2.big {
    font-size: clamp(22px, 2.5vw, 32px);
    margin-top: 8px;
}

.hero-split__body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--mn-muted);
}

/* ─── Hero magazine (default layout) ─── */
.hero-magazine {
    margin-bottom: 24px;
}

.hero-magazine__align-row {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 24px;
    align-items: stretch;
}

.hero-magazine__main .hero-overlay {
    margin-bottom: 0;
    height: 100%;
}

.hero-magazine__news-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 0;
}

.hero-magazine__news-stack .hero-overlay--side {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hero-magazine__news-stack .hero-overlay__link {
    flex: 1 1 auto;
    position: relative;
    min-height: 0;
}

.hero-magazine__news-stack .hero-overlay__link .lazy-bg,
.hero-magazine__news-stack .hero-overlay__link .item.lazy-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    background-size: cover;
    background-position: center;
}

.hero-magazine__news-stack .hero-overlay__content {
    flex-shrink: 0;
}

.hero-magazine__footer-row {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 24px;
    margin-top: 16px;
    align-items: start;
}

.hero-magazine__footer-row > .hero-split-inline {
    margin: 0;
}

.hero-split-inline,
.hero-magazine__footer-row .hero-split-inline {
    font-size: 15px;
    line-height: 1.65;
    color: var(--mn-muted);
}

/* ─── Hero cards ─── */
.hero-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ececec;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-card__thumb {
    flex-shrink: 0;
    width: 100px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.hero-card__thumb .lazy-bg,
.hero-card__thumb .item {
    display: block;
    width: 100px;
    height: 68px;
    min-height: 0;
    aspect-ratio: 600 / 400;
    border-radius: 8px;
    margin-bottom: 0;
}

.hero-card__body {
    flex: 1;
    min-width: 0;
}

.hero-card__body h2,
.hero-card__body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--mn-ink);
}

.hero-card__body h2 a,
.hero-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.hero-card__body h2 a:hover,
.hero-card__body h3 a:hover {
    opacity: 0.75;
}

/* ─── Weather widget ─── */
.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, var(--mn-brand) 100%);
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.weather-widget__icon {
    flex-shrink: 0;
    font-size: 32px;
    line-height: 1;
}

.weather-widget__inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.weather-widget__temps {
    flex-shrink: 0;
}

.weather-widget__temp-row {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.weather-widget__temp-max {
    color: #ffeb3b;
}

.weather-widget__temp-sep {
    color: #ffffff;
    margin: 0 3px;
}

.weather-widget__temp-min {
    color: #e3f2fd;
}

.weather-widget__desc {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 3px;
}

.weather-widget__detail {
    flex-grow: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 14px;
    min-width: 0;
}

.weather-widget__detail h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.weather-widget__detail h3 a {
    color: #ffffff;
    text-decoration: none;
}

.weather-widget__more {
    flex-shrink: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.weather-widget__more:hover {
    opacity: 0.85;
}

/* ─── Botes strip ─── */
.botes-home-strip {
    margin: 36px 0 40px;
    padding: 24px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.botes-home-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.bote-home-item {
    flex: 1 0 140px;
    background-color: var(--mn-ink);
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bote-home-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.bote-home-item--gordo {
    background-color: #f1c40f;
    color: #000000;
}

.bote-home-item__name {
    font-weight: 800;
    margin-bottom: 4px;
    font-size: 1.4em;
    letter-spacing: 0.02em;
}

.bote-home-item__amount {
    font-size: 1.25em;
    font-weight: 800;
}

.bote-home-item__date {
    font-size: 0.75em;
    opacity: 0.9;
    margin-top: 4px;
}

/* ─── Cuatro destacadas (fecha · foto · titular) ─── */
.home-featured-row {
    margin-bottom: 28px;
}

.home-featured-card {
    margin-bottom: 24px;
}

.home-featured-card__date {
    display: block;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888888;
}

.home-featured-card__media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.home-featured-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.home-featured-card__media:hover .home-featured-card__photo {
    transform: scale(1.03);
}

.home-featured-card__title {
    margin: 14px 0 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: transparent !important;
    text-align: left !important;
}

.home-featured-card__title a {
    color: var(--mn-ink);
    text-decoration: none;
}

.home-featured-card__title a:hover {
    color: var(--mn-brand);
}

/* ─── Secciones de categoría + listado principal ─── */
.home-section {
    margin-bottom: 56px;
}

.home-section-title {
    margin: 0 0 28px;
    padding: 0 0 0 14px;
    border-bottom: none;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
}

.home-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 4px;
    border-radius: 2px;
    background: var(--mn-brand);
}

.home-section-title a {
    color: var(--mn-ink);
    text-decoration: none;
}

.home-section-title a:hover {
    color: var(--mn-brand);
}

.home-news-block {
    margin-bottom: 0;
}

.home-content-grid__main hr {
    display: none;
}

/* Listado horizontal (Actualidad, etc.) */
.home-content-grid__main .home-story-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
}

.home-content-grid__main .home-story-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.home-content-grid__main .home-story-card .photo-content {
    flex-shrink: 0;
}

.home-content-grid__main .home-story-card .photo {
    width: 210px;
    height: 140px !important;
    min-height: 0;
    border-radius: 10px;
    margin-bottom: 0;
}

.home-content-grid__main .home-story-card .caption {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.home-content-grid__main .home-story-card .caption h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-content-grid__main .home-story-card .caption h3 a {
    color: var(--mn-ink);
    text-decoration: none;
}

.home-content-grid__main .home-story-card .caption h3 a:hover {
    color: var(--mn-brand);
}

.home-story-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--mn-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid de 2 y 3 columnas en home */
.home-content-grid__main .home-grid-card {
    margin-bottom: 32px;
    border: none;
    background: transparent;
    padding: 0;
}

.home-content-grid__main .home-grid-card .photo {
    border-radius: 12px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.home-content-grid__main .home-grid-card:hover .photo {
    transform: scale(1.02);
}

.home-content-grid__main .home-grid-card .caption {
    padding: 0;
}

.home-content-grid__main .home-grid-card .caption h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.home-content-grid__main .home-grid-card .caption h3 a {
    color: var(--mn-ink);
    text-decoration: none;
}

.home-content-grid__main .home-grid-card .caption h3 a:hover {
    color: var(--mn-brand);
}

.home-content-grid__main .normal-2-col-item,
.home-content-grid__main .break-after-3 {
    margin-bottom: 8px;
}

.home-content-grid__main .thumbnail1 {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    background: transparent;
}

.home-content-grid__main .thumbnail1:last-child {
    border-bottom: none;
}

.home-content-grid__main .thumbnail1 .photo {
    width: 90px;
    height: 68px !important;
    min-height: 0;
    border-radius: 8px;
    flex-shrink: 0;
}

.home-content-grid__main .thumbnail1 .photo-content {
    flex-shrink: 0;
}

.home-content-grid__main .thumbnail1 .caption {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.home-content-grid__main .thumbnail1 .caption h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* Municipios — listado simple */
.municipio-links {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.municipio-links li {
    break-inside: avoid;
    margin-bottom: 12px;
    line-height: 1.4;
}

.municipio-links a {
    color: var(--mn-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.municipio-links a:hover {
    color: var(--mn-brand);
    border-bottom-color: var(--mn-brand);
}

/* Publicidad inline en home */
.page-home .ad-slot-inline {
    margin: 40px 0 48px;
}

/* ─── Content grid + sticky sidebar ─── */
.home-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.home-content-grid__main {
    min-width: 0;
}

.home-content-grid__sidebar {
    min-width: 0;
}

/* ─── Sidebar home ─── */
.home-sidebar {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--mn-radius);
    padding: 28px 24px;
}

.home-sidebar__block {
    margin-bottom: 32px;
}

.home-sidebar__block:last-child {
    margin-bottom: 0;
}

.home-sidebar__label,
.home-sidebar__title {
    display: block;
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mn-ink);
}

.home-sidebar .search-sidebar form {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    box-shadow: none;
}

.home-sidebar .search-sidebar input[type="text"],
.home-sidebar .search-sidebar input[type="search"] {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: #fafafa;
}

.home-sidebar .search-sidebar input[type="submit"] {
    height: 44px;
    padding: 0 16px;
    border: none;
    border-left: 1px solid #d8d8d8;
    border-radius: 0;
    background: var(--mn-ink);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-sidebar .search-sidebar input[type="submit"]:hover {
    opacity: 0.88;
}

.home-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-sidebar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #efefef;
}

.home-sidebar-item:first-child {
    padding-top: 4px;
}

.home-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-sidebar-item__media {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.home-sidebar-item__photo {
    display: block;
    width: 76px;
    height: 56px;
    min-height: 0 !important;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.home-sidebar-item__body {
    flex: 1;
    min-width: 0;
}

.home-sidebar-item__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.home-sidebar-item__title a {
    color: var(--mn-ink);
    text-decoration: none;
}

.home-sidebar-item__title a:hover {
    color: var(--mn-brand);
}

/* ─── Municipio blocks ─── */
.home-municipios-zone {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 2px solid #ececec;
}

.municipio-block {
    margin-bottom: 56px;
}

.municipio-block:last-child {
    margin-bottom: 0;
}

.municipio-block__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.municipio-featured-card__media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 16px;
}

.municipio-featured-card .photog {
    display: block;
    width: 100%;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    transition: transform 0.35s ease;
}

.municipio-featured-card__media:hover .photog {
    transform: scale(1.02);
}

.municipio-featured-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.municipio-featured-card__title a {
    color: var(--mn-ink);
    text-decoration: none;
}

.municipio-featured-card__title a:hover {
    color: var(--mn-brand);
}

.municipio-featured-card__excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mn-muted);
}

.municipio-block__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.municipio-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.municipio-list-item:first-child {
    padding-top: 0;
}

.municipio-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.municipio-list-item__media {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.municipio-list-item__media .photo {
    display: block;
    width: 96px;
    height: 72px;
    min-height: 0 !important;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
}

.municipio-list-item__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.municipio-list-item__title a {
    color: var(--mn-ink);
    text-decoration: none;
}

.municipio-list-item__title a:hover {
    color: var(--mn-brand);
}

.home-section--municipios {
    margin-top: 0;
    padding-top: 8px;
}

.home-section--municipios .municipio-links {
    columns: 3;
    column-gap: 40px;
}

.home-section--municipios .municipio-links a {
    display: inline-block;
    padding: 6px 0;
    font-size: 15px;
}

/* ─── SEO block ─── */
.home-seo-row {
    margin-top: 56px;
    padding-top: 8px;
}

.home-seo-details {
    border: 1px solid #ececec;
    border-radius: var(--mn-radius);
    background: #fafafa;
    overflow: hidden;
}

.home-seo-details__summary {
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--mn-ink);
    cursor: pointer;
    list-style: none;
}

.home-seo-details__summary::-webkit-details-marker {
    display: none;
}

.home-seo-details[open] .home-seo-details__summary {
    border-bottom: 1px solid #ececec;
}

.home-seo-block {
    padding: 24px 22px 28px;
    margin: 0;
    border: none;
}

.home-seo-block h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.home-seo-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--mn-muted);
}

.home-seo-block p {
    color: var(--mn-muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

.home-seo-block p:last-child {
    margin-bottom: 0;
}

/* ─── Responsive ─── */
@media (min-width: 992px) {
    .home-content-grid {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }

    .home-content-grid__sidebar {
        position: sticky;
        top: 16px;
        align-self: start;
    }
}

@media (max-width: 991px) {
    .hero-magazine__align-row,
    .hero-magazine__footer-row {
        grid-template-columns: 1fr;
    }

    .hero-magazine__news-stack {
        grid-template-rows: auto auto;
    }

    .hero-magazine__news-stack .hero-overlay__link .lazy-bg,
    .hero-magazine__news-stack .hero-overlay__link .item.lazy-bg {
        position: relative;
        inset: auto;
        aspect-ratio: 600 / 400;
        min-height: 180px;
    }

    .breaking-bar {
        flex-wrap: wrap;
    }

    .breaking-bar__title a {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .weather-widget {
        flex-wrap: wrap;
    }

    .weather-widget__inner {
        flex-wrap: wrap;
    }

    .weather-widget__detail {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }

    .municipio-block__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-section--municipios .municipio-links {
        columns: 2;
    }

    .municipio-links {
        columns: 1;
    }
}

@media (max-width: 767px) {
    .hero-split {
        padding: 14px;
    }

    .hero-split--reverse {
        flex-direction: column-reverse;
    }

    .hero-card__thumb {
        width: 80px;
    }

    .hero-card__thumb .lazy-bg,
    .hero-card__thumb .item {
        width: 80px;
        height: 54px;
    }

    .bote-home-item {
        flex: 0 0 140px;
    }

    .home-content-grid__main .home-story-card {
        flex-direction: column;
        gap: 12px;
    }

    .home-content-grid__main .home-story-card .photo {
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 10;
    }

    .home-section--municipios .municipio-links {
        columns: 1;
    }
}

/* ─── Ajustes home en cabecera ─── */
.page-home header .nav-wrapper ul {
    border-bottom-color: #e8e8e8;
}

.page-home .news-featured {
    padding-top: 16px;
    padding-bottom: 8px;
}

.page-home .page-wrapper {
    background: #ffffff;
}

.page-home .home-featured-row {
    margin-bottom: 40px;
}

.page-home .home-content-grid {
    margin-top: 8px;
}
