
/* static/css/noticias.css */

/* =========================================
       1. CABECERA VIP (HERO)
       ========================================= */
    .noticias-hero {
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 35vh; 
        min-height: 250px;
        margin-top: -2rem; /* Se pega al navbar */
        margin-bottom: 4rem;
        background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(192, 8, 18, 0.3);
    }

    .noticias-hero-content {
        text-align: center;
        animation: fadeDown 0.8s ease-out forwards;
    }

    .noticias-subtitle {
        color: var(--rojo-rvm, #c00812);
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 6px;
        margin-bottom: 1rem;
        display: block;
    }

    .noticias-title {
        font-size: 3.5rem;
        font-weight: 300;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 4px;
        line-height: 1;
        margin: 0;
    }
    
    .noticias-title span {
        font-weight: 900;
    }

    /* =========================================
       2. NOTICIA DESTACADA (HORIZONTAL)
       ========================================= */
    .nota-destacada {
        display: grid;
        grid-template-columns: 1fr;
        background: #111;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        margin-bottom: 4rem;
        text-decoration: none;
        transition: all 0.4s ease;
        animation: fadeUp 0.6s ease-out forwards;
    }

    @media (min-width: 992px) {
        .nota-destacada {
            grid-template-columns: 1.5fr 1fr; /* Imagen más grande, texto al lado */
        }
    }

    .nota-destacada:hover {
        transform: translateY(-5px);
        border-color: rgba(192, 8, 18, 0.5);
        box-shadow: 0 20px 50px rgba(192, 8, 18, 0.2);
    }

    .destacada-img-wrapper {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16/9;
    }

    @media (min-width: 992px) {
        .destacada-img-wrapper {
            aspect-ratio: auto;
            height: 100%;
        }
    }

    .destacada-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    .nota-destacada:hover .destacada-img {
        transform: scale(1.05);
    }

    .destacada-content {
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    }

    .badge-destacado {
        display: inline-block;
        background: var(--rojo-rvm, #c00812);
        color: white;
        padding: 5px 12px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        border-radius: 4px;
        margin-bottom: 1.5rem;
        align-self: flex-start;
    }

    .destacada-title {
        color: #fff;
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 1rem;
        transition: color 0.3s ease;
    }

    .nota-destacada:hover .destacada-title {
        color: var(--rojo-rvm, #c00812);
    }

    .btn-leer-mas {
        margin-top: 2rem;
        color: #fff;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .nota-destacada:hover .btn-leer-mas {
        opacity: 1;
        color: var(--rojo-rvm, #c00812);
        gap: 15px; /* La flecha se mueve hacia la derecha */
    }

    /* =========================================
       3. GRILLA DE NOTICIAS SECUNDARIAS
       ========================================= */
    .noticias-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }

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

    @media (min-width: 1024px) {
        .noticias-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .nota-card {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 4/3; 
        background: #111;
        text-decoration: none;
        display: block;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        opacity: 0;
        transform: translateY(30px);
        animation: fadeUp 0.6s ease-out forwards;
        animation-delay: calc(var(--delay) * 0.15s);
    }

    .nota-card:hover {
        transform: translateY(-10px);
        border-color: rgba(192, 8, 18, 0.5);
        box-shadow: 0 15px 40px rgba(192, 8, 18, 0.2);
    }

    .nota-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        opacity: 0.8; 
    }

    .nota-card:hover .nota-img {
        transform: scale(1.08);
        opacity: 1;
    }

    .nota-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        transition: all 0.3s ease;
    }

    .nota-title {
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        transition: color 0.3s ease;
    }

    .nota-card:hover .nota-title {
        color: var(--rojo-rvm, #c00812);
    }

    /* =========================================
       4. ESTADO VACÍO (SIN NOTICIAS)
       ========================================= */
    .notas-empty {
        grid-column: 1 / -1;
        text-align: center;
        padding: 5rem 2rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px dashed rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .notas-empty h3 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        font-weight: 300;
    }

    .notas-empty p {
        color: #666;
        font-size: 1rem;
    }

    /* Animaciones */
    @keyframes fadeDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }