/* ======================================================= */
/* ====== 1. VARIABLES Y CURVAS DE ANIMACIÓN PREMIUM ====== */
/* ======================================================= */
:root { 
    --color-principal: #d62300; 
    --color-fondo: #f4f1ea;     
    --color-card: #ffffff;      
    --color-texto: #1e1e1e;     
    --color-acento: #ffc72c;    
    --color-seleccion: #ffe8c1; 
    
    --font-titulo: 'Oswald', sans-serif; 
    --font-cuerpo: 'Poppins', sans-serif; 

    /* ── Apple-grade easing curves ── */
    /* Enter: decelerate — objects arriving from offscreen */
    --apple-enter:    cubic-bezier(0, 0, 0.2, 1);
    /* Exit: accelerate — objects leaving */
    --apple-exit:     cubic-bezier(0.4, 0, 1, 1);
    /* Standard: balanced — in-place transitions */
    --apple-standard: cubic-bezier(0.4, 0, 0.2, 1);
    /* Spring: overshoot — taps, confirmations */
    --apple-spring:   cubic-bezier(0.34, 1.28, 0.64, 1);
    /* Soft spring: gentle overshoot — modals, sheets */
    --apple-spring-soft: cubic-bezier(0.25, 1.0, 0.5, 1);
    /* Expo out: snappy decelerations */
    --apple-expo:     cubic-bezier(0.16, 1, 0.3, 1);

    /* Aliases for backwards compat */
    --ease-out-expo: var(--apple-expo);
    --ease-spring:   var(--apple-spring);
    --ease-in-out:   var(--apple-standard);
    --ease-elastic:  var(--apple-spring);
    --curva-fluida:  var(--apple-expo);
    --ios-spring:    var(--apple-spring);
    --ios-spring-soft: var(--apple-spring-soft);
    --ios-ease-out:  var(--apple-expo);

    /* ── Durations ── */
    --dur-instant:  120ms;  /* press response */
    --dur-fast:     220ms;  /* micro-interactions */
    --dur-standard: 340ms;  /* most transitions */
    --dur-enter:    420ms;  /* elements entering */
    --dur-page:     520ms;  /* sheet/modal open */

    /* ── Stagger ── */
    --stagger: 45ms;
    --stagger-delay-1: calc(var(--stagger) * 1);
    --stagger-delay-2: calc(var(--stagger) * 2);
    --stagger-delay-3: calc(var(--stagger) * 3);
    --stagger-delay-4: calc(var(--stagger) * 4);
    --stagger-delay-5: calc(var(--stagger) * 5);
    
    --radio-borde: 35px; 
    --sombra-card: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body { 
    font-family: var(--font-cuerpo); 
    color: var(--color-texto); 
    line-height: 1.6; 
    font-size: 16px; 
    overflow-x: hidden; 
    background-color: #f2f0ec;
}

/* Apple: no blanket transitions — each element owns its own */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================================================= */
/* ====== 2. CAROUSEL FULL SCREEN ====== */
/* ======================================================= */
.carousel-full-screen { 
    width: 100%; height: 100vh; height: 100dvh; min-height: 600px;
    overflow: hidden; position: relative; 
    border-radius: 0 !important; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 10px 15px rgba(0,0,0,0.2);
    background: #000; z-index: 1;
    will-change: transform, filter; margin-bottom: 0; 
}

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); z-index: 20; color: white;
    font-size: 2rem; animation: bounce 2s infinite; cursor: pointer;
    opacity: 0.8; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    background: none; border: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); } 
    60% { transform: translateX(-50%) translateY(-5px); } 
}

.carousel-container { 
    width: 100%; height: 100%; position: relative; transform-origin: center center;
}

@keyframes kenBurns {
    0% { transform: scale(1); opacity: 0.4; }
    15% { opacity: 1; } 
    100% { transform: scale(1.15); opacity: 1; } 
}

.carousel-slide { 
    width: 100%; height: 100%; object-fit: cover; position: absolute; 
    top: 0; left: 0; opacity: 0; transform: scale(1.06);
    transition: opacity 1.2s var(--apple-enter), transform 6s linear;
    filter: brightness(0.65); 
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: kenBurns 7s linear forwards;
}

@keyframes float-logo {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-10px); } 
    100% { transform: translate(-50%, -50%) translateY(0px); } 
}

.carousel-logo {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: float-logo 4s ease-in-out infinite; z-index: 10; 
    width: 75%; max-width: 380px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); transition: all 0.3s;
}

.carousel-container::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 5; pointer-events: none;
}

/* ======================================================= */
/* ====== 3. NAVBAR LA MARKESINA (ÚNICO — SIN DUPLICADOS) ====== */
/* ======================================================= */

/* Contenedor principal - fijo al fondo */
.lm-nav-wrapper {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(100px) scale(0.92);
    width: 94%;
    max-width: 460px;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition:
        transform var(--dur-page) var(--apple-spring),
        opacity    var(--dur-enter) var(--apple-enter);
}
.lm-nav-wrapper.lm-visible {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Bump detrás del botón central — mismo color que el fondo de la web */
.lm-bump {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    background: var(--color-fondo); /* #f4f1ea — color exacto del fondo */
    border-radius: 50%;
    z-index: 1;
}

/* Barra principal */
.lm-navbar {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 10px 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    z-index: 0;
}

/* Ítems de navegación */
.lm-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    transition: background 0.2s ease !important;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.lm-item:hover,
.lm-item:active {
    background: transparent;
}

/* Píldora — solo mueve el emoji, sin fondo */
.lm-pill {
    display: none;
}

/* Emoji */
.lm-emoji {
    font-size: 22px;
    line-height: 1;
    display: block;
    filter: grayscale(1) opacity(0.38);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.lm-item:hover .lm-emoji {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px) scale(1.1);
}

.lm-item.active .lm-emoji,
.lm-item.active-link .lm-emoji {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px) scale(1.15);
    transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Espacio central para el botón flotante */
.lm-spacer {
    width: 68px;
    height: 48px;
    flex-shrink: 0;
}

/* Wrapper del botón central */
.lm-center-wrap {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Botón carrito */
.lm-cart-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8300a, #d62300);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(214,35,0,0.45), 0 0 0 6px rgba(214,35,0,0.10);
    transition:
        transform var(--dur-instant) var(--apple-spring),
        box-shadow var(--dur-fast) var(--apple-standard);
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}
/* Breathing ring — iOS style */
.lm-cart-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(214,35,0,0.3);
    animation: apple-ring-breathe 2.8s var(--apple-spring-soft) infinite;
}
@keyframes apple-ring-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.4; }
    50%       { transform: scale(1.18); opacity: 0;   }
}
.lm-cart-btn:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 8px 28px rgba(214,35,0,0.52), 0 0 0 8px rgba(214,35,0,0.08);
}
.lm-cart-btn:active {
    transform: scale(0.93);
    transition-duration: var(--dur-instant);
}

