/* =================================================================
   📰 NOTICIAS.CSS - ESTILOS PREMIUM MAGAZINE (V2.0)
   ================================================================= */

/* --- 1. SECCIÓN EN EL HOME (INDEX) --- */
.news-events-premium {
    padding: 80px 0;
    background: #f8fafc;
}

.ne-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- 2. TARJETAS (HOME) --- */
.news-card {
    position: relative; border-radius: 20px; overflow: hidden; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 400px; display: flex; align-items: flex-end; cursor: pointer;
}
.news-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.6s ease;
}
.news-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    z-index: 1;
}
.news-content {
    position: relative; z-index: 2; padding: 30px; width: 100%;
    transform: translateY(10px); transition: transform 0.4s ease;
}
.news-tag {
    display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px;
    background: var(--brand-cyan, #00aeef); color: white;
}
.tag-magenta { background: var(--brand-magenta, #ec008c); }
.tag-yellow { background: var(--brand-yellow, #ffd100); color: #1e293b; }
.tag-green { background: var(--brand-green, #8dc63f); }

.news-title { color: white; font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.news-meta {
    display: flex; gap: 15px; color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 15px;
    opacity: 0; transform: translateY(10px); transition: all 0.4s ease;
}

.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.news-card:hover .news-bg-img { transform: scale(1.1); }
.news-card:hover .news-content { transform: translateY(0); }
.news-card:hover .news-meta { opacity: 1; transform: translateY(0); }

/* Sidebar Eventos (Home) */
.events-sidebar-box {
    background: white; padding: 30px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03);
}
.event-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; transition: transform 0.2s; }
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-item:hover { transform: translateX(5px); }
.event-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 65px; height: 65px; background: #f0f9ff; border-radius: 14px;
    color: #1e293b; border: 1px solid #e2e8f0; flex-shrink: 0;
}
.ed-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--brand-cyan, #00aeef); }
.ed-day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-details h4 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.event-info { font-size: 0.85rem; color: #64748b; display: flex; gap: 10px; }
.event-info i { color: var(--brand-magenta, #ec008c); }

/* --- 3. PÁGINA NOTICIAS (GENERAL) --- */

.news-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding: 60px 0; }

/* Tarjeta Noticia (Listado) */
.news-card-std {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; display: flex; flex-direction: column;
}
.news-card-std:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.nc-img-box { height: 260px; overflow: hidden; position: relative; }
.nc-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card-std:hover .nc-img-box img { transform: scale(1.1); }
.img-link { display: block; width: 100%; height: 100%; }
.nc-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.nc-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--brand-cyan, #00aeef); margin-bottom: 10px; }
.nc-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; line-height: 1.3; }
.nc-excerpt { font-size: 0.9rem; color: #64748b; margin-bottom: 20px; flex-grow: 1; }
.nc-footer { border-top: 1px solid #f1f5f9; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #94a3b8; }



/* --- 3. PÁGINA NOTICIAS - HERO SECTION PREMIUM --- */
.page-hero-news {
    padding: 100px 0 100px 0; /* Más aire arriba y abajo */
    background: #0F172A; 
    text-align: center; 
    color: white;
    position: relative;
    overflow: hidden;
    /* Tu fondo original */
    background-image: radial-gradient(circle at 10% 20%, rgba(236, 0, 140, 0.15) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(0, 174, 239, 0.15) 0%, transparent 20%);
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    /* Animación de entrada */
    animation: fadeInUp 1s ease-out;
}

/* 1. ETIQUETA SUPERIOR (BADGE) */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-yellow, #ffd100); /* Amarillo marca */
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-label i {
    font-size: 1rem;
    animation: pulse 2s infinite; /* El rayito palpita */
}

/* 2. TÍTULO GIGANTE */
.hero-title {
    font-size: 4.5rem; /* Mucho más grande */
    font-weight: 900; /* Extra bold */
    line-height: 1.1;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Efecto de Texto Gradiente (Solo en FSP) */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-cyan, #00aeef) 50%, var(--brand-magenta, #ec008c) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 3. DESCRIPCIÓN */
.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1; /* Gris azulado claro */
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.hero-description .highlight {
    color: white;
    font-weight: 600;
    border-bottom: 1px dashed var(--brand-cyan, #00aeef);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-description { font-size: 1.1rem; }
    .page-hero-news { padding: 120px 0 60px 0; }
}


/* =================================================================
   🔥 BARRA DE CONTROL PREMIUM (FILTROS + BUSCADOR JUNTOS)
   ================================================================= */
.control-bar {
    max-width: 1100px;
    margin: -40px auto 30px auto;
    background: white;
    padding: 10px;
    border-radius: 60px; /* Cápsula gigante */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 20;
    flex-wrap: wrap; /* Para móviles */
    gap: 15px;
}

/* GRUPO DE FILTROS (IZQUIERDA) */
.filters-group {
    display: flex;
    gap: 8px;
    padding-left: 10px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- COLORES ESPECÍFICOS DE BOTONES (HOVER Y ACTIVO) --- */

/* 1. TODAS (Negro) */
.btn-all:hover, .btn-all.active {
    background: #0F172A; color: white; border-color: #0F172A; box-shadow: 0 5px 15px rgba(15, 23, 42, 0.3);
}

/* 2. ACADÉMICO (Magenta) */
.btn-aca:hover, .btn-aca.active {
    background: #ec008c; color: white; border-color: #ec008c; box-shadow: 0 5px 15px rgba(236, 0, 140, 0.3);
}

/* 3. EVENTOS (Amarillo/Naranja) */
.btn-eve:hover, .btn-eve.active {
    background: #f59e0b; color: white; border-color: #f59e0b; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* 4. CONVENIOS (Verde) */
.btn-con:hover, .btn-con.active {
    background: #10b981; color: white; border-color: #10b981; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* 5. COMUNIDAD (Violeta) */
.btn-com:hover, .btn-com.active {
    background: #8b5cf6; color: white; border-color: #8b5cf6; box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* 6. TECNOLOGÍA (Cian) */
.btn-tec:hover, .btn-tec.active {
    background: #00aeef; color: white; border-color: #00aeef; box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}


/* BUSCADOR INTEGRADO (DERECHA) */
.search-box-integrated {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 40px;
    padding: 5px 15px;
    border: 1px solid #e2e8f0;
    width: 300px;
    transition: all 0.3s;
}
.search-box-integrated:focus-within {
    border-color: #ec008c;
    background: white;
    box-shadow: 0 0 0 3px rgba(236, 0, 140, 0.1);
}
.search-input-int {
    border: none; background: transparent; outline: none;
    width: 100%; padding: 8px; font-size: 0.9rem; color: #475569;
}
.search-btn-int {
    border: none; background: transparent; cursor: pointer;
    color: #94a3b8; font-size: 1.1rem;
}
.search-btn-int:hover { color: #ec008c; }


/* BOTÓN LEER MÁS (CORREGIDO) */
.btn-read-more {
    /* Fallback por si acaso */
    --btn-color: #00aeef; 

    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    padding: 8px 20px; 
    border-radius: 30px;
    font-weight: 700; 
    font-size: 0.85rem; 
    text-decoration: none;
    
    /* AQUI ESTÁ EL TRUCO: Usamos la variable para texto y borde */
    color: var(--btn-color); 
    border: 2px solid var(--btn-color); 
    
    background: transparent; 
    transition: all 0.3s ease-in-out;
}

.btn-read-more:hover {
    /* AL HOVER: El fondo toma el color de la variable, el texto se fuerza a blanco */
    background-color: var(--btn-color); 
    color: white !important; 
    
    /* Sombra suave del mismo color para efecto brillante */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.btn-read-more i { transition: transform 0.3s; }
.btn-read-more:hover i { transform: translateX(5px); }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-link {
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
    border-radius: 50%; background: white; color: #64748b; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); font-weight: 700; transition: 0.3s;
}
.page-link.active, .page-link:hover {
    background: var(--brand-dark, #0F172A); color: white; transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .ne-grid-layout { grid-template-columns: 1fr; }
    .control-bar { 
        flex-direction: column; 
        border-radius: 20px;
        padding: 20px;
    }
    .filters-group { justify-content: center; padding-left: 0; }
    .search-box-integrated { width: 100%; }
}








































/* =================================================================
   🔰 SECCIÓN ADMINISTRATIVA PREMIUM (ESTILO IDENTICO AL INDEX)
   Pegar al final de assets/css/noticias.css
   ================================================================= */

/* --- 1. ESTRUCTURA Y CABECERA --- */
.admin-content { max-width: 1200px; margin: 0 auto; padding-bottom: 50px; width: 100%; }

.panel-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 35px; flex-wrap: wrap; gap: 15px;
}
.page-title { font-size: 1.8rem; color: #1e293b; font-weight: 800; margin: 0; }
.page-subtitle { color: #64748b; margin: 5px 0 0 0; font-size: 0.95rem; }

/* --- 2. TARJETAS DE ESTADÍSTICAS (IGUAL AL INDEX) --- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; margin-bottom: 40px;
}

.stat-card {
    background: white; border-radius: 16px; padding: 25px;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex; align-items: center; gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

/* Iconos cuadrados con color suave */
.stat-icon-box {
    width: 60px; height: 60px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.icon-cyan    { background: rgba(0, 174, 239, 0.1); color: #00aeef; }
.icon-magenta { background: rgba(236, 0, 140, 0.1); color: #ec008c; }
.icon-green   { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-orange  { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-info h3 { font-size: 2rem; font-weight: 800; margin: 0; color: #1e293b; line-height: 1; }
.stat-info p  { margin: 5px 0 0 0; color: #64748b; font-size: 0.9rem; font-weight: 500; }

/* Decoración (Circulo en la esquina) */
.stat-decoration {
    position: absolute; top: -20px; right: -20px;
    width: 100px; height: 100px; border-radius: 50%; opacity: 0.05;
}
.decoration-cyan    { background: #00aeef; }
.decoration-magenta { background: #ec008c; }
.decoration-green   { background: #10b981; }
.decoration-orange  { background: #f59e0b; }


/* --- 3. SECCIÓN DE GRÁFICAS --- */
.charts-row {
    display: grid; grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 25px; margin-bottom: 40px;
}
.chart-card {
    background: white; border-radius: 16px; padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04);
}
.chart-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    color: #334155; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- 4. BUSCADOR Y TABLA --- */
.admin-search-wrapper { position: relative; margin-bottom: 20px; }
.admin-search-bar {
    width: 100%; padding: 15px 20px 15px 50px;
    border: 1px solid #e2e8f0; border-radius: 50px; /* Redondeado completo */
    font-size: 1rem; background: white; outline: none; transition: 0.3s;
}
.admin-search-bar:focus { border-color: #00aeef; box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1); }
.admin-search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; }

/* Tabla Estilo Lista (Sin bordes toscos) */
.premium-table { width: 100%; border-collapse: collapse; min-width: 800px; }

.premium-table thead th {
    padding: 15px 20px; text-align: left;
    font-size: 0.75rem; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1.2px;
    border-bottom: 1px solid #f1f5f9;
}

.premium-table tbody tr {
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}
.premium-table tbody tr:hover {
    background-color: #f8fafc; /* Color de fondo muy suave al hover */
    /* SIN LINEA LATERAL */
}
.premium-table td { padding: 15px 20px; vertical-align: middle; color: #334155; }

/* Miniaturas */
.mini-img {
    width: 50px; height: 50px; object-fit: cover; border-radius: 8px;
    cursor: zoom-in; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s;
}
.mini-img:hover { transform: scale(1.1); }

/* Badges */
.badge-adm { padding: 5px 12px; border-radius: 30px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-vis { background: #ecfdf5; color: #059669; }
.badge-hid { background: #f1f5f9; color: #64748b; }

/* Botones Acción (Círculos) */
.action-btn {
    width: 35px; height: 35px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 5px; border: none; cursor: pointer; transition: 0.2s; text-decoration: none;
}
.btn-edit { background: #f0f9ff; color: #0ea5e9; }
.btn-hide { background: #fff7ed; color: #f97316; }
.btn-del  { background: #fef2f2; color: #ef4444; }

.btn-edit:hover { background: #0ea5e9; color: white; }
.btn-hide:hover { background: #f97316; color: white; }
.btn-del:hover  { background: #ef4444; color: white; }

/* Responsive */
@media (max-width: 992px) {
    .charts-row { grid-template-columns: 1fr; }
    .table-responsive { overflow-x: auto; }
}



/* --- SWITCH TOGGLE PREMIUM --- */
.view-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.view-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1); /* Fondo cristal oscuro */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.vs-btn {
    position: relative;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6); /* Color texto inactivo */
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-btn:hover {
    color: white;
}

/* Estado Activo (El botón seleccionado) */
.vs-btn.active {
    color: #0F172A; /* Texto oscuro para contraste */
    background: white; /* Fondo blanco brillante */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 800;
}

/* Iconos */
.vs-btn i { font-size: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .vs-btn { padding: 8px 20px; font-size: 0.85rem; }
}








/* --- MODAL PREMIUM SWEETALERT --- */
div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: 25px !important; /* Bordes más redondeados */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding-bottom: 2.5em !important;
}

/* Botones del Modal */
.btn-agenda-premium {
    width: 100%;
    padding: 16px 20px;
    border-radius: 15px;
    border: 1px solid #f1f5f9;
    background: white;
    color: #1e293b;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda se ve más pro */
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.btn-agenda-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-cyan, #00aeef); /* Color de tu marca al borde */
}

/* Iconos dentro del botón */
.btn-agenda-premium img, 
.btn-agenda-premium i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Flechita decorativa a la derecha */
.btn-agenda-premium::after {
    content: '→';
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: 0.3s;
    color: var(--brand-cyan, #00aeef);
    font-weight: 800;
}

.btn-agenda-premium:hover::after {
    opacity: 1;
    transform: translateX(5px);
}



/* --- BOTÓN VERDE DE CONFIANZA (DESCARGA) --- */
.btn-agenda-download {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background: #10b981; /* Verde Esmeralda */
    color: white;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-agenda-download:hover {
    background: #059669; /* Verde más oscuro al hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Textos dentro del botón verde */
.btn-agenda-download span.main-text { display: block; font-size: 1rem; }
.btn-agenda-download span.sub-text { display: block; font-size: 0.75rem; opacity: 0.9; font-weight: 400; }
.btn-agenda-download i { font-size: 1.5rem; color: white; }








