/* ============================================
   RESPONSIVE CSS
   ============================================ */

/* Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s linear 0.3s;
    }
    
    .navbar-menu.active {
        max-height: 400px;
        padding: 1rem;
        gap: 0.5rem;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s linear 0s;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    /* Catálogo responsive */
    .catalog-filters {
        flex-direction: column;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: var(--spacing-sm);
    }
    
    /* Formulario responsive */
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile pequeño (max-width: 480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .navbar-logo img {
        height: 45px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: var(--spacing-sm);
    }
}

/* Desktop grande (min-width: 1400px) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .navbar-container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
}

/* Impresión */
@media print {
    .navbar,
    .whatsapp-float,
    .footer {
        display: none;
    }
    
    .page-wrapper {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}

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

/* Modo oscuro (si el usuario lo prefiere) */
@media (prefers-color-scheme: dark) {
    /* Opcional: se puede activar un tema oscuro */
    /* body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    } */
}