/* SVG del carrito */
.lm-cart-btn svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
}

/* Badge de cantidad */
.lm-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ffffff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #d62300;
    font-family: var(--font-cuerpo);
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    opacity: 0;
    transform: scale(0);
    transition:
        opacity  var(--dur-fast) var(--apple-spring),
        transform var(--dur-fast) var(--apple-spring);
}
.lm-badge.lm-badge-visible,
.lm-badge.visible,
.lm-badge.on {
    opacity: 1;
    transform: scale(1);
}
/* Apple-style pop: scale overshoot + color flash */
.lm-badge.update {
    animation: apple-badge-pop var(--dur-standard) var(--apple-spring);
}
@keyframes apple-badge-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.5); background: var(--color-acento); color: #111; }
    65%  { transform: scale(0.92); }
    100% { transform: scale(1); background: #fff; color: #d62300; }
}

/* Indicador home estilo móvil */
.lm-indicator {
    width: 110px;
    height: 5px;
    background: #d8d8df;
    border-radius: 10px;
    margin: 8px auto 0;
}

/* Efecto ripple al tocar el botón */
.lm-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: lm-ripple-anim 0.45s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes lm-ripple-anim {
    to { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ── Responsive móvil ── */
@media (max-width: 400px) {
    .lm-nav-wrapper {
        bottom: 10px;
        width: 96%;
    }
    .lm-navbar {
        padding: 8px 6px 10px;
    }
    .lm-item {
        width: 40px;
        height: 40px;
    }
    .lm-emoji {
        font-size: 19px;
    }
    .lm-spacer {
        width: 55px;
    }
    .lm-cart-btn {
        width: 54px;
        height: 54px;
    }
    .lm-cart-btn svg {
        width: 23px;
        height: 23px;
    }
    .lm-center-wrap {
        top: -22px;
    }
    .lm-bump {
        width: 66px;
        height: 66px;
        top: -20px;
    }
}

/* ======================================================= */
/* ====== 4. PRODUCTOS (DISEÑO APP NATIVA) ====== */
/* ======================================================= */
.menu-container { max-width: 960px; margin: 0 auto; padding: 24px 16px 120px; }
.menu-section { margin-bottom: 48px; scroll-margin-top: 100px; }

/* Section header — left-aligned, minimal, app-native */
.menu-section h2 { 
    font-family: var(--font-cuerpo);
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
    transform: none;
    filter: none;
    opacity: 1;
}

/* Accent line left of header */
.menu-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--color-principal);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Remove old underline */
.menu-section h2::after { display: none; }

.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
}
@media (min-width: 600px)  { .product-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .product-list { grid-template-columns: repeat(4, 1fr); } }

/* ── Product card — Uber Eats / Glovo quality ── */
.product-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
    position: relative;
}

.product-item:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

@media (hover: hover) {
    .product-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    }
    .product-item:hover .product-image-container img {
        transform: scale(1.05);
    }
}

/* ── Image zone — square, contain, tinted bg ── */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 ratio */
    background: #f6f5f2;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s var(--ease-out-expo);
}

/* Best seller badge */
.badge-popular {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-acento);
    color: #111;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

