/* ==========================================================================
   Heladería Austral — Ultra-Modern Mobile Web App Stylesheet (PWA)
   Aesthetic: Deep Luxury Glassmorphism & Aurora Glow (Matching Admin #050b16)
   Layout: Exact PedidosYa / Rappi delivery-style product catalog (Foto 2)
   ========================================================================== */

:root {
    color-scheme: dark;
    --font-main: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Outfit", var(--font-main);

    /* Dark luxury palette (Admin aligned #050b16) */
    --bg-dark: #050b16;
    --bg-dark-accent: #081220;
    --surface-glass: rgba(9, 17, 32, 0.95);
    --surface-solid: #091120;
    --surface-card: rgba(13, 23, 42, 0.95);
    --surface-card-hover: rgba(18, 32, 58, 0.98);
    --surface-hover: rgba(22, 38, 66, 0.95);

    --primary: #38bdf8;
    --primary-strong: #0284c7;
    --primary-soft: rgba(56, 189, 248, 0.14);
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #818cf8 100%);
    --aurora-gradient: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 35%, #fb923c 100%);
    --pink-accent: #f472b6;
    --purple-accent: #a78bfa;
    --amber-accent: #fbbf24;
    --success: #22c55e;
    --danger: #ef4444;
    --warm-cream: #1e293b;
    --ice: #0f172a;

    --text: #e2e8f0;
    --text-heading: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.14);
    --border-glow: rgba(56, 189, 248, 0.40);

    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.22), 0 20px 38px rgba(56, 189, 248, 0.18);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --radius-full: 9999px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-main);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at right center, rgba(250, 204, 21, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.10), transparent 28%),
        #050b16;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    touch-action: manipulation;
}

/* =========================================
   APP BAR / HEADER SUPERIOR
   ========================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 11, 22, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: calc(0.6rem + var(--safe-top)) 1rem 0.6rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    min-width: 0;
    flex-shrink: 1;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #050b16;
    padding: 2px;
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 14px rgba(7, 15, 26, 0.5);
    transition: transform 0.25s ease;
}

.brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text-heading);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-status {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-header-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-header-action:hover {
    background: var(--primary-soft);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.btn-header-cart {
    position: relative;
    padding: 0.45rem 0.75rem;
}

.cart-badge-count {
    background: var(--primary-gradient);
    color: #071521;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    padding: 2px 7px;
    margin-left: 2px;
}

.btn-header-install {
    background: var(--primary-gradient);
    color: #071521;
    border: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.btn-header-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(56, 189, 248, 0.4);
}

/* Ocultar etiquetas de texto en celulares para que el header nunca desborde */
@media (max-width: 600px) {
    .btn-header-install .action-label,
    #btn-abrir-mis-datos .action-label {
        display: none;
    }
    .btn-header-action {
        padding: 0.45rem 0.6rem;
    }
    .brand-title {
        font-size: 0.95rem;
    }
    .brand-logo-img {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}

/* =========================================
   BANNER FLOTANTE DE INSTALACIÓN PWA
   ========================================= */

