/**
 * News Hub – unified layout for /noticias/ and category pages
 */

:root {
    --news-hub-accent: #6366f1;
    --news-hub-accent-light: #eef2ff;
    --news-hub-accent-hover: #4f46e5;
    --news-hub-gradient-to: #eef2ff;
}

.news-hub-mural--blue,
.news-hub-hero--blue {
    --news-hub-accent: #2563eb;
    --news-hub-accent-light: #dbeafe;
    --news-hub-accent-hover: #1d4ed8;
    --news-hub-gradient-to: #eff6ff;
}

.news-hub-mural--purple,
.news-hub-hero--purple {
    --news-hub-accent: #9333ea;
    --news-hub-accent-light: #f3e8ff;
    --news-hub-accent-hover: #7e22ce;
    --news-hub-gradient-to: #faf5ff;
}

.news-hub-mural--red,
.news-hub-hero--red {
    --news-hub-accent: #dc2626;
    --news-hub-accent-light: #fee2e2;
    --news-hub-accent-hover: #b91c1c;
    --news-hub-gradient-to: #fef2f2;
}

/* Video hub */
.video-hub-page__main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-hub-empty {
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.video-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .video-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .video-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.video-hub-grid .feed-card--video {
    margin-bottom: 0;
    height: 100%;
}

/* Featured video */
.video-hub-featured {
    background: #fff;
    border: 2px solid #fecaca;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.video-hub-featured:hover {
    border-color: #f87171;
    box-shadow: 0 16px 32px -8px rgba(220, 38, 38, 0.18);
}

.video-hub-featured__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-hub-featured__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
    overflow: hidden;
}

.video-hub-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-hub-featured__link:hover .video-hub-featured__image {
    transform: scale(1.02);
}

.video-hub-featured__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.video-hub-featured__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-hub-featured__link:hover .video-hub-featured__overlay {
    background: rgba(0, 0, 0, 0.38);
}

.video-hub-featured__play {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s;
}

.video-hub-featured__play svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.2rem;
}

.video-hub-featured__link:hover .video-hub-featured__play {
    transform: scale(1.08);
}

.video-hub-featured__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.video-hub-featured__badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.video-hub-featured__duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-hub-featured__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.video-hub-featured__label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #dc2626;
}

.video-hub-featured__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    transition: color 0.2s;
}

.video-hub-featured__link:hover .video-hub-featured__title {
    color: #dc2626;
}

.video-hub-featured__excerpt {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-hub-featured__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.video-hub-featured__meta-tag {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.video-hub-featured__meta-source {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #ffedd5;
    color: #c2410c;
    font-weight: 600;
}

/* Section nav (/noticias/) */
.news-hub-section-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.news-hub-section-nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.news-hub-section-nav__inner::-webkit-scrollbar {
    display: none;
}

.news-hub-section-nav__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.news-hub-section-nav__pill:hover {
    background: var(--news-hub-accent-light);
    color: var(--news-hub-accent-hover);
}

.news-hub-section-nav__pill.is-active {
    background: var(--news-hub-accent);
    color: #fff;
}

/* Page grid */
.news-hub-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .news-hub-page__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.news-hub-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .news-hub-sidebar__inner {
        position: sticky;
        top: 2rem;
    }
}

/* Hero */
.news-hub-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fff 0%, var(--news-hub-gradient-to) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.5rem;
}

.news-hub-hero__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: var(--news-hub-accent-light);
    color: var(--news-hub-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-hub-hero__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.news-hub-hero__body {
    flex: 1;
    min-width: 200px;
}

.news-hub-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.news-hub-hero__description {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    max-width: 42rem;
}

.news-hub-hero__stat {
    margin-left: auto;
    text-align: right;
}

.news-hub-hero__stat-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--news-hub-accent);
}

.news-hub-hero__stat-label {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Mural Flash */
.news-hub-mural {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fff 0%, var(--news-hub-gradient-to) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.news-hub-mural__decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    opacity: 0.05;
    background: radial-gradient(circle, var(--news-hub-accent) 0%, transparent 70%);
    animation: news-hub-float 6s ease-in-out infinite;
}

@keyframes news-hub-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.news-hub-mural__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-hub-mural__header-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--news-hub-accent) 0%, var(--news-hub-accent-hover) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.news-hub-mural__header-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.news-hub-mural__header-text {
    flex: 1;
    min-width: 0;
}

