/* assets/css/noticia.css - Versión Reconstruida Estable */

:root {
    --bg: #0d0d0f;
    --bg-soft: #151517;
    --panel: #f2d34c;
    --panel-ink: #171717;
    --ink: #eaeaea;
    --muted: #b9b9bd;
    --line: #2a2a2e;
    --radius: 16px;
    --gap: 22px;
}

/* --- WRAPPER --- */
.wrap-radio {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* --- BANNER TOP STRIP --- */
.news-top-strip {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(255,204,0,0.2);
    background: #111;
}
.news-top-strip-track {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-strip-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.news-strip-image.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}
.news-strip-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; z-index: 5; }
.news-strip-arrow.prev { left: 10px; }
.news-strip-arrow.next { right: 10px; }
.news-top-strip-static {
    margin-top: 0;
    margin-bottom: 30px;
}
.news-top-strip-static .news-strip-image {
    position: relative;
    opacity: 1;
}

/* --- FILTER NAV & DROPDOWN --- */
.filter-nav {
    background: var(--panel);
    padding: 0 15px;
    border-radius: 50px;
    margin-bottom: 35px;
    position: relative;
    z-index: 3000;
    overflow: visible;
}
.filter-container { 
    display: flex; 
    align-items: center; 
    min-height: 55px; 
    overflow: visible !important; 
}
.filter-item { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: #000; 
    text-decoration: none; 
    padding: 12px 18px; 
    border: none; 
    background: none; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: all 0.3s; 
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
}
.filter-item:hover { background: rgba(0,0,0,0.1); }
.filter-item.active { background: rgba(0,0,0,0.15); }

.filter-dropdown { position: relative; }
.filter-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 3100;
    overflow: hidden;
    padding: 8px 0;
}
.filter-dropdown:hover .filter-dropdown-content,
.filter-dropdown:focus-within .filter-dropdown-content { display: block; }
.filter-dropdown-content a {
    display: block;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.filter-dropdown-content a:hover { background: #f2d34c; color: #000; }

.filter-search { 
    display: flex; 
    margin-left: auto; 
    background: #fff; 
    border-radius: 50px; 
    overflow: hidden; 
    height: 38px; 
    border: 1px solid rgba(0,0,0,0.1); 
    padding: 2px 5px 2px 15px;
    align-items: center;
}
.filter-search input { 
    border: none; 
    font-size: 0.85rem; 
    width: 180px; 
    outline: none; 
    color: #333;
}
.filter-search button { 
    background: #f2d34c; 
    border: none; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer; 
    color: #000; 
    transition: all 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-search button:hover { background: #000; color: #fff; }

.social-icon-nav {
    font-size: 1.1rem;
    padding: 10px;
}

/* --- SECTIONS --- */
.section-block { margin-bottom: 45px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 3px solid var(--panel); padding-bottom: 10px; }
.section-title { margin: 0; font-size: 1.5rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.sec-more { background: var(--panel); color: #000; padding: 6px 15px; border-radius: 6px; text-decoration: none; font-weight: 800; font-size: 0.8rem; }

/* --- GRID / CAROUSEL --- */
.carousel-container { 
    position: relative; 
    width: 100%; 
    padding: 20px 45px; 
    overflow: hidden; 
}
.carousel { 
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    padding: 15px 5px; 
    scrollbar-width: none; 
}
.carousel::-webkit-scrollbar { display: none; }

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    border: none; 
    background: var(--panel); 
    color: #000; 
    font-size: 1.2rem; 
    cursor: pointer; 
    z-index: 10; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.left-btn { left: 5px; }
.right-btn { right: 5px; }

/* --- HEADER RADIO --- */
.header-radio {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 16px;
    padding: 10px 0 20px;
    border-bottom: 4px solid var(--panel);
    margin-bottom: 25px;
}
.title-page {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
}

/* --- NEWS CARD --- */
.news-card {
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 320px;
    background: #15151b;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.news-card:hover { 
    transform: translateY(-12px); 
    border-color: var(--panel); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.news-img-container { 
    width: 100%; 
    height: 180px; 
    overflow: hidden; 
    position: relative; 
}

.news-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.news-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--panel);
    color: #000;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    margin-bottom: 10px;
}

.news-card-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-date i { color: var(--panel); }

.news-card-title { 
    color: #fff; 
    font-size: 1.1rem; 
    margin: 0 0 12px; 
    line-height: 1.35; 
    font-weight: 800;
    height: 2.7em; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

.news-card-desc { 
    color: #94a3b8; 
    font-size: 0.88rem; 
    line-height: 1.5; 
    height: 3em; 
    overflow: hidden; 
    margin: 0 0 20px;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.news-read-more {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--panel);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card:hover .news-read-more {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .carousel { grid-template-columns: 1fr; }
    .filter-search { width: 100%; margin: 10px 0; }
    .section-title { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .filter-nav {
        border-radius: 18px;
        padding: 10px;
        z-index: 900;
        overflow: visible;
    }

    .filter-container {
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible !important;
        min-height: auto;
    }

    .filter-item {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 0.78rem;
        justify-content: center;
    }

    .filter-dropdown {
        position: relative;
        z-index: 920;
    }

    .filter-dropdown-content {
        z-index: 950;
        top: calc(100% + 8px);
        left: 0;
    }

    .social-icon-nav {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 0;
        font-size: 1.05rem;
        border-radius: 50%;
    }

    .filter-search {
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        margin: 2px 0 0;
        min-width: 0;
    }

    .filter-search input {
        width: 100%;
        min-width: 0;
    }

    .carousel-container {
        width: calc(100vw - 16px);
        margin-left: calc(50% - 50vw + 8px);
        margin-right: calc(50% - 50vw + 8px);
        padding: 18px 0;
        overflow: visible;
    }

    .carousel {
        padding: 12px 18px 18px;
        scroll-padding-left: 18px;
        scroll-padding-right: 18px;
        gap: 16px;
    }

    .carousel::after {
        content: "";
        flex: 0 0 18px;
    }

    .news-card {
        min-width: min(84vw, 320px);
        max-width: min(84vw, 320px);
    }
}


/* Eliminados estilos de footer redundantes para usar includes/footer.php */
