/* --- PEGAR ESTO AL INICIO DE TU <STYLE> --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Estilo PRO para la lista de productos en el historial */
.hc-items-text { 
    font-family: 'Poppins', sans-serif !important; 
    font-size: 0.95rem; 
    color: #334155; 
    font-weight: 600; 
    line-height: 1.5; 
    letter-spacing: 0.3px;
}

/* Estrellitas dinámicas junto al precio */
.price-stars { margin-left: 5px; display: inline-flex; gap: 2px; }
.price-stars i { 
    color: #fbbf24; 
    font-size: 0.8rem; 
    animation: twinkleStar 2s infinite alternate; 
}
.price-stars i:nth-child(2) { animation-delay: 0.2s; }
.price-stars i:nth-child(3) { animation-delay: 0.4s; }

@keyframes twinkleStar { 
    0% { opacity: 0.6; transform: scale(0.9); } 
    100% { opacity: 1; transform: scale(1.2); } 
}

/* --- VARIABLES --- */
:root {
    --rapi-orange: #ff6600;
    --rapi-dark: #1e1e1e;
    --bg-body: #f8f9fa;
    --shadow-pro: 0 10px 30px -10px rgba(255, 102, 0, 0.3);
    --bac-red: #cc0000;
    --prom-green: #008f39;
    --fic-blue: #003399;
    --danger: #ef4444;
    --success: #10b981;
    --gray-inactive: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: #000; display: flex; justify-content: center; height: 100vh; height: 100dvh; overflow: hidden; overflow-x: hidden; overscroll-behavior-x: none; }

.app-shell { width: 100%; max-width: 480px; height: 100%; background: var(--bg-body); position: relative; overflow: hidden; overflow-x: hidden; display: flex; flex-direction: column; touch-action: pan-y; }

/* ═══ BLOQUEO ANTI-DESLIZAMIENTO HORIZONTAL EN TODAS LAS VISTAS ═══ */
/* Esto evita que al tocar y arrastrar el dedo hacia los lados se
   mueva la vista completa. Solo permite scroll vertical. */
.view {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}
#view-checkout {
    overflow-x: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, .brand-font { font-family: 'Montserrat', sans-serif !important; }

/* Transiciones aceleradas y fluidas */
.view { display: none; flex: 1; overflow-y: auto; padding: 20px 20px 140px 20px; opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1); scrollbar-width: none; }
/* Corrección para ocultar barra en Chrome/Safari */
.view::-webkit-scrollbar, .merchants-scroll::-webkit-scrollbar, .payment-scroller::-webkit-scrollbar, .menu-filter-scroll::-webkit-scrollbar { display: none; }
.view.active { display: block; opacity: 1; transform: translateY(0); }

