/* ==========================================================================
   RESPONSIVE DESIGN ADICIONAL
   ========================================================================== */

/* Pantallas muy grandes (más de 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 { font-size: 4rem; }
    .hero-title { font-size: 4rem; }
}

/* Tablets en horizontal (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets en vertical y móviles grandes (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    .hero .container {
        gap: var(--spacing-lg);
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    .hero-title { font-size: 1.8rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .services,
    .about,
    .portfolio,
    .testimonials,
    .contact {
        padding: var(--spacing-lg) 0;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Pantallas con hover (no táctiles) */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover::after {
        width: 100%;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .portfolio-item:hover .portfolio-overlay {
        transform: translateY(0);
    }
}

/* Pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .service-card:active {
        transform: translateY(-5px);
    }
    
    .nav-link.active::after {
        width: 100%;
    }
}

/* Modo oscuro deshabilitado: el sitio usa siempre el tema claro de la marca */

/* Impresión */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .contact-form,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero,
    .services,
    .about,
    .portfolio,
    .testimonials,
    .contact {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000;
        background: none;
    }
}