.pwa-install-banner {
    background: linear-gradient(135deg, rgba(13, 24, 41, 0.95), rgba(22, 36, 61, 0.95));
    border-bottom: 1px solid var(--border-glow);
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 95;
    animation: bannerSlideDown 0.3s ease-out;
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.banner-logo {
    width: 38px;
    height: 38px;
    min-width: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #050b16;
    padding: 2px;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.banner-text strong {
    font-size: 0.9rem;
    color: #ffffff;
    display: block;
}

.banner-text p {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-banner-install {
    background: var(--primary-gradient);
    color: #071521;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
    white-space: nowrap;
}

.btn-banner-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
}

/* =========================================
   ESTRUCTURA PRINCIPAL DE PÁGINA
   ========================================= */

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 0.85rem 6.5rem;
}

@media (min-width: 768px) {
    .main-container {
        padding: 2rem 1.5rem 6.5rem;
    }
}

.app-grid-layout {
    display: grid;
    grid-template-columns: 100%;
    gap: 1.75rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .app-grid-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

/* Hero & Header de Sección */
.catalog-hero {
    margin-bottom: 1.25rem;
}

.hero-banner-card {
    background: linear-gradient(135deg, rgba(14, 26, 48, 0.9), rgba(8, 17, 32, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero-banner-text h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.2rem;
}

.hero-banner-text p {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-badge-pills {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hero-pill {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Filtros de Categoría */
.category-filter-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.filter-tab-btn.active {
    background: var(--primary-gradient);
    color: #071521;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   LISTA DE PRODUCTOS DELIVERY (FOTO 2 — EXACTO PEDIDOSYA / RAPPI)
   Vertical list, uno abajo del otro, lado izquierdo info y lado derecho foto 90x90
   ========================================================================== */

.product-list-delivery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.product-delivery-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 14px;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.product-delivery-card:hover {
    background: var(--surface-card-hover);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.product-delivery-card:active {
    transform: scale(0.99);
}

/* Lado Izquierdo (Textos y Precios) */
.product-info-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.product-badge-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-bottom: 5px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 3px;
    word-break: break-word;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

/* Lado Derecho (Foto Cuadrada + Botón Añadir) */
.product-thumb-col {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    position: relative;
    border-radius: 14px;
    background: radial-gradient(circle, #0e1e36 0%, #050b16 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-delivery-card:hover .product-thumb-img {
    transform: scale(1.08);
}

.product-thumb-fallback {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, #081220 80%);
}

.product-action-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #071521;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.product-action-btn:hover {
    transform: scale(1.12);
    background: var(--primary);
    color: #071521;
}

/* =========================================
   CHECKOUT / CARRITO / FORMULARIO (SIDEBAR)
   ========================================= */

.checkout-panel-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.checkout-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.cart-empty-message {
    text-align: center;
    padding: 1.75rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-empty-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.4rem;
}

/* Items en el carrito */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 1.25rem;
}

.cart-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.cart-item-flavors {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.cart-item-toppings {
    font-size: 0.75rem;
    color: #38bdf8;
    margin-top: 2px;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.cart-item-price {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--primary);
}

.cart-item-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Modos de Entrega */
.delivery-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1.1rem;
}

.delivery-toggle-option {
    cursor: pointer;
    user-select: none;
}

.delivery-toggle-option input {
    display: none;
}

.toggle-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.delivery-toggle-option.active .toggle-box,
.delivery-toggle-option input:checked + .toggle-box {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: #ffffff;
}

/* Resumen del cliente */
.client-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 1.1rem;
}

.client-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.client-info-header strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.btn-edit-client {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.client-info-body p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Cupón de descuento */
.cupon-box {
    margin-bottom: 1.1rem;
}

.cupon-input-group {
    display: flex;
    gap: 6px;
}

.cupon-input-group input {
    flex: 1;
    background: rgba(14, 26, 48, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.cupon-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-cupon-apply {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.cupon-feedback {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Formas de Pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 1.1rem;
}

.payment-method-card {
    cursor: pointer;
}

.payment-method-card input {
    display: none;
}

.payment-card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.payment-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 2px;
}

.payment-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.payment-method-card.active .payment-card-content,
.payment-method-card input:checked + .payment-card-content {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.payment-method-card.active .payment-title,
.payment-method-card input:checked + .payment-card-content .payment-title {
    color: #ffffff;
}

/* Vuelto y paneles de pago */
.pago-detail-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 1.1rem;
}

.vuelto-quick-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.chip-vuelto {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
}

.chip-vuelto.active {
    background: var(--primary);
    color: #071521;
    font-weight: 700;
}

.alias-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin: 6px 0;
}

.alias-code {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.9rem;
}

.btn-copy-alias {
    background: var(--primary);
    color: #071521;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

/* Resumen Final de Precios */
.order-summary-card {
    background: rgba(14, 26, 48, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 1.1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.summary-val {
    font-weight: 700;
    color: var(--text);
}

.summary-total-destacado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 6px;
}

.total-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.total-amount-wrap {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

/* Botón Principal de Confirmación */
.btn-submit-order {
    width: 100%;
    background: var(--primary-gradient);
    color: #071521;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
    transition: transform 0.2s ease;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
}

/* =========================================
   MODAL PERSONALIZAR PRODUCTO (SABORES & EXTRAS)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 8, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.2s ease-out;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 1.5rem;
    }
}

.modal-card {
    background: #091120;
    border: 1px solid var(--border-glow);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.25rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
    .modal-card {
        border-radius: 24px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-product-hero {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 1.1rem;
}

.modal-product-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #0c182a;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
}

.modal-product-info p {
    font-size: 0.82rem;
    color: var(--muted);
}

.modal-product-info .modal-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2px;
}

/* Selector de Sabores */
.flavor-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.flavor-counter-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.flavor-counter-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.flavor-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.flavor-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.flavor-group {
    margin-bottom: 1.1rem;
}

.flavor-group-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.flavor-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 7px;
}

.flavor-chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flavor-chip-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.flavor-chip-btn.selected {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--primary);
    color: #ffffff;
}

.flavor-chip-btn.selected::after {
    content: '✓';
    font-weight: 800;
    color: var(--primary);
    margin-left: 4px;
}

/* Extras / Toppings */
.extras-picker-wrap {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.extras-chips-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.topping-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.topping-chip.selected {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--primary);
    color: #ffffff;
}

/* Selector de Cantidad */
.quantity-stepper-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-stepper {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stepper-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 18px;
    text-align: center;
}

.modal-actions-sticky {
    margin-top: 1.25rem;
}

.btn-add-to-cart {
    width: 100%;
    background: var(--primary-gradient);
    color: #071521;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================
   BARRA FLOTANTE INFERIOR MOBILE
   ========================================= */

.mobile-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(5, 11, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glow);
    padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
}

.sticky-bar-items {
    font-size: 0.75rem;
    color: var(--muted);
}

.sticky-bar-total {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-sticky-action {
    background: var(--primary-gradient);
    color: #071521;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

/* Form inputs generales */
.field {
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.field input,
.field textarea {
    background: rgba(14, 26, 48, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.88rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.field textarea {
    min-height: 70px;
    resize: vertical;
}

.message-banner {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 0.9rem;
    display: none;
}

.message-banner.visible {
    display: block;
}

.message-banner.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.message-banner.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    color: #86efac;
}

/* Modal Exito */
.modal-success-card {
    text-align: center;
    padding: 2rem 1.25rem;
}

.success-animation-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.success-order-number {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0.4rem 0 0.9rem;
}

.btn-whatsapp-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    margin-top: 1.1rem;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.btn-new-order {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: var(--radius-md);
    width: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.65rem;
    cursor: pointer;
}
