/* ========================================= */
/* === NOTICIAS.CSS | VERSIÓN FINAL (CON BURBUJAS ARREGLADAS) === */
/* ========================================= */

:root {
    --primary: #006994;
    --secondary: #00A5CF;
    --accent: #00C9B1;
    --dark: #0A2342;
    --light: #F7F9FC;
    --text: #333333;
    --gold: #FFD700;
    --deep-blue: #002366;
    --glow: 0 0 30px rgba(0, 201, 177, 0.7);
    --text-glow: 0 0 10px rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- ESTO ES LO QUE FALTABA (El arreglo del espacio vacío) --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Al fondo */
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 201, 177, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: drift 20s infinite linear;
}
/* --------------------------------------------------------- */

/* --- LOADER --- */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 1s ease;
}
.loader-logo { width: 150px; height: auto; margin-bottom: 30px; animation: float 3s ease-in-out infinite; }
.loader-bar { width: 300px; height: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden; }
.loader-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s ease; }

/* --- HEADER --- */
.news-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.news-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: var(--text-glow);
    color: var(--light);
}
.news-header h1 span { color: var(--accent); }
.news-header p { font-size: 1.2rem; opacity: 0.9; margin: 0 auto; color: var(--light); }

/* Botón Home */
.home-btn {
    position: absolute; top: 2rem; left: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent);
    border-radius: 50px;
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 100;
}
.home-btn:hover { background: var(--accent); color: var(--dark); box-shadow: var(--glow); }

/* --- SECCIÓN NOTICIAS --- */
.news-section {
    padding: 4rem 2rem;
    /* Fondo oscuro continuo */
    background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
    position: relative;
    flex: 1;
    z-index: 2;
    padding-bottom: 8rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- TARJETA (Estilo Cristal) --- */
.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 201, 177, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
    height: 100%;
    opacity: 0; transform: translateY(20px);
}

.news-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 201, 177, 0.2);
    border-color: var(--accent);
}

.card-img {
    width: 100%; height: 250px; position: relative; overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.card-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.news-card:hover .card-img img { transform: scale(1.1); }

.news-content { padding: 2rem; display: flex; flex-direction: column; flex: 1; }

.news-content h3 {
    font-size: 1.6rem; color: var(--light); margin-bottom: 0.8rem;
}
.news-content .date {
    color: var(--accent); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem;
}
.news-content p {
    font-size: 1rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; flex: 1;
}

/* --- FOOTER (COPIADO EXACTO DE CONTACTANOS.CSS) --- */
.news-footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0 1rem 0;
    position: relative;
    min-height: 120px;
    width: 100vw;
    left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    margin-top: auto;
    z-index: 10;
}

.wave-divider {
    position: absolute; top: 0; left: 0; width: 100vw; height: 120px;
    overflow: hidden; line-height: 0; z-index: 2;
}

.footer-content {
    width: 100%; max-width: 1200px; margin: 0 auto; text-align: center;
    position: relative; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
    padding: 0 1rem;
}

.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 0.5rem; }
.social-icon {
    color: white !important; font-size: 2rem !important;
    background: rgba(0,201,177,0.13) !important;
    border-radius: 50%; padding: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; width: 50px; height: 50px;
}
.social-icon:hover {
    color: var(--accent) !important;
    background: rgba(0,201,177,0.22) !important;
    transform: translateY(-3px) scale(1.15);
}
.news-footer .social-links a { color: white !important; text-decoration: none !important; border: none; box-shadow: none; }
.footer-content p { margin: 0; font-size: 1rem; opacity: 0.85; width: 100%; text-align: center; }

/* --- EXTRAS --- */
.notification {
    position: fixed; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.9); color: white;
    padding: 15px 25px; border-radius: 8px;
    transform: translateX(150%); transition: transform 0.5s ease;
    z-index: 10000; border-left: 4px solid var(--accent);
}
.notification.show { transform: translateX(0); }

@keyframes drift {
    0% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translate(-100px, -100px); opacity: 0; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .news-header { padding: 6rem 1rem 3rem; }
    
    .news-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .home-btn { top: 1rem; left: 1rem; padding: 0.5rem 1rem; font-size: 0.85rem; }
    
    .news-footer { padding: 1.2rem 0 0.5rem 0; }
    .social-icon { font-size: 1.3rem !important; padding: 0.35rem; width: 40px; height: 40px; }
    .footer-content { font-size: 0.95rem; gap: 0.7rem; padding: 0 0.5rem; }
    .social-links { gap: 1rem; }
}