.news-hub-mural__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.news-hub-mural__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.news-hub-mural__count {
    text-align: right;
    flex-shrink: 0;
}

.news-hub-mural__count-value {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--news-hub-accent);
}

.news-hub-mural__count-label {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.news-hub-mural__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-hub-mural__empty {
    position: relative;
    z-index: 1;
    color: #6b7280;
    margin: 0;
}

.news-hub-mural__empty--small {
    font-size: 0.875rem;
}

/* Featured */
.news-hub-mural__featured {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-hub-mural__featured:hover {
    border-color: var(--news-hub-accent-light);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-hub-mural__featured-link {
    display: grid;
    grid-template-columns: 1fr;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 1024px) {
    .news-hub-mural__featured-link {
        grid-template-columns: 1.4fr 1fr;
    }
}

.news-hub-mural__featured-body {
    padding: 1.5rem 2rem;
}

.news-hub-mural__badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--news-hub-accent-light);
    color: var(--news-hub-accent-hover);
    margin-bottom: 0.75rem;
}

.news-hub-mural__featured-title {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    transition: color 0.2s;
}

.news-hub-mural__featured-link:hover .news-hub-mural__featured-title {
    color: var(--news-hub-accent);
}

.news-hub-mural__featured-excerpt {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hub-mural__featured-media {
    min-height: 220px;
    background: #f3f4f6;
}

@media (min-width: 1024px) {
    .news-hub-mural__featured-media {
        min-height: 100%;
    }
}

.news-hub-mural__featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-hub-mural__featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Secondary grid */
.news-hub-mural__secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .news-hub-mural__secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-hub-mural__secondary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-hub-mural__secondary-card:hover {
    border-color: var(--news-hub-accent-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-hub-mural__secondary-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.news-hub-mural__tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--news-hub-accent-light);
    color: var(--news-hub-accent-hover);
    margin-bottom: 0.5rem;
}

.news-hub-mural__tag--small {
    font-size: 0.6875rem;
}

.news-hub-mural__secondary-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-hub-mural__secondary-link:hover .news-hub-mural__secondary-title {
    color: var(--news-hub-accent);
}

.news-hub-mural__secondary-excerpt {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hub-mural__date {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Flux */
.news-hub-mural__flux {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.news-hub-mural__flux-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-hub-mural__flux-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.news-hub-mural__flux-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
}

.news-hub-mural__flux-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-hub-mural__flux-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-hub-mural__flux-item:hover {
    border-color: var(--news-hub-accent-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-hub-mural__flux-thumb {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.news-hub-mural__flux-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-hub-mural__flux-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.25rem;
}

.news-hub-mural__flux-body {
    flex: 1;
    min-width: 0;
}

.news-hub-mural__flux-headline {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-hub-mural__flux-item:hover .news-hub-mural__flux-headline {
    color: var(--news-hub-accent);
}

.news-hub-mural__flux-chevron {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Pagination */
.news-hub-pagination {
    margin-top: 1.5rem;
}

.news-hub-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.news-hub-pagination ul li a,
.news-hub-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.news-hub-pagination ul li a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.news-hub-pagination ul li span.current {
    background: var(--news-hub-accent);
    color: #fff;
    border-color: var(--news-hub-accent);
    font-weight: 600;
}

.news-hub-pagination ul li span.dots {
    background: transparent;
    border: none;
    color: #9ca3af;
}

/* Sidebar CTAs */
.news-hub-sidebar-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-hub-sidebar-cta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.news-hub-sidebar-cta__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-hub-sidebar-cta__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-hub-sidebar-cta__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.news-hub-sidebar-cta__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.news-hub-sidebar-cta__text {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.news-hub-sidebar-cta__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.news-hub-sidebar-cta__button {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.news-hub-sidebar-cta__button:hover {
    background: #1d4ed8;
}

.news-hub-sidebar-cta__button--secondary {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.news-hub-sidebar-cta__button--secondary:hover {
    background: #eff6ff;
}

.news-hub-sidebar-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-hub-sidebar-cta__social {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}

.news-hub-sidebar-cta__social--whatsapp:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.news-hub-sidebar-cta__social--telegram:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
