/**
 * DISEÑO RESPONSIVE Y MOBILE-FIRST
 * DE TU PUEBLO — Ushuaia
 */

/* ==========================================================
   BARRA FIJA INFERIOR MOBILE (STICKY CART BAR)
   ========================================================== */
.mobile-sticky-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(12, 11, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--orange);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: space-between;
}

.mobile-cart-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.mobile-cart-icon-wrap {
    position: relative;
    color: var(--orange);
}

.mobile-cart-action-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ==========================================================
   MENÚ MÓVIL DESPLEGABLE
   ========================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: 151;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-drawer.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition);
    display: block;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    color: var(--orange);
}

.mobile-nav-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================
   BREAKPOINTS
   ========================================================== */

/* Tablets y pantallas menores a 992px */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle-btn {
        display: flex;
    }

    .header-actions .nav-cta-btn {
        display: none !important;
    }

    .header-container {
        height: 68px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .pack-flavors-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets y Smartphones grandes (<= 768px) */
@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-section {
        padding: 3.5rem 0 3rem 0;
    }

    .hero-emblem {
        width: 110px;
        height: 110px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-quick-info {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: var(--radius-lg);
        padding: 1rem;
        width: 100%;
    }

    .quick-info-divider {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pack-builder-card {
        padding: 1.5rem;
    }

    .pack-type-selector {
        flex-direction: column;
    }

    .pack-builder-actions {
        flex-direction: column;
    }

    .pack-builder-actions button {
        width: 100%;
    }

    .form-row-grid, .delivery-options-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        max-width: 100%;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 94vh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Espacio inferior adicional para que la barra sticky no tape contenido */
    body {
        padding-bottom: 70px;
    }
}

/* Smartphones pequeños (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-text-header {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .product-card {
        padding: 1rem;
        gap: 0.5rem;
    }

    .product-header {
        margin-bottom: 0.4rem;
    }

    .product-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .product-actions {
        padding-top: 0.65rem;
        gap: 0.6rem;
    }

    .pack-flavors-grid {
        max-height: 340px;
        gap: 0.6rem;
    }

    .pack-flavor-row {
        padding: 0.6rem 0.85rem;
    }

    .location-address {
        font-size: 1.45rem;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-actions .btn {
        width: 100%;
    }

    .interactive-banner {
        padding: 1.5rem 1rem;
    }
}

/* Smartphones ultra pequeños (<= 360px) */
@media (max-width: 360px) {
    .brand-text-header {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}