@keyframes pulse-premium {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.badge-popular::after { display: none; }
@keyframes shine { }

/* ── Info zone ── */
.product-details {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2px;
}

.product-header h3 {
    font-family: var(--font-cuerpo);
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 600px) { .product-header h3 { font-size: 0.88rem; } }

.description {
    font-size: 0.72rem;
    color: #aaa;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    flex-grow: 0;
}

/* ── Price row ── */
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.price {
    font-family: var(--font-cuerpo);
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.3px;
}

/* ── Add button — minimal circle ── */
.add-to-cart-icon {
    background: #111;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.18s var(--ease-spring);
}
.add-to-cart-icon:hover  { background: var(--color-principal); transform: scale(1.1); }
.add-to-cart-icon:active { transform: scale(0.88); }

/* ======================================================= */
/* ====== 5. MODALES ====== */
/* ======================================================= */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 30000 !important;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden; 
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-content {
    background-color: #f8f9fa; 
    width: 96%;
    max-width: 500px;
    height: auto; 
    max-height: 85vh; 
    border-radius: 25px;
    margin-bottom: 15px;
    position: relative; 
    display: flex; flex-direction: column; 
    overflow: hidden;
    transform: translateY(150%); 
    transition: transform 0.6s var(--ease-spring);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal.is-open .modal-content { transform: translateY(0); }

@media (min-width: 768px) {
    .modal { align-items: center; }
    .modal-content { border-radius: 30px; margin-bottom: 0; }
}

.modal-header {
    background: white; padding: 15px 20px; text-align: center; 
    border-bottom: 1px solid #eee; flex-shrink: 0; position: relative; z-index: 10;
}
.cart-logo-img { height: 50px; margin-bottom: 5px; }
.modal-header h2 { font-family: var(--font-titulo); font-size: 1.5rem; margin: 0; }
.close-modal-x { position: absolute; top: 15px; right: 20px; font-size: 2rem; background: none; border: none; cursor: pointer; }

.modal-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }

.modal-footer {
    background: white; padding: 15px 20px 25px; border-top: 1px solid #eee; flex-shrink: 0; z-index: 10;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
}

.cart-items-container { padding: 0; background: transparent; }
.cart-item-detail { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.cart-item-name { font-weight: 700; font-size: 1rem; }

.cart-item-controls { display: flex; align-items: center; gap: 15px; }
.qty-btn { 
    width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; 
    display: flex; align-items: center; justify-content: center; 
    border: none; cursor: pointer; padding-bottom: 3px; 
    transition: transform 0.2s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.qty-btn:active { transform: scale(0.9); }
.qty-btn.minus { background: #ffffff; border: 2px solid #e0e0e0; color: #888; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.qty-btn.plus { background: var(--color-principal); color: white; border: 2px solid var(--color-principal); box-shadow: 0 4px 10px rgba(214, 35, 0, 0.3); }
.qty-number { font-family: var(--font-titulo); font-weight: 700; font-size: 1.4rem; color: var(--color-texto); min-width: 30px; text-align: center; }

.totals-card { background: white; padding: 20px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 25px; margin-top: 20px; }
.total-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.divider-dashed { border-top: 2px dashed #ccc; margin: 12px 0; }
.total-final { font-size: 1.3rem; margin-bottom: 0; align-items: center; }
.total-final strong { color: var(--color-principal); font-size: 1.8rem; }

.delivery-large-container { margin: 20px 0; }
.btn-delivery-big {
    background: white; border: 2px solid #eee; padding: 15px; border-radius: 18px;
    display: flex; align-items: center; justify-content: space-between; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}
.delivery-info { display: flex; flex-direction: column; margin-left: 15px; flex: 1; z-index: 2; }
.delivery-title { font-weight: 700; font-size: 1rem; }
.delivery-price { color: var(--color-principal); font-weight: 600; font-size: 0.9rem; }
.icon-circle { 
    width: 45px; height: 45px; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; color: #888; transition: all 0.3s ease; z-index: 2;
}
.check-status { width: 25px; height: 25px; border-radius: 50%; background: #ddd; color: white; display: flex; align-items: center; justify-content: center; }

.hidden-checkbox { display: none; }
.hidden-checkbox:checked + .btn-delivery-big { border-color: var(--color-principal); background-color: #fff5f5; animation: pulse-border 2s infinite; }
.hidden-checkbox:checked + .btn-delivery-big .icon-circle { background: var(--color-principal); color: white; box-shadow: 0 4px 10px rgba(214, 35, 0, 0.3); animation: moto-drive 0.6s ease-out forwards; }
.hidden-checkbox:checked + .btn-delivery-big .delivery-price { color: #d62300; font-weight: 800; }
.hidden-checkbox:checked + .btn-delivery-big .check-status { background: #25D366; transform: scale(1.1); }

@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(214, 35, 0, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(214, 35, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 35, 0, 0); } }
@keyframes moto-drive { 0% { transform: scale(1) rotate(0deg) translateX(0); } 30% { transform: scale(1.2) rotate(-15deg) translateX(-2px); } 60% { transform: scale(1.2) rotate(5deg) translateX(5px); } 100% { transform: scale(1.1) rotate(0deg) translateX(0); } }
@keyframes pay-select-pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); box-shadow: 0 5px 20px rgba(214, 35, 0, 0.4); } 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(214, 35, 0, 0.3); } }

.payment-options-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; }
.payment-option-btn { 
    background: white; border: 1px solid #e0e0e0; padding: 14px 5px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--color-texto);
    transition: all 0.3s var(--ease-out-expo); position: relative; z-index: 1;
}
.payment-option-btn:hover { border-color: var(--color-principal); color: var(--color-principal); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); background-color: #fffbfb; }
.payment-option-btn:active { transform: scale(0.92); }
.payment-option-btn.selected { background: var(--color-principal); color: white; border-color: var(--color-principal); animation: pay-select-pop 0.4s ease-out forwards; z-index: 2; }
.payment-option-btn.full-width { grid-column: span 4; background: #f0f7ff; border-color: #cce4ff; color: #0066cc; font-weight: 700; }
.payment-option-btn.full-width:hover { background: #e6f2ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15); }
.payment-option-btn.full-width.selected { background: #0066cc; border-color: #0066cc; color: white; box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3); }

.bank-card { background: #f0f4f8; padding: 15px; border-radius: 15px; margin-top: 15px; }
.bank-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #0056b3; }
.copyable-info { display: flex; justify-content: space-between; background: white; padding: 10px; border-radius: 10px; margin-bottom: 5px; font-size: 0.9rem; }
.copy-btn { background: none; border: none; cursor: pointer; }

.clear-cart-container { text-align: center; padding: 10px; }
.clear-cart-button { 
    background-color: #fff5f5; border: 2px solid #ffcccc; color: #d62300; padding: 10px 25px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; cursor: pointer; 
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cuerpo); transition: all 0.3s var(--ease-out-expo);
}
.clear-cart-button:hover { background-color: #d62300; color: white; border-color: #d62300; box-shadow: 0 5px 15px rgba(214, 35, 0, 0.25); transform: translateY(-3px) rotate(-1deg); }
.clear-cart-button:active { transform: scale(0.9); }
.clear-cart-button.is-hidden { display: none; }

#send-order {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 0 auto; padding: 18px; 
    background: #25D366; color: white; border: none; border-radius: 16px; font-size: 1.2rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); transition: all 0.4s var(--ease-out-expo); transform: translateZ(0);
}
#send-order:hover { background: #20bd5a; transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45); }
#send-order:active { transform: translateY(2px) scale(0.96); box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2); }
#send-order:disabled { background: #ccc; box-shadow: none; transform: none; cursor: not-allowed; }

.close-modal.text-only { 
    display: flex; align-items: center; justify-content: center; margin: 15px auto 30px; width: fit-content;
    background: transparent; border: 2px solid #e0e0e0; color: #777; padding: 10px 25px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; 
    text-decoration: none; cursor: pointer; transition: all 0.3s ease;
}
.close-modal.text-only:hover { border-color: var(--color-texto); color: var(--color-texto); background: white; transform: translateY(-2px); }
.close-modal.text-only:active { transform: scale(0.95); }

.delivery-address-container, .bank-transfer-info { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.3s; }
.delivery-address-container.is-visible, .bank-transfer-info.is-visible { max-height: 500px; opacity: 1; margin-bottom: 15px; display: block; }

/* ======================================================= */
/* ====== 6. TOAST NOTIFICATION ====== */
/* ======================================================= */
#toast-notification { 
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-120%) scale(0.88);
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    color: #ffffff;
    max-width: 320px;
    width: max-content;
    padding: 12px 20px;
    border-radius: 22px;
    z-index: 40000 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 1px 0 rgba(255,255,255,0.06) inset;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    transition:
        transform var(--dur-page) var(--apple-spring),
        opacity   var(--dur-enter) var(--apple-enter);
    margin-top: env(safe-area-inset-top, 14px);
    pointer-events: none;
}
#toast-notification.show {
    transform: translateX(-50%) translateY(14px) scale(1);
    opacity: 1 !important;
    visibility: visible;
}
/* Fade out */
#toast-notification:not(.show) {
    transition:
        transform var(--dur-standard) var(--apple-exit),
        opacity   var(--dur-fast) var(--apple-exit);
}
#toast-notification::before {
    content: '✓';
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    background: #25D366; color: white;
    border-radius: 50%; font-weight: 800; font-size: 11px; flex-shrink: 0;
}

/* ======================================================= */
/* ====== 7. FOOTER ====== */
/* ======================================================= */
.footer { text-align: center; padding: 2rem; color: #888; font-size: 0.9rem; padding-bottom: 120px; }
.footer-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.footer-btn { background: white; padding: 10px 20px; border-radius: 30px; text-decoration: none; color: #333; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* ======================================================= */
/* ====== 8. UPSELLING / COMBOS ====== */
/* ======================================================= */
.upsell-section { margin: 25px 0 10px; padding-top: 20px; border-top: 2px dashed #eee; }
.upsell-title { font-family: var(--font-cuerpo); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; color: var(--color-texto); display: flex; align-items: center; gap: 8px; }
.upsell-title i { color: var(--color-acento); }
.upsell-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.upsell-scroll::-webkit-scrollbar { display: none; }
.upsell-card { flex: 0 0 130px; background: white; border: 1px solid #f0f0f0; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; scroll-snap-align: start; transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.upsell-card:active { transform: scale(0.95); }
.upsell-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; background: #f8f9fa; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.upsell-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; margin-bottom: 5px; color: var(--color-texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.4em; }
.upsell-price { font-family: var(--font-titulo); font-size: 1.1rem; color: var(--color-principal); font-weight: 700; margin-bottom: 10px; }
.upsell-add-btn { background: #f4f1ea; color: var(--color-principal); border: none; width: 100%; padding: 8px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center; gap: 5px; }
.upsell-add-btn:hover { background: var(--color-principal); color: white; }
.upsell-add-btn:active { transform: scale(0.9); }

/* ======================================================= */
/* ====== 9. PWA BANNER ====== */
/* ======================================================= */
.pwa-banner {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    z-index: 10500;
    transform: translateY(0) scale(1);
    transition: transform var(--dur-page) var(--apple-spring);
}
.pwa-banner.pwa-hidden { transform: translateY(-110%); }
.pwa-banner-content { display: flex; align-items: center; padding: 12px 16px; max-width: 600px; margin: 0 auto; gap: 12px; }
.pwa-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pwa-text { display: flex; flex-direction: column; flex-grow: 1; }
.pwa-text strong { font-family: var(--font-cuerpo); font-size: 0.95rem; color: var(--color-texto); line-height: 1.2; }
.pwa-text span { font-size: 0.75rem; color: #666; }
.pwa-btn-install { background-color: var(--color-principal); color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 10px rgba(214, 35, 0, 0.2); transition: all 0.3s var(--ease-out-expo); }
.pwa-btn-install:active { transform: scale(0.95); }
.pwa-btn-close { background: transparent; border: none; font-size: 1.5rem; color: #999; cursor: pointer; padding: 0 5px; line-height: 1; }

/* ======================================================= */
/* ====== 10. GEOLOCALIZACIÓN ====== */
/* ======================================================= */
.location-capture-box { background: white; padding: 20px; border-radius: 25px; margin-top: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); border: 2px solid transparent; transition: all 0.3s ease; }
.location-instruction { font-family: var(--font-cuerpo); font-size: 0.9rem; color: #666; font-weight: 600; margin-bottom: 15px; text-align: center; }
.btn-location { background: white; color: var(--color-texto); border: 2px solid #eee; width: 100%; padding: 16px; border-radius: 50px; font-family: var(--font-titulo); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 12px; transition: all 0.4s var(--ease-out-expo); }
.btn-location i { font-size: 1.1rem; color: var(--color-principal); }
.btn-location:hover { border-color: var(--color-principal); color: var(--color-principal); background-color: #fffbfb; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.btn-location:active { transform: translateY(1px) scale(0.98); }
.btn-location.success { background-color: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2); }
.btn-location.success i { color: #2e7d32; }
.btn-location.error { background-color: #ffebee; color: #c62828; border-color: #ffcdd2; }
.btn-location.error i { color: #c62828; }
.location-status-text { font-size: 0.78rem; color: #888; text-align: center; margin: 10px 0 5px; min-height: 18px; font-weight: 500; }
.address-input { width: 100%; border: 1px solid #ccc; background: white; padding: 14px; border-radius: 15px; font-family: var(--font-cuerpo); font-size: 0.9rem; transition: all 0.3s ease; margin-top: 5px; }
.address-input:focus { border-color: var(--color-texto); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(30,30,30,0.05); }

/* ======================================================= */
/* ====== 11. FLY TO CART ====== */
/* ======================================================= */
.flying-product {
    position: fixed; z-index: 12000; border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transition: all 0.58s var(--apple-enter);
    pointer-events: none;
    will-change: top, left, width, height, opacity;
}
@keyframes apple-cart-bump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.18) rotate(-4deg); }
    55%  { transform: scale(0.94) rotate(2deg); }
    78%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.cart-bump-anim { animation: apple-cart-bump var(--dur-standard) var(--apple-spring); }

/* ======================================================= */
/* ====== 12. MODAL DE MODIFICADORES ====== */
/* ======================================================= */
.modifier-content {
    height: auto; max-height: 90vh; border-radius: 25px; background: #f8f9fa;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition:
        transform var(--dur-page) var(--apple-spring),
        opacity   var(--dur-enter) var(--apple-enter);
}
.modal.is-open .modifier-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modifier-header-img { position: relative; width: 100%; height: 220px; background: transparent; border-radius: 25px 25px 0 0; margin-top: 10px; }
.modifier-header-img img { width: 100%; height: 100%; object-fit: contain; padding: 0 15px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
.modifier-header-img .close-modal-x { background: rgba(255,255,255,0.95); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; top: 15px; right: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.18); z-index: 20; pointer-events: all; }
body.dark-mode .modifier-header-img .close-modal-x { background: rgba(30,30,30,0.95); color: #f0ede6; }
.modifier-body { padding: 20px; background: #f8f9fa; }
.mod-title { font-family: var(--font-titulo); font-size: 1.8rem; line-height: 1.1; margin-bottom: 5px; }
.mod-desc { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.mod-group { background: white; border-radius: 18px; padding: 15px; margin-bottom: 15px; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.mod-group-title { font-weight: 700; font-size: 1rem; margin-bottom: 12px; display: flex; justify-content: space-between; }
.mod-option { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.mod-option:last-child { border-bottom: none; padding-bottom: 0; }
.mod-option-name { font-size: 0.95rem; font-weight: 500; }
.mod-option-price { color: var(--color-principal); font-weight: 600; font-size: 0.9rem; }

.mod-checkbox { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 2px solid #ddd; border-radius: 6px; background-color: white; margin-right: 15px; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s var(--ease-out-expo); }
.mod-checkbox::after { content: ''; position: absolute; width: 6px; height: 12px; border: solid white; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform 0.4s var(--ease-spring); }
.mod-checkbox:checked { background-color: var(--color-principal); border-color: var(--color-principal); animation: checkbox-pop 0.4s var(--ease-spring); box-shadow: 0 4px 10px rgba(214, 35, 0, 0.25); }
.mod-checkbox:checked::after { transform: rotate(45deg) scale(1); }
.mod-checkbox[type="radio"] { border-radius: 50%; }
.mod-checkbox[type="radio"]::after { border: none; background-color: white; width: 10px; height: 10px; border-radius: 50%; transform: scale(0); }
.mod-checkbox[type="radio"]:checked::after { transform: scale(1); }
@keyframes checkbox-pop { 0% { transform: scale(1); } 40% { transform: scale(0.85); } 100% { transform: scale(1); } }

.mod-footer { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; padding: 20px 25px 25px !important; background: white; border-top: 1px solid #f0f0f0; }
.qty-control-wrapper { display: flex !important; flex-direction: row !important; align-items: center !important; background-color: #f4f1ea !important; padding: 6px !important; border-radius: 50px !important; gap: 12px !important; border: 1px solid #eee; flex-shrink: 0 !important; }
.qty-control-wrapper .qty-btn { width: 38px !important; height: 38px !important; border-radius: 50% !important; border: none !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 1.1rem !important; cursor: pointer; padding: 0 !important; }
.qty-control-wrapper .qty-btn.minus { background-color: #ffffff !important; color: var(--color-principal) !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.qty-control-wrapper .qty-btn.plus { background-color: var(--color-principal) !important; color: #ffffff !important; box-shadow: 0 4px 10px rgba(214, 35, 0, 0.2); }
.qty-control-wrapper .qty-number { font-family: var(--font-titulo); font-size: 1.3rem !important; font-weight: 700; color: var(--color-texto); min-width: 25px !important; text-align: center; }
.mod-btn-add { flex-grow: 1 !important; background: var(--color-principal) !important; color: white !important; border: none !important; padding: 16px !important; border-radius: 20px !important; font-weight: 700; font-size: 0.95rem !important; box-shadow: 0 8px 20px rgba(214, 35, 0, 0.25); text-transform: uppercase; white-space: nowrap !important; margin: 0 !important; }
.mod-btn-add:active { transform: scale(0.96) translateY(2px) !important; }

.mod-suggestions-wrapper { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ddd; }
.mod-suggestions-list { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.suggestion-chip { flex: 0 0 160px; background: white; border: 2px solid #f0f0f0; border-radius: 15px; padding: 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s var(--ease-out-expo); }
.suggestion-chip:active { transform: scale(0.95); }
.suggestion-chip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.sug-info { display: flex; flex-direction: column; flex: 1; }
.sug-name { font-size: 0.75rem; font-weight: 700; line-height: 1.1; color: var(--color-texto); }
.sug-price { font-size: 0.7rem; color: var(--color-principal); font-weight: 800; }
.suggestion-chip i { color: #ddd; font-size: 1.1rem; }
.suggestion-chip.added { border-color: #25D366; background: #e8f5e9; }
.suggestion-chip.added i { color: #25D366; }

/* ======================================================= */
/* ====== 13. APPLE SCROLL REVEAL + STAGGER ====== */
/* ======================================================= */

/* Sections: fade+translate on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity   var(--dur-enter) var(--apple-enter),
        transform var(--dur-enter) var(--apple-enter);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cards: start hidden, animate when section is revealed */
.menu-section.animate-on-load .product-item {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition:
        opacity   var(--dur-enter) var(--apple-enter),
        transform var(--dur-enter) var(--apple-spring);
}
.menu-section.is-loaded .product-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Stagger — 45ms per card, cap at 8 */
.menu-section.is-loaded .product-item:nth-child(1)  { transition-delay: calc(var(--stagger) * 0); }
.menu-section.is-loaded .product-item:nth-child(2)  { transition-delay: calc(var(--stagger) * 1); }
.menu-section.is-loaded .product-item:nth-child(3)  { transition-delay: calc(var(--stagger) * 2); }
.menu-section.is-loaded .product-item:nth-child(4)  { transition-delay: calc(var(--stagger) * 3); }
.menu-section.is-loaded .product-item:nth-child(5)  { transition-delay: calc(var(--stagger) * 4); }
.menu-section.is-loaded .product-item:nth-child(6)  { transition-delay: calc(var(--stagger) * 5); }
.menu-section.is-loaded .product-item:nth-child(7)  { transition-delay: calc(var(--stagger) * 6); }
.menu-section.is-loaded .product-item:nth-child(n+8){ transition-delay: calc(var(--stagger) * 7); }

@keyframes fadeInUpStagger { to { opacity: 1; transform: none; } }

/* ======================================================= */
/* ====== 15. CART BADGE — APPLE NUMBER MORPH ====== */
/* ======================================================= */
#cart-count.update {
    animation: apple-badge-counter var(--dur-standard) var(--apple-spring);
}
@keyframes apple-badge-counter {
    0%   { transform: scale(1)    translateY(0);    }
    25%  { transform: scale(1.4)  translateY(-3px); background: var(--color-acento); color: #111; }
    55%  { transform: scale(0.88) translateY(1px);  }
    80%  { transform: scale(1.05) translateY(0);    }
    100% { transform: scale(1)    translateY(0);    background: #fff; color: #d62300; }
}

/* ======================================================= */
/* ====== 16. APPLE HAPTIC PRESS SYSTEM ====== */
/* ======================================================= */
/* Every interactive element: instant compress, spring release */
.add-to-cart-icon,
.mod-btn-add, .upsell-add-btn,
.pwa-btn-install, .mod-option,
.payment-option-btn, .payment-pill-btn,
.cta-whatsapp-btn, .cta-schedule-btn,
.cu-add-btn, .cart-back-btn,
.copy-pill-btn, .copy-btn,
.delivery-pill, .schedule-time-btn,
.repeat-order-btn, .confirm-schedule-btn,
.fav-btn, .share-product-btn {
    transition:
        transform  var(--dur-instant) var(--apple-spring),
        box-shadow var(--dur-fast)    var(--apple-standard),
        background var(--dur-fast)    var(--apple-standard),
        opacity    var(--dur-fast)    var(--apple-standard);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
/* Press: scale down instantly */
.add-to-cart-icon:active       { transform: scale(0.88) !important; }
.mod-btn-add:active            { transform: scale(0.96) translateY(1px) !important; }
.cta-whatsapp-btn:active       { transform: scale(0.97) !important; }
.cta-schedule-btn:active       { transform: scale(0.92) !important; }
.payment-pill-btn:active,
.payment-option-btn:active     { transform: scale(0.92) !important; }
.cu-add-btn:active             { transform: scale(0.84) !important; }
.fav-btn:active                { transform: scale(0.84) !important; }
.pwa-btn-install:active        { transform: scale(0.93) !important; }
.confirm-schedule-btn:active   { transform: scale(0.97) !important; }
.repeat-order-btn:active       { transform: scale(0.93) !important; }
.copy-pill-btn:active          { transform: scale(0.88) !important; }
.schedule-time-btn:active      { transform: scale(0.92) !important; }

/* Number pop (totals, qty) */
@keyframes number-pop-anim {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.28); color: var(--color-principal); }
    65%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.animar-numero { animation: number-pop-anim var(--dur-standard) var(--apple-spring) !important; display: inline-block; }

/* ======================================================= */
/* ====== 17. SKELETON — APPLE SHIMMER ====== */
/* ======================================================= */
@keyframes apple-shimmer {
    0%   { background-position: -300% 0; }
    100% { background-position: 300% 0;  }
}
.skeleton {
    background: linear-gradient(
        100deg,
        #efefef 30%,
        #e4e4e4 50%,
        #efefef 70%
    );
    background-size: 300% 100%;
    animation: apple-shimmer 1.6s var(--apple-standard) infinite;
    border-radius: 10px;
    pointer-events: none;
}
/* Skeleton card matches new 4:3 image ratio */
.skeleton-image {
    width: 100%;
    padding-top: 75%;
    border-radius: 0;
}
.skeleton-text { height: 10px; margin: 10px 12px 0; border-radius: 6px; }
.skeleton-text.short  { width: 35%; }
.skeleton-text.medium { width: 60%; }
.skeleton-text.long   { width: 85%; }

/* ======================================================= */
/* ====== 18. UTILIDADES ====== */
/* ======================================================= */
@keyframes number-pop-anim { 0% { transform: scale(1); } 40% { transform: scale(1.4); color: var(--color-principal); } 100% { transform: scale(1); } }
.animar-numero { animation: number-pop-anim 0.3s var(--ease-out-expo) !important; display: inline-block; }

/* ======================================================= */
/* ====== 19. ACCESIBILIDAD ====== */
/* ======================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
    .menu-section.animate-on-load .product-item { opacity: 1 !important; transform: none !important; }
}

/* ======================================================= */
/* ====== 21. PROGRAMAR ENTREGA ====== */
/* ======================================================= */

/* Fila de botones del footer */
.footer-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.footer-actions-row #send-order {
    flex: 1;
}

/* Botón Programar Entrega */
.schedule-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px 16px;
    background: #fff3e0;
    color: #e65100;
    border: 2px solid #ffcc80;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-cuerpo);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-expo);
}

.schedule-btn:hover {
    background: #e65100;
    color: white;
    border-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 81, 0, 0.3);
}

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

.schedule-btn:disabled {
    background: #f5f5f5;
    color: #bbb;
    border-color: #eee;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.schedule-btn.scheduled-active {
    background: #e65100;
    color: white;
    border-color: #e65100;
    animation: schedule-pulse 2s infinite;
}

@keyframes schedule-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(230, 81, 0, 0.55); }
}

/* Panel de programación */
.schedule-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease-out-expo), opacity 0.35s ease, margin 0.35s ease;
    margin: 0;
}

.schedule-panel.is-open {
    max-height: 700px;
    opacity: 1;
    margin: 15px 0 0;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    border: 1.5px solid #ffcc80;
    position: relative;
}

.schedule-icon {
    font-size: 1.6rem;
    color: #e65100;
    flex-shrink: 0;
}

.schedule-header strong {
    display: block;
    font-size: 1rem;
    color: #bf360c;
    font-weight: 700;
}

.schedule-hours-badge {
    display: inline-block;
    background: #e65100;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.close-schedule-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(230, 81, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #e65100;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.close-schedule-btn:hover {
    background: rgba(230, 81, 0, 0.2);
}

.schedule-note {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 14px;
    padding: 0 2px;
    line-height: 1.5;
}

.schedule-note strong {
    color: #e65100;
}

/* Grid de horas rápidas */
.schedule-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.schedule-time-btn {
    background: white;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 12px 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-texto);
    cursor: pointer;
    font-family: var(--font-cuerpo);
    transition: all 0.25s var(--ease-out-expo);
    text-align: center;
}

.schedule-time-btn:hover {
    border-color: #e65100;
    color: #e65100;
    background: #fff3e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.15);
}

.schedule-time-btn.selected {
    background: #e65100;
    border-color: #e65100;
    color: white;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.35);
    transform: scale(1.04);
}

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

/* Input personalizado */
.schedule-custom-input {
    width: 100%;
    border: 2px solid #eee;
    background: white;
    padding: 13px 16px;
    border-radius: 14px;
    font-family: var(--font-cuerpo);
    font-size: 0.9rem;
    color: var(--color-texto);
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 10px;
}

.schedule-custom-input:focus {
    outline: none;
    border-color: #e65100;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.schedule-custom-input::placeholder {
    color: #bbb;
    font-size: 0.82rem;
}

/* Texto de hora seleccionada */
.schedule-selected-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2e7d32;
    text-align: center;
    min-height: 20px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

/* Botón confirmar */
.confirm-schedule-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #e65100, #bf360c);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-cuerpo);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.3);
    transition: all 0.3s var(--ease-out-expo);
}

.confirm-schedule-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(230, 81, 0, 0.4);
    background: linear-gradient(135deg, #bf360c, #e65100);
}

.confirm-schedule-btn:active {
    transform: scale(0.97) translateY(1px);
}

/* ======================================================= */
/* ====== 20. RESPONSIVE GLOBAL ====== */
/* ======================================================= */
@media (max-width: 390px) {
    .nav-item { font-size: 1.2rem !important; padding: 8px 4px !important; }
    .cart-label { display: none; }
}

/* ======================================================= */
/* ====== 22. ESTADO DEL NEGOCIO (dot animation) ====== */
/* ======================================================= */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: inline-block;
    flex-shrink: 0;
}
@keyframes status-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

body.dark-mode .business-status-banner.status-open { background: linear-gradient(90deg, #1b5e20, #2e7d32); }
body.dark-mode .business-status-banner.status-closed { background: linear-gradient(90deg, #7f0000, #b71c1c); }

/* ======================================================= */
/* ====== 23. BUSCADOR DE PRODUCTOS ====== */
/* ======================================================= */
.search-wrapper {
    margin-bottom: 18px;
    position: relative;
}
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 0 14px;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.search-box:focus-within {
    border-color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.search-icon-i {
    color: #ccc;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s;
}
.search-box:focus-within .search-icon-i { color: #555; }
.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-cuerpo);
    font-size: 0.88rem;
    padding: 13px 0;
    color: #111;
}
.search-input::placeholder { color: #bbb; }
.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 0.8rem;
    padding: 4px;
    border-radius: 50%;
    display: none;
    transition: color 0.2s;
}
.search-clear.visible { display: flex; align-items: center; justify-content: center; }
.search-clear:hover { color: #555; }

/* Estado sin resultados */
.search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
}
.search-no-results span { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.search-no-results p { font-size: 0.95rem; }
.search-no-results p strong, #search-query-text { color: var(--color-principal); }

/* Ocultar secciones al buscar */
.menu-section.search-hidden { display: none !important; }
.product-item.search-hidden { display: none !important; }
.product-item.search-match { display: flex !important; }

/* Dark mode */
body.dark-mode .search-box { background: #1e1e1e; border-color: #2a2a2a; }
body.dark-mode .search-input { color: #f0ede6; }
body.dark-mode .search-icon-i { color: #555; }
body.dark-mode .search-box:focus-within .search-icon-i { color: var(--color-principal); }

/* ======================================================= */
/* ====== 24. BANNERS DE PROMOCIONES ====== */
/* ======================================================= */
.promo-banner-section {
    margin-bottom: 22px;
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
}
.promo-scroll {
    display: flex;
    gap: 12px;
    padding: 8px 10px 12px;
    /* Auto-scroll via JS — sin overflow manual */
}

/* Animación slide derecha→izquierda en bucle */
@keyframes promo-slide-loop {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.promo-scroll.is-animating {
    animation: promo-slide-loop 18s linear infinite;
    width: max-content;
}
.promo-scroll.is-animating:hover {
    animation-play-state: paused;
}

.promo-card {
    flex: 0 0 200px;
    border-radius: 16px;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    cursor: default;
    transition: transform 0.25s var(--ease-spring);
    user-select: none;
}
.promo-card:active { transform: scale(0.96); }
.promo-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}
.promo-card-1 { background: linear-gradient(135deg, #d62300, #ff5722); color: white; }
.promo-card-2 { background: linear-gradient(135deg, #1565c0, #1976d2); color: white; }
.promo-card-3 { background: linear-gradient(135deg, #2e7d32, #388e3c); color: white; }
.promo-card-4 { background: linear-gradient(135deg, #e65100, #f57c00); color: white; }
.promo-emoji { font-size: 2rem; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.promo-text { display: flex; flex-direction: column; flex: 1; }
.promo-text strong { font-size: 0.82rem; font-weight: 800; line-height: 1.2; }
.promo-text span { font-size: 0.7rem; opacity: 0.85; margin-top: 2px; }
.promo-tag {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
body.dark-mode .promo-card { box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

/* ======================================================= */
/* ====== 25. FAVORITOS ====== */
/* ======================================================= */
.favorites-section {
    margin-bottom: 40px;
    animation: fadeInUpStagger 0.5s ease both;
}
.fav-section-title {
    font-family: var(--font-cuerpo);
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fav-section-title::before {
    content: '';
    display: inline-block;
    width: 3px; height: 14px;
    background: var(--color-principal);
    border-radius: 2px;
}
.fav-heart-icon { color: #e53935; animation: fav-heartbeat 1.4s ease-in-out infinite; }
@keyframes fav-heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}
/* Botón de corazón en product card */
.fav-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: transform 0.25s var(--ease-spring);
    -webkit-tap-highlight-color: transparent;
}
.fav-btn:active { transform: scale(0.88); }
.fav-btn .fav-icon { color: #ddd; transition: color 0.25s; }
.fav-btn.is-fav .fav-icon { color: #e53935; }
.fav-btn.pop { animation: fav-pop 0.45s var(--ease-spring); }
@keyframes fav-pop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.55) rotate(-8deg); }
    55%  { transform: scale(0.88) rotate(4deg);  }
    78%  { transform: scale(1.1);  }
    100% { transform: scale(1); }
}
body.dark-mode .fav-btn { background: rgba(30,30,30,0.92); }
body.dark-mode .fav-btn:hover { background: #2a2a2a; }

/* ======================================================= */
/* ====== 26. HISTORIAL DE PEDIDOS ====== */
/* ======================================================= */
.history-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.03);
    border: none;
}
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.history-title {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-texto);
}
.history-title i { color: var(--color-principal); }
.repeat-order-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-principal);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-cuerpo);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 12px rgba(214,35,0,0.25);
}
.repeat-order-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(214,35,0,0.35); }
.repeat-order-btn:active { transform: scale(0.94); }
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.88rem;
    color: #666;
}
.history-item:last-child { border-bottom: none; padding-bottom: 0; }
.history-item-name { font-weight: 600; color: var(--color-texto); }
.history-item-price { color: var(--color-principal); font-weight: 700; font-family: var(--font-titulo); font-size: 1rem; }
.history-date { font-size: 0.75rem; color: #aaa; margin-top: 8px; text-align: right; }

body.dark-mode .history-section { background: #1e1e1e; border-color: #2a2a2a; }
body.dark-mode .history-item { border-bottom-color: #2a2a2a; color: #888; }
body.dark-mode .history-item-name { color: #f0ede6; }
body.dark-mode .history-date { color: #555; }

/* ======================================================= */
/* ====== 27. TIEMPO ESTIMADO EN CARRITO (ETA) ====== */
/* ======================================================= */
.delivery-eta-card {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1.5px solid #ffd54f;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.eta-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.eta-icon { font-size: 1.8rem; flex-shrink: 0; }
.eta-text { flex: 1; }
.eta-text strong { display: block; font-size: 0.85rem; color: #5d4037; font-weight: 700; }
#eta-value { font-family: var(--font-titulo); font-size: 1.4rem; color: #e65100; font-weight: 700; }
.eta-pulse {
    width: 10px; height: 10px; border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(76,175,80,0.5);
    animation: eta-pulse-anim 1.5s ease-in-out infinite;
}
@keyframes eta-pulse-anim {
    0% { box-shadow: 0 0 0 0 rgba(76,175,80,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(76,175,80,0); }
    100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}
body.dark-mode .delivery-eta-card { background: linear-gradient(135deg, #2a2000, #332800); border-color: #6d5200; }
body.dark-mode .eta-text strong { color: #ffcc80; }

/* ======================================================= */
/* ====== 28. ANIMACIÓN ENVIAR — iOS SPRING QUALITY ====== */
/* ======================================================= */

/* Curvas iOS auténticas */
:root {
    --ios-spring:        cubic-bezier(0.34, 1.28, 0.64, 1);
    --ios-spring-soft:   cubic-bezier(0.25, 1.0,  0.5,  1);
    --ios-ease-out:      cubic-bezier(0.16, 1.0,  0.3,  1);
}

/* Backdrop — fade suave con blur que se siente orgánico */
.send-anim-overlay {
    position: fixed;
    inset: 0;
    z-index: 60000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s var(--ios-ease-out);
}
.send-anim-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 5, 3, 0.78);
    backdrop-filter: blur(22px) saturate(0.7);
    -webkit-backdrop-filter: blur(22px) saturate(0.7);
    transition: opacity 0.55s var(--ios-ease-out);
}
.send-anim-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Card central — pill que respira */
.send-anim-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    background: rgba(28, 22, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 36px;
    padding: 36px 44px 32px;
    width: min(340px, 88vw);
    /* Entrada con spring */
    transform: scale(0.82);
    transition: transform 0.65s var(--ios-spring);
    box-shadow:
        0 0 0 0 rgba(214, 35, 0, 0),
        0 24px 60px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.send-anim-overlay.is-visible .send-anim-box {
    transform: scale(1);
}

/* Orbe de glow que "respira" detrás del emoji */
.send-anim-stage {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anillo de glow pulsante — estilo iOS battery */
.send-anim-stage::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214,35,0,0.18) 0%, transparent 70%);
    animation: ios-glow-breathe 2s var(--ios-spring-soft) infinite;
}
.send-anim-stage::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(214,35,0,0.25);
    animation: ios-ring-breathe 2s var(--ios-spring-soft) infinite;
}

@keyframes ios-glow-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%       { transform: scale(1.18); opacity: 1;   }
}
@keyframes ios-ring-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.3; border-color: rgba(214,35,0,0.25); }
    50%       { transform: scale(1.12); opacity: 0.7; border-color: rgba(214,35,0,0.5);  }
}

/* Emoji — spring pop por paso */
.send-anim-emoji {
    font-size: 5.8rem;
    display: block;
    line-height: 1;
    position: relative;
    z-index: 2;
    will-change: transform, filter;
    filter: drop-shadow(0 0 0px rgba(214,35,0,0));
    transition:
        filter 0.55s var(--ios-ease-out),
        transform 0.65s var(--ios-spring);
}

/* Cada vez que cambia el paso — clase efímera */
.send-anim-stage.step-pop .send-anim-emoji {
    animation: ios-emoji-spring 0.62s var(--ios-spring) both;
}
@keyframes ios-emoji-spring {
    0%   { transform: scale(0.35) rotate(-8deg);  opacity: 0;
           filter: drop-shadow(0 0 0px rgba(214,35,0,0)); }
    55%  { transform: scale(1.12) rotate(3deg);   opacity: 1;
           filter: drop-shadow(0 4px 18px rgba(214,35,0,0.55)); }
    100% { transform: scale(1)    rotate(0deg);   opacity: 1;
           filter: drop-shadow(0 2px 10px rgba(214,35,0,0.30)); }
}

/* Texto — slide suave con spring */
.send-anim-text {
    font-family: var(--font-titulo);
    font-size: 1.45rem;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.3px;
    min-height: 2rem;
    transition: opacity 0.3s ease, transform 0.45s var(--ios-spring-soft);
}
.send-anim-text.text-entering {
    animation: ios-text-in 0.45s var(--ios-spring-soft) both;
}
@keyframes ios-text-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Progress track — tres segmentos que se iluminan */
.send-anim-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}
.send-anim-progress-seg {
    height: 3px;
    width: 28px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    transition: background 0.4s var(--ios-ease-out),
                transform 0.4s var(--ios-spring),
                box-shadow 0.4s ease;
}
.send-anim-progress-seg.active {
    background: var(--color-acento);
    box-shadow: 0 0 8px rgba(255,199,44,0.6);
    transform: scaleY(1.5);
}
.send-anim-progress-seg.done {
    background: rgba(255,255,255,0.4);
    transform: scaleY(1);
}

/* ======================================================= */
/* ====== 29. STATUS POPUP — CENTRADO, GRANDE, CLARO ====== */
/* ======================================================= */

/* Backdrop propio del popup */
.status-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 17999;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background 0.4s ease;
}
.status-popup-backdrop.is-visible {
    background: rgba(0,0,0,0.25);
    pointer-events: all;
}

.status-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 18000;
    /* Fondo blanco cálido suave */
    background: #faf9f7;
    color: #1e1e1e;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 28px 28px 22px;
    font-family: var(--font-cuerpo);
    width: min(360px, 90vw);
    box-shadow:
        0 2px 8px  rgba(0,0,0,0.04),
        0 16px 48px rgba(0,0,0,0.14),
        0 0 0 1px  rgba(255,255,255,0.9) inset;
    /* Estado inicial — sin visible */
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.86);
    transition:
        opacity  0.48s var(--ios-ease-out),
        transform 0.58s var(--ios-spring);
}
.status-popup.is-visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
    /* Respira suavemente cuando está abierto */
}
.status-popup.is-visible.popup-open {
    animation: popup-breathe 3.5s var(--ios-spring-soft) infinite;
    animation-delay: 0.6s;
}
@keyframes popup-breathe {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.14), 0 0 0 1px rgba(255,255,255,0.9) inset; }
    50%       { box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 20px 60px rgba(46,125,50,0.12), 0 0 0 1px rgba(255,255,255,0.9) inset, 0 0 0 3px rgba(46,125,50,0.08); }
}

/* Encabezado del popup */
.status-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.status-popup-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.status-popup-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ios-spring);
}
.popup-open .status-popup-icon {
    background: linear-gradient(145deg, #43a047, #2e7d32);
    box-shadow: 0 4px 12px rgba(46,125,50,0.35);
}
.popup-closed .status-popup-icon {
    background: linear-gradient(145deg, #ef5350, #c62828);
    box-shadow: 0 4px 12px rgba(198,40,40,0.35);
}
/* Anillo de glow pulsante en el ícono — el efecto iOS */
.status-popup-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.popup-open .status-popup-icon-wrap::after {
    background: rgba(46,125,50,0.15);
    opacity: 1;
    animation: icon-glow-pulse 2.2s var(--ios-spring-soft) infinite;
}
@keyframes icon-glow-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%       { transform: scale(1.15); opacity: 1;   }
}

.status-popup-title-block { flex: 1; }
.status-popup-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    display: block;
}
.status-popup-sublabel {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    display: block;
}

/* Separador */
.status-popup-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 0 0 14px;
    border-radius: 2px;
}

/* Body de info */
.status-popup-body {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.status-popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    font-size: 0.83rem;
    transition: background 0.2s;
}
.status-popup-row i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    color: #999;
}
.popup-open  .status-popup-row.row-status i { color: #2e7d32; }
.popup-closed .status-popup-row.row-status i { color: #c62828; }

/* Botón cerrar */
.status-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    border: none;
    color: #888;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s var(--ios-spring), color 0.2s;
    line-height: 1;
}
.status-popup-close:hover {
    background: rgba(0,0,0,0.13);
    color: #333;
    transform: scale(1.12);
}
.status-popup-close:active { transform: scale(0.9); }

/* Dot pulsante (mantener compatibilidad) */
.popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e7d32;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}
.popup-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(46,125,50,0.4);
    animation: dot-ring-pulse 1.8s var(--ios-spring-soft) infinite;
}
.popup-dot.blink { animation: none; }
@keyframes dot-ring-pulse {
    0%   { transform: scale(0.8); opacity: 1;   }
    70%  { transform: scale(1.8); opacity: 0;   }
    100% { transform: scale(0.8); opacity: 0;   }
}

@media (max-width: 400px) {
    .status-popup { width: 94vw; padding: 22px 20px 18px; }
    .status-popup-label { font-size: 0.95rem; }
}

/* ======================================================= */
/* ====== 30. COMPARTIR PRODUCTO ====== */
/* ======================================================= */
.product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.share-product-btn {
    background: none;
    color: #ccc;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.18s ease;
}
.share-product-btn:hover { color: #888; }
.share-product-btn:active { transform: scale(0.88); }
.share-product-btn.share-copied { color: #25D366; }