/* ========================================================
NOTICIAS.CSS - Estilos específicos para página de Noticias
Municipalidad Distrital de Quiquijana
Color principal: #0056b3
======================================================== */

/* ========================================================
HERO SECTION
======================================================== */
.noticias-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 86, 179, 0.9)),
                url('./img/noticias/hero-noticias.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0 60px;
    position: relative;
}

.noticias-hero .hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 30px 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.hero-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.hero-breadcrumb a:hover {
    opacity: 0.9;
}

.hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* ========================================================
SECCIÓN INTRODUCCIÓN
======================================================== */
.section-padding {
    padding: 80px 0;
}

.bg-light-section {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: #0056b3;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================================
GRID DE NOTICIAS - 3 COLUMNAS
======================================================== */
.noticias-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .noticias-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .noticias-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
TARJETAS DE NOTICIAS COMPACTAS
======================================================== */
.noticia-card-compact {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.noticia-imagen-compact {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.noticia-imagen-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card-compact:hover .noticia-imagen-compact img {
    transform: scale(1.05);
}

.noticia-categoria-compact {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0056b3;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.noticia-body-compact {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticia-meta-compact {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.noticia-meta-compact .fecha {
    color: #0056b3;
    font-weight: 500;
}

.noticia-meta-compact .fecha i {
    margin-right: 5px;
}

.noticia-titulo-compact {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.noticia-descripcion-compact {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.noticia-btn-compact {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
    margin-top: auto;
}

.noticia-btn-compact:hover {
    color: #003d82;
}

.noticia-btn-compact i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.noticia-btn-compact:hover i {
    transform: translateX(3px);
}

/* ========================================================
BADGES DE ETIQUETAS
======================================================== */
.badge-etiqueta {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-mas-visto {
    background: #ffc107;
    color: #000;
}

.badge-destacado {
    background: #17a2b8;
    color: #fff;
}

.badge-fotografias {
    background: #28a745;
    color: #fff;
}

.badge-deportivo {
    background: #dc3545;
    color: #fff;
}

.badge-logro-nacional {
    background: #0056b3;
    color: #fff;
}

/* ========================================================
BOTÓN SCROLL TOP
======================================================== */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-scroll-top:hover {
    background: #004494;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
}

/* ========================================================
RESPONSIVE ADICIONAL
======================================================== */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .noticia-imagen-compact {
        height: 180px;
    }
    
    .noticia-body-compact {
        padding: 15px;
    }
    
    .noticia-titulo-compact {
        font-size: 16px;
    }
    
    .noticia-descripcion-compact {
        font-size: 13px;
    }
}

/* ========================================================
ANIMACIONES
======================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.noticia-card-compact {
    animation: fadeInUp 0.5s ease forwards;
}

.noticia-card-compact:nth-child(1) { animation-delay: 0.1s; }
.noticia-card-compact:nth-child(2) { animation-delay: 0.2s; }
.noticia-card-compact:nth-child(3) { animation-delay: 0.3s; }
.noticia-card-compact:nth-child(4) { animation-delay: 0.4s; }
.noticia-card-compact:nth-child(5) { animation-delay: 0.5s; }
.noticia-card-compact:nth-child(6) { animation-delay: 0.6s; }
.noticia-card-compact:nth-child(7) { animation-delay: 0.7s; }
.noticia-card-compact:nth-child(8) { animation-delay: 0.8s; }
.noticia-card-compact:nth-child(9) { animation-delay: 0.9s; }