/* Estilos responsive adicionales */

/* Tablets */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    

}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services,
    .portfolio,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .service-card,
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    .hero-placeholder,
    .about-placeholder {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .portfolio-placeholder {
        height: 200px;
    }
    

    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Móviles grandes */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .service-card,
    .portfolio-item {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    

}

/* Móviles pequeños */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: 1rem;
    }
    
    .hero-placeholder,
    .about-placeholder {
        height: 200px;
    }
    
    .portfolio-placeholder {
        height: 150px;
    }
    

}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .hero-placeholder {
        height: 200px;
    }
}

/* Pantallas de alta resolución */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --border-color: #374151;
    }
    
    .header {
        background-color: var(--bg-dark);
    }
    
    .service-card,
    .portfolio-item {
        background-color: #374151;
    }
    
    .contact-form {
        background-color: #374151;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Impresión */
@media print {
    .header,
    .footer,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        min-height: auto;
    }
    
    .services,
    .portfolio,
    .about,
    .contact {
        padding: 20px 0;
    }
    
    .service-card,
    .portfolio-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
