body {
    background-color: #fffdf7;
    color: #2d3748;
    font-family: 'Nunito', sans-serif;
    min-height: 100dvh;
    scroll-behavior: smooth;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    background-color: #e53935;
    color: white;
    padding: 8px 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero title — gradiente animado */
.hero-title-highlight {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #ff9800 0%,
        #ffc107 20%,
        #e53935 45%,
        #ff6f00 65%,
        #ffc107 80%,
        #ff9800 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 5s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title-highlight {
        animation: none;
        background-position: 0% 50%;
    }
}

.btn-bouncy {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-bouncy:active {
    transform: scale(0.95);
}

.btn-bouncy:hover {
    transform: scale(1.05);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-active,
.nav-inactive {
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

/* Header: logo izq · nav centro · carrito der (desktop) */
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.header-mobile-menu {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.header-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #ff9800;
    background: #fff;
    flex-shrink: 0;
}

.header-cart {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.header-nav {
    align-items: center;
    gap: 8px;
}

.header-nav-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #554434;
    cursor: pointer;
}

.header-nav-link.nav-active {
    color: #653900;
    background: #ffdcbe;
}

.header-nav-link.nav-inactive:hover {
    color: #8b5000;
    background: rgba(255, 220, 190, 0.45);
}

@media (min-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 24px;
    }

    .header-mobile-menu {
        display: none;
    }

    .header-brand {
        grid-column: 1;
        justify-self: start;
    }

    .header-nav {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        display: flex;
    }

    .header-cart {
        grid-column: 3;
        justify-self: end;
    }
}

.bottom-nav {
    /* dock container — no pointer-events hack */
}

.bottom-nav-inner {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(219, 194, 173, 0.35);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow:
        0 -1px 0 rgba(255, 152, 0, 0.08),
        0 -8px 32px -8px rgba(255, 152, 0, 0.12),
        0 -2px 12px rgba(39, 49, 65, 0.06);
}

.bottom-nav-item {
    transition: color 0.2s ease-out, transform 0.15s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.97);
}

.bottom-nav-item.nav-active {
    color: #8b5000;
}

.bottom-nav-item.nav-active .bottom-nav-icon {
    color: #ff9800;
}

.bottom-nav-item.nav-active .bottom-nav-label {
    color: #653900;
    font-weight: 700;
}

.bottom-nav-item.nav-inactive {
    color: #887361;
}

.bottom-nav-item.nav-inactive .bottom-nav-icon {
    color: #554434;
}

.bottom-nav-item.nav-inactive .bottom-nav-label {
    color: #887361;
}

.bottom-nav-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: #ff9800;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    opacity: 0;
}

.bottom-nav-item.nav-active .bottom-nav-indicator {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.35);
}

.view-panel {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.menu-grid {
    padding-bottom: 16px;
}

.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite both alternate;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.toast-enter {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
}

.toast-enter-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-leave-active {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

@media (min-width: 768px) {
    .view-panel {
        padding-bottom: 56px;
    }

    #bottom-nav {
        display: none;
    }
}

.drawer-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.drawer-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

#menu-drawer {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

#menu-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

#menu-drawer.is-open .menu-drawer-link,
#menu-drawer.is-open #menu-drawer-close,
#menu-drawer.is-open #pwa-install-btn,
#menu-drawer.is-open a {
    pointer-events: auto;
    touch-action: manipulation;
}

body.drawer-open {
    overflow: hidden;
}

.menu-drawer-link {
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-drawer-link:active {
    transform: scale(0.98);
}

/* Category pills */
.category-pills-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.category-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #dee8ff;
    color: #554434;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.category-pill:hover {
    background: #d9e3f9;
    color: #653900;
}

.category-pill--active {
    background: #ff9800;
    color: #653900;
    box-shadow: 0 4px 10px -2px rgba(255, 152, 0, 0.25);
}

/* Add to cart + quantity stepper */
.product-qty-control {
    flex-shrink: 0;
}

.add-to-cart-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff9800;
    color: #653900;
    box-shadow: 0 4px 12px -2px rgba(255, 152, 0, 0.35);
    transition: transform 0.2s;
}

.add-to-cart-btn.hidden {
    display: none;
}

.add-to-cart-btn .add-to-cart-icon {
    font-size: 1.35rem;
}

