/* =========================================
   1TILOS SUPERMERCADOS (CARRUSEL PRO)
   ========================================= */
.market-grid-container {
    display: flex;            /* Fila horizontal */
    overflow-x: auto;         /* Scroll lateral activado */
    gap: 15px;                /* Espacio entre tarjetas */
    padding: 10px 5px 20px;   /* Padding abajo para la sombra */
    margin-bottom: 10px;
    scroll-snap-type: x mandatory; /* Efecto de enganche suave */
    scrollbar-width: none;    /* Ocultar barra en Firefox */
}

/* Ocultar scrollbar Chrome/Safari */
.market-grid-container::-webkit-scrollbar { display: none; }

.market-card {
    min-width: 220px;         /* ANCHO FIJO: Evita que se aplasten */
    flex-shrink: 0;           
    scroll-snap-align: center;
    
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f3f4f6;
    text-align: center;
    padding-bottom: 15px;
    position: relative;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.market-card:active { transform: scale(0.98); }

/* --- CLASES DE IMÁGENES --- */
.market-cover {
    height: 100px;       /* Altura fija para la portada */
    width: 100%;
    object-fit: cover;   /* Recorta la imagen para que encaje bien */
    background-color: #f3f4f6;
    display: block;
}

.market-logo-circle {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    margin: -25px auto 5px; /* Sube el logo para que pise la portada */
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;     /* Ajusta el logo dentro del círculo */
    padding: 2px;
    display: block;
}

/* =========================================
   2. ESTILOS DIRECTORIO Y LISTA FORMAL
   ========================================= */

/* Contenedor general de la lista */
.directory-list-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* Item Individual de la lista */
.dir-item {
    display: flex; 
    align-items: center; 
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    background: white;
}

.dir-item:last-child { border-bottom: none; }
.dir-item:active { background: #f9fafb; }

/* Imagen pequeña del comercio en la lista */
.dir-img {
    width: 50px; 
    height: 50px; 
    border-radius: 12px; 
    object-fit: cover;
    margin-right: 15px; 
    background: #f9fafb; 
    border: 1px solid #eee;
    flex-shrink: 0; /* Evita que la imagen se deforme */
}

/* Clase para ocultar items (Lógica Ver Más) */
.directory-hidden-item { display: none; }

/* ETIQUETAS DE CATEGORÍA NEÓN (Las etiquetas pequeñas dentro de la lista) */
.dir-tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

/* Colores específicos de etiquetas */
.tag-food {
    background: rgba(255, 94, 0, 0.08);
    color: #ff5e00;
    border: 1px solid rgba(255, 94, 0, 0.2);
}

.tag-health {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-market {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* =========================================
   3. BOTONES Y EXTRAS
   ========================================= */

/* Botón "Ver Más" Animado */
.btn-view-more-pro-anim {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 18px;
    color: #374151;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.btn-view-more-pro-anim:hover {
    border-color: #ff5e00;
    color: #ff5e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 94, 0, 0.1);
}

.btn-view-more-pro-anim i { transition: transform 0.3s; }
.btn-view-more-pro-anim.expanded i { transform: rotate(180deg); }

/* Filtros de Menú Activos (Botones pequeños) */
.menu-filter-btn.active {
    background: #ff5e00 !important;
    color: white !important;
    border-color: #ff5e00 !important;
    box-shadow: 0 5px 15px rgba(255, 94, 0, 0.3) !important;
}

/* --- TEXTO DE AYUDA DESLIZAR --- */
.swipe-hint {
    text-align: right; 
    font-size: 0.75rem; 
    color: #9ca3af;
    margin-top: -10px; /* Lo pega un poco a las tarjetas */
    margin-bottom: 25px; 
    padding-right: 10px;
    font-weight: 600;
    animation: pulseText 2s infinite ease-in-out;
    pointer-events: none; /* Para que no estorbe el click */
}

@keyframes pulseText { 
    0%, 100% { opacity: 0.5; transform: translateX(0); } 
    50% { opacity: 1; transform: translateX(3px); } 
}

/* =========================================
   4. NUEVO: FILTROS DE COMERCIOS PODEROSOS (ESTILO NEÓN)
   ========================================= */

/* =========================================
   BARRA DE FILTROS AJUSTADA (Estilo Deslizante Pro)
   ========================================= */

/* 1. EL CONTENEDOR (La máscara del scroll) */
.directory-tabs-container {
    width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;       /* Activa el deslizamiento lateral */
    padding: 5px 0 15px 0;  /* Espacio abajo para que se vea la sombra */
    scrollbar-width: none;  /* Oculta la barra de scroll (Firefox) */
    -webkit-overflow-scrolling: touch; /* Deslizamiento suave en iPhone */
    display: block;         /* Asegura que ocupe el ancho */
}

/* Ocultar barra de scroll en Chrome/Safari */
.directory-tabs-container::-webkit-scrollbar { 
    display: none; 
}

/* 2. LA LISTA DE BOTONES (La fila larga) */
.directory-tabs {
    display: flex;
    flex-wrap: nowrap;      /* IMPORTANTE: Fuerza una sola línea */
    justify-content: flex-start; /* IMPORTANTE: Alinea a la IZQUIERDA para que "Todos" no se esconda */
    gap: 12px;              /* Espacio entre botones */
    padding: 0 15px;        /* Margen lateral para que no pegue a los bordes de la pantalla */
    width: max-content;     /* Permite que la lista crezca lo necesario */
    background: transparent;
    box-shadow: none;       /* Quitamos sombra de caja contenedora, la ponemos en los botones */
    border: none;
}

/* 3. EL BOTÓN INDIVIDUAL (Estilo Cápsula) */
.dir-tab {
    flex: 0 0 auto;         /* Evita que se aplasten o estiren */
    min-width: auto;        /* Deja que el texto defina el tamaño */
    height: 40px;           /* Altura fija cómoda para el dedo */
    padding: 0 20px;        /* Buen espacio a los lados del texto */
    
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;    /* Bordes totalmente redondos */
    
    color: #4b5563;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;    /* Texto en una sola línea siempre */
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Sombra suave individual */
}

/* Estado Activo (Naranja Potente) */
.dir-tab.active {
    background: var(--rapi-orange);
    color: white;
    border-color: var(--rapi-orange);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25); /* Sombra brillante */
    transform: translateY(-2px);
}

/* Estado Hover (Solo PC) */
.dir-tab:hover {
    border-color: var(--rapi-orange);
    color: var(--rapi-orange);
}
.dir-tab.active:hover {
    color: white; /* Mantiene blanco si está activo */
}

/* --- ETIQUETAS DE COMERCIOS (Tus estilos de colores) --- */
/* (Déjalos tal cual como pediste, solo aseguramos que estén aquí) */

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    border: 1px solid transparent;
}
.badge-icon { font-size: 0.8rem; }

.badge-food { background: #fff7ed; color: #ea580c; border-color: #fdba74; }
.badge-health { background: #ecfdf5; color: #059669; border-color: #6ee7b7; }
.badge-market { background: #eff6ff; color: #2563eb; border-color: #93c5fd; }

/* --- ANIMACIÓN DE TOQUE PRO (Micro-interacciones) --- */

/* Al presionar los filtros (Comida, Salud, etc.) */
.dir-tab:active {
    transform: scale(0.92) !important; /* Se hace pequeño */
    background-color: #f3f4f6;         /* Cambio sutil de fondo */
    transition: transform 0.1s ease;
}

/* Al presionar las tarjetas de Supermercado */
.market-card:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease;
}

/* Al presionar los items de la lista */
.dir-item:active {
    transform: scale(0.98);
    background-color: #f0fdf4; /* Un flash verde muy suave */
    transition: all 0.1s;
}

/* --- ANIMACIÓN PODEROSA DEL RAYO (PRIORIDAD) --- */

/* 1. El contenedor del icono (El círculo) */
.priority-icon-container {
    width: 50px; 
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.4rem; 
    color: #9ca3af; /* Gris apagado */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

/* 2. ESTADO ACTIVO (PODEROSO) */
.priority-box.active .priority-icon-container {
    /* Gradiente Dorado/Naranja Intenso */
    background: linear-gradient(135deg, #FFD700 0%, #ff5e00 100%);
    color: white;
    /* Efecto de resplandor (Glow) */
    box-shadow: 0 0 15px #ff5e00, 0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.15) rotate(-5deg);
    border: 2px solid #fff;
}

/* 3. El Rayo (Icono) */
.priority-box.active .priority-icon-container i {
    animation: electricShock 0.8s infinite alternate; /* Animación continua */
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
}

/* 4. Animación de electricidad (Crece y brilla) */
@keyframes electricShock {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* 5. Ajuste del texto para que acompañe la fuerza */
.priority-title-anim {
    transition: color 0.3s;
}
.priority-box.active .priority-title-anim {
    color: #ea580c !important; /* Texto naranja fuerte */
    text-shadow: 0 0 1px rgba(234, 88, 12, 0.3);
}

/* --- ESTILOS DE RESUMEN INTELIGENTE (MARKETING PODEROSO) --- */

/* 1. FILA DE DESCUENTO PLUS (Para el que YA paga) */
/* Diseño limpio, azul profesional, transmite "Beneficio Activo" */
.plus-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eff6ff; /* Azul muy suave */
    border: 1px dashed #3b82f6; /* Borde punteado azul */
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    animation: slideInLeft 0.4s ease;
}

.plus-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.9rem;
}

.plus-value {
    color: #2563eb;
    font-weight: 800;
    font-size: 1rem;
}

/* 2. CAJA TEASER (Para el que NO es Plus) */
/* Diseño degradado, elegante, no molesto pero llama la atención */
.savings-teaser-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border: 1px solid #fbbf24;
    border-radius: 14px;
    padding: 12px 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.savings-teaser-box:active {
    transform: scale(0.97);
}

/* Efecto de brillo pasando */
.savings-teaser-box::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shineTeaser 3s infinite;
}

@keyframes shineTeaser { 0% {left: -100%;} 20% {left: 200%;} 100% {left: 200%;} }

.teaser-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; 
    z-index: 2;
}

.teaser-icon {
    width: 35px; height: 35px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.teaser-text {
    flex: 1;
    margin-left: 12px;
}

.teaser-title {
    font-weight: 800;
    color: #b45309;
    font-size: 0.85rem;
    line-height: 1.2;
}

.teaser-amount {
    color: #d97706;
    font-size: 0.75rem;
    margin-top: 2px;
    font-weight: 600;
}

.teaser-arrow {
    color: #fbbf24;
    font-size: 0.9rem;
}  

/* =========================================
   MINI CART DOCKED (ESTILO CHEF PRO - LIMPIO)
   ========================================= */
.mini-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff; /* Blanco puro, nada de rayas */
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.08); /* Sombra elegante hacia arriba */
    border: none; /* Quitamos cualquier raya o borde no deseado */
    
    /* Alineación perfecta horizontal */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 25px 20px 25px 20px;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mini-cart.visible {
    transform: translateY(0);
}

/* El tirador para minimizar (píldora gris arriba) */
.dock-minimize-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

/* Elemento gráfico de cocina (Gorro/Cubiertos) */
.chef-icon-box {
    width: 52px; 
    height: 52px;
    background: #fff7ed; /* Fondo crema suave */
    border-radius: 16px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--rapi-orange);
    font-size: 1.5rem;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15); /* Brillo naranja sutil */
}

/* Contenedor del Precio */
.dock-info-box {
    display: flex; 
    flex-direction: column;
}

.dock-total-label {
    font-size: 0.75rem; 
    color: #94a3b8; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dock-price-big {
    font-size: 1.6rem; 
    color: #0f172a; 
    font-weight: 900; 
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 2px;
}

/* Botón de Ver Carrito Naranja */
.dock-btn-action {
    background: var(--rapi-orange);
    color: white;
    padding: 15px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex; 
    align-items: center; 
    gap: 10px;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.dock-btn-action:active {
    transform: scale(0.95);
}


/* 3. LA BURBUJA FLOTANTE - ¡AHORA NARANJA! 🍊 */
.floating-bubble-cart {
    position: fixed; 
    bottom: 120px; /* Misma altura */
    right: 20px;
    width: 65px; height: 65px;
    
    /* GRADIENTE NARANJA POTENTE */
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem;
    
    /* Sombra naranja brillante */
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.5);
    border: 2px solid white; /* Borde blanco para resaltar */
    
    z-index: 999;
    cursor: pointer;
    
    transform: scale(0) rotate(180deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-bubble-cart.show {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Contador en la burbuja */
.bubble-badge {
    position: absolute; top: -5px; right: -5px;
    background: white; 
    color: #ff6600;
    font-size: 0.8rem; font-weight: 900;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Corrección de Navegación */
.nav-bar { z-index: 2000 !important; }

/* =========================================
   5. CORRECCIÓN CRÍTICA: SOPORTE VS NAV BAR
   ========================================= */

/* Hacemos que el fondo oscuro del modal esté por encima del Nav Bar (2000) */
#support-modal-overlay {
    z-index: 3000 !important; 
}

/* Hacemos que la hoja deslizable esté aún más arriba */
.bottom-sheet {
    z-index: 3001 !important;
    /* Agregamos padding extra abajo para proteger el botón en iPhone/Android modernos */
    padding-bottom: 40px !important; 
}

/* Ajuste para la vista de soporte sin barra de navegación */
#view-support {
    /* Quitamos el padding exagerado de 120px y lo dejamos normal */
    padding-bottom: 40px !important; 
    background-color: #f8f9fa; /* Aseguramos que el fondo se vea limpio */
}

/* =========================================
   ANIMACIONES RADAR PRO (PROCESANDO PEDIDO)
   ========================================= */
.processing-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.processing-card {
    background: white;
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.processing-icon-box {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    transition: all 0.5s ease;
}

.processing-icon-box.pulse {
    animation: pulseOrange 1.5s infinite;
}

.processing-icon-box.radar-spin {
    animation: floatBounce 2s infinite ease-in-out;
}

.processing-icon-box.bounce {
    animation: popIn 0.5s ease;
}

.processing-progress-bar {
    width: 100%; height: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
}

.processing-progress-fill {
    height: 100%;
    background: var(--rapi-orange);
    width: 0%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   VISTAS EXTRAS (LEGAL, DONACIONES, SUGERENCIAS)
   ========================================= */
#view-legal, #view-donations, #view-suggestions {
    animation: fadeSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efecto Vidrio en el Encabezado */
.legal-header-glass {
    position: sticky; top: 0; 
    background: rgba(248, 249, 250, 0.85); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    z-index: 100; display: flex; align-items: center; gap: 15px;
}

/* Ícono Legal Animado */
.legal-icon-main {
    width: 85px; height: 85px; 
    background: linear-gradient(135deg, var(--rapi-orange), #ff8c00); 
    color: white; border-radius: 25px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 2.8rem; margin: 0 auto 20px; 
    box-shadow: 0 10px 25px rgba(255,102,0,0.3);
    transform: rotate(-5deg);
}

/* Tarjetas de Texto Legal */
.legal-topic {
    background: white; border-radius: 20px; padding: 20px 25px; margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #f1f5f9;
}
.legal-topic h4 { color: #1e293b; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.legal-topic p { color: #64748b; font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* --- HÁBITAT DONACIONES --- */
.donation-hero-box {
    position: relative; width: 100%; height: 320px;
    border-radius: 0 0 35px 35px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.donation-hero-img { width: 100%; height: 100%; object-fit: cover; }
.donation-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 35px 20px;
}
.donation-tag {
    background: #e11d48; color: white; font-size: 0.75rem; font-weight: 800; 
    padding: 6px 12px; border-radius: 8px; display: inline-block; 
    margin-bottom: 15px; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
}
.donation-info-card {
    background: white; padding: 25px; border-radius: 25px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); margin-top: -40px; 
    position: relative; z-index: 10; margin-left: 15px; margin-right: 15px;
    border-top: 5px solid #e11d48;
}

/* --- SUGERENCIAS --- */
.suggestion-textarea {
    width: 100%; background: #ffffff; border: 2px solid #e2e8f0;
    border-radius: 18px; padding: 18px; font-family: inherit;
    font-size: 1rem; color: #334155; resize: none; transition: 0.3s;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); box-sizing: border-box;
}
.suggestion-textarea:focus {
    outline: none; border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* --- CHIPS DE CATEGORÍA PROFESIONALES --- */
.sugg-chip {
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px; /* Menos redondo, más moderno */
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cuando el usuario toca una categoría */
.sugg-chip.active {
    background: #0f172a; /* Color oscuro empresarial */
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* =========================================
   BARRA SUPERIOR PRO (ADIÓS BOTONES ENCIMADOS)
   ========================================= */
.pro-app-bar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.btn-back-pro {
    background: white;
    border: 1px solid #e2e8f0;
    width: 40px; 
    height: 40px;
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #ff6600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-back-pro i { color: #ff6600 !important; }
.btn-back-pro:active { transform: scale(0.95); }

.app-bar-title {
    margin: 0 0 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 800;
}

/* Iconos corporativos para formularios (Sin degradados exagerados) */
.corp-icon-box {
    width: 65px; 
    height: 65px;
    background: #fff7ed;
    color: var(--rapi-orange);
    border-radius: 18px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    border: 1px solid #ffedd5;
}

.corp-icon-box.blue {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

/* =========================================
   ESTILOS: LIBRETA DE DIRECCIONES Y GPS
   ========================================= */

/* Botón de GPS con efecto de pulsación azul */
#btn-gps-loc {
    border: 2px dashed #bfdbfe !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    transition: all 0.3s ease !important;
}

#btn-gps-loc:active {
    transform: scale(0.98);
    background: #dbeafe !important;
}

/* Animación para cuando está cargando el GPS */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Tarjetas de direcciones guardadas */
.address-item-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: 0.2s;
}

.address-item-card:active {
    background: #f8fafc;
    transform: translateX(5px);
}

/* Botón de eliminar dirección */
.btn-delete-addr {
    width: 38px;
    height: 38px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-delete-addr:active {
    background: #fecaca;
    color: #b91c1c;
}

/* Chips de sector en la libreta */
.sector-badge-addr {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
}

/* =========================================
   SISTEMA DE MODALES PROFESIONAL (REPARACIÓN)
   ========================================= */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Fondo más oscuro para resaltar */
    backdrop-filter: blur(8px) !important; /* Filtro nítido */
    -webkit-backdrop-filter: blur(8px) !important;
    display: none; /* Se controla con JS */
    align-items: flex-end !important; /* Sale de abajo */
    justify-content: center !important;
    z-index: 20000 !important; /* Por encima de TODA la app */
}

.bottom-sheet {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 500px !important;
    border-radius: 30px 30px 0 0 !important;
    padding: 30px 20px 40px !important;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.3) !important;
    animation: slideUpModal 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    position: relative !important;
    overflow-y: auto !important;
    max-height: 85vh !important;
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Tarjetas de direcciones dentro del modal */
.address-item-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 18px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: 0.2s !important;
    cursor: pointer !important;
}

.address-item-card:active {
    background: #f1f5f9 !important;
    transform: scale(0.97) !important;
}

/* =========================================
   VISTA: MIS DIRECCIONES PRO
   ========================================= */
.address-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}

.address-item-card:active {
    background: #f8fafc;
    transform: scale(0.97);
    border-color: #cbd5e1;
}

.sector-badge-addr {
    display: inline-block;
    padding: 5px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 5px;
    border: 1px solid #bfdbfe;
}

.btn-delete-addr {
    width: 45px;
    height: 45px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(239,68,68,0.1);
}

.btn-delete-addr:active {
    background: #fecaca;
    transform: scale(0.9);
}

/* =========================================
   DISEÑO FINTECH: TARJETAS BANCARIAS PRO
   ========================================= */
.bank-pro-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.bank-pro-card:active {
    transform: scale(0.98);
}

.bank-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Colores Corporativos Reales de los Bancos */
/* Banpaís: Fondo azul corporativo con detalles amarillos */
.bank-header.bp { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: #fde047; border-bottom: 3px solid #facc15; } 
/* Promerica: Verde corporativo */
.bank-header.pro { background: linear-gradient(135deg, #15803d, #166534); } 
/* Occidente: Naranja */
.bank-header.occ { background: linear-gradient(135deg, #c2410c, #ea580c); } 
/* Ficohsa: Rojo clásico */
.bank-header.fic { background: linear-gradient(135deg, #0816cf, #0427c2); } 
/* BAC Credomatic: Rojo oscuro / Vino */
.bank-header.bac { background: linear-gradient(135deg, #f50909, #db2727); }

.bank-body {
    padding: 20px;
    background: #ffffff;
}

.bank-owner {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 800;
    text-transform: uppercase;
}

.bank-type {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 600;
}

.bank-number-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.b-num {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    letter-spacing: 1px;
}

.b-copy {
    background: #e0e7ff;
    color: #4f46e5;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.b-copy:active { background: #c7d2fe; transform: scale(0.9); }

/* --- ALERTA ACH ROJA --- */
.ach-alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(239,68,68,0.05);
}

.ach-icon {
    font-size: 1.8rem;
    color: #ef4444;
}

.ach-text {
    font-size: 0.85rem;
    color: #7f1d1d;
    line-height: 1.5;
}

/* =========================================
   SISTEMA DE HORARIOS INTELIGENTE (RAPI TIME)
   ========================================= */
.rest-status-banner {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 10px 20px 15px 20px;
    gap: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

/* Estado: Abierto */
.rest-status-banner.open {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Estado: Cierra en 40 min o menos */
.rest-status-banner.closing {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    animation: pulseWarning 2s infinite;
}

/* Estado: Cerrado */
.rest-status-banner.closed {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.rest-status-banner .icon-box {
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    border-radius: 14px;
}

.rest-status-banner .title {
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.2;
}

.rest-status-banner .desc {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.85;
}

@keyframes pulseWarning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Etiqueta roja en los productos cuando está cerrado */
.item-closed-badge {
    color: #ef4444;
    font-weight: 900;
    font-size: 0.75rem;
    background: #fee2e2;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px dashed #f87171;
    display: inline-block;
}

/* =========================================
   SISTEMA DE CARGA PREMIUM (SKELETON LOADING)
   ========================================= */
.skeleton-box {
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Esqueleto específico para el Menú */
.skeleton-item-row {
    display: flex;
    padding: 15px;
    background: white;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.skeleton-img {
    width: 80px; height: 80px;
    border-radius: 15px;
    margin-right: 15px;
}

.skeleton-text-1 { width: 70%; height: 16px; margin-bottom: 10px; }
.skeleton-text-2 { width: 100%; height: 12px; margin-bottom: 6px; }
.skeleton-text-3 { width: 40%; height: 18px; margin-top: 10px; }

/* =========================================
   ESTILOS PARA MEGA MODALES PRO (CORREGIDO)
   ========================================= */
.mega-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important; /* Fondo aún más oscuro para drama */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important; /* Capa superlativa */
    display: none; /* Controlado por JS */
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clase para mostrar el fondo con transición */
.mega-modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.mega-modal-card {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 360px !important;
    border-radius: 35px !important;
    padding: 40px 25px !important;
    text-align: center !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Clase para animar la tarjeta de entrada */
.mega-modal-overlay.show .mega-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animaciones del Icono */
.mega-icon-pulse-red {
    width: 100px !important;
    height: 100px !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3.5rem !important;
    margin: 0 auto 25px !important;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6) !important;
    /* Usamos una animación directa y robusta */
    animation: megaPulseAlert 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@keyframes megaPulseAlert {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 25px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Animación opcional para el icono interno si necesitas rebote */
.fa-bounce {
    animation: bounceIcon 1s infinite alternate;
}
@keyframes bounceIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* =======================================================
   DISEÑO ULTRA PRO - RAPI PLUS (ESTILO UBER EATS/PEDIDOSYA)
   ======================================================= */

/* --- Vista Principal de Compra --- */
.plus-hero-section { text-align: center; padding: 20px 15px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.plus-hero-section h2 { font-size: 1.8rem; font-weight: 900; margin: 0 0 5px 0; color: #fbbf24; letter-spacing: 1px; }
.plus-hero-section p { font-size: 0.9rem; color: #cbd5e1; margin: 0; opacity: 0.9; }

.benefits-list-pro { padding: 0 15px; margin-bottom: 25px; display: flex; flex-direction: column; gap: 15px; }
.benefit-row-pro { display: flex; align-items: flex-start; gap: 15px; background: white; padding: 15px; border-radius: 16px; border: 1px solid #f1f5f9; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.benefit-icon-pro { background: #fff7ed; color: var(--rapi-orange); width: 45px; height: 45px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; flex-shrink: 0; }
.benefit-text-pro h4 { margin: 0 0 4px 0; font-size: 0.95rem; color: #1e293b; font-weight: 800; }
.benefit-text-pro p { margin: 0; font-size: 0.8rem; color: #64748b; line-height: 1.4; }

.token-box-pro { background: white; padding: 20px; border-radius: 20px; margin: 0 15px 25px 15px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; }
.token-box-pro h3 { font-size: 1rem; color: #0f172a; margin: 0 0 8px 0; font-weight: 800; }
.token-box-pro p { font-size: 0.8rem; color: #64748b; margin: 0 0 15px 0; line-height: 1.4; }
.input-token-pro { width: 100%; padding: 16px; border-radius: 12px; border: 2px solid #e2e8f0; background: #f8fafc; font-family: monospace; font-size: 1.1rem; font-weight: 900; text-align: center; letter-spacing: 3px; text-transform: uppercase; color: #0f172a; outline: none; transition: 0.3s; box-sizing: border-box; margin-bottom: 12px; }
.input-token-pro:focus { border-color: var(--rapi-orange); background: white; box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); }
.btn-activate-pro { width: 100%; padding: 16px; border-radius: 12px; border: none; background: #0f172a; color: white; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-activate-pro:active { transform: scale(0.97); }

.buy-pass-btn { margin: 0 15px 20px 15px; background: #fff7ed; color: var(--rapi-orange); border: 2px solid #fed7aa; width: calc(100% - 30px); padding: 16px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.3s; }
.buy-pass-btn:active { background: #ffedd5; }

/* --- Vista Activa (Tarjeta Digital) --- */
.vip-pass-card { margin: 20px 15px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; padding: 25px; color: white; position: relative; overflow: hidden; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3); border: 1px solid #334155; }
.vip-pass-card::after { content: '\f3a5'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -20px; font-size: 8rem; color: rgba(255,255,255,0.03); transform: rotate(-15deg); }
.vip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; position: relative; z-index: 2; }
.vip-header-title { font-size: 0.75rem; letter-spacing: 2px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.vip-status-badge { background: rgba(74, 222, 128, 0.2); color: #4ade80; padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(74, 222, 128, 0.3); }

.vip-body { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 2; }
.vip-days-left { display: flex; flex-direction: column; }
.vip-number { font-size: 3.5rem; font-weight: 900; line-height: 1; color: #fbbf24; text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3); }
.vip-label { font-size: 0.8rem; color: #cbd5e1; font-weight: 600; margin-top: 5px; }
.vip-expiry { text-align: right; }
.vip-expiry-label { font-size: 0.7rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; margin-bottom: 3px; }
.vip-date { font-size: 1rem; font-weight: 800; color: white; }

.vip-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 15px; margin-bottom: 25px; }
.vip-feature-item { background: white; padding: 15px 10px; border-radius: 16px; text-align: center; border: 1px solid #f1f5f9; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.vip-feature-item i { font-size: 1.5rem; color: var(--rapi-orange); margin-bottom: 8px; }
.vip-feature-item span { display: block; font-size: 0.8rem; font-weight: 800; color: #1e293b; line-height: 1.2; }

/* =======================================================
   BARRA SUPERIOR VIP MEJORADA (ESTILO PROFESIONAL)
   ======================================================= */
.vip-app-bar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.vip-back-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.vip-back-btn:active {
    transform: scale(0.9);
    background: #f1f5f9;
    color: var(--rapi-orange);
    border-color: var(--rapi-orange);
}

.vip-title {
    margin: 0 0 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-subtitle {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* =======================================================
   ANIMACIÓN DE CELEBRACIÓN ÉPICA (CUANDO ACTIVA TOKEN)
   ======================================================= */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.celebration-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 40px;
    padding: 40px 25px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    border: 2px solid #fbbf24;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 4px rgba(251, 191, 36, 0.3);
    animation: cardPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.celebration-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
}

.celebration-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 4rem;
    color: #0f172a;
    box-shadow: 0 0 30px #fbbf24, 0 0 60px rgba(251, 191, 36, 0.4);
    animation: iconPulse 2s infinite, iconSpin 10s linear infinite;
}

.celebration-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
    animation: textGlitch 3s infinite;
}

.celebration-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.celebration-benefits {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.celebration-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.celebration-benefit-item:last-child {
    border-bottom: none;
}

.celebration-benefit-item i {
    color: #fbbf24;
    width: 20px;
}

.celebration-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.2rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.celebration-btn::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;
}

.celebration-btn:active {
    transform: scale(0.95);
}

.celebration-btn i {
    animation: bounceIcon 1s infinite alternate;
}

@keyframes cardPopIn {
    0% { transform: scale(0.5) translateY(100px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 30px #fbbf24, 0 0 60px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 50px #fbbf24, 0 0 100px rgba(251, 191, 36, 0.8); }
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlitch {
    0%, 100% { text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5); }
    25% { text-shadow: -2px 0 10px #fbbf24, 2px 2px 20px #f59e0b; }
    75% { text-shadow: 2px 0 10px #fbbf24, -2px -2px 20px #f59e0b; }
}

@keyframes bounceIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Confeti animado */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    opacity: 0;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===================================================
   VISTA DE BÚSQUEDA AVANZADA (EXPLORAR)
   =================================================== */

.search-header-pro {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.search-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-back-btn:active {
    background: #f1f5f9;
    transform: scale(0.95);
}

.search-header-input-wrapper {
    flex: 1;
    position: relative;
}

.search-header-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-header-input {
    width: 100%;
    height: 45px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    padding: 0 45px 0 40px;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    transition: all 0.3s;
}

.search-header-input:focus {
    border-color: var(--rapi-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
}

.search-clear-btn:active {
    color: #ef4444;
}

/* SKELETON LOADING */
.search-skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-category-title {
    height: 24px;
    width: 120px;
    background: #e2e8f0;
    border-radius: 8px;
    margin: 20px 0 15px;
}

.search-grid-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.skeleton-card {
    background: #f1f5f9;
    border-radius: 20px;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* TARJETAS DE COMERCIO ESTILO RAPI MARKET */
.search-merchant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.search-merchant-card:active {
    transform: scale(0.98);
}

.search-merchant-cover {
    height: 100px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
    position: relative;
}

.search-merchant-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    margin: -25px auto 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
    padding: 2px;
    display: block;
}

.search-merchant-info {
    padding: 0 12px 12px;
    text-align: center;
}

.search-merchant-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-merchant-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.status-open {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-closed {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Grid de productos destacados */
.search-products-grid {
    display: flex;
    gap: 6px;
    margin: 10px 0 8px;
    justify-content: center;
}

.search-product-mini {
    flex: 1;
    max-width: 60px;
    text-align: center;
}

.search-product-mini img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
    background: white;
}

.search-product-mini span {
    display: block;
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-view-more {
    font-size: 0.7rem;
    color: var(--rapi-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 5px;
}

/* Grid de resultados */
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.search-category-title {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-category-title i {
    color: var(--rapi-orange);
    font-size: 1rem;
}

.search-category-title span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-left: auto;
}

/* Estado cerrado en las tarjetas */
.search-merchant-card.closed {
    opacity: 0.8;
    filter: grayscale(0.3);
}

.search-merchant-card.closed .search-view-more {
    color: #94a3b8;
}

.search-merchant-card.closed .search-merchant-status {
    background: #fee2e2;
    color: #b91c1c;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-merchant-card {
    animation: fadeInUp 0.3s ease forwards;
}

.search-merchant-card:nth-child(even) {
    animation-delay: 0.1s;
}
/* =========================================================
   SECCIÓN MIS FAVORITOS — ESTILO PREMIUM
   ========================================================= */

/* Header */
.fav-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.fav-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fef2f2, #ffe4e6);
    color: #e11d48;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid #fecdd3;
}
.fav-sub-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.fav-sub-title i { color: #ff6600; font-size: 0.75rem; }

/* Scroll horizontal de restaurantes favoritos */
.fav-rest-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.fav-rest-scroll::-webkit-scrollbar { display: none; }

.fav-rest-card {
    min-width: 155px;
    max-width: 155px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1.5px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.fav-rest-card:active { transform: scale(0.97); }
.fav-rest-closed { opacity: 0.65; }

.fav-rest-img-wrap {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}
.fav-rest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fav-rest-closed-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15,23,42,0.8);
    color: #f87171;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.fav-rest-open-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(16,185,129,0.3);
}
.fav-open-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.fav-rest-info {
    padding: 10px 12px 12px;
}
.fav-rest-name {
    font-weight: 800;
    font-size: 0.82rem;
    color: #1e293b;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-rest-meta {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botón corazón */
.fav-heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #cbd5e1;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fav-heart-btn:active { transform: scale(1.25); }
.fav-heart-btn.fav-active { color: #ef4444; background: rgba(255,255,255,0.95); }
.fav-heart-btn.fav-active i { animation: heart-pop 0.35s ease; }
@keyframes heart-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Scroll horizontal de platos favoritos */
.fav-dishes-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.fav-dishes-scroll::-webkit-scrollbar { display: none; }

.fav-dish-card {
    min-width: 145px;
    max-width: 145px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    border: 1.5px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.fav-dish-card:active { transform: scale(0.97); }

.fav-dish-img-wrap {
    position: relative;
    width: 100%;
    height: 95px;
    overflow: hidden;
}
.fav-dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fav-dish-price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15,23,42,0.85);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.fav-dish-info {
    padding: 8px 10px 10px;
}
.fav-dish-name {
    font-weight: 800;
    font-size: 0.76rem;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-dish-store {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══ FIN ESTILOS FAVORITOS ═══ */

/* Heart button - small version for directory */
.fav-heart-btn-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fca5a5;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-right: 6px;
}
.fav-heart-btn-sm:active { transform: scale(1.2); }
.fav-heart-btn-sm.fav-active { color: #ef4444; background: #fef2f2; }
.fav-heart-btn-sm.fav-active i { animation: heart-pop 0.35s ease; }

/* Heart button - mini for menu items */
.fav-heart-btn-mini {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #d1d5db;
    font-size: 0.72rem;
    z-index: 5;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.fav-heart-btn-mini:active { transform: scale(1.25); }
.fav-heart-btn-mini.fav-active { color: #ef4444; background: rgba(255,255,255,0.95); }
.fav-heart-btn-mini.fav-active i { animation: heart-pop 0.35s ease; }

/* Make card-img-vertical-wrapper relative for the heart button */
.card-img-vertical-wrapper { position: relative; }
/* ═══════════════════════════════════════════════════
   PLUS SAVINGS PRO CARD (Checkout - Usuario Plus)
   ═══════════════════════════════════════════════════ */
.plus-savings-pro-card {
    margin: 12px 0 8px;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}
.plus-savings-pro-inner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    border: 1.5px solid rgba(251,191,36,0.25);
}
.plus-savings-pro-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #0f172a;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251,191,36,0.3);
}
.plus-savings-pro-text {
    flex: 1;
}
.plus-savings-pro-title {
    font-size: 0.68rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.plus-savings-pro-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}
.plus-savings-pro-detail {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   PLUS UPSELL PRO CARD (Checkout - NO es Plus)
   ═══════════════════════════════════════════════════ */
.plus-upsell-pro-card {
    margin: 12px 0 8px;
    border-radius: 16px;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    transition: transform 0.15s;
}
.plus-upsell-pro-card:active {
    transform: scale(0.98);
}
.plus-upsell-pro-inner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    border: 1.5px solid rgba(255,102,0,0.3);
    position: relative;
    overflow: hidden;
}
.plus-upsell-pro-glow {
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.plus-upsell-pro-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.plus-upsell-pro-crown {
    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: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,102,0,0.35);
}
.plus-upsell-pro-badge {
    font-size: 0.65rem;
    font-weight: 900;
    color: #ff6600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.plus-upsell-pro-save {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}
.plus-upsell-pro-save b {
    color: #fbbf24;
}
.plus-upsell-pro-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    font-weight: 600;
}
.plus-upsell-pro-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 8px;
}
/* ═══════════════════════════════════════════════════════════════
   CHECKOUT ULTRA PRO — PedidosYa / Rappi Clean Style
   ═══════════════════════════════════════════════════════════════ */

/* APPBAR */
.ck-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.ck-appbar-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
}
.ck-back-btn {
    width: 38px; height: 38px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}
.ck-back-btn:active { transform: scale(0.88); background: #e5e5e5; }

/* SECTION TITLES */
.ck-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ck-section-title i {
    color: #ff6600;
    font-size: 0.95rem;
}

/* ═══════════════════════════════
   PAYMENT CARDS — Premium Realistic
   ═══════════════════════════════ */
.ck-pay-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 14px;
}
.ck-pay-rail::-webkit-scrollbar { display: none; }

.ck-pay-card {
    flex: 0 0 210px;
    min-height: 126px;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.08);
}
.ck-pay-card:active { transform: scale(0.96); }
.ck-pay-card.active,
.ck-pay-card.ck-pay-active {
    border-color: #ff6600;
    box-shadow: 0 8px 30px rgba(255,102,0,0.3), 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Gradient backgrounds — realistic matte finishes */
.ck-pay-card-gradient {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    z-index: 0;
}
/* Subtle noise texture overlay for realism */
.ck-pay-card-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.ck-grad-cash {
    background: linear-gradient(145deg, #166534 0%, #14532d 40%, #1a7a3a 100%);
}
.ck-grad-transfer {
    background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
}
.ck-grad-card {
    background: linear-gradient(145deg, #27272a 0%, #3f3f46 50%, #52525b 100%);
}
.ck-grad-kash {
    background: linear-gradient(145deg, #581c87 0%, #7c3aed 60%, #8b5cf6 100%);
}
.ck-grad-binance {
    background: linear-gradient(145deg, #0c0e12 0%, #1c1f26 50%, #2a2d35 100%);
}
.ck-grad-pana {
    background: linear-gradient(145deg, #064e3b 0%, #059669 60%, #10b981 100%);
}

/* Card content layout */
.ck-pay-card-content {
    position: relative;
    z-index: 1;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 118px;
}
.ck-pay-card-bank {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ck-pay-card-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: white;
    letter-spacing: 1.5px;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ck-pay-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}
.ck-pay-card-holder {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
}
.ck-pay-card-type {
    font-size: 0.8rem;
    color: white;
    opacity: 0.85;
}

/* Check mark on cards */
.ck-pay-card .pago-card-check {
    position: absolute;
    top: 10px; right: 10px;
    width: 24px; height: 24px;
    background: #ff6600;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.6rem;
    z-index: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 8px rgba(255,102,0,0.4);
}
.ck-pay-card.active .pago-card-check,
.ck-pay-card.ck-pay-active .pago-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════
   GENERAL CARDS & ROWS
   ═══════════════════════════════ */
.ck-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Row action (cupón, etc) */
.ck-row-action {
    background: white;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: 0.2s;
}
.ck-row-action:active { transform: scale(0.98); }
.ck-row-action-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
}
.ck-row-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ck-row-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    color: #ff6600;
    flex-shrink: 0;
}

/* ═══════════════════════════════
   DELIVERY & PRIORITY
   ═══════════════════════════════ */
.ck-delivery-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ck-delivery-icon {
    width: 42px; height: 42px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #0284c7;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ck-delivery-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #1a1a1a;
}
.ck-delivery-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Priority row */
.ck-priority-row {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.25s;
}
.ck-priority-row:active { transform: scale(0.98); }
.ck-priority-row.active {
    background: #fff7ed;
    box-shadow: 0 4px 16px rgba(255,102,0,0.12);
}
.ck-prio-icon {
    width: 38px; height: 38px;
    background: #fef3c7;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #d97706;
    font-size: 1rem;
    flex-shrink: 0;
    transition: 0.2s;
}
.ck-priority-row.active .ck-prio-icon {
    background: #ff6600;
    color: white;
}
.ck-prio-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}
.ck-prio-sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1px;
}
.ck-prio-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 10px;
}

/* ═══════════════════════════════
   ADDRESS ROW
   ═══════════════════════════════ */
.ck-addr-row {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: 0.2s;
}
.ck-addr-row:active { transform: scale(0.98); }
.ck-addr-icon {
    width: 42px; height: 42px;
    background: #fff0e6;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #ff6600;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ck-addr-info {
    flex: 1;
    min-width: 0;
}
.ck-addr-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ck-addr-main {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.88rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.ck-addr-sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}
.ck-inline-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-family: inherit;
    padding: 4px 0 0;
    background: transparent;
}
.ck-inline-input::placeholder { color: #c0c4cc; }

/* ═══════════════════════════════
   BILLING (RTN) CARD
   ═══════════════════════════════ */
.ck-billing-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: 0.2s;
}
.ck-billing-card:active { transform: scale(0.98); }
.ck-billing-icon {
    width: 42px; height: 42px;
    background: #ede9fe;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #7c3aed;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ck-billing-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #1a1a1a;
}
.ck-billing-rtn {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════
   SUMMARY ROWS
   ═══════════════════════════════ */
.ck-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 0.88rem;
    color: #4b5563;
    border-bottom: 1px solid #f5f5f5;
}
.ck-sum-row:last-of-type { border-bottom: none; }
.ck-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 4px;
    border-top: 2px dashed #e5e5e5;
    margin-top: 10px;
    font-weight: 900;
    color: #1a1a1a;
    font-size: 1rem;
}
.ck-total-amount {
    font-size: 1.8rem;
    color: #ff6600;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}

/* ═══════════════════════════════
   PAY BUTTON — Big Rappi style
   ═══════════════════════════════ */
.ck-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6600, #ff8800);
    color: white;
    padding: 18px 22px;
    border-radius: 22px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 32px rgba(255,102,0,0.35);
    margin-top: 18px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.ck-pay-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}
.ck-pay-btn:active {
    transform: scale(0.97);
    box-shadow: 0 6px 16px rgba(255,102,0,0.3);
}
.ck-pay-btn-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;
}

/* ═══════════════════════════════
   BILLING MODAL
   ═══════════════════════════════ */
.ck-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.ck-modal-overlay.ck-modal-open { opacity: 1; }
.ck-modal-sheet {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 20px 22px 34px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.ck-modal-open .ck-modal-sheet {
    transform: translateY(0);
}
.ck-modal-handle {
    width: 40px; height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto 18px;
}

/* Modal inputs */
.ck-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}
.ck-input-field {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    outline: none;
    background: #fafafa;
    transition: 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.ck-input-field:focus {
    border-color: #ff6600;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}
.ck-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #ff6600, #ff8800);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.ck-btn-primary:active { transform: scale(0.97); }
.ck-btn-secondary {
    flex: 1;
    background: #f5f5f5;
    color: #374151;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.ck-btn-secondary:active { transform: scale(0.97); }
.ck-btn-sm {
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}
.ck-billing-skip {
    text-align: center;
    margin-top: 16px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ck-billing-skip:active { color: #64748b; }

/* ═══════════════════════════════
   COMPATIBILITY / OVERRIDES
   ═══════════════════════════════ */
/* Keep old .co-row working for summary rows that reference them */
#view-checkout .co-row { display: none; }
#view-checkout .co-total-row { display: none; }
#view-checkout .co-total-amount { display: none; }

/* Ensure priority-box old class still works */
#view-checkout .priority-box.checkout-priority-box { display: none; }

/* Make sure old checkout-addr-card styling doesn't break new layout */
#view-checkout .checkout-addr-card {
    border: none;
    margin: 0;
    padding: 0;
}
/* ═══════════════════════════════
   LOCKED CARD (Tarjeta disabled)
   ═══════════════════════════════ */
.ck-pay-card-locked {
    cursor: not-allowed;
    opacity: 0.72;
}
.ck-pay-card-locked:active {
    transform: none !important;
}
.ck-pay-card-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2;
    border-radius: 12px;
    pointer-events: none;
}
.ck-pay-card-locked-badge {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
}
.ck-pay-card-locked-badge i {
    font-size: 0.58rem;
}

/* ═══════════════════════════════
   CARD BLOCKED TOAST / MODAL
   ═══════════════════════════════ */
.ck-card-blocked-toast {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px 22px 32px;
    z-index: 99999;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.ck-card-blocked-toast.ck-toast-show {
    transform: translateY(0);
}
.ck-card-blocked-toast-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.ck-card-blocked-toast-bg.ck-toast-show {
    opacity: 1;
    pointer-events: auto;
}
/* =========================================================
   BOTÓN REPETIR VERDE — TARJETAS ÚLTIMA COMPRA
   ========================================================= */
.reorder-repeat-btn-green {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}
.reorder-repeat-btn-green:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}
.reorder-repeat-btn-green i { font-size: 0.75rem; }

/* =========================================================
   FAQ PRO — CENTRO DE AYUDA NUEVO
   ========================================================= */
.faq-item-pro:last-child > div:first-child {
    border-bottom: none !important;
}
.faq-pro-answer {
    background: #f8fafc;
}

/* =========================================================
   BOTÓN PEDIR — PLATILLOS FAVORITOS
   ========================================================= */
.fdish-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 10px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
    transition: transform 0.15s;
    margin-top: 6px;
}
.fdish-add-btn:active { transform: scale(0.96); }
.fdish-add-btn-done {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 3px 10px rgba(22,163,74,0.3) !important;
}

/* =========================================================
   VARIANTES EN MODAL DE PRODUCTO
   ========================================================= */
.pm-variant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 13px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pm-variant-row.pm-variant-selected {
    background: #fff7ed;
    border-color: #ff6600;
}
.pm-variant-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.pm-variant-radio.pm-radio-active {
    border-color: #ff6600;
    background: #ff6600;
}

/* Botón "Ver opciones" en tarjeta de menú */
.variant-select-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.73rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255,102,0,0.25);
    transition: transform 0.15s;
    white-space: nowrap;
}
.variant-select-btn:active { transform: scale(0.95); }

/* =========================================================
   FIJACIÓN QUIRÚRGICA: BARRA INFERIOR DEL MODAL DE PRODUCTO
   ========================================================= */
/* 1. El contenedor principal del modal no debe hacer scroll total */
.pm-modal-content, 
#product-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh !important; /* Ocupa máximo el 90% de la pantalla */
    overflow: hidden !important; /* Corta el scroll general */
    padding: 0 !important; /* Quitamos el padding para que el footer llegue a los bordes */
    background: #ffffff;
}

/* 2. El área de "Completar tu pedido", variantes y extras (Esta es la que hace scroll) */
.pm-modal-body {
    flex: 1;
    overflow-y: auto; /* El scroll solo sucede aquí adentro */
    padding: 20px;
    padding-bottom: 40px; /* Espacio para que el contenido no quede escondido bajo el botón */
}

/* 3. LA MAGIA: El Footer estático pegado abajo como roca */
.modal-bottom-fixed {
    position: sticky; 
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.08); /* Sombra elegante hacia arriba */
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 9999;
    box-sizing: border-box;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    /* Respetar la barrita de inicio de los iPhone (Safe Area) */
    padding-bottom: calc(15px + env(safe-area-inset-bottom)); 
}

/* 4. Estilos para alinear perfectamente el Más/Menos y el Botón Total */
.modal-bottom-fixed .qty-control-pro {
    margin: 0 !important;
    flex-shrink: 0;
    height: 50px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.modal-bottom-fixed .btn-primary, 
.modal-bottom-fixed button {
    flex: 1 !important; /* El botón ocupa todo el espacio sobrante */
    margin: 0 !important;
    height: 50px;
    font-size: 1.1rem !important;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff6600; /* Tu color naranja Rapi */
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL VIEW — DISEÑO PROFESIONAL RAPI DELIVERY v2
   ═══════════════════════════════════════════════════════════════ */

/* ── ESTRUCTURA: flex column fija al 100% de pantalla ── */
.prd-view {
    display: none;       /* navTo() lo cambia a flex */
    padding: 0;
    background: #f4f6f9;
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;    /* EL SCROLL va DENTRO de .prd-scroll-area */
    flex-direction: column;
}

/* Zona scrolleable — todo excepto el footer */
.prd-scroll-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* ── HERO IMAGE ── */
.prd-hero {
    position: relative;
    width: 100%;
    height: 270px;
    flex-shrink: 0;
    overflow: hidden;
    background: #dde2e8;
    /* Bordes redondeados en la parte inferior */
    border-radius: 0 0 28px 28px;
}

.prd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prd-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.20) 0%,
        transparent 40%,
        rgba(0,0,0,0.50) 100%
    );
    border-radius: 0 0 28px 28px;
}

/* Botón volver — círculo blanco con blur */
.prd-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    color: #0f172a;
    font-size: 0.9rem;
    transition: transform 0.15s;
    z-index: 5;
}
.prd-back-btn:active { transform: scale(0.90); }

/* ── BODY (debajo del hero) ── */
.prd-body {
    padding: 14px 16px 16px;
}

/* Header card — nombre, precio y descripción en una sola tarjeta */
.prd-header-card {
    background: white;
    border-radius: 22px;
    padding: 18px 18px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

/* Fila superior: nombre a la izquierda, precio a la derecha */
.prd-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.prd-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
    flex: 1;
}

/* Precio en pill naranja junto al nombre */
.prd-price-pill {
    background: #fff3e8;
    border: 1.5px solid #ffd5b0;
    border-radius: 50px;
    padding: 5px 13px;
    flex-shrink: 0;
    align-self: center;
}
.prd-price-pill-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #ff6600;
    white-space: nowrap;
}

.prd-desc {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── SECCIONES GENÉRICAS ── */
.prd-section {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.prd-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.prd-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prd-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.2;
}
.prd-section-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── TEXTAREA NOTAS ── */
.prd-textarea {
    width: 100%;
    padding: 13px 15px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.84rem;
    color: #1e293b;
    resize: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}
.prd-textarea-focus,
.prd-textarea:focus {
    border-color: #ff6600 !important;
    background: #fffaf7;
}

/* ── RECOMENDACIONES ── */
.prd-recom-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.prd-recom-row::-webkit-scrollbar { display: none; }

/* Cards recomendados */
#pm-recommendations .pm-recom-card {
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    background: white;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#pm-recommendations .pm-recom-card:active { transform: scale(0.96); }
#pm-recommendations .pm-recom-card.addon-selected {
    border-color: #ff6600;
    box-shadow: 0 4px 16px rgba(255,102,0,0.18);
}
#pm-recommendations .pm-recom-img-wrap {
    height: 80px;
    background: #f8fafc;
    overflow: hidden;
}
#pm-recommendations .pm-recom-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#pm-recommendations .pm-recom-info {
    padding: 8px 9px 10px;
}
#pm-recommendations .pm-recom-info div:first-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* ── VARIANTES ── */
.pm-variant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}
.pm-variant-row:active { transform: scale(0.98); }
.pm-variant-row.pm-variant-selected {
    background: #fff7ed;
    border-color: #ff6600;
    box-shadow: 0 4px 14px rgba(255,102,0,0.12);
}
.pm-variant-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    background: transparent;
}
.pm-variant-radio.pm-radio-active {
    background: #ff6600;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,0.15);
}

/* ══════════════════════════════════════════════════════
   FOOTER ESTÁTICO — pegado al fondo, NO hace scroll
   ══════════════════════════════════════════════════════ */
.prd-footer {
    /* NO es fixed — es parte del flex column de .prd-view */
    flex-shrink: 0;
    background: white;
    border-top: 1px solid #edf0f4;
    padding: 14px 18px max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 28px rgba(0,0,0,0.09);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Control de cantidad */
.prd-qty-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prd-qty-btn {
    width: 46px;
    height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.prd-qty-btn:active { background: #f1f5f9; }
.prd-qty-minus { color: #64748b; }
.prd-qty-plus { color: #ff6600; }

.prd-qty-num {
    min-width: 32px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: #0f172a;
}

/* Botón Agregar al carrito — dos líneas: texto arriba, precio abajo */
.prd-add-btn {
    flex: 1;
    height: 56px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(255,102,0,0.42);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}
.prd-add-btn:active {
    box-shadow: 0 2px 10px rgba(255,102,0,0.30);
}

/* Interior del botón — dos líneas centradas */
.prd-add-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
}

.prd-add-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    opacity: 0.92;
    letter-spacing: 0.3px;
    line-height: 1;
}

.prd-add-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prd-add-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    line-height: 1;
}


/* Sobreescribir display:block del .view.active para la vista de producto */
#view-product-detail.active,
#view-product-detail {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    max-height: 100dvh;
    padding: 0 !important;
}

/* Cuando no está activa, ocultar */
#view-product-detail:not(.active) {
    display: none !important;
}
/* ═══════════════════════════════════════════════════════════
   NUEVO DISEÑO RESTAURANTE — ESTILO PEDIDOSYA / POLLOS DAYCI
   ═══════════════════════════════════════════════════════════ */

/* ── VIEW RESTAURANTE ── */
.rapi-rest-view {
    padding: 0 !important;
    background: #fff !important;
}

/* ── APP BAR ── */
.rapi-rest-appbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.rapi-rest-appbar-title {
    flex: 1;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rapi-rest-back {
    width: 38px; height: 38px;
    border: none; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #1e293b; font-size: 0.9rem; cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.rapi-rest-back:active { background: #e2e8f0; transform: scale(0.92); }
.rapi-rest-appbar-actions {
    display: flex; gap: 6px; flex-shrink: 0;
}
.rapi-rest-action-btn {
    width: 36px; height: 36px;
    border: none; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #374151; font-size: 0.85rem; cursor: pointer;
    transition: background 0.15s;
}
.rapi-rest-action-btn:active { background: #e2e8f0; transform: scale(0.92); }
.rapi-rest-action-btn.fav-active { color: #ef4444; background: #fee2e2; }

/* ── BUSCADOR INTERNO ── */
.rapi-rest-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 62px;
    z-index: 199;
}
.rapi-rest-search-bar i { color: #94a3b8; font-size: 0.9rem; }
.rapi-rest-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: #1e293b;
    background: transparent;
    font-family: 'Inter', sans-serif;
}
.rapi-rest-search-bar button {
    background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 0.9rem;
}

/* ── PANEL OPCIONES 3 PUNTOS ── */
.rapi-rest-options-panel {
    position: absolute;
    top: 58px; right: 14px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    z-index: 500;
    overflow: hidden;
    min-width: 190px;
    border: 1px solid #f1f5f9;
    animation: fadeInDown 0.18s ease;
}
@keyframes fadeInDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.rapi-rest-option-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    font-size: 0.88rem; font-weight: 600; color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}
.rapi-rest-option-item:last-child { border-bottom: none; }
.rapi-rest-option-item:active { background: #f8fafc; }
.rapi-rest-option-item i { color: #ff6600; width: 16px; text-align: center; }

/* ── COVER ── */
.rapi-rest-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

/* ── HEADER CARD ── */
.rapi-rest-header-card {
    background: white;
    border-radius: 22px 22px 0 0;
    margin-top: -24px;
    padding: 20px 16px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.rapi-rest-logo-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.rapi-rest-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    background: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.rapi-rest-name-col { flex: 1; }
.rapi-rest-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
}
.rapi-rest-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.rapi-delivery-pill {
    background: #0f172a;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: 0.3px;
}
.rapi-delivery-pill i { font-size: 0.65rem; }

/* Status pill */
.rapi-rest-status-pill {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
.rapi-rest-status-pill.rapi-status-open {
    background: #dcfce7; color: #15803d;
}
.rapi-rest-status-pill.rapi-status-closed {
    background: #fee2e2; color: #b91c1c;
}
.rapi-rest-status-pill.rapi-status-closing {
    background: #fef3c7; color: #b45309;
    animation: pulseStatusPill 1.8s infinite;
}
@keyframes pulseStatusPill {
    0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}
.rapi-status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}

/* Meta row */
.rapi-rest-meta-row {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.78rem; color: #64748b; font-weight: 600;
}
.rapi-rest-meta-row i { color: #ff6600; margin-right: 3px; }
.rapi-shipping-normal { color: #64748b; }
.rapi-shipping-plus { color: #ff6600; font-weight: 800; }
.rapi-plus-badge-inline {
    background: #ff6600; color: white; font-size: 0.6rem;
    font-weight: 900; padding: 1px 6px; border-radius: 8px; margin: 0 2px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.rapi-discount-label { color: #16a34a; font-weight: 800; }

/* ── FILTROS ── */
.rapi-filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 14px;
    scrollbar-width: none;
}
.rapi-filters-scroll::-webkit-scrollbar { display: none; }
.rapi-filter-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
}
.rapi-filter-chip.active {
    background: #0f172a;
    border-color: #0f172a;
    color: white;
}
.rapi-filter-chip:active { transform: scale(0.95); }
.rapi-filter-icon { font-size: 1rem; }

/* ── BANNERS DE ESTADO ── */
.rapi-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 0 16px 12px;
    border-radius: 14px;
}
.rapi-status-banner-closed {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.rapi-status-banner-closing {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
}
.rapi-status-banner-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.rapi-closing-pulse { animation: pulseWarning 2s infinite; }
.rapi-status-banner-title {
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1.2;
}
.rapi-status-banner-desc {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

/* ── TARJETAS DEL MENÚ — ESTILO PEDIDOSYA ── */
.rapi-menu-card-v {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.rapi-menu-card-v:last-child { border-bottom: none; }
.rapi-menu-card-v:active { background: #fafafa; }

.rapi-card-body-v {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rapi-card-top-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rapi-card-top-label i { color: #f59e0b; }
.rapi-card-title-v {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.rapi-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rapi-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}
.rapi-card-price-old {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 5px;
}

/* Wrapper de imagen tarjeta vertical */
.rapi-card-img-wrap-v {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.rapi-card-img-v {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Botón + sobre la imagen (esquina inferior derecha) */
.rapi-img-add-btn {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 30px; height: 30px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.15s;
    z-index: 5;
}
.rapi-img-add-btn:active { transform: scale(0.88); background: #f1f5f9; }
.rapi-img-add-btn.rapi-img-add-active {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
}

/* Corazón favorito sobre imagen */
.rapi-fav-heart-btn {
    position: absolute;
    top: 6px; right: 6px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.9);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: #94a3b8; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 5;
    transition: all 0.15s;
}
.rapi-fav-heart-btn:active { transform: scale(0.85); }
.rapi-fav-heart-btn .rapi-fav-active,
.rapi-fav-heart-btn .fa-heart { color: #ef4444; }

/* Badge cerrado sobre imagen */
.rapi-img-closed-badge {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: white;
    z-index: 5;
}

/* Badge de cantidad en imagen */
.rapi-qty-badge-on-img {
    position: absolute;
    top: 5px; left: 5px;
    min-width: 22px; height: 22px;
    background: #ff6600; color: white;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 900;
    padding: 0 6px;
    z-index: 6;
}

/* Badge más vendido/oferta sobre imagen */
.rapi-img-badge-top {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(245,158,11,0.92);
    color: white; font-size: 0.6rem; font-weight: 800;
    padding: 2px 7px; border-radius: 8px;
    z-index: 4;
}
.rapi-img-badge-offer {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(239,68,68,0.92);
    color: white; font-size: 0.6rem; font-weight: 800;
    padding: 2px 7px; border-radius: 8px;
    z-index: 4;
}

/* ── TARJETA HORIZONTAL ── */
.rapi-menu-card-h {
    min-width: 140px; max-width: 140px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    display: flex; flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.rapi-card-img-wrap-h {
    width: 100%; height: 100px;
    position: relative; overflow: hidden; background: #f1f5f9;
}
.rapi-card-img-h { width: 100%; height: 100%; object-fit: cover; }
.rapi-card-body-h { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.rapi-card-title-h {
    font-size: 0.82rem; font-weight: 700; color: #1e293b;
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── TÍTULO DE CATEGORÍA EN MENÚ ── */
.menu-category-title-pro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin: 20px 0 10px;
    padding: 0;
}

/* ── MINIBAR ESTILO PEDIDOSYA ── */
.mini-cart {
    position: fixed !important;
    bottom: 90px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(120px) !important;
    width: calc(100% - 32px) !important;
    max-width: 448px !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: 80;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1) !important;
    overflow: visible !important;
}
.mini-cart::before { display: none !important; }
.mini-cart.visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}
.rapi-minibar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ff6600;
    border-radius: 50px;
    padding: 12px 12px 12px 20px;
    box-shadow: 0 10px 30px rgba(255,102,0,0.4);
    cursor: pointer;
    transition: transform 0.15s;
}
.rapi-minibar-inner:active { transform: scale(0.97); }
.rapi-minibar-left { display: flex; flex-direction: column; }
.rapi-minibar-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.rapi-minibar-total {
    font-size: 1.15rem;
    font-weight: 900;
    color: white;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}
.rapi-minibar-btn {
    background: white;
    color: #ff6600;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 11px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

/* ── MODAL INFO LOCAL ── */
.rapi-info-modal-card {
    background: white;
    width: 100%; max-width: 480px;
    border-radius: 28px 28px 0 0;
    padding: 14px 0 env(safe-area-inset-bottom, 24px);
    max-height: 88vh;
    overflow-y: auto;
    animation: slideUpModal 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
.rapi-info-modal-handle {
    width: 40px; height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto 18px;
}
.rapi-info-modal-close {
    display: block;
    width: calc(100% - 40px);
    margin: 4px 20px 0;
    padding: 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   MINIBAR FIJA EN EL FONDO — ESTILO PEDIDOSYA NARANJA
   ═══════════════════════════════════════════════════════════ */

/* Override completo del mini-cart para hacerlo fijo */
#mini-cart.mini-cart {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: 81;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease !important;
    overflow: visible !important;
}
#mini-cart.mini-cart::before { display: none !important; }
#mini-cart.mini-cart.visible {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    display: block !important;
}

/* Barra interior naranja estilo PedidosYa */
.rapi-minibar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ff6600;
    padding: 14px 16px 14px 20px;
    margin: 0 12px 12px;
    border-radius: 18px;
    box-shadow: 0 -4px 20px rgba(255,102,0,0.25), 0 8px 24px rgba(255,102,0,0.3);
    cursor: pointer;
    transition: transform 0.15s;
    border: none;
}
.rapi-minibar-inner:active { transform: scale(0.98); }

.rapi-minibar-left { display: flex; flex-direction: column; gap: 1px; }
.rapi-minibar-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rapi-minibar-total {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.rapi-minibar-btn {
    background: white;
    color: #ff6600;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN "REPETIR LO QUE YA PEDISTE"
   ═══════════════════════════════════════════════════════════ */
.rapi-repeat-section {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rapi-repeat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.rapi-repeat-icon { font-size: 1.3rem; }
.rapi-repeat-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
}
.rapi-repeat-sub {
    font-size: 0.72rem;
    color: #92400e;
    font-weight: 600;
    margin-top: 1px;
}
.rapi-repeat-list { display: flex; flex-direction: column; gap: 10px; }
.rapi-repeat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #fed7aa;
    cursor: pointer;
    transition: transform 0.15s;
}
.rapi-repeat-item:active { transform: scale(0.97); }
.rapi-repeat-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}
.rapi-repeat-info { flex: 1; min-width: 0; }
.rapi-repeat-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rapi-repeat-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ff6600;
    margin-top: 2px;
}
.rapi-repeat-btn {
    width: 32px; height: 32px;
    background: #ff6600;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,102,0,0.3);
    transition: transform 0.15s;
}
.rapi-repeat-btn:active { transform: scale(0.85); }
/* ═══════════════════════════════════════════════════════════════
   VISTA BÚSQUEDA — NUEVO DISEÑO INMEDIATO
   ═══════════════════════════════════════════════════════════════ */

.rapi-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.rapi-search-back {
    width: 38px; height: 38px;
    border: none; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #1e293b; font-size: 0.9rem; cursor: pointer; flex-shrink: 0;
}
.rapi-search-back:active { transform: scale(0.9); }
.rapi-search-input-wrap {
    flex: 1; display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px;
    padding: 10px 14px;
}
.rapi-search-ico { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; }
.rapi-search-input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 0.94rem; color: #1e293b; font-family: 'Inter', sans-serif;
}
.rapi-search-clear {
    background: none; border: none; color: #94a3b8; cursor: pointer; padding: 0;
    font-size: 0.9rem; flex-shrink: 0;
}

.rapi-search-section { padding: 16px 16px 4px; }
.rapi-search-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.88rem; color: #0f172a;
    margin-bottom: 12px;
}

/* LOGOS SCROLL HORIZONTAL */
.rapi-search-logos-scroll {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: none;
}
.rapi-search-logos-scroll::-webkit-scrollbar { display: none; }
.rapi-slogo-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex-shrink: 0; cursor: pointer;
}
.rapi-slogo-wrap {
    width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
    border: 2px solid #f1f5f9; background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.15s;
}
.rapi-slogo-wrap:active { transform: scale(0.92); }
.rapi-slogo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rapi-slogo-closed { opacity: 0.5; }
.rapi-slogo-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.7); color: white;
    font-size: 0.5rem; font-weight: 800; text-align: center;
    padding: 2px; text-transform: uppercase;
}
.rapi-slogo-name {
    font-size: 0.7rem; font-weight: 700; color: #374151;
    text-align: center; max-width: 64px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* FILTROS CATEGORÍA — cuadrícula */
.rapi-search-cats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.rapi-scat-chip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px; border-radius: 14px; cursor: pointer;
    transition: transform 0.15s;
}
.rapi-scat-chip:active { transform: scale(0.94); }
.rapi-scat-emoji { font-size: 1.5rem; }
.rapi-scat-label {
    font-size: 0.72rem; font-weight: 700; color: #374151; text-align: center;
}

/* PLATOS RECOMENDADOS */
.rapi-sreco-card {
    display: flex; align-items: center; gap: 12px;
    background: white; border-radius: 16px; padding: 10px 12px;
    margin-bottom: 8px; border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer; transition: transform 0.15s;
}
.rapi-sreco-card:active { transform: scale(0.98); }
.rapi-sreco-img-wrap {
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    flex-shrink: 0; background: #f1f5f9;
}
.rapi-sreco-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rapi-sreco-body { flex: 1; min-width: 0; }
.rapi-sreco-store {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.68rem; color: #64748b; font-weight: 600; margin-bottom: 3px;
}
.rapi-sreco-store img {
    width: 16px; height: 16px; border-radius: 4px; object-fit: cover;
}
.rapi-sreco-name {
    font-size: 0.9rem; font-weight: 700; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 3px;
}
.rapi-sreco-price { font-size: 0.85rem; font-weight: 800; color: #ff6600; }
.rapi-sreco-add {
    width: 34px; height: 34px; flex-shrink: 0;
    background: #ff6600; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 4px 10px rgba(255,102,0,0.3);
    transition: transform 0.15s;
}
.rapi-sreco-add:active { transform: scale(0.85); }

/* RESULTADOS DE BÚSQUEDA ACTIVA */
.rapi-sres-store-block {
    background: white; border-radius: 18px; margin-bottom: 12px;
    border: 1px solid #f1f5f9; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rapi-sres-store-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid #f8fafc;
    cursor: pointer; background: #fafafa;
}
.rapi-sres-store-logo {
    width: 36px; height: 36px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0; background: #f1f5f9;
}
.rapi-sres-store-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 0.9rem; color: #0f172a; flex: 1;
}
.rapi-sres-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid #f8fafc;
    cursor: pointer;
}
.rapi-sres-item:last-child { border-bottom: none; }
.rapi-sres-item-img {
    width: 56px; height: 56px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0; background: #f1f5f9;
}
.rapi-sres-item-info { flex: 1; min-width: 0; }
.rapi-sres-item-name {
    font-size: 0.88rem; font-weight: 700; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rapi-sres-item-price { font-size: 0.82rem; font-weight: 800; color: #ff6600; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   SLIDER "DESLIZA PARA ORDENAR" — CHECKOUT
   ═══════════════════════════════════════════════════════════════ */

.rapi-swipe-pay-wrap {
    margin: 8px 0 0;
}
.rapi-swipe-pay-track {
    position: relative;
    background: #f1f5f9;
    border-radius: 50px;
    height: 64px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rapi-swipe-pay-bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 76px;
    pointer-events: none;
}
.rapi-swipe-pay-bg-text > span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: 1rem; color: #0f172a;
}
.rapi-swipe-hint {
    font-size: 0.68rem; font-weight: 700;
    color: #94a3b8; display: flex; align-items: center; gap: 2px;
    animation: hintPulse 1.8s infinite;
}
.rapi-swipe-hint i { font-size: 0.6rem; }
@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}
.rapi-swipe-pay-thumb {
    position: absolute;
    left: 4px; top: 4px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    cursor: grab;
    box-shadow: 0 6px 18px rgba(255,102,0,0.45);
    z-index: 2;
    touch-action: none;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.rapi-swipe-pay-thumb:active { cursor: grabbing; transform: scale(1.08); }
/* ═══════════════════════════════════════════════════════════
   BUSCADOR MEJORADO — CUADRÍCULA RESTAURANTES + FILTROS
   ═══════════════════════════════════════════════════════════ */

/* Scroll horizontal de chips de filtro de comida */
#search-food-filter-row {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
#search-food-filter-row::-webkit-scrollbar { display: none; }

/* Chip de filtro de comida: hover */
#search-food-filter-row > div:active {
    transform: scale(0.93);
}

/* Cuadrícula de restaurantes — 2 columnas fluidas */
#search-resto-grid {
    grid-auto-rows: auto;
}

/* Card de restaurante en cuadrícula */
#search-resto-grid > div {
    position: relative;
}
#search-resto-grid > div:active {
    transform: scale(0.97) !important;
}

/* Scroll horizontal de logos — mejorado */
#search-logos-row .rapi-slogo-item {
    animation: fadeInUp 0.25s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Cards de la cuadrícula — animación de entrada escalonada */
#search-resto-grid > div:nth-child(1)  { animation: fadeInUp 0.18s 0.00s ease both; }
#search-resto-grid > div:nth-child(2)  { animation: fadeInUp 0.18s 0.04s ease both; }
#search-resto-grid > div:nth-child(3)  { animation: fadeInUp 0.18s 0.08s ease both; }
#search-resto-grid > div:nth-child(4)  { animation: fadeInUp 0.18s 0.12s ease both; }
#search-resto-grid > div:nth-child(5)  { animation: fadeInUp 0.18s 0.16s ease both; }
#search-resto-grid > div:nth-child(6)  { animation: fadeInUp 0.18s 0.20s ease both; }
#search-resto-grid > div:nth-child(7)  { animation: fadeInUp 0.18s 0.24s ease both; }
#search-resto-grid > div:nth-child(8)  { animation: fadeInUp 0.18s 0.28s ease both; }

/* Platos recomendados en buscador — animar */
#search-reco-list .rapi-sreco-card {
    animation: fadeInUp 0.22s ease both;
}

/* Vista registro — quitar gap superior del form cuando no hay social buttons */
#view-register .reg-field-group:first-child {
    margin-top: 0;
}

/* Modal de credenciales — scrollbar */
#rapi-creds-modal > div {
    overflow-y: auto;
    max-height: 92vh;
    -webkit-overflow-scrolling: touch;
}

/* Botón INICIAR SESIÓN CON GOOGLE en login — ícono alineado */
#view-login .rapi-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   BUSCADOR PRO — ANIMACIONES Y ESTILOS FINALES
   ═══════════════════════════════════════════════════════════ */
@keyframes _sfadeIn {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes _pulse {
    0%,100% { opacity:1; }
    50%      { opacity:0.4; }
}

/* Scroll sin scrollbar en logos y chips del buscador */
#sfchip-row::-webkit-scrollbar,
#sresto-logos::-webkit-scrollbar { display:none; }

/* Card restaurante en grid: efecto tap */
#sresto-grid > div:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Chip activo pulse suave */
#sfchip-row > div[style*="background:#ff6600"] {
    box-shadow: 0 4px 14px rgba(255,102,0,0.3);
}

/* ═══════════════════════════════════════════════════════════
   BOTÓN CONFIRMAR PEDIDO — ESTILOS EXTRA
   ═══════════════════════════════════════════════════════════ */
#btn-confirmar-pedido:active {
    transform: scale(0.97) !important;
    box-shadow: 0 4px 14px rgba(255,102,0,0.28) !important;
}

/* ═══════════════════════════════════════════════════════════
   VISTAS LOGIN OPTIONS Y LOGIN EMAIL
   ═══════════════════════════════════════════════════════════ */
#view-login-options, #view-login-email {
    position: relative;
    overflow: hidden;
}
#view-login-options button:active,
#view-login-email button:active {
    opacity: 0.88;
}

/* =================================================================
   🚀 RESPONSIVIDAD HOME Y EXPLORAR (DESKTOP MODE)
   ================================================================= */
@media (min-width: 769px) {
    /* Centramos el cuerpo del Home */
    .home-body-scroll {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px 120px;
    }

    /* Hero Naranja Espectacular */
    .home-hero-header {
        border-radius: 0 0 50px 50px;
    }
    .home-hero-promo-row {
        max-width: 1200px;
        margin: 0 auto;
        min-height: 300px; /* Más alto en PC */
        padding: 20px 50px;
    }
    .home-hero-promo-text { max-width: 50%; }
    .home-hero-promo-title { font-size: 2.8rem !important; line-height: 1.1; margin-bottom: 10px; }
    .home-hero-promo-title span { font-size: 3.5rem !important; }
    .home-hero-promo-sub { font-size: 1.1rem !important; }
    
    .home-hero-promo-img-wrap { 
        width: 380px !important; 
        height: 380px !important; 
        right: 10% !important; 
        bottom: -50px !important; 
    }

    /* Cuadrículas de PC (Restaurantes y Súper) */
    .hpya-cats-grid-top { 
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 30px;
    }
    .hpya-cat-big { height: 200px; border-radius: 24px; }
    .hpya-cats-grid-bottom { 
        justify-content: center !important; 
        gap: 40px !important; 
        padding-top: 20px;
    }
    .hpya-cat-small { min-width: 100px !important; }
    .hpya-cat-small-icon { width: 80px !important; height: 80px !important; }
    .hpya-cat-small-icon i { font-size: 2rem !important; }

    /* Grillas a 3 y 4 columnas en lugar de scroll horizontal */
    #algo-open-container { 
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 25px; 
    }
    #directory-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    .dir-item { border-radius: 16px; border: 1px solid #e2e8f0; }
    
    /* Buscador centrado */
    .home-hero-search {
        max-width: 800px;
        margin: 20px auto 40px;
        padding: 18px 25px;
    }
    .home-hero-search-input { font-size: 1.1rem; }
}