/**
 * ============================================================================
 * CAFETERÍA PREMIUM - Media Queries / Responsive
 * ============================================================================
 * Mobile First approach
 * ============================================================================
 */

/* ─── Tablet (768px) ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-2xl);
        transition: var(--transition-base);
        z-index: var(--z-modal);
    }

    .nav__list.active {
        right: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__link {
        font-size: var(--fs-lg);
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-lg);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .newsletter__form {
        flex-direction: column;
    }

    .section__title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}

/* ─── Mobile (480px) ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .hero {
        min-height: 600px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--fs-xs);
    }

    .product-card__image {
        height: 200px;
    }

    .newsletter {
        padding: var(--space-2xl);
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

/* ─── Large Desktop (1440px+) ───────────────────────────────────────────────── */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── Reducir animaciones ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__video {
        display: none;
    }
}
