/* Mejoras adicionales de responsive y animaciones */

/* Tablets en orientación portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .filter-group {
        justify-content: center;
    }
}

/* Tablets en orientación landscape y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
    .resource-card {
        border: 2px solid var(--white);
    }
    
    .filter-btn,
    .filter-type-btn {
        border-width: 3px;
    }
}

/* Optimizaciones para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .resource-card:hover {
        transform: none;
    }
    
    .resource-card:active {
        transform: scale(0.98);
    }
    
    .download-btn:hover {
        transform: none;
    }
    
    .download-btn:active {
        transform: scale(0.95);
    }
}

/* Mejoras para impresión */
@media print {
    .navbar,
    .filters-section,
    .footer,
    .download-btn {
        display: none;
    }
    
    .resource-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}
