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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stats {
    margin-top: 1rem;
}

.stats span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: -2rem auto 2rem;
    padding: 0 2rem;
}

/* Grid de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.category-header h3 {
    font-size: 1.3rem;
    color: #333;
}

.news-count {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

.preview-news {
    list-style: none;
    margin: 1rem 0;
}

.preview-news li {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-left: 3px solid #e0e0e0;
    transition: border-color 0.3s;
}

.preview-news li:hover {
    border-left-color: #667eea;
}

.news-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.news-link:hover {
    color: #667eea;
}

.news-source {
    font-size: 0.75rem;
    color: #999;
}

.btn-view-all {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-view-all:hover {
    background: #667eea;
    color: white;
}

/* Layout de dos columnas */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.2rem;
}

/* Noticias */
.news-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.news-card {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
}

.news-card.featured {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.news-rank {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    opacity: 0.5;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-content h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-content h4 a:hover {
    color: #667eea;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

.source {
    font-weight: 500;
    color: #667eea;
}

.summary {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Otras noticias */
.other-news-list {
    list-style: none;
}

.other-news-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.other-news-list li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.other-news-list li a:hover {
    color: #667eea;
}

.other-news-list .news-source {
    font-size: 0.7rem;
}

/* Stats box */
.stats-box {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
}

.stats-box p {
    margin-bottom: 0.5rem;
}

/* Categorías tags */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.category-tag:hover {
    background: #667eea;
    color: white;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-rank {
        display: none;
    }
}
