/* Variables de colores */
:root {
    --primary: #0d6efd;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #198754;
    --dark: #212529;
    --light: #f8f9fa;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    line-height: 1.7;
    color: #333;
}

/* Header Styles */
.news-header {
    background: linear-gradient(135deg, var(--warning) 0%, #ffdb58 100%);
    color: #333;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.header-badge {
    background-color: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.header-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Sección de estadísticas */
.stats-section {
    background-color: white;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    text-align: center;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-source {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.alert-section .alert {
    border-radius: 12px;
    border: none;
    padding: 2rem;
}

/* Noticias principales */
.main-news {
    background-color: var(--light);
}

.news-article {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.meta-date, .meta-author {
    font-size: 0.9rem;
    color: #666;
}

.article-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 2rem;
}

.analysis-box {
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.analysis-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--warning);
}

.trend-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.trend-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trend-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.trend-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.trend-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Gráficos */
.charts-section {
    background: white;
}

.chart-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.chart-card .card-header {
    background: var(--light);
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.chart-card .card-body {
    padding: 2rem;
}

/* Noticias secundarias */
.secondary-news {
    background: var(--light);
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e9ecef;
}

.news-category {
    background: var(--success);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--dark);
}

/* Sección de alerta */
.alert-section {
    background: linear-gradient(135deg, var(--dark) 0%, #343a40 100%);
}

.alert-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.alert-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.alert-icon {
    font-size: 4rem;
    color: var(--warning);
}

/* Newsletter */
.newsletter-section {
    background: white;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: 2px solid #e9ecef;
    border-right: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    padding: 0.75rem 2rem;
}

/* Animaciones y efectos hover */
.card-hover:hover {
    transform: translateY(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.animate__animated {
    animation-duration: 1s;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .header-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .news-article {
        padding: 2rem;
    }
}
.logo-img {
  width: 200px;   /* ajusta según tu logo */
  height: auto;
  background: transparent;
}