.qty-stepper {
    display: flex;
    align-items: center;
    height: 2.5rem;
    border-radius: 999px;
    background: #ff9800;
    box-shadow: 0 4px 12px -2px rgba(255, 152, 0, 0.35);
    overflow: hidden;
}

.qty-stepper.hidden {
    display: none;
}

.qty-stepper-btn {
    width: 2.25rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: #653900;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-stepper-value {
    min-width: 1.25rem;
    padding: 0 2px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #653900;
    user-select: none;
}

/* Site footer (desktop) */
.site-footer {
    background: linear-gradient(180deg, #fffdf7 0%, #fff3e0 100%);
    border-top: 1px solid rgba(219, 194, 173, 0.6);
    padding: 48px 0 32px;
    margin-top: 24px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #ff9800;
    background: #fff;
}

.site-footer-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #8b5000;
}

.site-footer-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: #887361;
}

.site-footer-heading {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b5000;
}

.site-footer-line,
.site-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #554434;
}

.site-footer-link {
    text-decoration: none;
    font-weight: 700;
    color: #8b5000;
}

.site-footer-link:hover {
    text-decoration: underline;
}

.site-footer-icon {
    font-size: 1.15rem;
    color: #ff9800;
}

.social-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: #ff9800;
}

.drawer-social-link .social-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.social-icon--instagram {
    color: #e1306c;
}

.social-icon--tiktok {
    color: #111;
}

.site-footer-link .social-icon--instagram {
    color: #e1306c;
}

.site-footer-link .social-icon--tiktok {
    color: #111;
}

.site-footer-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icon--facebook { color: #1877f2; }
.social-icon--youtube { color: #ff0000; }
.social-icon--x { color: #111; }
.social-icon--linkedin { color: #0a66c2; }
.social-icon--generic { color: #ff9800; }

.site-footer-copy {
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(219, 194, 173, 0.5);
    text-align: center;
    font-size: 0.8rem;
    color: #887361;
}

/* Footer móvil */
.site-footer-mobile {
    background: linear-gradient(180deg, #fffdf7 0%, #fff3e0 100%);
    border-top: 1px solid rgba(219, 194, 173, 0.6);
    padding: 20px 0 calc(88px + env(safe-area-inset-bottom, 0px));
    margin-top: 8px;
}

.site-footer-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.site-footer-mobile-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #ff9800;
    background: #fff;
}

.site-footer-mobile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #8b5000;
}

.site-footer-mobile-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.85rem;
    color: #554434;
}

.site-footer-mobile-icon {
    font-size: 1rem;
    color: #ff9800;
}

.site-footer-mobile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.site-footer-mobile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8b5000;
    text-decoration: none;
}

.site-footer-mobile-copy {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #887361;
    text-align: center;
}

.gps-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.gps-status {
    margin: 0;
}

.order-confirm-banner {
    background: linear-gradient(135deg, #fff8ee 0%, #fff3e0 100%);
    border: 2px solid rgba(255, 152, 0, 0.45);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.15);
}

.order-confirm-title {
    margin: 0 0 4px;
    font-weight: 800;
    font-size: 1rem;
    color: #8b5000;
    text-align: center;
}

.order-confirm-hint {
    margin: 0 0 14px;
    font-size: 0.8rem;
    color: #887361;
    text-align: center;
}

.order-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-confirm-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.order-confirm-btn--yes {
    background: #ff9800;
    color: #fff;
}

.order-confirm-btn--no {
    background: #fff;
    color: #554434;
    border: 1px solid rgba(219, 194, 173, 0.8);
}

.cart-repeat-order {
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 152, 0, 0.25);
    max-width: 320px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-form-title {
    font-size: 1.15rem;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(219, 194, 173, 0.8);
    border-radius: 14px;
    font: inherit;
    font-weight: 600;
    background: #fffdf7;
    color: #2d3748;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.checkout-payment {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-payment legend {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    padding: 0;
}

.checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(219, 194, 173, 0.8);
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.checkout-payment-option:has(input:checked) {
    border-color: #ff9800;
    background: #fff8ee;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.12);
}

.checkout-payment-option input {
    accent-color: #ff9800;
}

.cart-tray-details {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-tray-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2d3748;
}

.cart-tray-line--chamoy {
    background: #fef2f2;
    color: #e53935;
}

.cart-tray-price {
    color: #887361;
    white-space: nowrap;
}

.cart-tray-price--free {
    color: #e53935;
    font-weight: 800;
}