/* --- ANIMACIONES DE ENTRADA Y SALIDA PRO MEJORADAS --- */
.view-enter-pro { animation: slideUpElastic 0.4s cubic-bezier(0.175, 0.885, 0.32, 1) forwards; }
@keyframes slideUpElastic { from { opacity: 0; transform: translateY(80px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.view-exit-pro { animation: slideDownFade 0.25s ease-out forwards; pointer-events: none; }
@keyframes slideDownFade { to { opacity: 0; transform: translateY(40px) scale(0.97); } }

/* --- ESTILOS VISTA NOCTURNA (IA) --- */
#view-night-mode { background: #111; color: white; }
.night-header { background: linear-gradient(180deg, rgba(255,102,0,0.2) 0%, rgba(17,17,17,0) 100%); padding: 30px 20px; text-align: center; }
.moon-icon { font-size: 3rem; color: #fbbf24; margin-bottom: 10px; animation: floatMoon 3s ease-in-out infinite; filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4)); }
@keyframes floatMoon { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.night-list-item { 
    display: flex; align-items: center; gap: 15px; 
    background: #1f1f1f; margin-bottom: 15px; padding: 12px; border-radius: 18px; 
    border: 1px solid #333; animation: slideInStagger 0.5s ease forwards; opacity: 0; transform: translateX(-20px);
}
@keyframes slideInStagger { to { opacity: 1; transform: translateX(0); } }

.night-price-tag { background: #fbbf24; color: #000; padding: 5px 10px; border-radius: 8px; font-weight: 800; font-size: 0.9rem; }

/* --- INTRO --- */
#intro-screen { position: absolute; inset: 0; background: var(--rapi-orange); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s ease-out; }
.intro-bird { font-size: 5rem; color: white; animation: birdFly 1.5s infinite alternate; }
.intro-text { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; color: white; font-weight: 900; margin-top: 20px; opacity: 0; animation: textSlide 0.8s forwards 0.3s; }
@keyframes birdFly { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-15px) scale(1.1); } }
@keyframes textSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- 1. BUSCADOR (Contenedor Principal) --- */
.home-search-wrapper { 
    position: relative; 
    margin-bottom: 25px; 
    z-index: 2000;
}

.home-search-input { 
    width: 100%; 
    background: white; 
    border: 2px solid #f3f4f6; 
    padding: 16px 16px 16px 50px; 
    border-radius: 18px; 
    font-size: 1rem; 
    outline: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
}

.search-icon-home { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--rapi-orange); 
    font-size: 1.1rem; 
}

/* --- 2. LISTA DE RESULTADOS (Limpia y Flotante) --- */
.dynamic-results { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #ffffff; 
    border-radius: 15px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    z-index: 2001; 
    max-height: 350px; 
    overflow-y: auto; 
    display: none; 
    margin-top: 10px; 
    border: 1px solid #eee;
}

.dynamic-results.show { display: block; }

/* --- 3. ITEM GENÉRICO --- */
.d-res-item { 
    display: flex; 
    align-items: center; 
    padding: 15px; 
    background: white;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: 0.2s;
}

.d-res-item:hover { background: #fff7ed; }

/* --- 4. IMAGEN --- */
.d-res-img { 
    width: 45px !important; 
    height: 45px !important; 
    border-radius: 10px; 
    object-fit: cover; 
    margin-right: 15px; 
    border: 1px solid #eee;
    flex-shrink: 0; 
}

/* --- SUGERENCIA INTELIGENTE (IA FAKE) --- */
.ai-box {
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
    border: 2px solid #fed7aa;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(255, 102, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease;
    z-index: 10;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.ai-box:active { transform: scale(0.97); }
.ai-icon-pulse {
    width: 50px; height: 50px;
    background: var(--rapi-orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    animation: pulse-orange 2s infinite;
}
.ai-content { flex: 1; }
.ai-badge {
    font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
    color: var(--rapi-orange); background: rgba(255, 102, 0, 0.15);
    padding: 4px 8px; border-radius: 8px; display: inline-block; margin-bottom: 5px; letter-spacing: 0.5px;
}
.ai-arrow { color: #d1d5db; }
@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.merchants-wrapper { position: relative; display: flex; align-items: center; margin-bottom: 30px; }
.merchants-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 10px 5px; scrollbar-width: none; scroll-behavior: smooth; width: 100%; }
.merchant-bubble { display: flex; flex-direction: column; align-items: center; min-width: 85px; cursor: pointer; transition: transform 0.2s; }
.merchant-bubble:active { transform: scale(0.9); }
.merchant-img { width: 75px; height: 75px; background: white; border-radius: 18px; padding: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; transition: 0.3s; object-fit: cover; }
.merchant-img.health { border-radius: 50%; border-color: #ecfdf5; padding: 10px; }

.scroll-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 10; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.95); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #f3f4f6; color: var(--rapi-orange); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.8; transition: 0.3s; }
.scroll-btn.left { left: -10px; } .scroll-btn.right { right: -10px; }

.section-title { font-weight: 800; color: #374151; font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--rapi-orange); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.service-card { background: white; padding: 20px; border-radius: 20px; text-align: center; box-shadow: var(--shadow-pro); cursor: pointer; transition: 0.3s; border: 2px solid transparent; }
.service-card:active { transform: scale(0.95); }
.service-card:hover { border-color: var(--rapi-orange); }
.service-icon { font-size: 2rem; color: var(--rapi-orange); margin-bottom: 10px; }
.service-title { font-weight: 800; color: #374151; font-size: 0.9rem; }
.service-desc { font-size: 0.7rem; color: #9ca3af; margin-top: 5px; }

/* CHECKOUT & SEARCH INPUTS (Generic) */
.search-container { position: relative; margin-bottom: 15px; }
.search-input { width: 100%; padding: 15px 15px 15px 45px; border-radius: 16px; border: 2px solid #e5e7eb; font-size: 1rem; outline: none; transition: 0.3s; background: white; }
.search-input:focus { border-color: var(--rapi-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); }
.search-results { position: absolute; top: 105%; left: 0; width: 100%; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 50; max-height: 200px; overflow-y: auto; display: none; }
.result-item { padding: 14px; border-bottom: 1px solid #f3f4f6; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; }
.result-item.closed { background: #fee2e2; color: #991b1b; cursor: not-allowed; }
.result-item.danger { color: #c2410c; }

/* INVOICE & CART */
.invoice-card { background: white; border-radius: 24px; padding: 25px; margin-bottom: 25px; box-shadow: var(--shadow-pro); position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); }
.invoice-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; color: #4b5563; align-items: flex-start; }
.total-section { border-top: 2px dashed #e5e7eb; margin-top: 15px; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.total-amount { font-size: 1.8rem; color: var(--rapi-orange); font-weight: 900; }

/* RIDER & TIPS */
.rider-section { background: white; border-radius: 20px; padding: 20px; margin-bottom: 20px; border: 1px solid #f3f4f6; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.rider-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.rider-avatar-box { position: relative; width: 60px; height: 60px; }
.rider-img { width: 100%; height: 100%; object-fit: contain; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.rider-img.happy { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(0 5px 10px rgba(255,165,0,0.4)); }
.rider-img.super-happy { transform: scale(1.25) translateY(-5px); animation: bounce 0.6s infinite alternate; }
@keyframes bounce { from { transform: translateY(0) scale(1.25); } to { transform: translateY(-8px) scale(1.25); } }
.stars-container { position: absolute; inset: -20px; pointer-events: none; display: none; justify-content: center; align-items: center; }
.stars-container.show { display: flex; }
.star { font-size: 1.2rem; position: absolute; animation: twinkle 1s infinite alternate; }
.s1 { top: 0; left: 10px; animation-delay: 0s; }
.s2 { top: 5px; right: 5px; animation-delay: 0.3s; font-size: 0.8rem; }
.s3 { bottom: 0; left: 20px; animation-delay: 0.6s; }
@keyframes twinkle { 0% { opacity: 0.4; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

/* ══════════════════════════════════════════════════════
   PROPINA — TARJETA PRO COMPLETA
   ══════════════════════════════════════════════════════ */

/* — Tarjeta contenedor principal — */
.tip-card-pro {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid #fed7aa;
    box-shadow: 0 8px 28px rgba(255,102,0,0.12);
    margin-bottom: 16px;
}

/* — Cabecera naranja — */
.tip-card-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 60%, #ffb347 100%);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.tip-card-header::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 110px; height: 110px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}
.tip-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tip-header-icon {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}
.tip-header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    line-height: 1.2;
}
.tip-header-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-top: 2px;
}
.tip-header-badge {
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 5px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* — Tira de emojis decorativos — */
.tip-emoji-strip {
    background: #fff7ed;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
    padding: 5px 12px;
    display: flex;
    gap: 10px;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}
.tip-emoji-strip-bottom {
    border-top: 1px solid #fed7aa;
    border-bottom: none;
    background: #fff7ed;
}

/* — Cuerpo: imagen + texto — */
.tip-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #fffbf7 0%, #fff7ed 100%);
}

/* — Círculo imagen rider con borde naranja animado — */
.tip-rider-circle {
    position: relative;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
}
.tip-rider-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        #ff6600 0%,
        #ffb347 25%,
        #ff8c00 50%,
        #ffb347 75%,
        #ff6600 100%
    );
    z-index: 0;
    animation: tip-ring-spin 3s linear infinite;
}
@keyframes tip-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.tip-rider-circle::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: white;
    z-index: 1;
}
.tip-rider-img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    inset: 3px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.tip-rider-img.tip-img-active {
    opacity: 1;
    transform: scale(1);
}

/* — Texto dinámico lateral — */
.tip-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tip-gracias-jefe {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: #92400e;
    line-height: 1.2;
}
.tip-rider-sub {
    font-size: 0.76rem;
    color: #b45309;
    font-weight: 600;
    line-height: 1.4;
}
.tip-pill-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.tip-pill-orange {
    background: #ff6600;
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
}
.tip-pill-gray {
    background: #fff0e0;
    color: #92400e;
    border: 1px solid #fed7aa;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}
.tip-bolsillo-tag {
    font-size: 0.68rem;
    color: #b45309;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.3;
}

/* — Grid de 4 botones de propina con imagen — */
.tip-btns-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 14px 16px;
    background: white;
}
.tip-btn-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tip-btn-pro:active { transform: scale(0.93); }
.tip-btn-pro.active {
    border-color: #ff6600;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(255,102,0,0.22);
}
.tip-btn-featured {
    border-color: #e5e7eb;
    background: white;
}

/* Imagen circular dentro del botón */
.tip-btn-img-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #ff6600;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
}
.tip-btn-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.tip-btn-img-otro {
    border-color: #9ca3af;
    background: #f8fafc;
}

.tip-btn-amount {
    font-size: 0.85rem;
    font-weight: 900;
    color: #1f2937;
    line-height: 1;
}
.tip-btn-pro.active .tip-btn-amount { color: #ff6600; }
.tip-btn-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
    line-height: 1;
}
.tip-btn-pro.active .tip-btn-label { color: #b45309; }

/* Tag "RECOMENDADA" sobre el botón featured */
.tip-btn-recommended-tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6600;
    color: white;
    font-size: 0.5rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255,102,0,0.35);
}

/* — Clases legacy que aún usan otros elementos — */
.tip-grid { display: flex; gap: 10px; margin-bottom: 10px; }
.tip-btn { flex:1; padding:12px 0; border:2px solid #e5e7eb; border-radius:12px; background:white; color:#6b7280; font-weight:700; cursor:pointer; transition:0.2s; font-size:0.9rem; position:relative; }
.tip-btn.active { border-color:var(--rapi-orange); color:var(--rapi-orange); background:#fff7ed; transform:translateY(-2px); }
.recommended-tag { position:absolute; top:-8px; left:50%; transform:translateX(-50%); background:var(--rapi-orange); color:white; font-size:0.6rem; padding:2px 6px; border-radius:8px; white-space:nowrap; }
.tip-btn-otro { border-color: #e5e7eb; }


.priority-box { background: linear-gradient(to right, #fff, #fefce8); border: 2px solid #fef08a; padding: 15px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; cursor: pointer; transition: 0.3s; }
.priority-box.active { border-color: var(--rapi-orange); background: #fff7ed; }
.toggle-switch { width: 45px; height: 25px; background: #d1d5db; border-radius: 20px; position: relative; transition: 0.3s; }
.toggle-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; background: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.priority-box.active .toggle-switch { background: var(--rapi-orange); }
.priority-box.active .toggle-switch::after { left: 23px; }

/* BUTTONS & PAYMENTS */
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; display: none; }
.bank-btn { padding: 15px 5px; border-radius: 12px; border: 2px solid #e5e7eb; background: white; text-align: center; font-weight: 700; font-size: 0.75rem; color: #6b7280; cursor: pointer; transition: all 0.3s; }
.bank-btn.bac.active { background: var(--bac-red); border-color: var(--bac-red); color: white; transform: scale(1.05); }
.bank-btn.prom.active { background: var(--prom-green); border-color: var(--prom-green); color: white; transform: scale(1.05); }
.bank-btn.fic.active { background: var(--fic-blue); border-color: var(--fic-blue); color: white; transform: scale(1.05); }

.btn-whatsapp { width: 100%; background: #25D366; color: white; padding: 20px; border-radius: 20px; border: none; font-size: 1.1rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3); position: relative; overflow: hidden; margin-top: 15px; }
.btn-whatsapp::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* SOPORTE */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.complaint-chip { background: white; border: 2px solid #f3f4f6; padding: 15px 10px; border-radius: 15px; text-align: center; cursor: pointer; transition: 0.3s; color: #6b7280; font-weight: 600; font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.complaint-chip i { font-size: 1.5rem; margin-bottom: 5px; }
.complaint-chip.active { border-color: var(--rapi-orange); background: #fff7ed; color: var(--rapi-orange); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 102, 0, 0.15); }
.btn-support-wa { background: #1e1e1e; color: white; width: 100%; padding: 18px; border-radius: 18px; border:none; font-weight: 800; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); margin-top: 15px; }

/* ANIMATIONS */
.fly-item { position: absolute; z-index: 9999; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; pointer-events: none; border: 2px solid var(--rapi-orange); transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.error-shake { border-color: var(--danger) !important; animation: shake 0.4s ease-in-out; background: #fef2f2; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* --- MINI CART PREMIUM (ANIMADO Y CON COLOR) --- */
.mini-cart { 
    position: absolute; 
    bottom: 110px; 
    left: 20px; 
    right: 20px; 
    /* Fondo degradado oscuro premium */
    background: linear-gradient(135deg, #1e1e1e 0%, #000000 100%); 
    color: white; 
    border-radius: 20px; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    /* Sombra fuerte y borde naranja sutil */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 102, 0, 0.3); 
    z-index: 80; 
    transform: translateY(200px) scale(0.9); 
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    cursor: pointer; 
    overflow: hidden; 
}

/* Patrón de fondo sutil para textura */
.mini-cart::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    opacity: 0.1; 
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--rapi-orange) 10px, var(--rapi-orange) 12px);
    pointer-events: none;
}

.mini-cart.visible { 
    transform: translateY(0) scale(1); 
    opacity: 1;
}

/* Icono animado dentro del carrito */
.cart-icon-anim {
    width: 45px; height: 45px;
    background: var(--rapi-orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
    animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); transform: scale(1.1); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); transform: scale(1); }
}

/* BOTÓN DE CIERRE (X) */
.close-cart-btn {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-left: 10px;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.close-cart-btn:active { transform: scale(0.8); background: #ef4444; border-color: #ef4444; }

/* BURBUJA FLOTANTE (MINIMIZADO) */
.floating-bubble-cart {
    position: absolute; bottom: 120px; right: 20px;
    width: 65px; height: 65px; 
    background: var(--rapi-orange);
    border-radius: 50%; 
    box-shadow: 0 10px 30px rgba(255,102,0,0.5);
    z-index: 79; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.8rem; cursor: pointer;
    transform: scale(0) rotate(180deg); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-bubble-cart.show { transform: scale(1) rotate(0deg); }
.floating-bubble-cart:active { transform: scale(0.9); }

.bubble-badge {
    position: absolute; top: 0; right: 0;
    background: white; color: var(--rapi-orange);
    font-size: 0.8rem; font-weight: 900;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--rapi-orange);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- NUEVA BARRA DE NAVEGACIÓN ESTILO ANDROID PRO --- */
.nav-bar { 
    position: absolute; bottom: 16px; 
    left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 420px;
    height: 64px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 999px;
    display: flex; justify-content: space-around; align-items: center;
    padding: 0 6px;
    box-shadow: 0 8px 32px rgba(255,102,0,0.4), 0 2px 8px rgba(0,0,0,0.1);
    z-index: 90; 
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
    overflow: visible;
    padding-bottom: 0; 
}

.nav-bar.night-active {
    background: linear-gradient(135deg, #e85d00, #cc5500);
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(255,102,0,0.5), 0 0 60px rgba(255,102,0,0.15);
}

.nav-particles {
    position: absolute; inset: 0; pointer-events: none;
    opacity: 0.5; transition: opacity 0.5s ease;
    z-index: 0; 
}

.nav-particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    animation: floatUp 5s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(80px) rotate(0deg); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-40px) rotate(360deg); opacity: 0; }
}

.nav-item { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,0.6);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    padding: 8px 14px;
    border-radius: 999px;
    position: relative;
    z-index: 10;
    background: transparent;
    border: none;
    min-width: 56px;
}

.nav-item i { 
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    font-size: 1.15rem;
}

.nav-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-item.active { 
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.nav-item.active i { 
    color: #ff6600;
    transform: translateY(0);
}
.nav-item.active .nav-label {
    color: #ff6600;
    font-weight: 800;
}
.nav-item:active {
    transform: scale(0.88);
}

/* Indicador activo debajo del icono */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 16px; height: 3px;
    background: #ff6600;
    border-radius: 10px;
    display: none;
}

.nav-bar.night-active .nav-item {
    background: transparent;
    color: rgba(255,255,255,0.5);
}
.nav-bar.night-active .nav-item.active {
    background: rgba(255,255,255,0.95);
}
.nav-bar.night-active .nav-item i,
.nav-bar.night-active .nav-label { color: rgba(255,255,255,0.5); }
.nav-bar.night-active .nav-item.active i,
.nav-bar.night-active .nav-item.active .nav-label { color: #ff6600; }

.badge { position: absolute; top: 4px; right: 10px; background: #ef4444; color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 50%; font-weight: 800; opacity: 0; border: 2px solid white; }
.badge.show { opacity: 1; }

/* EXTRAS & MODALS */
.discount-box { background: #fff3e0; border: 2px dashed var(--rapi-orange); border-radius: 15px; padding: 15px; display: flex; justify-content: space-between; align-items: center; margin: 15px 0; cursor: pointer; transition: 0.3s; }
.discount-box.active { background: var(--rapi-orange); color: white; border-style: solid; }
.check-circle { width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--rapi-orange); display: flex; align-items: center; justify-content: center; background: white; color: transparent; }
.discount-box.active .check-circle { color: var(--rapi-orange); }

.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-card { background: white; width: 90%; max-width: 340px; border-radius: 30px; padding: 30px; text-align: center; animation: bounceIn 0.4s; }
@keyframes bounceIn { 0%{transform:scale(0.5);opacity:0} 60%{transform:scale(1.1)} 100%{transform:scale(1)} }

.payment-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.payment-card { min-width: 110px; height: 90px; background: white; border: 2px solid #f3f4f6; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; color: #9ca3af; }
.payment-card.active { border-color: var(--rapi-orange); background: #fff7ed; color: var(--rapi-orange); transform: translateY(-2px); }

.warning-tag { background: #fffbeb; border: 1px solid #fbbf24; color: #92400e; padding: 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; margin-top: 10px; display: none; }
.warning-tag.danger { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }

.input-label { font-weight: 700; font-size: 0.85rem; color: #374151; margin-bottom: 5px; display: block; }
.input-group { margin-bottom: 15px; }

/* RESTAURANT DETAILS */
.restaurant-cover { height: 200px; margin: -20px -20px 0; background-size: cover; background-position: center; position: relative; }
.restaurant-header-card { background: white; border-radius: 20px; padding: 20px; margin: -60px 10px 20px; position: relative; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 15px; }
.restaurant-logo-name { display: flex; align-items: center; gap: 15px; }
.restaurant-logo-img { width: 60px; height: 60px; border-radius: 15px; border: 1px solid #f3f4f6; padding: 5px; object-fit: contain; background: white; }
.restaurant-meta { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: #4b5563; }
.restaurant-meta i { color: var(--rapi-orange); margin-right: 5px; }

.menu-filter-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; margin-bottom: 10px; }
.menu-filter-chip { white-space: nowrap; padding: 8px 15px; background: #f3f4f6; border-radius: 20px; font-weight: 600; color: #4b5563; cursor: pointer; transition: 0.3s; }
.menu-filter-chip.active { background: var(--rapi-orange); color: white; box-shadow: 0 4px 10px rgba(255,102,0,0.2); }
.menu-filter-chip i { margin-right: 8px; }
.back-btn-floating { position: absolute; top: 30px; left: 20px; z-index: 20; width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); cursor: pointer; color: #374151; transition: transform 0.2s; }
.back-btn-floating:active { transform: scale(0.9); }

/* --- QUANTITY CONTROLS --- */
.qty-control {
    display: flex; align-items: center; gap: 5px;
    background: #f3f4f6; border-radius: 12px; padding: 4px;
}
.qty-btn {
    width: 32px; height: 32px; border-radius: 8px; border: none; 
    font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: 0.2s;
}
.qty-btn.add { background: var(--rapi-orange); color: white; box-shadow: 0 4px 10px rgba(255,102,0,0.2); }
.qty-btn.add:active { transform: scale(0.9); }

.qty-btn.sub { background: white; color: #374151; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.qty-btn.sub:active { transform: scale(0.9); }

.qty-val { min-width: 25px; text-align: center; font-weight: 800; font-size: 0.9rem; color: #1f2937; }

.item-row { 
    background:white; border-radius:15px; padding:12px; margin-bottom:10px; 
    display:flex; align-items:center; box-shadow:0 2px 5px rgba(0,0,0,0.05); position:relative; 
}

/* --- TIP MODAL & SUCCESS ANIMATION --- */
.glass-modal { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 1px solid rgba(255,255,255,0.5); }
.tip-input-pro { font-size: 2.5rem; font-weight: 900; color: var(--rapi-orange); width: 100%; border: none; background: transparent; text-align: center; outline: none; margin: 20px 0; border-bottom: 2px dashed #e5e7eb; padding-bottom: 10px; }
.tip-input-pro:focus { border-color: var(--rapi-orange); }

.success-overlay { position: absolute; inset: 0; background: var(--rapi-orange); z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; padding: 40px; }
.heart-beat { font-size: 5rem; animation: heartBeat 1.3s infinite ease-in-out; margin-bottom: 20px; }
@keyframes heartBeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }

/* --- LOGIN & REGISTRO --- */
.auth-container { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 30px; }
.auth-logo { font-size: 4rem; color: var(--rapi-orange); margin-bottom: 10px; animation: bounceIn 1s; }
.auth-title { font-size: 2rem; font-weight: 900; color: #374151; margin-bottom: 5px; }
.auth-sub { color: #9ca3af; margin-bottom: 30px; font-size: 0.9rem; }
.auth-input { width: 100%; padding: 18px; border-radius: 18px; border: 2px solid #e5e7eb; margin-bottom: 15px; font-size: 1rem; outline: none; transition: 0.3s; background: white; }
.auth-input:focus { border-color: var(--rapi-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); transform: translateY(-2px); }
.btn-auth { width: 100%; padding: 18px; border-radius: 18px; background: var(--rapi-orange); color: white; font-weight: 800; border: none; font-size: 1.1rem; cursor: pointer; box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3); transition: 0.3s; margin-top: 10px; }
.btn-auth:active { transform: scale(0.95); }

.pass-req-box { background: white; border-radius: 15px; padding: 15px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pass-req-item { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #9ca3af; margin-bottom: 8px; transition: 0.3s; }
.pass-req-item.valid { color: #10b981; font-weight: 700; }
.pass-req-item i { font-size: 0.9rem; }

.btn-google-anim {
    width: 100%; background: white; color: #444; padding: 15px; border-radius: 30px; 
    border: 2px solid #f1f1f1; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; overflow: hidden; margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-google-anim:hover { background: #f9f9f9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.btn-google-anim:active { transform: scale(0.98); }
.btn-google-anim img { transition: transform 0.4s ease; }
.btn-google-anim:hover img { transform: rotate(360deg); }

/* --- HISTORIAL Y FIDELIZACIÓN PRO --- */
.loyalty-progress-container {
    background: linear-gradient(135deg, #1f1f1f 0%, #333 100%);
    padding: 15px; 
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.5s ease;
}

.loyalty-progress-container::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Animación espectacular cuando llega a 10 */
.loyalty-celebrate {
    animation: ultimateGlow 2s infinite alternate;
}
@keyframes ultimateGlow {
    0% { box-shadow: 0 0 10px #ff6600, inset 0 0 10px #ff6600; }
    100% { box-shadow: 0 0 30px #ff9800, inset 0 0 20px #ff9800; transform: scale(1.02); border-color: #ff9800; }
}

.l-step {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800; color: rgba(255,255,255,0.5);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    z-index: 2;
}
.l-step.filled {
    background: var(--rapi-orange);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--rapi-orange);
    border-color: white;
}
.l-step.gift {
    font-size: 1rem;
    background: #10b981;
    color: white;
    animation: pulseGift 2s infinite;
}
@keyframes pulseGift { 0%{box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);} 70%{box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);} 100%{box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);} }

.l-bar-bg { position: absolute; top: 12px; left: 15px; right: 15px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 10px; z-index: 1; }
.l-bar-fill { position: absolute; top: 12px; left: 15px; height: 4px; background: linear-gradient(90deg, var(--rapi-orange), #ff9100); border-radius: 10px; z-index: 1; transition: width 1s ease; box-shadow: 0 0 10px var(--rapi-orange); }

.history-card-pro {
    background: white; border-radius: 20px; padding: 18px; margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; transition: 0.3s;
}
.history-card-pro:active { transform: scale(0.98); }
.hc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.hc-date-box { display: flex; align-items: center; gap: 10px; }
.hc-date-box i { font-size: 1.5rem; color: var(--rapi-orange); opacity: 0.8; }
.hc-date { display: block; font-weight: 800; color: #1e293b; font-size: 0.95rem; }
.hc-time { display: block; font-weight: 600; color: #94a3b8; font-size: 0.75rem; }
.hc-status { font-size: 0.7rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; letter-spacing: 0.5px; }
.st-done { background: #dcfce7; color: #15803d; }
.st-pending { background: #fef3c7; color: #d97706; }
.hc-body { background: #f8fafc; padding: 12px; border-radius: 12px; margin-bottom: 15px; }
.hc-items-title { font-size: 0.7rem; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.hc-items-text { font-size: 0.9rem; color: #334155; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.hc-divider { border-top: 2px dashed #e2e8f0; margin-bottom: 15px; }
.hc-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.hc-info-col { display: flex; flex-direction: column; gap: 6px; }
.hc-info-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #475569; font-weight: 600; }
.hc-total-col { text-align: right; }
.hc-total-label { display: block; font-size: 0.7rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.hc-total-val { display: block; font-size: 1.3rem; font-weight: 900; color: var(--rapi-orange); }

/* --- PRECIOS Y ERROR --- */
.price-badge { padding: 4px 8px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; color: white; }
.p-green { background: #10b981; } 
.p-orange { background: #f59e0b; } 
.p-red { background: #ef4444; }    

.zone-tag { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; border: 1px solid; margin-left: 5px; font-weight: 700; }
.z-time { color: #d97706; border-color: #d97706; background: #fffbeb; }

.time-error-modal { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; 
    display: none; flex-direction: column; align-items: center; justify-content: center; 
    backdrop-filter: blur(8px); text-align: center; padding: 30px;
}
.time-icon-box {
    width: 80px; height: 80px; background: #fee2e2; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    animation: pulseRed 2s infinite;
}
.time-icon { font-size: 2.5rem; color: #ef4444; animation: shakeX 0.8s ease-in-out; }
@keyframes shakeX { 0%, 100% {transform: translateX(0);} 20%, 60% {transform: translateX(-10px);} 40%, 80% {transform: translateX(10px);} }
@keyframes pulseRed { 0% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);} 70% {box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);} 100% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);} }

/* --- ESTILOS ONBOARDING --- */
.slider-container { height: 75%; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; opacity: 0; transform: translateX(100px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; }
.slide.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.slide.exit { opacity: 0; transform: translateX(-100px); }

.slide-img-box { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.slide-icon { font-size: 5rem; color: var(--rapi-orange); z-index: 2; filter: drop-shadow(0 10px 20px rgba(255, 102, 0, 0.4)); animation: floatIcon 3s ease-in-out infinite; }

.circle-anim { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--rapi-orange); opacity: 0; animation: ripple 2s infinite; }
.circle-anim.delay { animation-delay: 0.5s; }
@keyframes ripple { 0% {transform:scale(0.8); opacity:0.5;} 100% {transform:scale(1.5); opacity:0;} }

.slide-title { font-size: 1.8rem; text-align: center; color: #1f2937; margin-bottom: 15px; line-height: 1.2; }
.slide-text { text-align: center; color: #6b7280; font-size: 1rem; line-height: 1.6; }

.slider-controls { height: 25%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; }
.dots-box { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; background: #e5e7eb; border-radius: 50%; transition: 0.3s; }
.dot.active { width: 30px; background: var(--rapi-orange); border-radius: 10px; }

.btn-next-slide { background: var(--rapi-dark); color: white; padding: 15px 40px; border-radius: 30px; border: none; font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; }
.btn-next-slide:active { transform: scale(0.95); }

/* --- MODO OSCURO (Dark Mode) --- */
body.dark-mode { background-color: #000; }
body.dark-mode .app-shell, 
body.dark-mode .view { background: #121212 !important; color: white !important; }

body.dark-mode .header-home,
body.dark-mode .rider-section,
body.dark-mode .invoice-card,
body.dark-mode .service-card,
body.dark-mode .home-search-input,
body.dark-mode .search-input,
body.dark-mode .item-row,
body.dark-mode .qty-control,
body.dark-mode .qty-btn.sub,
body.dark-mode .restaurant-header-card { background: #1e1e1e !important; border-color: #333 !important; color: white !important; }

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4,
body.dark-mode .brand-font, body.dark-mode .input-label, body.dark-mode .qty-val { color: white !important; }

body.dark-mode .slide-title { color: white !important; }
body.dark-mode .slide-text { color: #9ca3af !important; }
body.dark-mode span, body.dark-mode p { color: #d1d5db; }

body.dark-mode .nav-bar { background: linear-gradient(135deg, #e85d00, #cc5500); border-color: rgba(255,255,255,0.1); }
body.dark-mode .nav-item { color: rgba(255,255,255,0.5); }
body.dark-mode .nav-item.active { background: rgba(255,255,255,0.95); }
body.dark-mode .nav-item.active i, body.dark-mode .nav-item.active .nav-label { color: #ff6600; }

body.dark-mode .history-card-pro { background: #1e1e1e; border-color: #333; }
body.dark-mode .hc-date { color: #f1f5f9; }
body.dark-mode .hc-body { background: #2d2d2d; }
body.dark-mode .hc-items-text { color: #e2e8f0; }
body.dark-mode .hc-info-item { color: #cbd5e1; }
body.dark-mode .hc-divider { border-color: #444; }
body.dark-mode .st-done { background: rgba(21, 128, 61, 0.2); color: #4ade80; }
body.dark-mode .st-pending { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }

/* --- ESTILOS DIAPOSITIVAS PRO --- */
.slide-icon-circle {
    width: 140px; height: 140px;
    background: #fff7ed;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.slide-desc { font-size: 1rem; color: #6b7280; text-align: center; line-height: 1.6; }

.slider-bottom { height: 30%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; padding-top: 20px; }
.dots-container { display: flex; gap: 8px; }

.btn-next-pro {
    background: var(--rapi-dark); color: white;
    padding: 16px 50px; border-radius: 30px; border: none;
    font-weight: 800; font-size: 1rem; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.btn-next-pro:active { transform: scale(0.95); }

/* --- PARTÍCULAS DE FONDO "DELIVERY THEME" --- */
.home-particles-container {
    position: absolute;
    top: 100px; 
    left: 0;
    width: 100%;
    height: calc(100% - 180px); 
    overflow: hidden;
    pointer-events: none; 
    z-index: 0; 
}

.bg-particle {
    position: absolute;
    color: var(--rapi-orange);
    opacity: 0.12; 
    animation: floatBackground 20s linear infinite;
}

@keyframes floatBackground {
    from { transform: translateY(100%) rotate(0deg) scale(0.8); opacity:0; }
    50% { opacity: 0.12; }
    to { transform: translateY(-20%) rotate(360deg) scale(1.2); opacity:0; }
}

#view-home > *:not(.home-particles-container) {
    position: relative;
    z-index: 2;
}

/* --- ALERTA DE ERROR PRO --- */
.error-icon-anim {
    font-size: 3.5rem;
    color: #ef4444;
    margin-bottom: 15px;
    animation: bounceError 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceError {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

.btn-error-close {
    width: 100%;
    padding: 15px;
    background: #ef4444; 
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    transition: transform 0.2s;
}
.btn-error-close:active { transform: scale(0.95); }

.input-error-shake {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shakeInput 0.4s ease-in-out;
}
@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- LOGIN PRO (SCIFI / PREMIUM) --- */
.login-bg-container {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.login-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.6; 
    filter: brightness(0.6) contrast(1.2);
    animation: zoomSlow 20s infinite alternate;
}
@keyframes zoomSlow { from{transform:scale(1);} to{transform:scale(1.15);} }

.login-gradient-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 80%);
    z-index: 1;
}

.login-content-wrapper {
    position: relative; z-index: 5; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
}

.login-brand-box {
    margin-bottom: auto; 
    padding-top: 50px; text-align: center;
}
.login-logo-icon {
    font-size: 3.5rem; color: var(--rapi-orange);
    filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.6));
    animation: floatLogo 3s ease-in-out infinite;
}

.city-selector-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    animation: slideUpFade 0.8s ease-out;
}
.city-label { font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display:block;}
.city-value-row { display: flex; align-items: center; justify-content: space-between; color: white; }
.city-name { font-size: 1.2rem; font-weight: 800; font-family: 'Montserrat', sans-serif; display: flex; align-items: center; gap: 10px; }
.city-check { color: #10b981; background: rgba(16, 185, 129, 0.2); padding: 5px; border-radius: 50%; font-size: 0.8rem; }

.hero-slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem; font-weight: 900; line-height: 1.1;
    color: white; margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideUpFade 1s ease-out 0.2s backwards;
}
.hero-sub {
    color: #d1d5db; font-size: 1rem; margin-bottom: 30px;
    animation: slideUpFade 1s ease-out 0.4s backwards;
}

.btn-google-neon {
    position: relative;
    width: 100%;
    background: white;
    color: #1f2937;
    padding: 18px;
    border-radius: 30px;
    border: none;
    font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 15px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
    animation: slideUpFade 1s ease-out 0.6s backwards;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
}

.btn-google-neon::before {
    content: ''; position: absolute; inset: -3px; z-index: -1;
    border-radius: 35px;
    background: linear-gradient(45deg, #4285F4, #DB4437, #F4B400, #0F9D58, #4285F4);
    background-size: 400%;
    animation: glowingBorder 20s linear infinite;
    opacity: 0.6;
    filter: blur(8px);
}

.btn-google-neon:active { transform: scale(0.96); }

@keyframes glowingBorder { 0% {background-position: 0 0;} 50% {background-position: 400% 0;} 100% {background-position: 0 0;} }
@keyframes slideUpFade { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }

#view-profile .d-res-item {
    border-bottom: 1px solid #f9fafb;
    padding: 18px 20px;
    transition: background 0.2s;
}
#view-profile .d-res-item:active { background: #fff7ed; }

/* --- RAPI PLUS --- */
.plus-blue-card {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
    position: relative;
    overflow: hidden;
}
.plus-anim-text {
    background: #fff;
    color: #2563eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    font-style: italic;
    display: inline-block;
    animation: neonPulse 1.5s infinite alternate;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
@keyframes neonPulse {
    from { transform: scale(1); box-shadow: 0 0 5px rgba(255,255,255,0.5); }
    to { transform: scale(1.1); box-shadow: 0 0 15px rgba(255,255,255,1); }
}
.benefit-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- RAPI PLUS DASHBOARD PRO --- */
.premium-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
    border-radius: 25px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.6);
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Efecto de brillo que pasa por la tarjeta */
.premium-card::before {
    content: ''; position: absolute; top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: shineCard 6s infinite;
}
@keyframes shineCard { 0% {left: -150%;} 20% {left: 150%;} 100% {left: 150%;} }

.days-counter-box {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.3); padding: 15px; border-radius: 15px;
    margin-top: 15px; backdrop-filter: blur(5px);
}

.progress-bar-bg {
    height: 8px; background: rgba(255,255,255,0.2); border-radius: 10px;
    margin-top: 20px; overflow: hidden; position: relative;
}
.progress-bar-fill {
    height: 100%; background: #fbbf24; border-radius: 10px;
    box-shadow: 0 0 15px #fbbf24; transition: width 1.5s ease;
}

/* Beneficios Grid */
.perks-grid-pro {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
.perk-item {
    background: white; padding: 20px 15px; border-radius: 20px;
    text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s; border: 1px solid #f3f4f6;
}
.perk-item:hover { transform: translateY(-5px); border-color: var(--rapi-orange); }
.perk-icon {
    font-size: 2rem; margin-bottom: 10px;
    background: -webkit-linear-gradient(45deg, var(--rapi-orange), #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Botón Renovar */
.btn-renew {
    background: #111; color: #fbbf24; width: 100%; padding: 18px;
    border-radius: 20px; font-weight: 900; font-size: 1rem; border: none;
    margin-top: 20px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- ESTILOS RAPI PLUS EN MENÚ Y CHECKOUT --- */

/* Precio para USUARIO PLUS (Azul Eléctrico) */
.price-plus-active {
    color: #2563eb; 
    font-weight: 900; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    gap: 5px;
}

/* Etiqueta "Teaser" para NO PLUS (Sutil pero tentadora) */
.price-plus-teaser {
    background: linear-gradient(90deg, #eff6ff, #dbeafe);
    color: #1e40af;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* Caja de "Ahorro Perdido" en el Checkout */
.missed-savings-box {
    background: #f0f9ff;
    border: 1px dashed #3b82f6;
    color: #1e40af;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
    animation: pulseBlue 2s infinite;
}
@keyframes pulseBlue { 0% {box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);} 70% {box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);} 100% {box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);} }

/* --- SOPORTE PRO (ESTILO UBER EATS) --- */
.support-header-pro {
    background: white; padding: 20px 20px 10px; position: sticky; top: 0; z-index: 10;
    border-bottom: 1px solid #f3f4f6;
}

.uber-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px;
}

.uber-card {
    background: white; border-radius: 16px; padding: 15px; text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f3f4f6;
    cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; gap: 10px;
}
.uber-card:active { transform: scale(0.96); background: #f8f9fa; }
.uber-icon-box {
    width: 40px; height: 40px; border-radius: 12px; background: #f8f9fa;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Preguntas Frecuentes */
.faq-box {
    background: white; border-radius: 16px; border: 1px solid #f3f4f6;
    overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.faq-item {
    padding: 18px; border-bottom: 1px solid #f3f4f6; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; color: #374151; font-size: 0.9rem; transition: background 0.2s;
}
.faq-item:hover { background: #f9fafb; }
.faq-item:last-child { border-bottom: none; }
.faq-answer {
    padding: 0 18px; max-height: 0; overflow: hidden;
    color: #6b7280; font-size: 0.85rem; line-height: 1.5;
    transition: max-height 0.3s ease, padding 0.3s ease; background: #f9fafb;
}
.faq-answer.open { max-height: 150px; padding: 15px 18px; }

/* --- ESTILOS FORZADOS PARA EL MENÚ DE SOPORTE --- */
.bottom-sheet {
    position: fixed !important; /* Fuerza a que ignore el centro de la pantalla */
    bottom: -100% !important; 
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 25px 25px 0 0 !important;
    padding: 25px 20px 40px !important; /* Margen para que el teclado no tape el texto */
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2) !important;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 999999 !important; /* Lo pone por encima de absolutamente todo */
    box-sizing: border-box !important;
}

.bottom-sheet.show {
    bottom: 0 !important; /* Sube y se pega al borde inferior */
}

.rule-alert {
    background: #fff7ed; border-left: 4px solid var(--rapi-orange);
    padding: 12px 15px; border-radius: 8px; margin-bottom: 20px;
    font-size: 0.85rem; color: #92400e; display: flex; gap: 10px;
}
.rule-alert.danger { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* --- SELECTORES DE UBICACIÓN (ESTILO PEDIDOS YA) --- */
.location-selectors {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px;
    animation: slideUpFade 0.8s ease-out;
}
.select-box {
    position: relative;
    background: rgba(255, 255, 255, 0.15); /* Efecto vidrio */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 15px;
    color: white; transition: 0.3s;
}
.select-box:focus-within {
    border-color: var(--rapi-orange);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}
.select-box i.icon-main { font-size: 1.3rem; color: var(--rapi-orange); }
.select-box select {
    background: transparent; border: none; outline: none;
    color: white; font-size: 1rem; font-weight: 800; width: 100%;
    appearance: none; cursor: pointer;
}
.select-box select option { background: #1f2937; color: white; }
.select-arrow { position: absolute; right: 20px; color: white; pointer-events: none; }

/* --- MENSAJE DE ÉXITO (GLASSMORPHISM PRO) --- */
.ready-message-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-radius: 20px; padding: 25px 20px; text-align: center;
    margin-bottom: 25px; display: none; /* Oculto al inicio */
    animation: slideUpElastic 0.5s forwards;
}
.ready-message-glass h3 {
    background: -webkit-linear-gradient(45deg, #fbbf24, #ff6600);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.4rem; margin-bottom: 8px;
}
.ready-message-glass p { color: #f3f4f6; font-size: 0.9rem; font-weight: 500; line-height: 1.5; }

/* --- BOTÓN FACEBOOK --- */
.btn-facebook-neon {
    position: relative; width: 100%; background: #1877F2; color: white;
    padding: 18px; border-radius: 30px; border: none;
    font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 15px;
    cursor: pointer; overflow: hidden; transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4); margin-bottom: 15px;
}
.btn-facebook-neon:active { transform: scale(0.96); }

/* --- TÍTULOS DE CATEGORÍA EN MENÚ --- */
.menu-category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;       /* Grande y legible */
    font-weight: 800;        /* Negrita potente */
    color: #1f2937;          /* Color oscuro elegante */
    margin-top: 30px;        /* Espacio arriba */
    margin-bottom: 15px;     /* Espacio abajo */
    padding-left: 5px;       /* Pequeña sangría */
    border-left: 4px solid var(--rapi-orange); /* Línea naranja decorativa al lado */
    line-height: 1;
}

/* El primer título no necesita tanto margen arriba */
.menu-category-title:first-child {
    margin-top: 10px;
}

/* --- ESTILO DE MENÚ CON DESCRIPCIONES --- */

/* Ajuste del contenedor de la fila */
.item-row.description-mode {
    align-items: flex-start !important; /* Alinea todo arriba */
    padding: 15px !important;
    min-height: 110px; /* Altura mínima para que quepa todo */
}

/* Imagen un poco más grande para equilibrar */
.prod-img-desc {
    width: 85px !important; 
    height: 85px !important; 
    border-radius: 12px; 
    object-fit: cover; 
    margin-right: 15px; 
    background-color: #f3f4f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Texto de la descripción (Gris y limitado a 2 líneas) */
.prod-desc {
    font-size: 0.75rem; 
    color: #6b7280; 
    margin-bottom: 8px; 
    line-height: 1.3;
    
    /* Truco para cortar texto con "..." si es muy largo */
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* --- ESTILOS ALGORITMO INTELIGENTE --- */
.smart-header {
    margin-bottom: 15px;
}

/* Scroll Horizontal Suave */
.horizontal-scroll-snap {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.horizontal-scroll-snap::-webkit-scrollbar { display: none; }

/* Tarjeta de Recomendación */
.smart-card {
    min-width: 140px;
    width: 140px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    scroll-snap-align: center;
    border: 1px solid #f3f4f6;
}

.smart-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.smart-info {
    padding: 10px;
}

.s-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-store {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 5px;
}

.s-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--rapi-orange);
}

/* Animación de entrada para el ahorro */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =======================================================
   SISTEMA DE TOUR INTERACTIVO (EFECTO SPOTLIGHT PRO)
   ======================================================= */
/* Barrera invisible para evitar clics accidentales */
.tour-barrier {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99997; display: none;
}

/* El Foco que recorta la oscuridad y enmarca el elemento */
.tour-spotlight {
    position: fixed;
    background: transparent;
    /* La sombra gigante crea el fondo oscuro alrededor del elemento */
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.85), inset 0 0 15px rgba(255, 102, 0, 0.4);
    border: 2px solid var(--rapi-orange);
    border-radius: 16px;
    z-index: 99998;
    pointer-events: none; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: none;
    opacity: 0;
}

.tour-spotlight.show {
    display: block;
    opacity: 1;
}

/* La tarjeta explicativa que flota sobre la oscuridad */
.tour-card {
    position: fixed; z-index: 100000;
    left: 50%; transform: translateX(-50%) scale(0.95);
    background: white; border-radius: 25px;
    padding: 25px; width: 92%; max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: none; opacity: 0; 
    
    /* Esta es la magia que hace que vuele de arriba a abajo suavemente */
    transition: top 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.4s ease, 
                transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-card.show {
    opacity: 1; transform: translateX(-50%) scale(1);
}

/* Estilos internos de la tarjeta */
.tour-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tour-step-badge { background: #fff7ed; color: var(--rapi-orange); padding: 5px 12px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; border: 1px solid #fed7aa; }
.tour-close { background: none; border: none; font-size: 1.2rem; color: #94a3b8; cursor: pointer; }
.tour-title { font-size: 1.3rem; color: #1e293b; margin-bottom: 8px; }
.tour-desc { font-size: 0.95rem; color: #64748b; line-height: 1.5; margin-bottom: 20px; }
.tour-buttons { display: flex; gap: 10px; }
.tour-btn { flex: 1; padding: 14px; border: none; border-radius: 15px; font-weight: 800; cursor: pointer; transition: 0.2s; font-size: 0.9rem;}
.tour-btn.prev { background: #f1f5f9; color: #64748b; }
.tour-btn.next { background: var(--rapi-orange); color: white; box-shadow: 0 4px 15px rgba(255,102,0,0.3); display: flex; align-items: center; justify-content: center; gap: 8px;}

/* =======================================================
   REPARACIÓN: ESPACIO FANTASMA PARA TOUR (ANTI-PANTALLA PARTIDA)
   ======================================================= */
.tour-ghost-spacer {
    height: 55vh !important;
    width: 100%;
    display: block;
    pointer-events: none;
    background: transparent;
}

/* =========================================================================
   TRACKING PRO ESTILOS (NIVEL UBER EATS / PEDIDOSYA)
   ========================================================================= */

/* ═══════════════════════════════════════════════════════════════
   PANTALLA ÉXITO DE PEDIDO — FULLSCREEN GRIS/BLANCO 3D CHECK
   ═══════════════════════════════════════════════════════════════ */
.order-success-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(165deg, #f0f2f5 0%, #e4e7ec 40%, #d5d9e0 100%);
    z-index: 99998;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.osp-phase {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; max-width: 380px;
    animation: ospFadeIn 0.5s ease;
}
@keyframes ospFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Spinner Ring */
.osp-spinner-ring { position: relative; width: 110px; height: 110px; margin-bottom: 28px; }
.osp-ring-svg { width: 100%; height: 100%; }
.osp-ring-spin { animation: ospRingSpin 1.4s linear infinite; transform-origin: center; }
@keyframes ospRingSpin { to { transform: rotate(360deg); } }
.osp-inner-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #ff6600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.osp-title {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem;
    color: #1e293b; margin: 0 0 8px;
}
.osp-sub { color: #64748b; font-size: 0.88rem; margin: 0; font-weight: 500; }
.osp-dots-loader { display: flex; gap: 6px; margin-top: 24px; }
.osp-dots-loader span {
    width: 10px; height: 10px; background: #94a3b8; border-radius: 50%;
    animation: ospDotPulse 1.4s ease-in-out infinite;
}
.osp-dots-loader span:nth-child(2) { animation-delay: 0.2s; }
.osp-dots-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ospDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── SUCCESS PHASE ── */
.osp-success-phase { animation: ospFadeIn 0.6s ease; }

/* Confetti */
.osp-confetti-wrap {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.osp-confetti-piece {
    position: absolute; top: -20px; width: 10px; height: 10px;
    border-radius: 2px; animation: ospConfettiFall 3s ease-in forwards;
}
@keyframes ospConfettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* 3D Check */
.osp-check-3d { position: relative; margin-bottom: 30px; z-index: 1; }
.osp-check-circle { position: relative; width: 120px; height: 120px; }
.osp-check-svg { width: 100%; height: 100%; }
.osp-check-circle-draw {
    animation: ospCircleDraw 0.8s 0.3s ease forwards;
}
@keyframes ospCircleDraw { to { stroke-dashoffset: 0; } }
.osp-check-icon-inner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: linear-gradient(145deg, #10b981, #059669);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(16, 185, 129, 0.2),
                inset 0 -3px 6px rgba(0,0,0,0.1), inset 0 3px 6px rgba(255,255,255,0.2);
    animation: ospCheckPop 0.5s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes ospCheckPop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
.osp-checkmark-path { width: 32px; height: 32px; }
.osp-check-draw {
    stroke-dasharray: 30; stroke-dashoffset: 30;
    animation: ospCheckDraw 0.4s 1s ease forwards;
}
@keyframes ospCheckDraw { to { stroke-dashoffset: 0; } }
.osp-check-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
    animation: ospGlowPulse 2s ease-in-out infinite;
    z-index: -1;
}
@keyframes ospGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.osp-success-title {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.7rem;
    color: #1e293b; margin: 0 0 8px; letter-spacing: -0.5px;
    animation: ospFadeIn 0.5s 1.1s both;
}
.osp-success-sub {
    color: #64748b; font-size: 0.9rem; margin: 0 0 24px; font-weight: 500; line-height: 1.5;
    animation: ospFadeIn 0.5s 1.3s both;
}
.osp-success-details {
    display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center;
    animation: ospFadeIn 0.5s 1.5s both;
}
.osp-detail-chip {
    display: flex; align-items: center; gap: 8px;
    background: white; border: 1px solid #e2e8f0; border-radius: 30px;
    padding: 10px 18px; font-size: 0.8rem; font-weight: 700; color: #475569;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.osp-detail-chip i { color: #ff6600; font-size: 0.85rem; }

.osp-track-btn {
    width: 100%; max-width: 340px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: none; border-radius: 18px; padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; color: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    animation: ospFadeIn 0.5s 1.7s both;
}
.osp-track-btn:active { transform: scale(0.97); }
.osp-track-btn-content {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════════════════
   TRACKING UBER EATS — PROFESIONAL FULLSCREEN
   ═══════════════════════════════════════════════════════════════ */
.tracking-overlay-uber {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background: #f8fafc; z-index: 99999;
    display: flex; flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s;
}

.uber-map-container {
    flex: 1; width: 100%; min-height: 42vh; position: relative; z-index: 1;
}

/* Top Bar flotante */
.uber-track-top-bar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 50px 16px 12px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(248,250,252,0.95) 0%, transparent 100%);
}
.uber-track-top-bar > * { pointer-events: auto; }

.uber-back-pill {
    width: 42px; height: 42px; background: white; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12); cursor: pointer;
    font-size: 1rem; color: #1e293b; transition: transform 0.15s;
}
.uber-back-pill:active { transform: scale(0.92); }

.uber-eta-pill {
    display: flex; align-items: center; gap: 8px;
    background: white; border-radius: 30px; padding: 8px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.uber-eta-dot {
    width: 8px; height: 8px; background: #ff6600; border-radius: 50%;
    animation: pulseOpacity 1s infinite alternate;
}
.uber-eta-text {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 1rem; color: #1e293b;
}

.uber-live-badge {
    background: #0f172a; color: white; padding: 8px 14px; border-radius: 30px;
    font-weight: 800; font-size: 0.72rem; display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15); letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}
.live-dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; animation: pulseOpacity 1s infinite alternate; }

/* Progress flotante */
.uber-progress-float {
    position: absolute; z-index: 10;
    left: 16px; right: 16px;
    bottom: calc(52% - 6px);
}

/* Bottom Sheet */
.uber-bottom-sheet {
    background: white; border-radius: 24px 24px 0 0;
    padding: 10px 20px 30px; position: relative; z-index: 10;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
    overflow-y: auto; max-height: 55vh;
    margin-top: -20px;
}
.uber-sheet-handle {
    width: 36px; height: 4px; background: #dfe3e8;
    border-radius: 2px; margin: 6px auto 16px;
}

/* Status Hero */
.uber-status-hero {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.uber-status-icon-wrap { position: relative; }
.uber-status-icon {
    width: 48px; height: 48px; background: #fff7ed;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #ff6600;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.12);
}
.uber-status-title {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 1.15rem; color: #0f172a; margin: 0 0 2px; letter-spacing: -0.3px;
}
.uber-status-sub {
    font-size: 0.78rem; color: #64748b; margin: 0; font-weight: 500;
}

/* Rider Card */
.uber-rider-card {
    display: flex; align-items: center; gap: 12px;
    background: #f8fafc; border-radius: 18px; padding: 12px 14px;
    margin-bottom: 14px; border: 1px solid #f1f5f9;
}
.uber-rider-avatar {
    width: 46px; height: 46px; background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}
.uber-rider-info { flex: 1; }
.uber-rider-info h4 {
    margin: 0; font-size: 0.95rem; font-weight: 800; color: #1e293b;
    font-family: 'Montserrat', sans-serif;
}
.uber-rider-info p { margin: 2px 0 0; font-size: 0.72rem; color: #ff6600; font-weight: 700; }
.uber-rider-call {
    width: 40px; height: 40px; background: #10b981; color: white; border: none;
    border-radius: 50%; font-size: 1rem; cursor: pointer; transition: 0.15s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.uber-rider-call:active { transform: scale(0.92); }

/* Horizontal Timeline */
.uber-timeline-h {
    display: flex; align-items: center; margin-bottom: 18px;
    background: #f8fafc; border-radius: 16px; padding: 14px 12px;
    border: 1px solid #f1f5f9;
}
.uber-tl-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex-shrink: 0; opacity: 0.35; transition: all 0.4s ease;
}
.uber-tl-step.active { opacity: 1; }
.uber-tl-dot {
    width: 34px; height: 34px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #cbd5e1; border: 2.5px solid #e2e8f0;
    transition: all 0.4s ease;
}
.uber-tl-step.active .uber-tl-dot {
    border-color: #ff6600; color: #ff6600; background: #fff7ed;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}
.uber-tl-step.pulsing .uber-tl-dot {
    background: #10b981; border-color: #10b981; color: white;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
    animation: pulseWarning 1.5s infinite;
}
.uber-tl-step span {
    font-size: 0.62rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.uber-tl-step.active span { color: #1e293b; }
.uber-tl-line {
    flex: 1; height: 3px; background: #e2e8f0; border-radius: 2px;
    margin: 0 6px; margin-bottom: 18px; position: relative;
    transition: background 0.5s;
}
.uber-tl-line.filled { background: #ff6600; }

/* Tabs */
.uber-tabs-row {
    display: flex; gap: 6px; margin-bottom: 14px;
    background: #f1f5f9; border-radius: 14px; padding: 4px;
}
.uber-tab {
    flex: 1; background: transparent; border: none; border-radius: 11px;
    padding: 10px 10px; font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 0.75rem; color: #64748b;
    cursor: pointer; transition: all 0.2s; display: flex;
    align-items: center; justify-content: center; gap: 6px;
}
.uber-tab.active {
    background: white; color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.uber-tab i { font-size: 0.7rem; }

/* Locations Card (origin → dest) */
.uber-locations-card {
    background: white; border: 1px solid #f1f5f9; border-radius: 16px;
    padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.uber-loc-row { display: flex; align-items: center; gap: 12px; }
.uber-loc-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    border: 3px solid; box-sizing: border-box;
}
.uber-loc-origin { border-color: #ff6600; background: #ff6600; }
.uber-loc-dest { border-color: #10b981; background: #10b981; }
.uber-loc-divider {
    width: 2px; height: 22px; background: #e2e8f0;
    margin-left: 5px; border-radius: 1px;
}
.uber-loc-text { display: flex; flex-direction: column; }
.uber-loc-label { font-size: 0.65rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.uber-loc-val { font-size: 0.85rem; color: #1e293b; font-weight: 700; }

/* Detail Info Cards */
.uber-detail-cards {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
}
.uber-info-card {
    display: flex; align-items: center; gap: 12px;
    background: #f8fafc; border-radius: 14px; padding: 12px 14px;
    border: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.uber-info-card:active { background: #f1f5f9; }
.uber-info-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.uber-info-body { display: flex; flex-direction: column; flex: 1; }
.uber-info-label {
    font-size: 0.65rem; color: #94a3b8; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 1px;
}
.uber-info-val { font-size: 0.88rem; color: #1e293b; font-weight: 700; }

/* Plus Badge */
.uber-plus-badge-row {
    display: flex; align-items: center; gap: 8px;
    background: #fdf4ff; border: 1px solid #f3e8ff;
    border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
    font-size: 0.82rem; font-weight: 800; color: #7c3aed;
}
.uber-plus-badge-row i { color: #9333ea; }

/* Custom map markers */
.uber-marker-local {
    width: 44px; height: 56px; position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.uber-marker-local-inner {
    width: 44px; height: 44px; background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 3px solid white;
}
.uber-marker-local-inner i { color: white; font-size: 1.1rem; }
.uber-marker-pin {
    width: 4px; height: 14px; background: #ff6600;
    border-radius: 0 0 2px 2px; margin: -2px auto 0;
}
.uber-marker-customer {
    width: 20px; height: 20px; background: #10b981;
    border-radius: 50%; border: 3px solid white;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2), 0 2px 8px rgba(0,0,0,0.2);
    animation: pulseOpacity 1.5s infinite alternate;
}

/* Waiting Messages */
.uber-waiting-msg {
    position: absolute; z-index: 10; bottom: calc(55% + 14px); left: 16px; right: 16px;
    background: white; border-radius: 14px; padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); text-align: center;
}
.uber-waiting-msg span { font-size: 0.78rem; font-weight: 600; color: #475569; transition: opacity 0.3s ease; }

/* ═══ HOME ACTIVE ORDER WIDGET ═══ */
.rapi-active-order-widget {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px; padding: 0; margin: 12px 0 0; overflow: hidden; cursor: pointer;
    transition: transform 0.15s; border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(15,23,42,0.3);
}
.rapi-active-order-widget:active { transform: scale(0.98); }
.aow-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; }
.aow-status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulseOpacity 1s infinite alternate; flex-shrink: 0; }
.aow-status-text { flex: 1; font-size: 0.78rem; font-weight: 700; color: white; font-family: 'Montserrat', sans-serif; }
.aow-eta { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 0.82rem; color: #ff6600; background: rgba(255,102,0,0.15); border-radius: 8px; padding: 3px 10px; }
.aow-body { padding: 10px 16px; }
.aow-store-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aow-store-icon { width: 36px; height: 36px; background: rgba(255,102,0,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #ff6600; font-size: 0.9rem; flex-shrink: 0; }
.aow-store-text { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.aow-store-name { font-size: 0.88rem; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aow-store-items { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aow-progress { height: 4px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.aow-prog-fill { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 3px; transition: width 0.8s ease; }
.aow-steps { display: flex; gap: 4px; }
.aow-step { flex: 1; font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 3px; justify-content: center; transition: color 0.3s; }
.aow-step i { font-size: 0.55rem; }
.aow-step.active { color: #10b981; }
.aow-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.4); }
.aow-footer i:first-child { margin-right: 4px; color: #ff6600; }

/* ═══ HOME CART BUTTON ═══ */
.rapi-cart-topbtn {
    position: relative; width: 40px; height: 40px;
    background: rgba(255,255,255,0.12); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem; cursor: pointer; transition: 0.15s;
    border: 1px solid rgba(255,255,255,0.1);
}
.rapi-cart-topbtn:active { transform: scale(0.92); }
.rapi-cart-badge {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; background: #ff6600; border-radius: 50%;
    font-size: 0.6rem; font-weight: 900; color: white;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #0f172a;
}

/* ═══ CART RECOVERY MODAL ═══ */
.cart-recovery-card {
    background: white; border-radius: 24px; padding: 30px 24px;
    width: 100%; max-width: 380px; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cr-icon {
    width: 64px; height: 64px; background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.5rem; color: white;
    box-shadow: 0 8px 20px rgba(255,102,0,0.3);
}
.cr-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem; color: #0f172a; margin: 0 0 8px; }
.cr-sub { font-size: 0.82rem; color: #64748b; line-height: 1.6; margin: 0 0 18px; }
.cr-store-info {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px;
    padding: 10px 16px; margin-bottom: 18px;
    font-size: 0.85rem; font-weight: 700; color: #1e293b;
}
.cr-store-info i { color: #ff6600; }
.cr-items-count { color: #94a3b8; font-weight: 600; font-size: 0.75rem; }
.cr-btn-continue {
    width: 100%; background: linear-gradient(135deg, #ff6600, #ff8c00); border: none;
    border-radius: 16px; padding: 16px; color: white; font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.9rem; cursor: pointer; margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(255,102,0,0.3); transition: transform 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cr-btn-continue:active { transform: scale(0.97); }
.cr-btn-dismiss {
    background: none; border: none; color: #94a3b8; font-size: 0.82rem;
    font-weight: 700; cursor: pointer; padding: 8px;
}

/* ═══ LOCATION ALERT MODAL ═══ */
.loc-alert-card {
    background: white; border-radius: 24px; padding: 30px 24px;
    width: 100%; max-width: 380px; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.la-icon {
    width: 64px; height: 64px; background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.5rem; color: white;
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.la-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem; color: #0f172a; margin: 0 0 8px; }
.la-sub { font-size: 0.82rem; color: #64748b; line-height: 1.6; margin: 0 0 18px; }
.la-btn {
    width: 100%; background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 14px; padding: 14px; color: #1e293b; font-weight: 700;
    font-size: 0.85rem; cursor: pointer; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.15s;
}
.la-btn:active { background: #f1f5f9; }
.la-btn i { color: #ff6600; }
.la-btn-new { background: linear-gradient(135deg, #ff6600, #ff8c00); color: white; border-color: transparent; box-shadow: 0 4px 14px rgba(255,102,0,0.25); }
.la-btn-new i { color: white; }
.la-btn-dismiss { background: none; border: none; color: #94a3b8; font-size: 0.8rem; font-weight: 700; cursor: pointer; padding: 8px; margin-top: 4px; display: block; width: 100%; text-align: center; }

/* ═══ CART VIEW SHEET ═══ */
.cart-view-sheet {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: white; border-radius: 24px 24px 0 0;
    max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
    animation: slideUp 0.35s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cvs-header { padding-top: 10px; }
.cvs-handle { width: 36px; height: 4px; background: #e2e8f0; border-radius: 2px; margin: 0 auto 12px; }
.cvs-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.05rem; color: #0f172a; margin: 0; display: flex; align-items: center; gap: 8px; }
.cvs-title i { color: #ff6600; }
.cvs-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: #64748b; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.cvs-body { flex: 1; overflow-y: auto; padding: 0 20px; max-height: 40vh; }
.cvs-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f8fafc; }
.cvs-item-qty { font-weight: 900; color: #ff6600; font-size: 0.85rem; min-width: 28px; }
.cvs-item-name { flex: 1; font-weight: 600; color: #1e293b; font-size: 0.88rem; }
.cvs-item-price { font-weight: 800; color: #0f172a; font-size: 0.88rem; }
.cvs-footer { padding: 16px 20px 28px; border-top: 1px solid #f1f5f9; }
.cvs-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; color: #0f172a; }
.cvs-checkout-btn {
    width: 100%; background: linear-gradient(135deg, #ff6600, #ff8c00); border: none;
    border-radius: 16px; padding: 16px; color: white; font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,102,0,0.3); transition: transform 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cvs-checkout-btn:active { transform: scale(0.97); }
.cvs-timer { text-align: center; font-size: 0.7rem; color: #94a3b8; font-weight: 600; margin-top: 8px; }

/* Cart Toast */
.rapi-cart-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(30px);
    background: linear-gradient(135deg, #0f172a, #1e293b); color: white; padding: 18px 28px; border-radius: 20px;
    font-size: 1rem; font-weight: 800; z-index: 99990;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,102,0,0.25); opacity: 0;
    transition: opacity 0.35s, transform 0.35s; white-space: nowrap;
    font-family: 'Montserrat', sans-serif; letter-spacing: 0.2px;
    border: 1.5px solid rgba(255,102,0,0.3);
}
.rapi-cart-toast i { color: #ff6600; font-size: 1.25rem; }
.rapi-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ DELIVERED FULLSCREEN ═══ */
.delivered-fullscreen {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}
.dlv-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #ff6600 0%, #ff8c00 30%, #ffad42 60%, #fff0de 100%); z-index: 0;
}
.dlv-circle { position: absolute; border-radius: 50%; opacity: 0.15; background: white; }
.dlv-c1 { width: 300px; height: 300px; top: -80px; right: -60px; animation: dlvFloat 6s ease-in-out infinite; }
.dlv-c2 { width: 200px; height: 200px; bottom: 10%; left: -40px; animation: dlvFloat 8s ease-in-out infinite 1s; }
.dlv-c3 { width: 150px; height: 150px; top: 40%; right: -30px; animation: dlvFloat 7s ease-in-out infinite 2s; }
@keyframes dlvFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.05); } }
.dlv-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; width: 100%; max-width: 400px; }
.dlv-bag-wrap { position: relative; margin-bottom: 24px; }
.dlv-bag { animation: dlvBagBounce 0.8s cubic-bezier(0.175,0.885,0.32,1.275) both; }
@keyframes dlvBagBounce { 0% { transform: scale(0) rotate(-10deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.dlv-bag-body { width: 100px; height: 90px; background: linear-gradient(145deg, #fff, #f8fafc); border-radius: 4px 4px 16px 16px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 2px 0 rgba(255,255,255,0.8); }
.dlv-bag-handle-l, .dlv-bag-handle-r { position: absolute; top: -14px; width: 18px; height: 14px; border: 3px solid #cbd5e1; border-bottom: none; border-radius: 10px 10px 0 0; }
.dlv-bag-handle-l { left: 22px; } .dlv-bag-handle-r { right: 22px; }
.dlv-bag-front { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.dlv-bag-logo { width: 40px; height: 40px; background: linear-gradient(135deg, #ff6600, #ff8c00); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(255,102,0,0.3); }
.dlv-bag-shadow { width: 70px; height: 8px; background: rgba(0,0,0,0.1); border-radius: 50%; margin: 6px auto 0; animation: dlvShadow 2s ease-in-out infinite; }
@keyframes dlvShadow { 0%,100% { transform: scaleX(1); opacity:0.3; } 50% { transform: scaleX(0.8); opacity:0.15; } }
.dlv-check-badge { position: absolute; bottom: 4px; right: -8px; width: 32px; height: 32px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; border: 3px solid white; box-shadow: 0 4px 12px rgba(16,185,129,0.4); animation: ospCheckPop 0.4s 0.6s cubic-bezier(0.175,0.885,0.32,1.275) both; }
.dlv-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.8rem; color: white; margin: 0 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); animation: ospFadeIn 0.5s 0.4s both; }
.dlv-sub { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0 0 28px; font-weight: 500; line-height: 1.6; animation: ospFadeIn 0.5s 0.6s both; }
.dlv-rate-section { margin-bottom: 28px; animation: ospFadeIn 0.5s 0.8s both; }
.dlv-rate-label { display: block; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.dlv-stars { display: flex; justify-content: center; gap: 14px; }
.dlv-stars .rating-star { font-size: 2.4rem; color: rgba(255,255,255,0.35); cursor: pointer; transition: color 0.2s, transform 0.2s; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.dlv-stars .rating-star:hover { color: white; transform: scale(1.15); }
.dlv-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; animation: ospFadeIn 0.5s 1s both; }
.dlv-btn { width: 100%; border: none; border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.88rem; cursor: pointer; transition: transform 0.15s; text-decoration: none; }
.dlv-btn:active { transform: scale(0.97); }
.dlv-btn-help { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); }
.dlv-btn-accept { background: white; color: #ff6600; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Upselling */
.upsell-track-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.upsell-track-scroll::-webkit-scrollbar { display: none; }

@keyframes pulseOpacity { 0% { opacity: 0.4; } 100% { opacity: 1; } }

/* =========================================================================
   TARJETAS DE SUGERENCIAS PRO (UPSELLING)
   ========================================================================= */
.upsell-track-scroll { 
    display: flex; gap: 15px; overflow-x: auto; padding: 5px 5px 20px 5px; 
    scrollbar-width: none; scroll-snap-type: x mandatory; 
}
.upsell-track-scroll::-webkit-scrollbar { display: none; }

.upsell-card-pro {
    min-width: 140px; width: 140px; background: white; border-radius: 18px;
    overflow: hidden; box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9; flex-shrink: 0; display: flex;
    flex-direction: column; position: relative; scroll-snap-align: start;
}

.upsell-img-pro {
    width: 100%; height: 95px; object-fit: cover;
    border-bottom: 1px solid #f8fafc;
}

.upsell-info-pro { padding: 12px; display: flex; flex-direction: column; gap: 4px; }

.upsell-title-pro {
    font-size: 0.85rem; font-weight: 800; color: #1e293b; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.upsell-price-pro { font-size: 0.85rem; font-weight: 700; color: var(--rapi-orange, #f97316); margin: 0; }

.upsell-add-btn {
    position: absolute; bottom: 10px; right: 10px;
    background: #f1f5f9; color: #0f172a; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer; transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.upsell-add-btn:active { transform: scale(0.9); background: var(--rapi-orange, #f97316); color: white; }

/* ================= TARJETAS DE PAGO PREMIUM ================= */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-card-pro {
    position: relative;
    border-radius: 20px;
    height: 110px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
}

.payment-card-pro.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    transform: translateY(-4px);
}

.payment-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: grayscale(100%); transition: all 0.3s;
}

.payment-card-pro.active .payment-bg { filter: grayscale(0%); }

.payment-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    transition: all 0.3s;
}

.payment-card-pro.active .payment-overlay {
    background: linear-gradient(135deg, rgba(249,115,22,0.95) 0%, rgba(234,88,12,0.85) 100%);
}

.payment-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-dark); transition: all 0.3s;
}

.payment-card-pro.active .payment-content { color: white; }
.payment-content i { font-size: 2.2rem; margin-bottom: 8px; }
.payment-content span { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.5px; }

/* La tarjeta de crédito ocupa toda la fila de abajo */
.payment-card-pro.full-width { grid-column: span 2; height: 80px; }
.payment-card-pro.full-width .payment-content { flex-direction: row; gap: 15px; }
.payment-card-pro.full-width .payment-content i { margin-bottom: 0; }

/* ================= BOTÓN PREMIUM DE CALIFICACIÓN ================= */
.btn-rating-pro {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 18px; /* Borde bien redondeado estilo nativo */
    padding: 18px; /* Más alto para que sea fácil de tocar */
    font-size: 1.05rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); /* Sombra elegante que lo hace flotar */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-rating-pro:active {
    transform: scale(0.96); /* Efecto de hundirse al tocarlo */
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* --- ESTILOS PARA LA NUEVA VISTA DE BANCOS Y MODAL --- */

/* Tarjeta de Banco en la cuadrícula */
.bank-card-pro {
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.1);
    border: 2px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.bank-card-pro:hover {
    border-color: var(--rapi-orange);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(255, 102, 0, 0.3);
}

.bank-card-pro:active {
    transform: scale(0.98);
}

.bank-icon-pro {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.bank-name-pro {
    font-weight: 800;
    color: #334155;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Botón de validar Token */
.btn-validate-token {
    transition: all 0.2s ease;
}
.btn-validate-token:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* Botón de copiar en el modal */
.btn-copy-account {
    transition: all 0.2s ease;
}
.btn-copy-account:active {
    transform: scale(0.95);
}
.btn-copy-account.copied {
    background: #10b981 !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3) !important;
}

/* Animación para el mensaje de éxito del token */
@keyframes tokenSuccessPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.token-success-message {
    color: #10b981 !important;
    font-weight: 700;
    animation: tokenSuccessPop 0.3s ease-out;
}

/* =================================================== */
/* RADAR PROFESIONAL PARA VOUCHER                       */
/* =================================================== */
.radar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: radarFadeIn 0.3s ease;
}

@keyframes radarFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.radar-card {
    background: white;
    border-radius: 30px;
    padding: 30px 25px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: radarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes radarPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.radar-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.radar-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--rapi-orange);
    border-right-color: #25D366;
    border-radius: 50%;
    animation: radarSpin 1.5s linear infinite;
}

.radar-circle.delay-1 {
    animation: radarSpin 1.5s linear infinite 0.3s;
    border-top-color: #25D366;
    border-right-color: var(--rapi-orange);
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.radar-circle.delay-2 {
    animation: radarSpin 1.5s linear infinite 0.6s;
    border-top-color: #fbbf24;
    border-right-color: #10b981;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes radarSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radar-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #25D366;
    z-index: 2;
    animation: radarPulse 1.5s ease-in-out infinite;
}

@keyframes radarPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.radar-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.radar-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
}

.radar-steps {
    text-align: left;
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.radar-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.radar-step:last-child {
    margin-bottom: 0;
}

.radar-step .step-icon {
    color: #10b981;
    font-size: 1.1rem;
}

.radar-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.radar-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rapi-orange), #25D366);
    border-radius: 10px;
    animation: radarProgress 1.5s ease-out forwards;
}

@keyframes radarProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.radar-cancel-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.radar-cancel-btn:active {
    transform: scale(0.95);
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

/* =====================================================
   HISTORIAL PROFESIONAL ESTILO PEDIDOSYA (ACTUALIZADO)
   ===================================================== */

/* Contenedor General del Historial */
.history-list-pro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

/* Tarjeta de Pedido - Estilo Premium */
.history-card-pro-v2 {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.history-card-pro-v2:active {
    transform: scale(0.98);
    background: #fafafa;
}

/* Encabezado de la Tarjeta (Logo, Nombre, Estado) */
.history-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.history-store-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.history-store-info {
    flex: 1;
}

.history-store-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-date-badge {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-date-badge i {
    font-size: 0.6rem;
    color: #94a3b8;
}

/* Estado del Pedido - COMPLETADO (siempre verde) */
.history-status {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

/* Cuerpo de la Tarjeta (Resumen de productos) */
.history-summary {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--rapi-orange);
}

.history-summary-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detalles del Pedido (Dirección, Total) */
.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 4px;
}

.history-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.history-location i {
    color: #ef4444;
    font-size: 0.7rem;
}

.history-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rapi-orange);
}

/* Pie de la Tarjeta (Botones de Acción) */
.history-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.history-btn {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-btn i {
    font-size: 0.9rem;
}

.history-btn.repeat {
    background: #fff7ed;
    border-color: #fed7aa;
    color: var(--rapi-orange);
}

.history-btn.repeat:active {
    background: var(--rapi-orange);
    color: white;
    border-color: var(--rapi-orange);
}

.history-btn.help:active {
    background: #f1f5f9;
}

/* =====================================================
   SISTEMA DE RECOMPENSAS MEJORADO (CON PROGRESO REAL)
   ===================================================== */

.rewards-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.rewards-card::before {
    content: '\f091';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
}

.rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rewards-title {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rewards-title i {
    color: #fbbf24;
}

.rewards-status-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Barra de Progreso Mejorada */
.rewards-progress-container {
    margin-bottom: 15px;
}

.rewards-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    z-index: 2;
}

.rewards-step {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rewards-step.completed {
    background: #fbbf24;
    color: #0f172a;
    border-color: #f59e0b;
    box-shadow: 0 0 15px #fbbf24;
}

.rewards-step.gift-step {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.rewards-step.gift-step i {
    font-size: 0.8rem;
}

.rewards-progress-bar-bg {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    z-index: 1;
}

.rewards-progress-bar-fill {
    position: absolute;
    top: 16px;
    left: 20px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    z-index: 1;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #fbbf24;
}

.rewards-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(5px);
}

.rewards-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rewards-current {
    font-size: 2rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.rewards-total {
    font-size: 1rem;
    color: #94a3b8;
}

.rewards-message {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    text-align: right;
}

.rewards-message i {
    color: #fbbf24;
    margin-left: 4px;
}

/* Mensaje especial cuando se alcanza el premio */
.rewards-celebration-message {
    background: #10b981;
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===================================================
   RAPI REWARDS - TARJETA MODERNA (SIN RAYAS FEO)
   =================================================== */

/* Contenedor principal - Diseño limpio y profesional */
.rewards-modern-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Elemento decorativo de fondo (sutil) */
.rewards-modern-card::after {
    content: '✨';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    color: white;
}

/* Encabezado de la tarjeta */
.rewards-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.rewards-modern-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}

.rewards-modern-title i {
    color: #fbbf24;
    font-size: 1rem;
}

.rewards-modern-level {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Barra de progreso - SIN RAYAS, SOLO LÍNEA LIMPIA */
.rewards-progress-modern {
    margin-bottom: 15px;
}

.progress-steps-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

/* Línea de fondo (sutil) */
.progress-line-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

/* Línea de progreso (naranja) */
.progress-line-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #f97316;
}

/* Círculos de progreso */
.progress-dot {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: #f97316;
    border-color: #fbbf24;
    color: white;
    box-shadow: 0 0 15px #f97316;
}

.progress-dot.gift-dot {
    background: #10b981;
    border-color: #34d399;
    color: white;
}

.progress-dot.gift-dot i {
    font-size: 0.7rem;
}

/* Info de progreso */
.rewards-info-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 12px 15px;
    backdrop-filter: blur(5px);
}

.rewards-count-modern {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rewards-current-modern {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.rewards-total-modern {
    font-size: 0.9rem;
    color: #94a3b8;
}

.rewards-message-modern {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.rewards-message-modern i {
    color: #fbbf24;
    margin-left: 5px;
}

/* Mensaje de celebración (cuando llega a 10) */
.rewards-celebration-modern {
    margin-top: 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    animation: pulse-green-modern 2s infinite;
}

@keyframes pulse-green-modern {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===================================================
   TARJETAS DE HISTORIAL - ESTILO PREMIUM
   =================================================== */

.history-card-modern {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.history-card-modern:active {
    transform: scale(0.98);
    background: #fafafa;
}

.history-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.history-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.history-card-info {
    flex: 1;
}

.history-card-name {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-card-status {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bbf7d0;
}

.history-card-date {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-card-summary {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--rapi-orange);
}

.history-card-summary p {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
}

.history-card-location i {
    color: #ef4444;
    font-size: 0.65rem;
}

.history-card-total {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--rapi-orange);
}

.history-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.history-action-btn {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-action-btn i {
    font-size: 0.8rem;
}

.history-action-btn.repeat {
    background: #fff7ed;
    border-color: #fed7aa;
    color: var(--rapi-orange);
}

.history-action-btn.repeat:active {
    background: var(--rapi-orange);
    color: white;
    border-color: var(--rapi-orange);
}

.history-action-btn.help:active {
    background: #f1f5f9;
}

/* ===================================================
   RAPI REWARDS - SISTEMA DE RECOMPENSAS PREMIUM
   =================================================== */

.rewards-premium-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.rewards-premium-card:active {
    transform: scale(0.98);
}

.rewards-premium-card::after {
    content: '🎁';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.03;
    transform: rotate(-10deg);
    color: white;
}

.rewards-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rewards-premium-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.rewards-premium-title i {
    color: #fbbf24;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

.rewards-premium-badge {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* Barra de progreso */
.rewards-premium-progress {
    margin-bottom: 15px;
}

.progress-track-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.progress-line-bg-premium {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-line-fill-premium {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #f97316;
}

.progress-step-premium {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.progress-step-premium.completed {
    background: #f97316;
    border-color: #fbbf24;
    color: white;
    box-shadow: 0 0 15px #f97316;
}

.progress-step-premium.gift-step {
    background: #10b981;
    border-color: #34d399;
    color: white;
}

.progress-step-premium.gift-step i {
    font-size: 0.8rem;
}

/* Info de progreso */
.rewards-premium-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 12px 15px;
    backdrop-filter: blur(5px);
}

.rewards-premium-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rewards-premium-current {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.rewards-premium-total {
    font-size: 0.9rem;
    color: #94a3b8;
}

.rewards-premium-message {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.rewards-premium-message i {
    color: #fbbf24;
    margin-left: 5px;
    animation: bounceArrow 1s infinite alternate;
}

@keyframes bounceArrow {
    from { transform: translateX(0); }
    to { transform: translateX(5px); }
}

/* ===================================================
   MODAL DE RECOMPENSAS (CUANDO TOCA LA TARJETA)
   =================================================== */

.rewards-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rewards-modal-card {
    background: white;
    border-radius: 30px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.rewards-modal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.rewards-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 10px 0 5px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rewards-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rewards-modal-close:active {
    background: #ef4444;
    transform: scale(0.9);
}

.rewards-modal-progress {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.rewards-modal-progress h3 {
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 5px;
}

.rewards-modal-progress p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.rewards-modal-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0 10px;
}

.rewards-modal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.rewards-modal-stats {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Grid de recompensas */
.rewards-grid {
    padding: 20px;
}

.rewards-grid-title {
    color: #1e293b;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rewards-grid-title i {
    color: #fbbf24;
}

.rewards-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.reward-item {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.reward-item.available {
    border-color: #fbbf24;
    background: #fffbeb;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.15);
}

.reward-item.claimed {
    opacity: 0.6;
    filter: grayscale(0.5);
    position: relative;
}

.reward-item.claimed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.reward-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f97316;
    margin-bottom: 5px;
}

.reward-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-level {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 5px;
    font-weight: 600;
}

/* Botón de canjear */
.rewards-claim-btn {
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-weight: 800;
    font-size: 1rem;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rewards-claim-btn:active {
    transform: scale(0.95);
}

.rewards-claim-btn:disabled {
    opacity: 0.5;
    filter: grayscale(0.5);
    box-shadow: none;
    pointer-events: none;
}

/* Mensaje de celebración */
.rewards-celebration-banner {
    background: #10b981;
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin: 0 20px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse-green-premium 2s infinite;
}

@keyframes pulse-green-premium {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- ESTILO PARA LA FILA DE CUPÓN --- */
.invoice-row#row-coupon {
    background: #f0fdf4;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 3px solid #10b981;
    animation: slideIn 0.3s ease;
}

.invoice-row#row-coupon i {
    color: #10b981;
    margin-right: 5px;
}

.invoice-row#row-free-ship {
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 3px solid #fbbf24;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   OPTIMIZACIONES DE RENDIMIENTO
   =================================================== */

/* Evitar repintados innecesarios */
.search-merchant-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimizar animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Usar hardware acceleration para scroll */
.search-results-grid {
    -webkit-overflow-scrolling: touch;
}

/* Reducir complejidad de sombras en móvil */
@media (max-width: 480px) {
    .search-merchant-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
}

/* ==================================================
   REDISEÑO DE MENÚ ESTILO PEDIDOS YA (VERTICAL Y HORIZONTAL)
   ================================================== */

.menu-category-title-pro {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 25px 0 15px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-category-title-pro::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--rapi-orange);
    border-radius: 4px;
}
.menu-category-title-pro:first-child { 
    margin-top: 5px; 
}

/* SCROLL HORIZONTAL */
.horizontal-menu-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    margin: 0 -20px; /* Sangría negativa para que el scroll empiece desde el borde de la pantalla */
    padding-left: 20px;
    padding-right: 20px;
}
.horizontal-menu-scroll::-webkit-scrollbar { display: none; }

/* TARJETA HORIZONTAL (Sopas, Extras, etc) */
.menu-card-horizontal {
    min-width: 140px;
    max-width: 140px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-img-wrapper {
    width: 100%;
    height: 100px;
    position: relative;
    background: #f8fafc;
}
.card-img-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content-horizontal {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title-horizontal {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TARJETA VERTICAL (Principal) */
.menu-card-vertical {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    gap: 15px;
}
.menu-card-vertical:last-child {
    border-bottom: none;
}
.card-info-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-title-vertical {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.prod-desc-pro {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-bottom-vertical {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}
.card-img-vertical-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #f8fafc;
}
.card-img-vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PRECIOS Y BADGES */
.price-container-pro {
    display: flex;
    flex-direction: column;
}
.price-normal-pro {
    font-weight: 800;
    color: #1f2937;
    font-size: 0.95rem;
}
.price-old-pro {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.price-new-pro {
    font-weight: 800;
    color: #2563eb;
    font-size: 0.95rem;
}
.badge-offer-pro, .badge-top-pro {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}
.badge-top-pro {
    background: #f59e0b;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}
.badge-offer-small {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.badge-top-small {
    color: #f59e0b;
    font-size: 0.85rem;
}

/* BADGE CERRADO PERFECTAMENTE CENTRADO */
.badge-closed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.badge-closed-pro {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%; /* Evita desbordamiento */
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

/* CONTROLES DE CANTIDAD MODERNOS */
.qty-control-pro {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    height: 34px;
    padding: 0 4px;
    box-sizing: border-box;
}
.qty-btn-pro {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    transition: 0.2s;
}
.qty-btn-pro.add {
    background: var(--rapi-orange);
    color: white;
    box-shadow: 0 2px 5px rgba(255,102,0,0.3);
}
.qty-btn-pro.add:active { transform: scale(0.9); }
.qty-btn-pro.sub {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.qty-btn-pro.sub:active { transform: scale(0.9); }
.qty-val-pro {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e293b;
    margin: 0 5px;
}
.vertical-controls-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ==================================================
   VISTA DETALLADA DEL PRODUCTO (MODAL BOTTOM SHEET)
   ================================================== */
.pm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}
.pm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pm-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 9999;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
}
.pm-container.active {
    bottom: 0;
}

.pm-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e293b;
    z-index: 99999;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pm-header-img {
    width: 100%;
    height: 220px;
    background: #f8fafc;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}
.pm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-content {
    padding: 20px 20px 100px 20px; /* Padding bottom para que no lo tape el footer */
    overflow-y: auto;
    flex: 1;
}

.pm-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px 0;
    line-height: 1.2;
}
.pm-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}
.pm-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rapi-orange);
}

.pm-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.pm-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pm-section-title i { color: var(--rapi-orange); }
.pm-section-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.pm-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 80px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: 0.2s;
}
.pm-textarea:focus { border-color: var(--rapi-orange); }

/* RECOMENDACIONES HORIZONTALES */
.pm-recom-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.pm-recom-scroll::-webkit-scrollbar { display: none; }

.pm-recom-card {
    min-width: 130px;
    max-width: 130px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
}
.pm-recom-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.pm-recom-info {
    padding: 8px;
}
.pm-recom-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.pm-recom-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.pm-recom-add {
    background: #f1f5f9;
    color: var(--rapi-orange);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
}

/* FOOTER FIJO PARA AGREGAR */
.pm-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}
.pm-qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    height: 42px;
    padding: 0 5px;
}
.pm-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pm-qty-btn.sub { background: white; color: #1e293b; }
.pm-qty-btn.add { background: var(--rapi-orange); color: white; }
.pm-qty-val {
    min-width: 30px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.pm-add-button {
    flex: 1;
    background: var(--rapi-orange);
    color: white;
    border: none;
    height: 42px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

/* EFECTO VISUAL CUANDO SELECCIONAN UN EXTRA EN EL MODAL */
.pm-recom-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.pm-recom-card.addon-selected {
    border-color: var(--rapi-orange);
    background-color: #fffaf7; /* Fondo sutil naranja */
}
.pm-recom-card.addon-selected .pm-recom-add {
    background-color: var(--rapi-orange);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 102, 0, 0.3);
}

/* ==================================================
   TARJETA INTELIGENTE "PÍDELO DE NUEVO" (SMART REPURCHASE)
   ================================================== */
.repurchase-pro-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}
.repurchase-pro-card:active { transform: scale(0.97); }
.repur-header {
    font-size: 0.75rem;
    color: var(--rapi-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.repur-body {
    display: flex;
    align-items: center;
    gap: 12px;
}
.repur-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.repur-info { flex: 1; }
.repur-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 2px;
}
.repur-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repur-btn {
    width: 35px;
    height: 35px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

/* ==================================================
   BUSCADOR INTELIGENTE (FAVORITOS Y RECOMENDADOS)
   ================================================== */

#search-default-suggestions {
    animation: fadeIn 0.4s ease-out;
}

.search-category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 10px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-category-title i {
    color: var(--rapi-orange);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px; /* Separación entre Favoritos y Recomendados */
}

.search-merchant-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.search-merchant-card:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Para la imagen de la tarjeta del buscador */
.search-merchant-card > div:first-child {
    height: 100px !important;
    background: #f8fafc;
}

.search-merchant-card img {
    border-bottom: 1px solid #f1f5f9;
}

/* Información de la tarjeta */
.search-merchant-card > div:last-child {
    padding: 12px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Efecto de candado cuando el restaurante está cerrado */
.badge-closed-search {
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: rgba(220, 38, 38, 0.95); 
    color: white; 
    font-size: 0.65rem; 
    font-weight: 800; 
    padding: 3px 8px; 
    border-radius: 6px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* ============================================================
   CHECKOUT REDISEÑADO - PRO
   ============================================================ */

.checkout-appbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
    background: white;
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid #f1f5f9;
}
.checkout-appbar-title {
    font-size: 1.1rem; font-weight: 900; color: #0f172a; margin: 0;
}
.checkout-back-btn {
    width: 40px; height: 40px; background: #f1f5f9; border: none;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #374151; font-size: 1rem; cursor: pointer; transition: 0.2s;
}
.checkout-back-btn:active { transform: scale(0.88); background: #e2e8f0; }

.checkout-section-card {
    background: white; border-radius: 20px; padding: 18px;
    margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9; margin-top: 12px;
}
.checkout-section-header {
    display: flex; align-items: center; gap: 12px;
}
.checkout-section-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.checkout-section-title {
    font-weight: 800; color: #1e293b; font-size: 0.92rem;
}
.checkout-section-sub {
    font-size: 0.78rem; color: #64748b; margin-top: 2px;
}
.checkout-change-btn {
    background: #fff7ed; color: var(--rapi-orange); border: none;
    padding: 6px 14px; border-radius: 20px; font-weight: 800;
    font-size: 0.78rem; cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.checkout-change-btn:active { transform: scale(0.92); }

.checkout-input {
    width: 100%; padding: 13px 15px; border-radius: 14px;
    border: 1.5px solid #e2e8f0; font-size: 0.92rem; outline: none;
    background: #f8fafc; transition: 0.3s; font-family: inherit;
}
.checkout-input:focus { border-color: var(--rapi-orange); background: white; box-shadow: 0 0 0 3px rgba(255,102,0,0.1); }

.checkout-gps-btn {
    width: 100%; padding: 12px; background: #eff6ff; color: #2563eb;
    border: 1.5px dashed #bfdbfe; border-radius: 14px; font-weight: 700;
    font-size: 0.88rem; display: flex; justify-content: center; align-items: center;
    gap: 8px; cursor: pointer; margin-top: 10px; transition: 0.3s;
}
.checkout-gps-btn:active { transform: scale(0.97); background: #dbeafe; }

.checkout-priority-box {
    margin: 12px 0 0 0 !important;
}

/* FILAS DE RESUMEN */
.co-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 0.9rem; color: #4b5563;
    border-bottom: 1px solid #f8fafc;
}
.co-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0 4px; border-top: 2px dashed #e2e8f0; margin-top: 8px;
    font-weight: 800; color: #0f172a; font-size: 1rem;
}
.co-total-amount {
    font-size: 1.9rem; color: var(--rapi-orange); font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}
.co-change-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: #64748b; font-weight: 600;
    margin-top: 8px; padding: 10px 12px; background: #f0fdf4;
    border-radius: 12px; border: 1px solid #bbf7d0;
}

/* OPCIONES DE PAGO NUEVA UI */
.payment-options-list { display: flex; flex-direction: column; gap: 10px; }
.pay-option {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: 16px; border: 2px solid #f1f5f9;
    background: #fafafa; cursor: pointer; transition: all 0.2s ease;
}
.pay-option.active {
    border-color: var(--rapi-orange); background: #fff7ed;
}
.pay-option:active { transform: scale(0.97); }
.pay-option-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.pay-option-info { flex: 1; }
.pay-option-title { font-weight: 800; color: #1e293b; font-size: 0.88rem; }
.pay-option-sub { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.pay-option-check { color: var(--rapi-orange); font-size: 1.3rem; transition: 0.2s; }

.transfer-confirmed-box {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe; border-radius: 16px; padding: 16px;
    cursor: pointer;
}

/* BOTÓN CONFIRMAR ORDEN FIJO */
.btn-confirm-order {
    width: 100%; background: linear-gradient(135deg, #25D366, #128C7E);
    color: white; padding: 18px 22px; border-radius: 20px; border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(37,211,102,0.35);
    margin-top: 16px; transition: 0.25s;
    position: relative; overflow: hidden;
}
.btn-confirm-order::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shine 3s infinite;
}
.btn-confirm-order:active { transform: scale(0.97); }

/* ============================================================
   SELECTOR DE COLONIAS - PSICOLOGÍA DEL PRECIO
   ============================================================ */
.colony-selector-btn {
    width: 100%; padding: 14px 16px; border-radius: 14px;
    border: 1.5px solid #e2e8f0; background: #f8fafc;
    display: flex; align-items: center; cursor: pointer;
    font-size: 0.92rem; transition: 0.25s;
}
.colony-selector-btn:active, .colony-selector-btn.open {
    border-color: var(--rapi-orange); background: white;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}
.colony-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    background: white; border-radius: 16px; margin-top: 6px;
    border: 1.5px solid #e2e8f0; max-height: 280px; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.colony-option {
    padding: 14px 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: space-between;
    border-bottom: 1px solid #f8fafc; font-size: 0.9rem;
    font-weight: 600; color: #374151; transition: 0.15s;
}
.colony-option:last-child { border-bottom: none; }
.colony-option:active, .colony-option:hover { background: #fff7ed; color: var(--rapi-orange); }
.colony-option .zone-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ============================================================
   VISTA MÉTODOS DE PAGO - NAV TAB
   ============================================================ */
.pm-card {
    background: white; border-radius: 18px; padding: 16px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px; border: 1.5px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: 0.2s;
}
.pm-card:active { transform: scale(0.97); }
.pm-card-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
}
.pm-card-info { flex: 1; }
.pm-card-title { font-weight: 800; color: #1e293b; font-size: 0.9rem; }
.pm-card-sub { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.pm-card-badge {
    font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
    border-radius: 20px; white-space: nowrap;
}

.pm-bank-item {
    background: white; border-radius: 16px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 8px; border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); cursor: pointer; transition: 0.2s;
}
.pm-bank-item:active { transform: scale(0.97); background: #f8fafc; }
.pm-bank-icon {
    width: 42px; height: 42px; border-radius: 12px; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.pm-bank-info { flex: 1; }
.pm-bank-name { font-weight: 800; color: #1e293b; font-size: 0.88rem; }
.pm-bank-number { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; font-family: monospace; letter-spacing: 1px; }

/* ============================================================
   CHECKOUT — TARJETA DE DIRECCIÓN LIMPIA
   ============================================================ */
.checkout-addr-card {
    background: white; border-radius: 18px; padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between;
    border: 2px solid #e2e8f0; margin: 12px 0 0;
    cursor: pointer; transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.checkout-addr-card:active { transform: scale(0.97); }
.checkout-addr-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.checkout-addr-icon {
    width: 42px; height: 42px; background: #fff0e6; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rapi-orange); font-size: 1.1rem; flex-shrink: 0;
}
.checkout-addr-label { font-size: 0.72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.checkout-addr-main { font-weight: 800; color: #1e293b; font-size: 0.88rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.checkout-addr-sub { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.checkout-addr-arrow { color: #cbd5e1; font-size: 0.9rem; flex-shrink: 0; margin-left: 8px; }

/* ============================================================
   MÉTODOS DE PAGO — TARJETAS SCROLLABLES
   ============================================================ */
.pay-cards-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
}
.pay-cards-scroll::-webkit-scrollbar { display: none; }

.pay-card {
    min-width: 100px; flex-shrink: 0;
    background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 18px; padding: 14px 10px 10px;
    cursor: pointer; transition: all 0.22s ease;
    position: relative; display: flex; flex-direction: column;
    align-items: center;
}
.pay-card.active {
    background: #fff7ed; border-color: var(--rapi-orange);
    box-shadow: 0 4px 14px rgba(255,102,0,0.18);
}
.pay-card:active { transform: scale(0.93); }

.pay-card-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-card-icon-wrap {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.pay-card-title { font-weight: 800; color: #1e293b; font-size: 0.82rem; text-align: center; }
.pay-card-sub { font-size: 0.68rem; color: #94a3b8; text-align: center; margin-top: -4px; }
.pay-card-check {
    position: absolute; top: 8px; right: 8px;
    color: var(--rapi-orange); font-size: 0.9rem;
    transition: opacity 0.2s;
}

/* ============================================================
   RIDER SVG ANIMADO
   ============================================================ */
.rider-tip-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.rider-svg-wrapper {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(255,102,0,0.2));
    transition: transform 0.3s;
}

@keyframes riderBounce {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-10px) scale(1.08); }
    60%  { transform: translateY(-4px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}
@keyframes starFloat {
    0%   { transform: translateY(0) rotate(-10deg); opacity: 1; }
    100% { transform: translateY(-8px) rotate(10deg); opacity: 0.7; }
}

/* ============================================================
   BOTÓN CONFIRMAR ORDEN — NARANJA SIN WA
   ============================================================ */
.btn-confirm-order {
    width: 100%;
    background: linear-gradient(135deg, #ff6600, #ff8800);
    color: white; padding: 18px 22px; border-radius: 20px; border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(255,102,0,0.38);
    margin-top: 16px; transition: 0.25s;
    position: relative; overflow: hidden;
}
.btn-confirm-order::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: shine 3s infinite;
}
.btn-confirm-order:active { transform: scale(0.97); box-shadow: 0 6px 16px rgba(255,102,0,0.3); }
.btn-confirm-icon {
    width: 44px; height: 44px; background: rgba(255,255,255,0.2);
    border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem;
}
/* ============================================================
   SECCIÓN DE PROMOS - PAGOS TAB
   ============================================================ */

/* Header de la sección promos */
.promos-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1.5px solid #fed7aa;
    border-radius: 18px;
    padding: 14px 16px;
}

.promos-fire-badge {
    background: linear-gradient(135deg, #ff6600, #ff4400);
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 100, 0, 0.3);
    animation: pulseOrange 2s ease-in-out infinite;
}

@keyframes pulseOrange {
    0%, 100% { box-shadow: 0 4px 10px rgba(255,100,0,0.3); }
    50% { box-shadow: 0 4px 18px rgba(255,100,0,0.55); }
}

.promos-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.2;
}

.promos-section-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 500;
}

.promos-refresh-btn {
    margin-left: auto;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.promos-refresh-btn:active { transform: rotate(180deg); }

/* Deal Hero Card */
.promo-deal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 24px;
    padding: 22px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-deal-hero:active {
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.promo-deal-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 80px;
    width: 100px;
    height: 100px;
    background: rgba(255, 102, 0, 0.12);
    border-radius: 50%;
}
.promo-deal-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: rgba(255, 102, 0, 0.07);
    border-radius: 50%;
}

.promo-deal-left {
    flex: 1;
    position: relative;
    z-index: 2;
}

.promo-deal-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,102,0,0.2);
    border: 1px solid rgba(255,102,0,0.4);
    color: #ff8533;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.promo-deal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.45rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 6px;
}

.promo-deal-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
}

.promo-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rapi-orange);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255,102,0,0.4);
    letter-spacing: 0.3px;
}

.promo-deal-img-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.promo-deal-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.promo-deal-blob {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(255,102,0,0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Grid label */
.promos-grid-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Grid de 4 promos */
.promos-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.promo-mini-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.promo-mini-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.promo-mini-img-wrap {
    position: relative;
    width: 100%;
    height: 95px;
}

.promo-mini-img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.promo-mini-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6600, #ff4500);
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(255,100,0,0.4);
    font-family: 'Montserrat', sans-serif;
}

.promo-mini-info {
    padding: 10px 10px 12px;
}

.promo-mini-name {
    font-weight: 700;
    font-size: 0.83rem;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.promo-mini-store {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Banner de ahorro Rapi Plus */
.promos-save-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(15,23,42,0.2);
}

.promos-save-left {
    flex: 1;
}

.promos-save-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 4px;
}

.promos-save-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

.promos-save-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    border: none;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 900;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(251,191,36,0.4);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    transition: transform 0.2s;
}
.promos-save-btn:active { transform: scale(0.95); }

/* ============================================================
   TOAST PREMIUM (Reemplaza pro-error-modal)
   ============================================================ */

.pro-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    /* display controlado por JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: toastFadeIn 0.2s ease;
}

@keyframes toastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pro-toast-card {
    background: white;
    border-radius: 24px;
    padding: 22px 20px;
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.18),
        0 0 0 1px rgba(0,0,0,0.04);
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pro-toast-icon-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-toast-icon-ring.ring-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}
.pro-toast-icon-ring.ring-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
    box-shadow: 0 4px 12px rgba(22,163,74,0.2);
}
.pro-toast-icon-ring.ring-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217,119,6,0.2);
}
.pro-toast-icon-ring.ring-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}
/* Default sin clase */
.pro-toast-icon-ring:not([class*="ring-"]) {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: var(--rapi-orange);
    box-shadow: 0 4px 12px rgba(255,102,0,0.2);
}

.pro-toast-body {
    flex: 1;
    min-width: 0;
}

.pro-toast-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 5px;
    line-height: 1.2;
}

.pro-toast-msg {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    word-break: break-word;
}

.pro-toast-close-btn {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.pro-toast-close-btn:hover { background: #e2e8f0; }

.pro-toast-action-btn {
    width: 100%;
    max-width: 380px;
    padding: 15px;
    background: var(--rapi-orange);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(255,102,0,0.35);
    transition: transform 0.15s ease;
}
.pro-toast-action-btn:active { transform: scale(0.97); }

/* ============================================================
   MODAL PRINCIPAL PREMIUM (#modal)
   ============================================================ */

.modal-overlay-premium {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card-premium {
    position: relative;
    border-radius: 28px !important;
    padding: 36px 28px 28px !important;
    max-width: 360px;
    width: calc(100% - 40px);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.2),
        0 0 0 1px rgba(0,0,0,0.04) !important;
    text-align: center;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-premium-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
}

.modal-premium-icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--rapi-orange);
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(255,102,0,0.2);
}

.modal-premium-title {
    font-size: 1.4rem !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

.modal-premium-msg {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-premium-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--rapi-orange), #ff4500);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 20px rgba(255,102,0,0.35);
    letter-spacing: 0.3px;
    transition: transform 0.15s;
}
.modal-premium-btn:active { transform: scale(0.97); }
/* ============================================================
   HISTORIAL PRO - TARJETAS COMPACTAS
   ============================================================ */
.history-card-pro {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: fadeInUp 0.35s ease forwards;
    opacity: 0;
}
.history-card-pro:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(0,0,0,0.06); }

.hcp-left { flex-shrink: 0; }
.hcp-logo-wrap { position: relative; width: 52px; height: 52px; }
.hcp-logo {
    width: 52px; height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
}
.hcp-status-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 12px; height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

.hcp-body { flex: 1; min-width: 0; }
.hcp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.hcp-store {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}
.hcp-total {
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--rapi-orange);
    white-space: nowrap;
    flex-shrink: 0;
}
.hcp-items {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hcp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #94a3b8;
}
.hcp-order-num {
    font-weight: 700;
    color: #cbd5e1;
    font-size: 0.68rem;
    letter-spacing: 0.3px;
}
.hcp-arrow { color: #cbd5e1; font-size: 0.8rem; flex-shrink: 0; }

.btn-show-more-orders {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 18px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: border-color 0.2s, color 0.2s;
}
.btn-show-more-orders:hover { border-color: var(--rapi-orange); color: var(--rapi-orange); }

/* ============================================================
   MODAL DETALLE DE ORDEN
   ============================================================ */
.order-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 6000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.order-detail-sheet {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 28px 28px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1);
    scrollbar-width: none;
}
.order-detail-sheet::-webkit-scrollbar { display: none; }
.order-detail-sheet.open { transform: translateY(0); }

.ods-handle {
    width: 42px; height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 14px auto 0;
}

.ods-header {
    padding: 16px 22px 0;
}
.ods-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ods-title { font-size: 1.3rem; color: #0f172a; margin: 0; }
.ods-close-btn {
    width: 34px; height: 34px;
    background: #f1f5f9;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.8rem; cursor: pointer;
}
.ods-order-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ods-body { padding: 0 22px 20px; }

.ods-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f8fafc;
}
.ods-section:last-child { border-bottom: none; }
.ods-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ods-value-big {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0f172a;
}
.ods-value { font-size: 0.9rem; color: #334155; font-weight: 600; }
.ods-items-text { font-size: 0.85rem; color: #475569; line-height: 1.6; }

.ods-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.ods-mini-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ods-mini-card i { font-size: 1.1rem; margin-bottom: 2px; }
.ods-mini-label { font-size: 0.68rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.ods-mini-val { font-size: 0.85rem; font-weight: 800; color: #1e293b; }

.ods-cost-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px 18px;
    margin-top: 4px;
}
.ods-cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ods-cost-row:last-child { border-bottom: none; }
.ods-pay-badge {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 8px;
}
.ods-cost-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #0f172a;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid #e2e8f0;
}
.ods-cost-total span:last-child { color: var(--rapi-orange); }

.ods-footer {
    padding: 16px 22px 30px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    position: sticky;
    bottom: 0;
    background: white;
}
.ods-btn-repeat {
    flex: 2;
    padding: 14px;
    background: var(--rapi-orange);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(255,102,0,0.3);
    font-family: 'Montserrat', sans-serif;
}
.ods-btn-help {
    flex: 1;
    padding: 14px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   MODAL ANIMADO "REPETIR PEDIDO"
   ============================================================ */
.repeat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 7000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.repeat-modal-card {
    background: white;
    border-radius: 28px;
    padding: 36px 28px 28px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.88) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}
.repeat-modal-card.open {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Emojis flotantes */
.repeat-food-floats {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 60px;
    pointer-events: none;
}
.food-float-item {
    position: absolute;
    font-size: 1.5rem;
    top: 0;
    left: calc(50% + var(--x));
    animation: floatFood 2.2s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.9;
}
@keyframes floatFood {
    0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.9; }
    50% { transform: translateY(-10px) rotate(8deg); opacity: 1; }
}

.repeat-modal-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--rapi-orange);
    margin: 30px auto 16px;
    box-shadow: 0 8px 20px rgba(255,102,0,0.2);
}
.repeat-modal-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 6px;
}
.repeat-modal-store {
    font-size: 0.85rem;
    color: var(--rapi-orange);
    font-weight: 700;
    margin-bottom: 12px;
    background: #fff7ed;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
}
.repeat-modal-msg {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 22px;
}
.repeat-added-badge {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.repeat-modal-btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--rapi-orange), #ff4500);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 20px rgba(255,102,0,0.35);
    transition: transform 0.15s;
}
.repeat-modal-btn-primary:active { transform: scale(0.97); }

.repeat-modal-btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
/* ═══════════════════════════════════════════════════════════════
   LOGIN & REGISTRO — ESTILOS PRO NATIVOS
   ═══════════════════════════════════════════════════════════════ */

/* View login con scroll */
#view-login {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
}
#view-register {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
}

/* Botón principal naranja */
.rapi-btn-main {
    width: 100%;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    border: none;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.38);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.rapi-btn-main:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.28);
}

/* Botones sociales redondos */
.rapi-social-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.15s, box-shadow 0.15s;
}
.rapi-social-btn:active {
    transform: scale(0.93);
}
.rapi-social-fb {
    border-color: #c7d7fe;
    background: #eff4ff;
}

/* Categoría chips login */
.rapi-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 12px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rapi-cat-chip span {
    font-size: 0.62rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

/* Feature rows sección informativa */
.rapi-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.rapi-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.rapi-feature-text { flex: 1; }
.rapi-feature-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 3px;
    font-family: 'Montserrat', sans-serif;
}
.rapi-feature-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* ── FORMULARIO DE REGISTRO ── */
.reg-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.reg-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #374151;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
}
.reg-input {
    width: 100%;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    font-family: 'Inter', sans-serif;
}
.reg-input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    background: white;
}
.reg-input::placeholder { color: #cbd5e1; }
.reg-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Reglas de contraseña */
.pass-rule {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.pass-rule.ok {
    color: #16a34a;
}
.pass-rule.ok i { color: #16a34a; }

/* Terms check */
#reg-terms-check.checked {
    background: #ff6600;
    border-color: #ff6600;
}
#reg-terms-check.checked::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
}
/* ═══════════════════════════════════════════════════════════════
   NUEVO HOME RAPI DELIVERY — ESTILO PEDIDOSYA PRO
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO HEADER NARANJA ─────────────────────────────────────── */
.home-hero-header {
    position: relative;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 60%, #ffaa00 100%);
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 32px rgba(255,102,0,0.35);
    margin-bottom: 0;
    z-index: 2;
}
.home-hero-bg { position:absolute; inset:0; pointer-events:none; }
.home-hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.home-hero-bubble.b1 { width:180px; height:180px; top:-60px; right:-40px; }
.home-hero-bubble.b2 { width:100px; height:100px; bottom:-30px; left:20px; }
.home-hero-bubble.b3 { width:60px; height:60px; top:30px; left:50%; }

.home-hero-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 52px 18px 8px;
    position: relative;
    z-index: 2;
}
.home-hero-logo {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    backdrop-filter: blur(8px);
}
.home-hero-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 0.95rem;
    color: white; letter-spacing: 0.5px;
}
.home-hero-greeting {
    font-size: 0.75rem; color: rgba(255,255,255,0.75);
    font-weight: 600; margin-top: 1px;
}
.home-hero-loc {
    background: rgba(255,255,255,0.18);
    border-radius: 20px; padding: 5px 12px;
    font-size: 0.72rem; color: white; font-weight: 700;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(8px);
}

/* Promo row con imagen PNG */
.home-hero-promo-row {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 10px 20px;
    position: relative; z-index: 2;
    min-height: 160px; 
}
.home-hero-promo-text {
    flex: 1;
    max-width: 55%; /* FUNDAMENTAL: Obliga al texto a no pasarse de la mitad izquierda */
    z-index: 10;
    position: relative;
}
.home-hero-promo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.45rem;
    color: white; margin: 0 0 4px; line-height: 1.15;
}
.home-hero-promo-title span { color: #fff3cd; font-size: 1.7rem; }
.home-hero-promo-sub {
    font-size: 0.75rem; color: rgba(255,255,255,0.75);
    font-weight: 600; margin: 0;
}

/* 🚀 Contenedor de la imagen (Ajustado para móvil) */
.home-hero-promo-img-wrap {
    position: absolute;
    right: -10px; 
    bottom: -5px; 
    width: 185px; /* Tamaño perfecto para no tapar letras en cel */
    height: 185px;
    z-index: 1;
    pointer-events: none; 
}

/* 🚀 Imágenes del Slideshow (Transiciones más suaves y pro) */
.home-hero-food-img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4)); 
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    transition: opacity 1.5s ease-in-out, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-hero-food-img.active-slide {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: floatFoodHero 4s ease-in-out infinite alternate;
}

@keyframes floatFoodHero {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-8px) scale(1.02); }
}

/* 🚀 Estado activo con animación flotante */
.home-hero-food-img.active-slide {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: floatFoodHero 3.5s ease-in-out infinite alternate;
}

@keyframes floatFoodHero {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-12px) scale(1.03); }
}

/* Buscador en el header */
.home-hero-search {
    margin: 10px 16px 18px;
    background: white;
    border-radius: 16px;
    padding: 13px 16px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    position: relative; z-index: 2;
}
.home-hero-search-icon { color: #9ca3af; font-size: 1rem; flex-shrink: 0; }
.home-hero-search-input {
    flex: 1; border: none; outline: none;
    font-size: 0.9rem; color: #9ca3af; font-weight: 600;
    background: transparent;
    pointer-events: none;
}
.home-hero-search-btn {
    width: 32px; height: 32px;
    background: linear-gradient(135deg,#ff6600,#ff8c00);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.8rem; flex-shrink: 0;
}

/* ── SCROLL BODY DEL HOME ───────────────────────────────────────── */
.home-body-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

/* ── CATEGORÍAS RÁPIDAS ───────────────────────────────────────── */
.home-cats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 18px 15px 10px;
}
.home-cat-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    cursor: pointer;
    transition: transform 0.15s;
}
.home-cat-item:active { transform: scale(0.93); }
.home-cat-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.home-cat-item span {
    font-size: 0.68rem; font-weight: 700;
    color: #374151; text-align: center;
}

/* ── TARJETA GRANDE DE COMERCIO ───────────────────────────────── */
.big-store-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.big-store-card:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.big-store-cover {
    width: 100%; height: 170px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}
.big-store-body { padding: 14px 16px; }
.big-store-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.big-store-logo {
    width: 52px; height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
    background: #f8fafc;
}
.big-store-info { flex: 1; }
.big-store-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1rem;
    color: #1f2937; margin: 0 0 4px;
}
.big-store-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-store-meta span { font-size: 0.72rem; color: #6b7280; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.big-store-status-open {
    background: #dcfce7; color: #16a34a;
    font-size: 0.65rem; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: 0.3px;
}
.big-store-status-closed {
    background: #fef2f2; color: #ef4444;
    font-size: 0.65rem; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
}
/* Platos estrella mini */
.big-store-dishes { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.big-store-dishes::-webkit-scrollbar { display: none; }
.mini-dish-card {
    flex-shrink: 0;
    width: 90px;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.mini-dish-img { width: 90px; height: 60px; object-fit: cover; display: block; }
.mini-dish-info { padding: 5px 7px; }
.mini-dish-name { font-size: 0.62rem; font-weight: 700; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-dish-price { font-size: 0.68rem; font-weight: 800; color: #ff6600; margin-top: 1px; }
.big-store-ver-mas {
    width: 100%;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white; border: none;
    border-radius: 12px; padding: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.85rem;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(255,102,0,0.28);
    transition: transform 0.12s;
}
.big-store-ver-mas:active { transform: scale(0.97); }

/* ── PUNTO PULSANTE "ABIERTO" ─────────────────────────────────── */
.open-dot-pulse {
    display: inline-block;
    width: 9px; height: 9px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── MENSAJE CERRADO ──────────────────────────────────────────── */
.all-closed-msg {
    background: linear-gradient(135deg,#1e293b,#0f172a);
    border-radius: 22px;
    padding: 30px 24px;
    text-align: center;
    margin-bottom: 20px;
}
.all-closed-icon {
    font-size: 2.8rem; margin-bottom: 14px;
}
.all-closed-title {
    font-family: 'Montserrat',sans-serif;
    font-weight: 900; font-size: 1.1rem;
    color: white; margin-bottom: 8px;
}
.all-closed-sub { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* ── RAPI PLUS DISHES ─────────────────────────────────────────── */
.rapi-plus-dishes-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.plus-star-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg,#fbbf24,#f59e0b);
    color: #0f172a; font-size: 0.65rem; font-weight: 900;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: 0.5px;
}
.plus-ver-btn {
    background: linear-gradient(135deg,#fbbf24,#f59e0b);
    color: #0f172a; border: none; border-radius: 10px;
    padding: 7px 14px; font-size: 0.75rem; font-weight: 800;
    font-family: 'Montserrat',sans-serif; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
}
.plus-dishes-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: 4px;
}
.plus-dishes-scroll::-webkit-scrollbar { display: none; }
.plus-dish-card {
    flex-shrink: 0; width: 160px;
    background: linear-gradient(135deg,#1e293b,#0f172a);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
}
.plus-dish-card:active { transform: scale(0.96); }
.plus-dish-img { width: 160px; height: 105px; object-fit: cover; display: block; }
.plus-dish-body { padding: 10px 12px 12px; }
.plus-dish-badge {
    background: linear-gradient(135deg,#fbbf24,#f59e0b);
    color: #0f172a; font-size: 0.58rem; font-weight: 900;
    padding: 2px 8px; border-radius: 20px;
    display: inline-block; margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.plus-dish-name { font-size: 0.8rem; font-weight: 800; color: white; margin-bottom: 3px; line-height: 1.2; }
.plus-dish-store { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 6px; }
.plus-dish-price {
    font-family: 'Montserrat',sans-serif;
    font-weight: 900; font-size: 1.05rem; color: #fbbf24;
}
.plus-dish-price span { font-size: 0.65rem; color: rgba(255,255,255,0.35); text-decoration: line-through; margin-left: 4px; font-weight: 600; }

/* ── SERVICIOS NUEVOS ─────────────────────────────────────────── */
.services-grid-new { display: flex; flex-direction: column; gap: 10px; }
.service-card-new {
    background: white;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.12s;
}
.service-card-new:active { transform: scale(0.98); }
.svc-icon-box {
    width: 46px; height: 46px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; flex-shrink: 0;
}
.svc-info { flex: 1; }
.svc-title { font-family: 'Montserrat',sans-serif; font-weight: 900; font-size: 0.88rem; color: #1f2937; }
.svc-sub { font-size: 0.72rem; color: #9ca3af; font-weight: 600; margin-top: 2px; }
.svc-arrow { color: #d1d5db; font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════════
   VISTAS DE CATEGORÍA (food / health / market / mandados)
   ═══════════════════════════════════════════════════════════════ */

/* ── HEADER DE VISTA ─────────────────────────────────────────── */
.cat-view-header {
    padding: 50px 18px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.cat-back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px; height: 40px;
    border-radius: 13px;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    margin-bottom: 14px;
}
.cat-view-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.cat-view-hero-img {
    width: 72px; height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
    flex-shrink: 0;
}
.cat-view-health-img-wrap {
    width: 72px; height: 72px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.cat-view-badge {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 5px;
}
.cat-view-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    margin: 0 0 3px;
    line-height: 1.1;
}
.cat-view-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin: 0;
}

/* ── BUSCADOR DE CATEGORÍA ───────────────────────────────────── */
.cat-view-search-wrap {
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cat-search-icon { color: #9ca3af; font-size: 1rem; flex-shrink: 0; }
.cat-search-input {
    flex: 1; border: none; outline: none;
    font-size: 0.9rem; color: #374151; font-weight: 600;
    background: transparent;
}
.cat-search-input::placeholder { color: #9ca3af; font-weight: 500; }

/* ── CUERPO DE LA VISTA ──────────────────────────────────────── */
.cat-view-body {
    padding: 18px 15px 110px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── RESULTADOS DE BÚSQUEDA DE PLATOS ───────────────────────── */
.cat-dish-result-item {
    background: white;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.12s;
}
.cat-dish-result-item:active { transform: scale(0.98); }
.cat-dish-img {
    width: 56px; height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}
.cat-dish-info { flex: 1; min-width: 0; }
.cat-dish-name { font-weight: 800; color: #1e293b; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-dish-store { font-size: 0.7rem; color: #9ca3af; font-weight: 600; margin-top: 2px; }
.cat-dish-price { font-family: 'Montserrat',sans-serif; font-weight: 900; color: #ff6600; font-size: 0.9rem; flex-shrink: 0; }

/* Etiqueta "en tu búsqueda" */
.cat-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 16px 0 10px;
}

/* ── CATEGORÍAS — IMAGEN 3D PILL ─────────────────────────────── */
.home-cat-img-wrap {
    width: 62px; height: 62px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.15s;
}
.home-cat-item:active .home-cat-img-wrap { transform: scale(0.90); }
.home-cat-3d-img {
    width: 58px; height: 58px;
    object-fit: contain;
}

/* ── MANDADOS VISTA ──────────────────────────────────────────── */
.mandado-service-card {
    background: white;
    border-radius: 22px;
    padding: 18px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.14s;
}
.mandado-service-card:active { transform: scale(0.98); }
.mandado-svc-icon {
    width: 52px; height: 52px;
    border-radius: 17px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    flex-shrink: 0;
}
.mandado-svc-info { flex: 1; }
.mandado-svc-title { font-family:'Montserrat',sans-serif; font-weight:900; font-size:0.95rem; color:#1e293b; margin-bottom:5px; }
.mandado-svc-desc { font-size:0.78rem; color:#64748b; line-height:1.5; margin-bottom:8px; }
.mandado-svc-tags { display:flex; flex-wrap:wrap; gap:5px; }
.mandado-svc-tags span { background:#f8fafc; border:1px solid #e2e8f0; border-radius:20px; padding:3px 9px; font-size:0.65rem; font-weight:700; color:#475569; }
.mandado-arrow { color:#d1d5db; font-size:0.85rem; margin-top:18px; flex-shrink:0; }
.mandado-info-box { background:#f8fafc; border-radius:18px; padding:16px; display:flex; align-items:flex-start; gap:12px; border:1px solid #e2e8f0; }
.mandado-step { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f1f5f9; }
.mandado-step-num { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#9333ea,#7c3aed); color:white; font-family:'Montserrat',sans-serif; font-weight:900; font-size:0.8rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mandado-step-txt { font-size:0.8rem; color:#475569; font-weight:600; line-height:1.4; }
/* ══════════════════════════════════════════════════════
   CATEGORÍAS 3D — ÍCONOS CON IMAGEN REAL
   ══════════════════════════════════════════════════════ */
.cat-3d-img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.home-cat-item:active .cat-3d-img {
    transform: scale(1.15) rotate(-4deg);
}
.home-cat-icon-wrap.cat-3d-rest {
    background: linear-gradient(145deg, #fff3e0, #ffe0b2);
    box-shadow: 0 6px 20px rgba(255,102,0,0.22), 0 2px 6px rgba(0,0,0,0.08);
}
.home-cat-icon-wrap.cat-3d-salud {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    box-shadow: 0 6px 20px rgba(16,185,129,0.22), 0 2px 6px rgba(0,0,0,0.08);
}
.home-cat-icon-wrap.cat-3d-super {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    box-shadow: 0 6px 20px rgba(37,99,235,0.22), 0 2px 6px rgba(0,0,0,0.08);
}
.home-cat-icon-wrap.cat-3d-mand {
    background: linear-gradient(145deg, #f3e5f5, #e1bee7);
    box-shadow: 0 6px 20px rgba(147,51,234,0.22), 0 2px 6px rgba(0,0,0,0.08);
}
/* Hacer el icono wrap más grande para las imágenes 3D */
.home-cat-icon-wrap {
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
}
/* ══════════════════════════════════════════════════════
   TRACKING VIEW — REDISEÑO PEDIDOSYA PRO
   ══════════════════════════════════════════════════════ */

/* Barra de progreso de etapas */
.track-progress-bar-wrap {
    display: flex;
    gap: 4px;
    width: 100%;
}
.track-prog-segment {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    transition: background 0.5s ease;
}

/* Legacy selectors kept for JS compat */
.track-tab { display: none; }
.track-tab.active { display: none; }
#track-eta-time { font-family: 'Montserrat', sans-serif; font-weight: 900; }
.track-detail-rows, .track-detail-row, .track-detail-icon, .track-detail-body,
.track-detail-label, .track-detail-val { display: none; }
/* ══════════════════════════════════════════════════════
   MÉTODO DE PAGO — NUEVO DISEÑO TARJETAS GRANDES PRO
   ══════════════════════════════════════════════════════ */

.pago-section-card {
    background: white;
    border-radius: 22px;
    padding: 18px 16px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}
.pago-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* RAIL HORIZONTAL DE TARJETAS */
.pago-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 14px;
}
.pago-rail::-webkit-scrollbar { display: none; }

/* TARJETA INDIVIDUAL */
.pago-card {
    flex: 0 0 96px;
    min-height: 110px;
    border-radius: 18px;
    border: 2.5px solid #e5e7eb;
    background: white;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 10px;
    gap: 6px;
    transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pago-card:active { transform: scale(0.95); }
.pago-card-active, .pago-card.active {
    border-color: #ff6600;
    box-shadow: 0 6px 20px rgba(255,102,0,0.2);
    transform: translateY(-3px);
}

/* Fondo decorativo de cada tarjeta */
.pago-card-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}
.pago-card-active .pago-card-bg,
.pago-card.active .pago-card-bg { opacity: 1; }
.pago-bg-cash    { background: linear-gradient(135deg,rgba(220,252,231,0.6),rgba(187,247,208,0.4)); }
.pago-bg-transfer{ background: linear-gradient(135deg,rgba(219,234,254,0.6),rgba(191,219,254,0.4)); }
.pago-bg-card    { background: linear-gradient(135deg,rgba(252,231,243,0.6),rgba(251,207,232,0.4)); }
.pago-bg-kash    { background: linear-gradient(135deg,rgba(254,249,195,0.6),rgba(253,224,71,0.2)); }
.pago-bg-binance { background: linear-gradient(135deg,rgba(254,243,199,0.6),rgba(245,158,11,0.15)); }
.pago-bg-pana    { background: linear-gradient(135deg,rgba(237,233,254,0.6),rgba(196,181,253,0.3)); }

.pago-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.pago-icon-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.pago-ic-cash     { background: #dcfce7; color: #16a34a; }
.pago-ic-transfer { background: #dbeafe; color: #2563eb; }
.pago-ic-card     { background: #fce7f3; color: #db2777; }

.pago-logo-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.pago-card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    color: #1f2937;
    text-align: center;
    line-height: 1.2;
}
.pago-card.active .pago-card-name { color: #ff6600; }
.pago-card-desc {
    font-size: 0.58rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}
.pago-card-check {
    position: absolute;
    top: 7px; right: 7px;
    width: 18px; height: 18px;
    background: #ff6600;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.55rem;
    z-index: 2;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.pago-card.active .pago-card-check,
.pago-card-active .pago-card-check {
    opacity: 1;
    transform: scale(1);
}

/* PANELES */
.pago-panel { padding-top: 4px; animation: fadeIn 0.25s; }

/* ── PANEL EFECTIVO — Android nativo ── */
.pago-panel-cash {}
.cash-totals-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.cash-total-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 14px 12px;
    text-align: center;
}
.cash-change-card {
    background: linear-gradient(135deg,#f0fdf4,#dcfce7);
    border-color: #bbf7d0;
}
.cash-total-label {
    font-size: 0.67rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.cash-total-val {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #1f2937;
    line-height: 1;
}
.cash-change-card .cash-total-val { color: #16a34a; }
.cash-input-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
.cash-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.cash-input-wrap:focus-within {
    border-color: #ff6600;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}
.cash-currency {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #ff6600;
    margin-right: 8px;
}
.cash-native-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1f2937;
    padding: 14px 0;
    -webkit-appearance: none;
}
.cash-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.cash-quick-btn {
    padding: 9px 4px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    color: #92400e;
    cursor: pointer;
    transition: all 0.15s;
}
.cash-quick-btn:active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: scale(0.96);
}
.cash-tip-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    background: #eff6ff;
    border-radius: 10px;
    padding: 8px 12px;
}

/* ── PANEL CTA TRANSFERENCIA ── */
.pago-panel-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.pago-panel-cta:active { background: #eff6ff; border-color: #93c5fd; }
.pago-panel-cta-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pago-panel-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
}
.pago-panel-cta-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}

/* ── PANELES PAGO DIGITAL (Kash, Binance, Pana) ── */
.digital-pay-panel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}
.digital-pay-dark {
    background: #0f172a;
    border-color: #1e293b;
}
.digital-pay-pana {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: #c4b5fd;
}
.digital-pay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.digital-pay-dark .digital-pay-header { border-color: rgba(255,255,255,0.08); }
.digital-pay-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    flex-shrink: 0;
}
.digital-pay-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.92rem;
    color: #1f2937;
    line-height: 1.2;
}
.digital-pay-dark .digital-pay-title { color: white; }
.digital-pay-pana .digital-pay-title { color: #5b21b6; }
.digital-pay-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}
.digital-qr-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 16px;
}
.digital-qr-img {
    width: 160px; height: 160px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.digital-qr-amount-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6600;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255,102,0,0.4);
}
.digital-qr-badge-gold { background: #f0b90b; color: #0f172a; box-shadow: 0 4px 12px rgba(240,185,11,0.4); }
.digital-qr-badge-pana { background: #7c3aed; box-shadow: 0 4px 12px rgba(124,58,237,0.4); }

.digital-pay-instructions {
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dpi-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}
.digital-pay-dark .dpi-step { color: rgba(255,255,255,0.7); }
.digital-pay-pana .dpi-step { color: #4c1d95; }
.dpi-num {
    width: 22px; height: 22px;
    background: #ff6600;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.68rem;
    flex-shrink: 0;
}
.dpi-gold { background: #f0b90b; color: #0f172a; }
.dpi-pana { background: #7c3aed; }

.pana-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 16px 16px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

/* ── BANCO CARDS CON LOGOS ── */
.bank-card-logo {
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.bank-card-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.bank-card-logo:active { transform: scale(0.97); }
.bank-logo-wrap {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.bank-logo-img {
    max-width: 90%;
    max-height: 48px;
    object-fit: contain;
}
.bank-logo-wide { height: 52px; }
.bank-logo-wide-img { max-height: 44px; max-width: 80%; }
.bank-tap-hint {
    font-size: 0.58rem;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
}

/* ── MODAL BANCO PRO ── */
.bank-modal-pro {
    max-width: 360px;
    padding: 22px 20px;
}
.bank-modal-logo-wrap {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.bank-modal-logo {
    max-width: 85%;
    max-height: 58px;
    object-fit: contain;
}
.bank-modal-info-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.bank-modal-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bank-modal-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}
.bank-modal-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.bank-modal-val {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}
.bank-modal-number {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 1.25rem;
    color: #ff6600;
    letter-spacing: 2px;
    word-break: break-all;
}

/* ══════════════════════════════════════════════════════
   BANCOS — MARCOS DE COLOR POR INSTITUCIÓN
   ══════════════════════════════════════════════════════ */

.bank-card-banpais  { border: 2.5px solid #f59e0b !important; background: linear-gradient(135deg,#fffbeb,#fef3c7) !important; }
.bank-card-promerica{ border: 2.5px solid #16a34a !important; background: linear-gradient(135deg,#f0fdf4,#dcfce7) !important; }
.bank-card-occidente{ border: 2.5px solid #ff6600 !important; background: linear-gradient(135deg,#fff7ed,#ffedd5) !important; }
.bank-card-ficohsa  { border: 2.5px solid #2563eb !important; background: linear-gradient(135deg,#eff6ff,#dbeafe) !important; }
.bank-card-bac      { border: 2.5px solid #dc2626 !important; background: linear-gradient(135deg,#fff5f5,#fee2e2) !important; }

.bank-name-banpais  { color: #92400e !important; }
.bank-name-promerica{ color: #15803d !important; }
.bank-name-occidente{ color: #9a3412 !important; }
.bank-name-ficohsa  { color: #1e40af !important; }
.bank-name-bac      { color: #991b1b !important; }

/* Logo wrap sin fondo blanco para que se vea sobre el gradiente */
.bank-card-banpais   .bank-logo-wrap,
.bank-card-promerica .bank-logo-wrap,
.bank-card-occidente .bank-logo-wrap,
.bank-card-ficohsa   .bank-logo-wrap,
.bank-card-bac       .bank-logo-wrap {
    background: rgba(255,255,255,0.75);
    border: none;
}

/* ══════════════════════════════════════════════════════
   PROPINA — REDISEÑO MODERNO DELIVERY
   ══════════════════════════════════════════════════════ */

/* Ícono moto SVG en header */
.tip-header-moto-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.3);
}

/* Badge 100% moderno */
.tip-header-pct-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    padding: 6px 12px;
    flex-shrink: 0;
}
.tip-pct-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    line-height: 1;
}
.tip-pct-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Track de delivery (separador gráfico) */
.tip-track-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
    background: #fff7ed;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
}
.tip-track-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ff6600;
    flex-shrink: 0;
}
.tip-track-dot-home {
    width: 18px; height: 18px;
    background: #fff7ed;
    border: 2px solid #ff6600;
    display: flex; align-items: center; justify-content: center;
}
.tip-track-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #ff6600 0px, #ff6600 6px,
        transparent 6px, transparent 12px
    );
}
.tip-track-moto {
    width: 32px; height: 32px;
    background: #ff6600;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255,102,0,0.35);
}

/* Chips de beneficio modernos */
.tip-chip-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ff6600;
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
}
.tip-chip-outlined {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #92400e;
    border: 1.5px solid #fed7aa;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Eliminar clases antiguas que ya no se usan */
.tip-emoji-strip { display: none !important; }
.tip-emoji-strip-bottom { display: none !important; }
.tip-pill-orange { display: none; }
.tip-pill-gray   { display: none; }
.tip-bolsillo-tag { display: none; }
.tip-header-icon  { display: none; }

/* ═══════════════════════════════════════════════════════
   FLOATING NAV BAR — EXTRA SPACING FOR CONTENT
   ═══════════════════════════════════════════════════════ */
.home-body-scroll { padding-bottom: 100px !important; }
#view-history, #view-profile, #view-payment-methods { padding-bottom: 100px !important; }

/* ═══════════════════════════════════════════════════════
   TRANSFER PAID BANNER — ANIMATED PRO
   ═══════════════════════════════════════════════════════ */
.osp-transfer-paid-banner {
    width: 100%;
    max-width: 340px;
    margin: 20px auto 0;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.osp-transfer-paid-banner.osp-tpb-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.osp-tpb-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: osp-tpb-pulse 3s ease-in-out infinite;
}
@keyframes osp-tpb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.osp-tpb-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.osp-tpb-icon-circle {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(16,185,129,0.35);
    animation: osp-tpb-iconBounce 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
@keyframes osp-tpb-iconBounce {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.osp-tpb-icon-check {
    position: absolute;
    bottom: -2px; right: -4px;
    width: 22px; height: 22px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.6rem;
    border: 2.5px solid #ecfdf5;
    box-shadow: 0 2px 8px rgba(251,191,36,0.4);
    animation: osp-tpb-checkPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.6s both;
}
@keyframes osp-tpb-checkPop {
    0% { transform: scale(0) rotate(-45deg); }
    100% { transform: scale(1) rotate(0); }
}

.osp-tpb-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #065f46;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.osp-tpb-desc {
    font-size: 0.82rem;
    color: #047857;
    line-height: 1.5;
    margin-bottom: 16px;
}
.osp-tpb-desc strong {
    color: #065f46;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #6ee7b7;
    text-underline-offset: 2px;
}

.osp-tpb-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.osp-tpb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    animation: osp-tpb-chipSlide 0.5s ease both;
}
.osp-tpb-chip:nth-child(1) { animation-delay: 0.5s; }
.osp-tpb-chip:nth-child(2) { animation-delay: 0.7s; }
.osp-tpb-chip:nth-child(3) { animation-delay: 0.9s; }
@keyframes osp-tpb-chipSlide {
    0% { opacity: 0; transform: translateX(-15px); }
    100% { opacity: 1; transform: translateX(0); }
}
.osp-tpb-chip i {
    font-size: 0.7rem;
    color: #10b981;
}
/* ═══════════════════════════════════════════════════════════════════
   MIS FAVORITOS — SISTEMA DE ESTILOS PROFESIONAL
   Temática: profundidad, micro-animaciones, paleta premium
   ═══════════════════════════════════════════════════════════════════ */

/* ── ROOT DEL VIEW ── */
.fav-view-root {
    padding: 0;
    background: #f0f2f7;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── APP BAR ── */
.fav-appbar {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    padding: 52px 20px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 24px rgba(255, 102, 0, 0.25);
}
.fav-appbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.fav-appbar-heart {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    animation: fav-heartbeat 2.2s 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); }
}
.fav-appbar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.1;
}
.fav-appbar-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    margin-top: 2px;
}

/* ── SCROLL BODY ── */
.fav-scroll-body {
    padding: 20px 16px 0;
}

/* ── ETIQUETA DE SECCIÓN ── */
.fav-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}
.fav-section-label-icon { font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════
   PROMO CARD — TRANSFERENCIA BANPAÍS LUNES
   ══════════════════════════════════════════════════════ */
.fav-promo-card {
    background: linear-gradient(145deg, #1a2744 0%, #0f172a 60%, #1e1040 100%);
    border-radius: 24px;
    padding: 22px 20px 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255,255,255,0.04) inset;
}
.fav-promo-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.fav-promo-orb1 {
    width: 180px; height: 180px;
    top: -60px; right: -60px;
    background: radial-gradient(circle, rgba(255,102,0,0.18) 0%, transparent 70%);
}
.fav-promo-orb2 {
    width: 120px; height: 120px;
    bottom: -40px; left: -20px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
}

/* Encabezado promo */
.fav-promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fav-promo-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fav-promo-bank-logo {
    width: 44px; height: 44px;
    background: rgba(255,102,0,0.18);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,102,0,0.3);
}
.fav-promo-bank-logo i {
    color: #ff6600;
    font-size: 1.15rem;
}
.fav-promo-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fav-promo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: white;
}
.fav-promo-badge-pct {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    line-height: 1;
    color: #ff6600;
    background: rgba(255,102,0,0.12);
    border: 1.5px solid rgba(255,102,0,0.3);
    padding: 6px 14px;
    border-radius: 14px;
    letter-spacing: -1px;
}

/* Descripción */
.fav-promo-desc {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin-bottom: 16px;
}
.fav-promo-desc strong { color: white; }
.fav-highlight { color: #ff6600 !important; }

/* Chips */
.fav-promo-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.fav-chip {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.fav-chip i { font-size: 0.6rem; color: rgba(255,255,255,0.45); }

/* Barra de estado live */
.fav-promo-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 13px 16px;
    gap: 10px;
}
.fav-promo-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.fav-status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.4s;
}
.fav-dot-active {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
    animation: fav-pulse-green 2s infinite;
}
.fav-dot-inactive { background: #64748b; }
@keyframes fav-pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}
.fav-status-main {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-status-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-promo-cta {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255,102,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.fav-promo-cta:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(255,102,0,0.2);
}

/* ══════════════════════════════════════════════════════
   RESTAURANTES FAVORITOS — GRID DE CARDS
   ══════════════════════════════════════════════════════ */
.fav-restaurants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.fav-rest-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.04);
}
.fav-rest-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fav-rest-img-wrap {
    position: relative;
    height: 100px;
    overflow: hidden;
}
.fav-rest-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.fav-rest-card:hover .fav-rest-img { transform: scale(1.04); }
.fav-rest-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}
.fav-rest-unfav {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #ff6600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}
.fav-rest-unfav:active { transform: scale(0.88); }
.fav-rest-info {
    padding: 10px 12px 12px;
}
.fav-rest-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.fav-rest-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   PLATILLOS FAVORITOS — LISTA VERTICAL
   ══════════════════════════════════════════════════════ */
.fav-dishes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.fav-dish-item {
    background: white;
    border-radius: 18px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.15s;
}
.fav-dish-item:active { transform: scale(0.985); }
.fav-dish-img-wrap {
    width: 58px; height: 58px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.fav-dish-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.fav-dish-body { flex: 1; min-width: 0; }
.fav-dish-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.87rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.fav-dish-rest {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.fav-dish-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: #ff6600;
}
.fav-dish-remove {
    background: #fff1eb;
    border: none;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #ff6600;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
.fav-dish-remove:active {
    background: #ffe4d6;
    transform: scale(0.9);
}

/* ══════════════════════════════════════════════════════
   ESTADO VACÍO
   ══════════════════════════════════════════════════════ */
.fav-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: 22px;
    border: 1.5px dashed #e2e8f0;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.fav-empty-icon {
    width: 64px; height: 64px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}
.fav-empty-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.97rem;
    color: #1e293b;
    margin-bottom: 7px;
}
.fav-empty-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 240px;
}
.fav-empty-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 13px;
    padding: 11px 22px;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 18px rgba(255,102,0,0.28);
    transition: transform 0.15s, box-shadow 0.15s;
}
.fav-empty-btn:active {
    transform: scale(0.96);
    box-shadow: 0 3px 8px rgba(255,102,0,0.18);
}
/* ═══════════════════════════════════════════════════════════════════
   BANPAÍS LUNES — BANNER DENTRO DEL PANEL TRANSFERENCIA
   ═══════════════════════════════════════════════════════════════════ */

.bpb-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e1040 100%);
    border-radius: 20px;
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15,23,42,0.22), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.bpb-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.bpb-orb1 {
    width: 140px; height: 140px; top: -50px; right: -40px;
    background: radial-gradient(circle, rgba(255,102,0,0.18) 0%, transparent 70%);
}
.bpb-orb2 {
    width: 90px; height: 90px; bottom: -30px; left: -15px;
    background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
}

.bpb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bpb-icon-wrap {
    width: 40px; height: 40px;
    background: rgba(255,102,0,0.15);
    border: 1px solid rgba(255,102,0,0.28);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bpb-icon-wrap i { color: #ff6600; font-size: 1rem; }
.bpb-eyebrow {
    font-size: 0.62rem; font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 1px;
}
.bpb-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1rem; color: white;
}
.bpb-pct {
    margin-left: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.6rem; line-height: 1;
    color: #ff6600;
    background: rgba(255,102,0,0.12);
    border: 1.5px solid rgba(255,102,0,0.3);
    padding: 4px 10px; border-radius: 10px;
    letter-spacing: -0.5px;
}
.bpb-desc {
    font-size: 0.82rem; color: rgba(255,255,255,0.72); line-height: 1.55;
    margin-bottom: 14px;
}
.bpb-row-totals {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 12px 14px;
}
.bpb-total-item { flex: 1; text-align: center; }
.bpb-total-label {
    font-size: 0.62rem; font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.bpb-total-val {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 0.88rem; color: rgba(255,255,255,0.85);
}
.bpb-total-green { color: #22c55e !important; }
.bpb-total-orange { color: #ff6600 !important; }
.bpb-total-arrow { color: rgba(255,255,255,0.25); font-size: 0.7rem; }

/* Fila descuento en resumen */
.ck-discount-banpais {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 12px !important;
    margin: 6px 0;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #16a34a !important;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL FELICITACIÓN BANPAÍS
   ═══════════════════════════════════════════════════════════════════ */
.bpc-card {
    background: linear-gradient(160deg, #1a2744 0%, #0f172a 55%, #0d1a10 100%);
    border-radius: 28px;
    padding: 28px 24px 24px;
    position: relative;
    overflow: hidden;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.bpc-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.bpc-orb1 {
    width: 200px; height: 200px; top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(255,102,0,0.16) 0%, transparent 70%);
}
.bpc-orb2 {
    width: 140px; height: 140px; bottom: -50px; left: -30px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
}
.bpc-confetti-row {
    display: flex; justify-content: center; gap: 8px;
    font-size: 1.4rem; margin-bottom: 16px;
    animation: bpc-bounce 1s ease forwards;
}
@keyframes bpc-bounce {
    0%   { transform: translateY(-10px); opacity: 0; }
    60%  { transform: translateY(4px); opacity: 1; }
    100% { transform: translateY(0); }
}
.bpc-badge-wrap {
    display: flex; justify-content: center; align-items: flex-start;
    margin-bottom: 18px; position: relative; width: fit-content; margin-inline: auto;
}
.bpc-badge {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(255,102,0,0.25), rgba(37,99,235,0.2));
    border: 2px solid rgba(255,102,0,0.4);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #ff6600;
}
.bpc-pct-badge {
    position: absolute; top: -8px; right: -14px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 0.8rem;
    padding: 3px 9px; border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255,102,0,0.4);
    white-space: nowrap;
}
.bpc-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.5rem; color: white;
    text-align: center; margin: 0 0 8px; letter-spacing: -0.5px;
}
.bpc-sub {
    font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6;
    text-align: center; margin-bottom: 20px;
}
.bpc-sub strong { color: white; }

.bpc-savings-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px; padding: 16px 18px;
    margin-bottom: 16px;
}
.bpc-savings-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0;
}
.bpc-savings-row-discount { background: rgba(34,197,94,0.06); border-radius: 8px; padding: 6px 8px; margin: 4px 0; }
.bpc-savings-label {
    font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 600;
}
.bpc-savings-val {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.88rem; color: rgba(255,255,255,0.8);
}
.bpc-val-green { color: #22c55e !important; }
.bpc-savings-divider {
    height: 1px; background: rgba(255,255,255,0.07); margin: 8px 0;
}
.bpc-savings-row-total { padding-top: 6px; }
.bpc-savings-label-total {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.bpc-savings-val-total {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.1rem; color: #22c55e;
}
.bpc-tagline {
    text-align: center;
    font-size: 0.7rem; color: rgba(255,255,255,0.35); font-weight: 600;
    margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bpc-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white; border: none; border-radius: 16px;
    padding: 16px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 0.95rem;
    cursor: pointer; letter-spacing: 0.2px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 8px 24px rgba(22,163,74,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.bpc-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(22,163,74,0.2);
}

/* Estado cerrado en grid restaurantes favoritos */
.fav-rest-closed-dim { opacity: 0.65; }
.fav-rest-status-badge {
    position: absolute; bottom: 7px; left: 8px;
    font-size: 0.62rem; font-weight: 800;
    padding: 3px 9px; border-radius: 20px;
    display: flex; align-items: center; gap: 4px;
}
.fav-badge-open {
    background: rgba(22,163,74,0.88);
    color: white;
}
.fav-open-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: white;
    animation: fav-pulse-open 1.8s infinite;
    display: inline-block;
}
@keyframes fav-pulse-open {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}
.fav-badge-closed {
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.8);
}
/* ═══════════════════════════════════════════════════════════════════
   ONBOARDING PROFESIONAL — NUEVO TUTORIAL 4 SLIDES
   ═══════════════════════════════════════════════════════════════════ */
.ob-header {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    padding: 52px 24px 22px;
    text-align: center;
}
.ob-brand-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: white; margin-bottom: 10px;
}
.ob-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.1rem; color: white; letter-spacing: 1px;
}
.ob-brand-city { font-size: 0.72rem; color: rgba(255,255,255,0.65); font-weight: 600; margin-top: 3px; }

/* SLIDES */
.ob-slides-track { padding: 24px 16px 0; }

.ob-slide { display: none; flex-direction: column; align-items: center; gap: 20px; animation: ob-fadein 0.35s ease; }
.ob-slide.active { display: flex; }
@keyframes ob-fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* MOCKUP PHONE */
.ob-slide-mockup {
    width: 180px; height: 240px;
    background: #1e293b;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.06) inset;
    flex-shrink: 0;
}
.ob-mock-bar {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 14px 6px;
    background: #0f172a;
}
.ob-mock-dot { width: 7px; height: 7px; border-radius: 50%; background: #334155; }
.ob-mock-screen {
    background: #f8fafc; padding: 10px 10px 8px;
    display: flex; flex-direction: column; gap: 8px;
    height: calc(100% - 28px);
}
.ob-mock-screen-dark { background: #1e293b; }

.ob-mock-header-strip {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 10px; padding: 7px 10px;
    display: flex; align-items: center; gap: 6px;
}
.ob-mock-cats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
}
.ob-mock-cat {
    border-radius: 10px; padding: 7px 4px;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; font-size: 0.42rem; font-weight: 700; color: white;
}
.ob-cat-orange { background: #ff6600; }
.ob-cat-green  { background: #16a34a; }
.ob-cat-blue   { background: #2563eb; }
.ob-cat-purple { background: #9333ea; }
.ob-mock-cat i { font-size: 0.65rem; }

.ob-mock-card-strip { display: flex; gap: 6px; }
.ob-mock-card {
    flex: 1; height: 48px;
    background: white; border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* SEARCH SLIDE */
.ob-mock-searchbar {
    background: white; border-radius: 10px;
    padding: 7px 10px; display: flex; align-items: center; gap: 5px;
    border: 1px solid #e2e8f0;
}
.ob-mock-tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.ob-mock-tag {
    border-radius: 20px; padding: 3px 9px;
    font-size: 0.42rem; font-weight: 800;
}
.ob-tag-orange { background: #fff7ed; color: #ff6600; }
.ob-tag-blue   { background: #eff6ff; color: #2563eb; }
.ob-tag-green  { background: #f0fdf4; color: #16a34a; }
.ob-mock-result-row {
    display: flex; align-items: center; gap: 7px;
    background: white; border-radius: 10px; padding: 7px 8px;
    border: 1px solid #f1f5f9;
}
.ob-mock-result-img {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #ff6600, #ff8c00); flex-shrink: 0;
}
.ob-mock-result-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ob-mock-line { height: 5px; border-radius: 3px; }
.ob-line-dark  { background: #1e293b; width: 80px; }
.ob-line-light { background: #e2e8f0; width: 50px; }
.ob-line-white { background: rgba(255,255,255,0.25); }

/* ADDR SLIDE */
.ob-mock-map-area {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 12px; flex: 1;
    display: flex; align-items: center; justify-content: center;
}
.ob-mock-addr-card {
    background: white; border-radius: 10px; padding: 8px 10px;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #f1f5f9;
}

/* PLUS SLIDE */
.ob-mock-plus-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px; padding: 6px 10px;
    display: flex; align-items: center;
}
.ob-mock-plus-row {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ob-mock-plus-price {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 1rem; color: #fbbf24; margin-top: 6px; text-align: center;
}

/* TEXTO SLIDE */
.ob-slide-text { text-align: center; padding: 0 8px; }
.ob-slide-num {
    font-size: 0.65rem; font-weight: 800; color: #ff6600;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.ob-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.35rem; color: white;
    margin: 0 0 10px; line-height: 1.25;
}
.ob-accent { color: #ff6600; }
.ob-slide-desc { font-size: 0.83rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/* NAV BAR */
.ob-nav-bar {
    position: sticky; bottom: 0;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px 32px;
}
.ob-dots-row { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.ob-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.ob-dot-active { background: #ff6600; width: 22px; border-radius: 4px; }
.ob-btn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-btn-skip {
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 0.85rem; font-weight: 700; cursor: pointer;
    padding: 12px 6px; font-family: 'Inter', sans-serif;
}
.ob-btn-next {
    flex: 1;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white; border: none; border-radius: 16px;
    padding: 15px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 0.92rem;
    cursor: pointer; letter-spacing: 0.3px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(255,102,0,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ob-btn-next:active { transform: scale(0.97); box-shadow: 0 3px 10px rgba(255,102,0,0.2); }
.ob-btn-next-final { background: linear-gradient(135deg, #16a34a, #22c55e) !important; box-shadow: 0 6px 20px rgba(22,163,74,0.35) !important; }

/* ═══════════════════════════════════════════════════════════════════
   VISTAS PROFESIONALES: SUGERENCIAS / NEGOCIO / RIDER
   ═══════════════════════════════════════════════════════════════════ */
.pv-hero {
    background: linear-gradient(145deg, #1a2744, #0f172a);
    padding: 32px 20px 28px;
    text-align: center;
    position: relative; overflow: hidden;
}
.pv-hero-sugg  { background: linear-gradient(145deg, #1e293b, #0f172a); }
.pv-hero-biz   { background: linear-gradient(145deg, #7c2d12, #1e293b); }
.pv-hero-rider { background: linear-gradient(145deg, #1e3a8a, #0f172a); }

.pv-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.pv-orb1 { width: 200px; height: 200px; top: -80px; right: -60px; background: radial-gradient(circle, rgba(255,102,0,0.18) 0%, transparent 70%); }
.pv-orb2 { width: 140px; height: 140px; bottom: -50px; left: -30px; background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%); }

.pv-hero-icon-wrap {
    width: 70px; height: 70px;
    background: rgba(255,102,0,0.18);
    border: 2px solid rgba(255,102,0,0.3);
    border-radius: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #ff6600;
    margin-bottom: 16px;
}
.pv-icon-biz   { background: rgba(255,102,0,0.18); border-color: rgba(255,102,0,0.3); color: #ff6600; }
.pv-icon-rider { background: rgba(37,99,235,0.2); border-color: rgba(37,99,235,0.35); color: #60a5fa; }

.pv-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1.3rem; color: white;
    margin: 0 0 8px; letter-spacing: -0.3px;
}
.pv-hero-sub { font-size: 0.82rem; color: rgba(255,255,255,0.58); line-height: 1.6; margin: 0; }

.pv-stats-row {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-top: 18px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; overflow: hidden;
}
.pv-stat { flex: 1; padding: 12px 8px; text-align: center; }
.pv-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1rem; color: #ff6600;
}
.pv-stat-label { font-size: 0.6rem; color: rgba(255,255,255,0.4); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.pv-stat-div { width: 1px; background: rgba(255,255,255,0.08); align-self: stretch; }

/* Labels de sección */
.pv-section-label {
    display: flex; align-items: center; gap: 7px;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.72rem; color: #64748b; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px;
}

/* Chips categoría sugerencias */
.pv-chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pv-chip {
    display: flex; align-items: center; gap: 6px;
    background: white; border: 1.5px solid #e2e8f0; border-radius: 20px;
    padding: 7px 14px; font-size: 0.78rem; font-weight: 700; color: #64748b;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pv-chip-active, .pv-chip:active {
    background: #fff7ed; border-color: #ff6600; color: #ff6600;
}

/* Textarea */
.pv-textarea {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 16px;
    padding: 14px 16px; font-size: 0.88rem; color: #1e293b;
    font-family: 'Inter', sans-serif; resize: none; outline: none;
    background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
    line-height: 1.6;
}
.pv-textarea:focus { border-color: #ff6600; box-shadow: 0 0 0 3px rgba(255,102,0,0.1); }

/* Info card */
.pv-info-card {
    display: flex; align-items: flex-start; gap: 12px;
    background: white; border-radius: 14px; padding: 14px 16px;
    border: 1px solid #f1f5f9; margin: 14px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.pv-info-orange { border-left: 3px solid #ff6600; background: #fff7ed; }
.pv-info-blue   { border-left: 3px solid #2563eb; background: #eff6ff; }

/* Beneficios grid */
.pv-benefits-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-bottom: 4px;
}
.pv-benefit-card {
    background: white; border-radius: 14px; padding: 14px 12px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.8rem; font-weight: 700; color: #1e293b;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pv-benefit-card i { font-size: 1.1rem; flex-shrink: 0; }

/* Requisitos lista */
.pv-req-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.pv-req-item {
    display: flex; align-items: center; gap: 12px;
    background: white; border-radius: 13px; padding: 13px 14px;
    font-size: 0.83rem; font-weight: 600; color: #334155;
    border: 1px solid #f1f5f9; box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.pv-req-item i { font-size: 1rem; flex-shrink: 0; }

/* Form card */
.pv-form-card {
    background: white; border-radius: 20px; padding: 18px 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 14px;
    margin-bottom: 4px;
}
.pv-field-group { display: flex; flex-direction: column; gap: 6px; }
.pv-label { font-size: 0.75rem; font-weight: 800; color: #475569; letter-spacing: 0.3px; }
.pv-input {
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 13px;
    padding: 12px 14px; font-size: 0.88rem; color: #1e293b;
    font-family: 'Inter', sans-serif; outline: none; width: 100%;
    transition: border-color 0.2s;
}
.pv-input:focus { border-color: #ff6600; background: white; }
select.pv-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Botones primarios */
.pv-btn-primary {
    width: 100%; border: none; border-radius: 18px; padding: 17px 22px;
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 0.95rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 9px; color: white; letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 8px 24px rgba(15,23,42,0.25);
}
.pv-btn-orange { background: linear-gradient(135deg, #ff6600, #ff8c00) !important; box-shadow: 0 8px 24px rgba(255,102,0,0.3) !important; }
.pv-btn-blue   { background: linear-gradient(135deg, #2563eb, #1e40af) !important; box-shadow: 0 8px 24px rgba(37,99,235,0.3) !important; }
.pv-btn-primary:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════════════════
   BASADO EN TU ÚLTIMA COMPRA — SCROLL HORIZONTAL
   ═══════════════════════════════════════════════════════════════════ */
.reorder-scroll-track {
    display: flex; gap: 12px;
    overflow-x: auto; padding: 2px 16px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.reorder-scroll-track::-webkit-scrollbar { display: none; }

.reorder-card {
    flex-shrink: 0; width: 150px;
    background: white; border-radius: 18px;
    overflow: hidden; cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.reorder-card:active { transform: scale(0.96); }

.reorder-card-img-wrap { position: relative; height: 100px; overflow: hidden; }
.reorder-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reorder-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 60%); }
.reorder-card-repeat-btn {
    position: absolute; bottom: 8px; right: 8px;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.7rem;
    box-shadow: 0 3px 10px rgba(255,102,0,0.4);
}
.reorder-card-info { padding: 10px 10px 12px; }
.reorder-card-store {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.78rem; color: #1e293b; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reorder-card-items {
    font-size: 0.68rem; color: #94a3b8; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.reorder-card-total {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 0.82rem; color: #ff6600;
}

/* ═══════════════════════════════════════════════════════════════════
   PLATILLOS FAVORITOS — TARJETAS GRANDES CON AGREGAR AL CARRITO
   ═══════════════════════════════════════════════════════════════════ */
.fdish-card {
    background: white; border-radius: 18px;
    overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.fdish-card:active { transform: scale(0.97); }

.fdish-img-wrap { position: relative; height: 120px; overflow: hidden; }
.fdish-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fdish-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%); }

.fdish-price-tag {
    position: absolute; bottom: 7px; left: 8px;
    background: rgba(0,0,0,0.68); color: white;
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 0.72rem; padding: 3px 9px; border-radius: 20px;
    backdrop-filter: blur(4px);
}
.fdish-heart-btn {
    position: absolute; top: 7px; right: 7px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.9); border: none;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #ff6600; font-size: 0.72rem; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.fdish-heart-btn:active { transform: scale(0.85); }

.fdish-body { padding: 10px 11px 12px; }
.fdish-name {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.82rem; color: #1e293b; margin-bottom: 3px;
    line-height: 1.3; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fdish-store {
    font-size: 0.67rem; color: #94a3b8; font-weight: 600;
    margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fdish-add-btn {
    width: 100%; background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white; border: none; border-radius: 12px;
    padding: 9px 8px; font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.75rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform 0.15s, background 0.25s;
    box-shadow: 0 4px 12px rgba(255,102,0,0.25);
}
.fdish-add-btn:active { transform: scale(0.96); }
.fdish-add-btn-done { background: linear-gradient(135deg, #16a34a, #22c55e) !important; box-shadow: 0 4px 12px rgba(22,163,74,0.3) !important; }

.mini-cart-pop { animation: miniCartPop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes miniCartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Agrega esta clase a las tarjetas de tus productos */
.item-card, .menu-item {
    content-visibility: auto;
    contain-intrinsic-size: 120px; /* La altura aproximada de tu tarjeta */
    will-change: transform, opacity;
}

/* ==================================================
   MODAL DE PRODUCTO - SECCIÓN RECOMENDACIONES CORREGIDA
   ================================================== */
#pm-recommendations-section {
    margin: 16px 0 0;
    background: white;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.pm-recom-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pm-recom-scroll::-webkit-scrollbar {
    display: none;
}

.pm-recom-card {
    flex: 0 0 auto;
    width: 140px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pm-recom-card:active {
    transform: scale(0.97);
}

.pm-recom-card.addon-selected {
    border-color: #ff6600;
    background: #fff7ed;
    box-shadow: 0 4px 12px rgba(255,102,0,0.15);
}

.pm-recom-img-wrap {
    width: 100%;
    height: 90px;
    overflow: hidden;
    background: #f8fafc;
}
.pm-recom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-recom-info {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pm-recom-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 32px;
}
.pm-recom-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ff6600;
}
.pm-recom-add {
    margin-top: 4px;
    background: #f1f5f9;
    color: #ff6600;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    padding: 5px 8px;
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
}
.pm-recom-card.addon-selected .pm-recom-add {
    background: #ff6600;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════
   FIXES CSS — Todos los parches visuales (10 requerimientos)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── FIX #1/#9: Confirmación "¡Agregado!" con botón Ver carrito ─────────── */
#rapi-added-confirm {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99995;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
    min-width: 300px;
    max-width: calc(100vw - 32px);
}
#rapi-added-confirm.rapi-added-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.rapi-added-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0f172a;
    border-radius: 20px;
    padding: 14px 16px 14px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1.5px rgba(255,102,0,0.3);
    border: 1px solid rgba(255,102,0,0.2);
}
.rapi-added-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rapi-added-check {
    font-size: 1.4rem;
    color: #22c55e;
    animation: rapi-pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.rapi-added-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    font-family: 'Montserrat', sans-serif;
}
.rapi-added-viewcart {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255,102,0,0.4);
    flex-shrink: 0;
}
.rapi-added-viewcart:active { transform: scale(0.96); }

@keyframes rapi-pop-in {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ── FIX #6: Toast "Tu carrito te espera" — rediseñado ─────────────────── */
.rapi-cart-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 14px 18px;
    border-radius: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,102,0,0.2);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    border: 1.5px solid rgba(255,102,0,0.25);
    min-width: 280px;
    max-width: calc(100vw - 32px);
}
.rapi-cart-toast i {
    color: #ff6600;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.rapi-cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.rapi-cart-toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.rapi-cart-toast-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
}
.rapi-cart-toast-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}
.rapi-cart-toast-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255,102,0,0.35);
    flex-shrink: 0;
}
.rapi-cart-toast-btn:active { transform: scale(0.96); }

/* ── FIX #8: Minibar flotante en HOME ───────────────────────────────────── */
.rapi-home-minibar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 20px;
    padding: 12px 16px 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3), 0 0 0 1.5px rgba(255,102,0,0.25);
    border: 1.5px solid rgba(255,102,0,0.2);
    min-width: 300px;
    max-width: calc(100vw - 32px);
    font-family: 'Montserrat', sans-serif;
    animation: rapi-slide-up 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.rapi-home-minibar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rapi-home-minibar-count {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ff6600;
    color: white;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rapi-home-minibar-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.rapi-home-minibar-store {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}
.rapi-home-minibar-total {
    font-size: 0.92rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}
.rapi-home-minibar-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(255,102,0,0.4);
}
.rapi-home-minibar-btn:active { transform: scale(0.96); }

@keyframes rapi-slide-up {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ── FIX #4: Flash / priority-box — estado activo más notorio ───────────── */
.priority-box {
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.priority-box.active {
    border-color: #ff6600 !important;
    background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
    box-shadow: 0 6px 22px rgba(255,102,0,0.22) !important;
}
.priority-box.active .toggle-switch {
    background: #ff6600 !important;
}
.priority-box.active .toggle-switch::after {
    left: 23px !important;
}
/* Badge FLASH ON inyectado dinámicamente */
.flash-active-badge {
    display: none;
    background: #ff6600;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    animation: flash-pulse 1.2s ease-in-out infinite;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes flash-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,102,0,0.4); }
    50%       { opacity: 0.85; box-shadow: 0 0 0 5px rgba(255,102,0,0); }
}

/* ── FIX #2: Variante seleccionada — estado visible garantizado ─────────── */
.pm-variant-row {
    transition: background 0.18s, border-color 0.18s !important;
}
.pm-variant-row.pm-variant-selected {
    background: #fff7ed !important;
    border-color: #ff6600 !important;
}
.pm-variant-radio {
    transition: background 0.18s, border-color 0.18s !important;
}
.pm-variant-radio.pm-radio-active {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}

/* ── FIX #5: Efectivo — garantizar visibilidad completa ─────────────────── */
.pay-cards-scroll,
.ck-pay-rail {
    padding-right: 16px !important;
}
.ck-pay-card,
.pay-card {
    overflow: visible !important;
}
.ck-pay-card-content,
.pay-card-inner {
    overflow: visible !important;
}

/* ── FIX #10: Pulso animado al agregar producto ─────────────────────────── */
.rapi-add-pulse {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rapi-add-pop 0.65s cubic-bezier(0.34,1.56,0.64,1) forwards;
    pointer-events: none;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(34,197,94,0.45);
}
@keyframes rapi-add-pop {
    0%   { transform: scale(0); opacity: 1; }
    60%  { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* --- Modal emergente "Tu carrito te espera" --- */
@keyframes rapi-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rapi-pop-up {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   NUEVO HOME — ESTILO PEDIDOSYA/RAPPI
   ═══════════════════════════════════════════════════════════════════════ */

/* ── GRID CATEGORÍAS ── */
.hpya-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 16px 14px 10px;
}
.hpya-cat-big {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 130px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.15s;
}
.hpya-cat-big:active { transform: scale(0.97); }
.hpya-cat-big-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hpya-cat-big-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 18px 14px 10px;
}
/* Ocupar todo el ancho cada uno de los 2 grandes */
.hpya-cat-big:nth-child(1),
.hpya-cat-big:nth-child(2) {
    grid-column: span 1;
}
/* Fila de pequeños */
.hpya-cat-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-cat-small:active { transform: scale(0.94); }
.hpya-cat-small-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.hpya-cat-small-icon img {
    width: 36px; height: 36px; object-fit: contain;
}
.hpya-cat-small span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
}
/* Los 5 pequeños en fila de 5, abajo de los 2 grandes */
.hpya-cats-grid > .hpya-cat-big { grid-column: span 1; }
.hpya-cats-grid > .hpya-cat-small:nth-child(3),
.hpya-cats-grid > .hpya-cat-small:nth-child(4),
.hpya-cats-grid > .hpya-cat-small:nth-child(5),
.hpya-cats-grid > .hpya-cat-small:nth-child(6),
.hpya-cats-grid > .hpya-cat-small:nth-child(7) {
    grid-column: span 1;
}
/* fila de 5 pequeños en 5 columnas */
.hpya-cats-grid {
    grid-template-columns: 1fr 1fr;
}
/* override: fila de pequeños en 5 cols */
.hpya-cats-grid .hpya-cat-small {
    /* nothing needed */
}
/* Responsive: pequeños en fila de 5 */
.hpya-cats-row-small {
    display: flex;
    gap: 6px;
    padding: 0 14px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-cats-row-small::-webkit-scrollbar { display: none; }

/* Rehacer el grid: 2 grandes arriba, 5 pequeños en fila abajo */
.hpya-cats-grid {
    display: block;
}
.hpya-cats-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 14px 10px;
}
.hpya-cats-grid-bottom {
    display: flex;
    gap: 6px;
    padding: 0 14px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-cats-grid-bottom::-webkit-scrollbar { display: none; }
.hpya-cats-grid-bottom .hpya-cat-small { min-width: 58px; }

/* ── SECTION HEADERS ── */
.hpya-section-header {
    display: flex; align-items: baseline;
    justify-content: space-between;
    padding: 0 14px 10px;
}
.hpya-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}
.hpya-section-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 600;
}

/* ── LOGOS RESTAURANTES SCROLL ── */
.hpya-rest-logos-section { margin: 4px 0 16px; }
.hpya-rest-logos-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-rest-logos-scroll::-webkit-scrollbar { display: none; }
.hpya-rest-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.hpya-rest-logo-item:active { transform: scale(0.92); }
.hpya-rest-logo-img {
    width: 56px; height: 56px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hpya-rest-logo-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #374151;
    max-width: 64px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── COME POR ── */
.hpya-come-section { margin: 4px 0 20px; }
.hpya-come-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-come-scroll::-webkit-scrollbar { display: none; }
.hpya-come-card {
    flex-shrink: 0;
    width: 175px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
}
.hpya-come-card:active { transform: scale(0.97); }
.hpya-come-card-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.hpya-come-card-body {
    padding: 10px 11px 12px;
}
.hpya-come-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.hpya-come-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ff6600;
    line-height: 1.1;
}
.hpya-come-dish {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hpya-come-rest-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding-top: 7px;
    border-top: 1px solid #f3f4f6;
}
.hpya-come-rest-logo {
    width: 20px; height: 20px;
    border-radius: 6px;
    object-fit: cover;
}
.hpya-come-rest-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── REPETÍ TU PEDIDO ── */
.hpya-repeat-section { margin: 4px 0 20px; }
.hpya-repeat-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-repeat-scroll::-webkit-scrollbar { display: none; }
.hpya-repeat-card {
    flex-shrink: 0;
    width: 150px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-repeat-card:active { transform: scale(0.96); }
.hpya-repeat-img-wrap {
    position: relative;
    height: 110px;
    overflow: hidden;
}
.hpya-repeat-dish-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Multi-fotos en cuadrícula 2x2 */
.hpya-repeat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 110px;
    gap: 1px;
    background: #e5e7eb;
}
.hpya-repeat-grid img {
    width: 100%; height: 55px;
    object-fit: cover;
    display: block;
}
.hpya-repeat-logo {
    width: 24px; height: 24px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid white;
}
.hpya-repeat-card-body {
    padding: 8px 10px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hpya-repeat-info { flex: 1; min-width: 0; }
.hpya-repeat-rest {
    font-size: 0.72rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpya-repeat-when {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 600;
}
.hpya-repeat-btn {
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 7px;
    cursor: pointer;
    white-space: nowrap;
}

/* ── MISMO PRECIO ── */
.hpya-mismo-section { margin: 4px 0 20px; }
.hpya-mismo-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-mismo-scroll::-webkit-scrollbar { display: none; }
.hpya-mismo-card {
    flex-shrink: 0;
    width: 230px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-mismo-card:active { transform: scale(0.97); }
.hpya-mismo-img {
    width: 100%; height: 130px;
    object-fit: cover;
    display: block;
    position: relative;
}
.hpya-mismo-img-wrap { position: relative; }
.hpya-mismo-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}
.hpya-mismo-card-body {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
}
.hpya-mismo-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
}
.hpya-mismo-info { flex: 1; min-width: 0; }
.hpya-mismo-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpya-mismo-sub {
    font-size: 0.68rem;
    color: #6b7280;
    font-weight: 600;
}

/* ── RÁPIDO ── */
.hpya-fast-section { margin: 4px 0 20px; }
.hpya-fast-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-fast-scroll::-webkit-scrollbar { display: none; }
.hpya-fast-card {
    flex-shrink: 0;
    width: 200px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-fast-card:active { transform: scale(0.97); }
.hpya-fast-img {
    width: 100%; height: 115px;
    object-fit: cover; display: block;
}
.hpya-fast-card-body {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
}
.hpya-fast-logo {
    width: 34px; height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
}
.hpya-fast-info { flex: 1; min-width: 0; }
.hpya-fast-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpya-fast-meta {
    font-size: 0.66rem;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.hpya-fast-meta span { display: flex; align-items: center; gap: 3px; }

/* ── LO MÁS PEDIDO ── */
.hpya-popular-section { margin: 4px 0 20px; }
.hpya-popular-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-popular-scroll::-webkit-scrollbar { display: none; }
.hpya-popular-card {
    flex-shrink: 0;
    width: 200px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-popular-card:active { transform: scale(0.97); }
.hpya-popular-img-wrap { position: relative; }
.hpya-popular-img {
    width: 100%; height: 120px;
    object-fit: cover; display: block;
}
.hpya-popular-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #10b981;
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}
.hpya-popular-card-body {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
}
.hpya-popular-logo {
    width: 34px; height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
}
.hpya-popular-info { flex: 1; min-width: 0; }
.hpya-popular-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpya-popular-sub {
    font-size: 0.66rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 2px;
}

/* ── MEJORES ── */
.hpya-best-section { margin: 4px 0 20px; }
.hpya-best-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-best-scroll::-webkit-scrollbar { display: none; }
.hpya-best-card {
    flex-shrink: 0;
    width: 200px;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}
.hpya-best-card:active { transform: scale(0.97); }
.hpya-best-img {
    width: 100%; height: 115px;
    object-fit: cover; display: block;
}
.hpya-best-card-body {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
}
.hpya-best-logo {
    width: 34px; height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
}
.hpya-best-info { flex: 1; min-width: 0; }
.hpya-best-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hpya-best-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 2px;
}
.hpya-best-rating span { color: #6b7280; }

/* ── CENAS ESPECIALES ── */
.hpya-cenas-section {
    margin: 4px 14px 20px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4c1d95 100%);
}
.hpya-cenas-inner { padding: 18px 0 18px; }
.hpya-cenas-scroll {
    display: flex;
    gap: 12px;
    padding: 4px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hpya-cenas-scroll::-webkit-scrollbar { display: none; }
.hpya-cena-card {
    flex-shrink: 0;
    width: 150px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.10);
    cursor: pointer;
    transition: transform 0.15s;
    border: 1px solid rgba(255,255,255,0.15);
}
.hpya-cena-card:active { transform: scale(0.96); }
.hpya-cena-img {
    width: 100%; height: 100px;
    object-fit: cover; display: block;
}
.hpya-cena-body { padding: 8px 10px 10px; }
.hpya-cena-dish {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hpya-cena-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: #fbbf24;
}
.hpya-cena-rest {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* ── CHECKOUT MEJORADO (estilo PedidosYa limpio) ── */
.ck-appbar {
    background: white !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   CHECKOUT — LIMPIEZA VISUAL ESTILO PEDIDOSYA
   ═══════════════════════════════════════════════════════════════════════ */

/* Fondo más limpio */
#view-checkout { background: #f5f7fa !important; }

/* AppBar checkout más limpio */
.ck-appbar {
    background: white !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
}
.ck-appbar-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

/* Cards de checkout más limpias */
.ck-card {
    background: white !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
    margin-bottom: 10px !important;
}

/* Section titles más sutiles */
.ck-section-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 18px 0 8px !important;
    padding: 0 2px !important;
}

/* Rail de pago — pills más pequeños */
.ck-pay-rail {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 4px 0 8px !important;
    scrollbar-width: none !important;
}
.ck-pay-rail::-webkit-scrollbar { display: none; }
.ck-pay-card {
    flex-shrink: 0 !important;
    min-width: 145px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
    cursor: pointer !important;
    transition: transform 0.15s !important;
}
.ck-pay-card:active { transform: scale(0.96) !important; }

/* Botón pagar — más elegante como PedidosYa */
.ck-pay-btn, #btn-realizar-pedido, .ck-confirm-btn {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c42 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 18px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(255,102,0,0.3) !important;
    letter-spacing: 0.3px !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.ck-pay-btn:active, #btn-realizar-pedido:active { 
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(255,102,0,0.25) !important;
}

/* ═══════════════════════════════
   SUMMARY ROWS (RECIBO DINÁMICO)
   ═══════════════════════════════ */
.ck-sum-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 0 !important;
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    border-bottom: 1px solid #f8fafc !important;
    animation: slideInRow 0.3s ease-out forwards;
}
.ck-sum-row:last-of-type { border-bottom: none !important; }

/* Nueva fila de total dinámico */
.ck-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 4px !important;
    border-top: 2px dashed #e5e7eb !important;
    margin-top: 6px !important;
    font-weight: 900 !important;
    color: #111827 !important;
    font-size: 1rem !important;
}

@keyframes slideInRow {
    from { opacity: 0; transform: translateY(-5px); max-height: 0; padding-top: 0; padding-bottom: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 40px; }
}

/* Ocultar forzosamente los elementos Legacy que estorban */
#row-priority, #row-tip { display: none !important; }

/* Propina — pills estilo PedidosYa limpio */
.tip-card-pro {
    background: white !important;
    border-radius: 18px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}
.tip-btns-wrap {
    display: flex !important;
    gap: 8px !important;
    padding: 12px 14px 16px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}
.tip-btns-wrap::-webkit-scrollbar { display: none; }
.tip-btn-pro {
    flex-shrink: 0 !important;
    background: #f9fafb !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    min-width: 68px !important;
}
.tip-btn-pro.tip-selected,
.tip-btn-pro.tip-btn-featured {
    background: #fff7ed !important;
    border-color: #ff6600 !important;
}
.tip-btn-amount {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}
.tip-btn-label {
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
}
.tip-btn-recommended-tag {
    font-size: 0.55rem !important;
    background: #ff6600 !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 1px 5px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
    display: inline-block !important;
}

/* Dirección y facturación — limpias */
.ck-addr-row, .ck-billing-card {
    background: white !important;
    border-radius: 18px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    margin-bottom: 10px !important;
}
.ck-row-link {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #ff6600 !important;
}

/* Barra fija inferior del checkout */
.ck-fixed-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    background: white !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 16px 24px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
    z-index: 100 !important;
}

/* =================================================================
   🚀 RESPONSIVIDAD PARA COMPUTADORAS Y TABLETS (DESKTOP MODE PRO)
   ================================================================= */
@media (min-width: 769px) {
    /* 1. Expandir el cuerpo principal de la app (Centrado elegante) */
    body { background-color: #f1f5f9; } 
    .app-shell {
        max-width: 1200px !important; 
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.05);
        border-radius: 0;
        background: #ffffff;
    }

    /* 2. Paddings laterales para que el contenido no pegue a los bordes */
    .view { padding: 30px 5% 120px 5% !important; }
    #view-home { padding: 0 !important; }

    /* 3. BARRAS SUPERIORES: REPARACIÓN DE LOS BOTONES DE ATRÁS 🛠️ */
    .pro-app-bar, .ck-appbar, .checkout-appbar, .terms-appbar, .fav-appbar {
        max-width: 1200px !important;
    }
    
    /* Centrado SÓLO para barras fijas (fixed) */
    .ck-appbar, .checkout-appbar, .fav-appbar, 
    .pro-app-bar[style*="fixed"] {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Evitar que las barras pegajosas (sticky) desaparezcan en PC */
    .pro-app-bar[style*="sticky"], .terms-appbar {
        left: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* 4. Navegación inferior (Convertida en un Footer elegante) */
    .nav-bar { 
        max-width: 1200px !important; 
        width: 100% !important;
        bottom: 0 !important; 
        border-radius: 0 !important;
        padding: 10px 20% !important; 
    }
    
    .mini-cart { 
        max-width: 800px !important; 
        left: 50% !important; 
        transform: translateX(-50%) translateY(120px) !important; 
    }
    .mini-cart.visible { 
        transform: translateX(-50%) translateY(0) !important; 
    }

    /* 5. Menú de Restaurantes a 2 Columnas */
    #menu-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }
    .menu-category-title-pro, .horizontal-menu-scroll, .rapi-repeat-section { 
        grid-column: 1 / -1; 
    }

    /* 6. Checkout y Formularios centrados */
    #view-checkout > div:not(.ck-appbar):not(.ck-fixed-footer),
    #view-register > div:not(:first-child),
    #view-login-email > div:not(:first-child),
    #view-service-form {
        max-width: 700px; 
        margin: 0 auto;
    }

    /* 7. Modales emergentes centrados y dimensionados */
    .bottom-sheet, .pm-container, .order-detail-sheet, .ck-modal-sheet, .ck-card-blocked-toast {
        max-width: 600px !important;
        margin: 0 auto !important;
        left: 0 !important; 
        right: 0 !important;
        border-radius: 28px 28px 0 0 !important;
    }

    /* 8. Cuadrículas adaptadas a pantallas anchas */
    .services-grid, .support-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .history-list-pro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    #fav-restaurants-list, #fav-dishes-list { grid-template-columns: repeat(3, 1fr) !important; }
    
    /* 9. Hero de Restaurante */
    .rapi-rest-header-card {
        max-width: 900px;
        margin: -60px auto 20px auto !important;
        border-radius: 24px !important;
    }
    .rapi-rest-cover { height: 280px !important; }
}