/* Tablet */
@media (max-width: 992px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav ul li a {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul li a {
        padding: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .slide-content .meta {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links ul li {
        text-align: center;
    }
    
    .widget ul li a {
        text-align: center;
    }
    
    .popular-post {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-post img {
        width: 100%;
        height: 150px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content .category {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .slide-content h2 {
        font-size: 0.9rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-meta {
        font-size: 0.7rem;
    }
    
    .card-excerpt {
        font-size: 0.85rem;
    }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a2e;
        --white: #16213e;
        --gray: #a0a0a0;
    }
    
    body {
        background: #0f0f1a;
        color: #e0e0e0;
    }
    
    .news-card,
    .widget,
    .welcome-card,
    .stat-card,
    .posts-table {
        background: #16213e;
    }
    
    .card-content h3 a,
    .popular-post h4 a,
    .widget ul li a {
        color: #e0e0e0;
    }
    
    .card-content h3 a:hover,
    .popular-post h4 a:hover,
    .widget ul li a:hover {
        color: var(--primary-color);
    }
    
    .card-meta,
    .card-excerpt {
        color: #a0a0a0;
    }
    
    .posts-table th {
        background: #1a1a2e;
        color: #e0e0e0;
    }
    
    .posts-table td {
        border-bottom-color: #2a2a3e;
        color: #e0e0e0;
    }
    
    .posts-table tr:hover {
        background: #1e1e2e;
    }
}