/* ==========================================================================
   CSS RESPONSIVE - INDUSTRIAS PIRIGUAO
   Ajustes y Adaptación a Dispositivos
   ========================================================================== */

/* Tabletas y Laptops Pequeñas (1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .before-after-container {
        height: 400px;
    }
}

/* Tabletas en vertical y Pantallas Medianas (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Menú Móvil Colapsable */
    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-bg-secondary);
        border-left: 1px solid var(--color-metal-line);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 50px 20px;
        z-index: 1000;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    nav.open {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .hero {
        padding-top: var(--header-height);
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .before-after-container {
        height: 320px;
    }
    
    /* Modal en Móvil */
    .modal-layout-grid {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
}

/* Teléfonos Móviles Pequeños (576px) */
@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }
    
    .before-after-container {
        height: 250px;
    }
    
    .ba-label {
        font-size: 0.75rem;
        padding: 4px 8px;
        bottom: 10px;
    }
    
    .ba-label.before-label { right: 10px; }
    .ba-label.after-label { left: 10px; }
    
    .modal-layout-grid {
        grid-template-columns: 1fr;
    }
}
