/**
 * Archivo: assets/css/archive-noticias-new.css
 * Estilos para el RediseÃ±o del Home de Noticias (Diferenciado de ArtÃ­culos)
 */
:root {
    --news-accent: #E63946;
    --news-accent-dark: #C62828;
    --news-navy: #001344;
    --news-white: #ffffff;
    --news-gray-bg: #F0F2F5;
    --news-text: #333333;
    --news-font: 'Montserrat', sans-serif;
    --news-transition: all 0.3s ease;
}

/* 1. HERO NOTICIAS */
.news-hero {
    position: relative;
    background-color: #0D1B2A;
    background-image: linear-gradient(135deg, #0D1B2A 0%, #1B2838 50%, #0D1B2A 100%);
    padding: 2vh 20px 150px;
    text-align: center;
    color: var(--news-white);
}

.news-hero .hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.news-hero h1 .accent {
    color: var(--news-accent);
}

.news-hero .tagline {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 3rem;
    font-weight: 400;
}

.news-hero .hero-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    transition: var(--news-transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.news-hero .hero-search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--news-accent);
}

.news-hero .hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 25px;
    color: var(--news-white);
    font-size: 0.95rem;
    outline: none;
}

.news-hero .hero-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.news-hero .hero-search-form button {
    background-color: var(--news-accent);
    color: var(--news-white);
    border: none;
    border-radius: 40px;
    padding: 0 35px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--news-transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.news-hero .hero-search-form button:hover {
    background-color: var(--news-accent-dark);
    transform: translateY(-2px);
}

/* 2. PILLARS 5 COLUMNAS */

.pillar-content {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    padding: 0 24px;
    z-index: 2;
    text-align: center;
    transition: top 0.4s ease;
}

.news-pillars-container {
    max-width: 1400px;
    margin: -100px auto 20px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.news-pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.news-pillars-grid .pillar-card {
    height: 340px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.news-pillars-grid .pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-pillars-grid .pillar-title {
    font-size: 1.5rem;
}

/* 3. TICKER LAYOUT */
.news-ticker-section {
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 30px 20px;
}

.news-ticker-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-ticker-section .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--news-navy);
    text-transform: uppercase;
    margin: 0;
    position: relative;
    padding-left: 18px;
}

.news-ticker-section .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--news-accent);
    border-radius: 3px;
}

.news-tabs {
    display: flex;
    gap: 5px;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px;
}

.news-tabs button.tab-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--news-font);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6B7280;
    border-radius: 6px;
    transition: var(--news-transition);
    white-space: nowrap;
}

.news-tabs button.tab-link:hover {
    color: var(--news-navy);
    background: rgba(255, 255, 255, 0.5);
}

.news-tabs button.tab-link.active {
    background: var(--news-white);
    color: var(--news-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.news-ticker-section .sec-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 10px;
    transition: var(--news-transition);
}

.news-ticker-section .sec-search-form:focus-within {
    border-color: var(--news-accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.news-ticker-section .sec-search-form input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 6px 8px;
    width: 200px;
    color: #333;
}

.news-ticker-section .sec-search-form button {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.news-ticker-section .sec-search-form button:hover {
    color: var(--news-accent);
}

.news-ticker-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    min-height: 480px;
}

/* Featured Story */
.news-featured-story {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
}

.news-featured-story .featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-story:hover .featured-img {
    transform: scale(1.05);
}

.news-featured-story .featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.news-featured-story .featured-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--news-white);
}

.news-featured-story .featured-pill {
    display: inline-block;
    background: var(--news-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.news-featured-story .featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-story .featured-meta {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    gap: 10px;
    align-items: center;
}

.news-featured-story .featured-meta .dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Side Feed */
.news-side-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-feed-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: var(--news-transition);
    align-items: flex-start;
}

.news-feed-item:first-child {
    padding-top: 0;
}

.news-feed-item:last-child {
    border-bottom: none;
}

.news-feed-item:hover {
    background: rgba(230, 57, 70, 0.03);
    padding-left: 8px;
}

.news-feed-item .feed-thumb {
    width: 100px;
    min-width: 100px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-feed-item .feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feed-item .feed-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.news-feed-item .feed-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--news-accent);
    letter-spacing: 0.5px;
}

.news-feed-item .feed-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--news-navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-feed-item:hover .feed-title {
    color: var(--news-accent);
}

.news-feed-item .feed-time {
    font-size: 0.75rem;
    color: #999;
}

.news-ticker-layout .grid-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 16px;
    color: #666;
}

/* 4. RANKING */
.news-ranking-section {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-ranking-section .section-header {
    margin-bottom: 30px;
}

.news-ranking-section .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--news-navy);
    text-transform: uppercase;
    position: relative;
    padding-left: 18px;
    margin: 0;
}

.news-ranking-section .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--news-accent);
    border-radius: 3px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ranking-card {
    background: var(--news-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--news-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ranking-card .rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    background: var(--news-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.ranking-card .rank-thumb {
    height: 160px;
    overflow: hidden;
}

.ranking-card .rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ranking-card:hover .rank-thumb img {
    transform: scale(1.08);
}

.ranking-card .rank-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-card .rank-pill {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--news-accent);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ranking-card .rank-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--news-navy);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card:hover .rank-title {
    color: var(--news-accent);
}

.ranking-card .rank-date {
    margin-top: auto;
    font-size: 0.75rem;
    color: #999;
    padding-top: 10px;
}

/* 5. EXPLORE 5 cols */
.news-explore-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .news-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .news-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-ticker-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .news-featured-story {
        min-height: 400px;
    }

    .ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-hero {
        padding-bottom: 160px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 20px 140px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero .hero-search-form {
        flex-direction: column;
        padding: 10px;
        border-radius: 20px;
    }

    .news-hero .hero-search-form button {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding: 12px;
    }

    .news-pillars-container {
        margin-top: -100px;
        padding: 0;
    }

    .news-pillars-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 20px 40px;
        gap: 15px;
    }

    .news-pillars-grid .pillar-card {
        min-width: 260px;
        scroll-snap-align: center;
        height: 250px;
    }

    .news-ticker-layout {
        grid-template-columns: 1fr;
    }

    .news-featured-story {
        min-height: 320px;
    }

    .news-featured-story .featured-title {
        font-size: 1.4rem;
    }

    .news-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .news-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .news-ticker-section .sec-search-form {
        width: 100%;
    }

    .news-ticker-section .sec-search-form input {
        width: 100%;
    }

    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .news-explore-grid {
        grid-template-columns: 1fr;
    }

    .news-ticker-section .section-header h2,
    .news-ranking-section .section-header h2 {
        font-size: 1.5rem;
    }

    .news-pillars-grid .pillar-drawer {
        background: #0D1B2A;
        backdrop-filter: none !important;
    }

    .news-pillars-grid .pillar-card.is-open .pillar-drawer {
        background: #0D1B2A;
    }
}

@media (max-width: 480px) {
    .ranking-grid {
        grid-template-columns: 1fr;
    }
}