/* === Main Layout === */
#main-content {
    min-height: calc(100vh - var(--navbar-height));
    padding-top: var(--navbar-height);
}

/* === Hero Section === */
.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    margin-bottom: var(--space-3xl);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(10, 10, 15, 1) 0%,
            rgba(10, 10, 15, 0.8) 30%,
            rgba(10, 10, 15, 0.3) 60%,
            rgba(10, 10, 15, 0.1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3xl) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-body);
    font-size: var(--fs-hero);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-dots {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.hero-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transform: scale(1.2);
}

/* === Sections === */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

/* === News Grid === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.news-grid.with-featured {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
}

/* === Content Layout (Main + Sidebar) === */
.content-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-2xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === Article Page === */
.article-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.article-header {
    margin-bottom: var(--space-2xl);
}

.article-header .card-category {
    margin-bottom: var(--space-md);
}

.article-header h1 {
    font-family: var(--font-body);
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.article-header .article-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-meta-bar .material-symbols-outlined {
    font-size: 1.1rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 780px;
}

.article-content p {
    margin-bottom: var(--space-lg);
}

.article-content h2 {
    font-family: var(--font-body);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-2xl) 0 var(--space-md);
}

.article-content h3 {
    font-family: var(--font-body);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md);
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-cyan);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: rgba(0, 240, 255, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
    list-style: disc;
    color: var(--text-secondary);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.article-tag {
    background: rgba(0, 240, 255, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.article-tag:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--accent-cyan);
}

.related-articles {
    margin-top: var(--space-3xl);
}

/* === Category Page === */
.category-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.category-header {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.category-header h1 {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-sm);
}

.category-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
}

.category-icon.gaming {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
}

.category-icon.tech {
    background: rgba(123, 47, 255, 0.12);
    color: var(--accent-purple);
}

.category-icon.curiosidades {
    background: rgba(255, 0, 170, 0.12);
    color: var(--accent-magenta);
}

.category-icon.tendencias {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
}

.category-icon.actualidad {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
}

/* === Responsive === */
@media (max-width: 1100px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar-links,
    .navbar-search,
    .navbar-admin-btn {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-content {
        padding: var(--space-xl) var(--space-lg);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        grid-column: span 1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .article-hero-image {
        aspect-ratio: 16/9;
        border-radius: var(--radius-md);
    }

    .content-layout {
        padding: 0 var(--space-md);
    }

    .hero-dots {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }

    .hero-subtitle {
        display: none;
    }

    .article-meta-bar {
        flex-wrap: wrap;
    }
}