@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4); /* NUEVO: Para efectos de neón */
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    padding-bottom: 120px;
}

/* --- HERO HEADER --- */
.hero-wrapper {
    position: relative;
    background: var(--bg-color);
    margin-bottom: 0;
}

.hero-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 1; 
    mask-image: none;
    -webkit-mask-image: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ajuste de posición para el nuevo tamaño */
.hero-content {
    position: relative;
    margin-top: -85px; /* 🔥 Subimos más (antes -75px) para centrar el logo grande */
    text-align: center;
    padding: 0 1rem 1.5rem;
    z-index: 10;
}

.logo-container { /* Contenedor para alinear logo */
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Logo más grande e imponente */
.hero-logo {
    width: 160px;  /* 🔥 Antes 120px */
    height: 160px; /* 🔥 Antes 120px */
    
    border-radius: 50%;
    object-fit: cover;
    
    /* Borde más grueso para separar del fondo */
    border: 5px solid var(--bg-color); 
    
    /* Sombra más intensa para efecto 3D */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    
    background: #000;
    transition: transform 0.3s ease;
}

/* Efecto opcional: Crece un poquito al pasar el mouse */
.hero-logo:hover {
    transform: scale(1.05);
}

.hero-info { margin-top: 10px; }

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 5px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 15px auto;
}

/* --- NUEVO: BUSCADOR ESTILIZADO --- */
.search-container {
    position: relative;
    max-width: 90%;
    margin: 15px auto 15px; /* Ajustado margen */
}
.search-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08); /* Fondo sutil */
    border: 1px solid var(--border);
    padding: 12px 20px 12px 45px;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}
.search-container input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.1rem;
}

/* --- CONTACTO Y BOTONES --- */
.hero-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.badge-address {
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.btn-pill {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
    border: 1px solid transparent;
}
.btn-pill:active { transform: scale(0.95); }

.btn-map {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.btn-whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
}

/* --- NAVEGACIÓN STICKY --- */
.nav-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95); /* Un poco más opaco para legibilidad */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 1rem;
    scrollbar-width: none;
    justify-content: flex-start; 
}
.category-nav::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .category-nav { justify-content: safe center; }
}

.nav-link {
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active {
    background: #38bdf8;
    color: #0f172a;     
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    transform: scale(1.05);
}

/* --- MENU GRID --- */
.menu-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.category-section {
    scroll-margin-top: 160px; /* Ajustado para compensar header sticky + buscador */
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--accent);
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    /* NUEVO: Fuente Tech para títulos */
    font-family: 'Rajdhani', sans-serif; 
}

.dish-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* TARJETA GLASSMORPHISM (MEJORADA) */
.dish-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative; /* Necesario para posicionar badges */
}

/* Efecto Glass opcional (si quieres activarlo en el futuro) */
.dish-card.glass-effect {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(5px);
}

.dish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dish-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.dish-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.dish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.dish-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-add-sm {
    background: var(--accent);
    color: #0b1120;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
    transition: 0.2s;
}
.btn-add-sm:active { transform: scale(0.95); }

/* --- ESTILOS PARA BADGES (VERSIÓN NEÓN INTENSO) --- */
.card-badges {
    position: absolute;
    top: 8px;
    right: 8px; 
    left: auto; 
    display: flex;
    flex-direction: column;
    gap: 5px; /* Un poco más separados */
    z-index: 5;
    align-items: flex-end;
}

.tag-holo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800; /* Letra más gruesa (Extra Bold) */
    font-size: 0.7rem; /* Un pelín más grande */
    padding: 3px 8px; /* Más "gorditos" */
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Sombra en el texto para asegurar lectura sobre fondos claros */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    border: 1px solid transparent; /* Preparamos el borde */
    backdrop-filter: blur(2px); /* Un toque de vidrio */
}

/* NEÓN VERDE (Nuevo) */
.tag-new { 
    background: rgba(16, 185, 129, 0.95); /* Casi sólido */
    border-color: #34d399; /* Borde verde brillante */
    /* Efecto Resplandor Neón Fuerte */
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7), inset 0 0 4px rgba(255,255,255,0.3);
}

/* NEÓN ÁMBAR/FUEGO (Popular) */
.tag-popular { 
    background: rgba(245, 158, 11, 0.95); /* Casi sólido */
    border-color: #fbbf24; /* Borde amarillo brillante */
    /* Efecto Resplandor Neón Fuerte */
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7), inset 0 0 4px rgba(255,255,255,0.3);
}

//* ========================
   BADGES Y OFERTAS (VERSION FINAL PULIDA)
   ======================== */

/* 1. Contenedor de la Imagen (Referencia) */
.dish-img-box {
    position: relative; 
    overflow: hidden; /* Asegura que nada se salga de las esquinas redondeadas */
    border-radius: 12px; /* Forzamos bordes redondeados en la caja */
}

/* 2. Etiqueta de OFERTA (Izquierda - Roja) */
.offer-sticker {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Rojo vibrante */
    color: white;
    font-weight: 800;
    font-size: 0.75rem; /* Un pelín más pequeño para que sea elegante */
    padding: 4px 10px;
    border-bottom-right-radius: 10px; /* Curva suave abajo */
    border-top-left-radius: 12px; /* Coincide con la esquina de la foto */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 20;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* 3. Etiquetas de ESTADO (Derecha - Top/Nuevo) */
.card-badges {
    position: absolute;
    top: 8px;   /* Un poco separado del borde superior */
    right: 8px; /* Un poco separado del borde derecho */
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 25; /* Encima de todo */
    align-items: flex-end;
    pointer-events: none; /* Para que no bloqueen clics en la foto */
}

/* Ajuste visual para los Badges Neón */
.tag-holo {
    font-size: 0.65rem; /* Compactos */
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Sombra para que se lea sobre cualquier foto */
}

/* --- Ajuste de Precios en el Footer --- */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.price-original {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    opacity: 0.8;
}

.price-offer {
    color: #ef4444 !important;
    font-weight: 800;
    font-size: 1.15rem; /* Destacamos más el precio final */
}
/* =========================================
   MODAL DE DETALLES (FOTO GRANDE)
   ========================================= */

/* Fondo oscuro desenfocado */
.detail-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); /* Dark Blue muy oscuro */
    backdrop-filter: blur(8px);
    z-index: 3000; /* Encima de todo */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* La tarjeta del modal */
.detail-modal {
    background: #1e293b;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-modal-overlay.active .detail-modal {
    transform: translateY(0);
}

/* Botón cerrar (X) */
.btn-close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}

/* Imagen Grande */
.detail-img-box {
    width: 100%;
    height: 250px;
    background: #0f172a;
}
.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido */
.detail-content {
    padding: 1.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.detail-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    max-width: 70%;
}


.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-height: 100px;
    overflow-y: auto;
}

/* Controles de Cantidad */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.qty-minus { background: rgba(255,255,255,0.1); color: #fff; }
.qty-plus { background: #fff; color: #000; }

.qty-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}


/* =========================================
   PISTA VISUAL PARA DETALLES (ICONO EN FOTO)
   ========================================= */

/* 1. Contenedor de la Imagen (CORREGIDO) */
.dish-img-box {
    position: relative; 
    overflow: hidden; 
    border-radius: 12px; 
    
    /* ⚠️ ESTO FALTABA: Medidas fijas para que no explote */
    width: 120px;
    height: 120px;
    flex-shrink: 0; /* Evita que se aplaste si hay mucho texto */
}

/* El Icono (seudo-elemento) */
.dish-img-box::after {
    content: '👁️';  /* O puedes usar '🔍' */
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    opacity: 0.8;
    transition: opacity 0.2s;
    pointer-events: none; /* Dejar que el clic pase a la imagen */
}

/* Brillar al pasar el mouse */
.dish-img-box:hover::after {
    opacity: 1;
    background: rgba(16, 185, 129, 0.8); /* Se pone verde al tocar */
}

/* Agregar en public/assets/css/menu.css */

.hero-contact {
    margin-bottom: 1.5rem; /* Separación entre los botones y el buscador */
}

.search-container {
    margin-top: 0; /* Quitamos margen superior si tenía */
}

/* Estilo para la Descripción del Restaurante */
.hero-desc {
    color: #cbd5e1; /* Gris claro legible */
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem; /* Separación con los botones de contacto */
    line-height: 1.5;
    max-width: 600px; /* Evita que el texto sea muy ancho en PC */
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* =========================================
   ANIMACIONES DE ENTRADA (SCROLL REVEAL)
   ========================================= */

/* Estado inicial: invisible y desplazado hacia abajo */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva suave */
    will-change: transform, opacity; /* Optimización para móviles */
}

/* Estado activo: visible y en su lugar */
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Retraso escalonado (Stagger) para grids */
/* Esto hace que si hay 2 platos juntos, el segundo tarde un poquito más */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }

/* =========================================
   SISTEMA DE FAVORITOS (VERSIÓN INLINE)
   ========================================= */

/* Contenedor flexible para Título + Corazón */
.dish-title-row {
    display: flex;
    justify-content: space-between; /* Título a la izq, Corazón a la der */
    align-items: flex-start; /* Alineados arriba por si el título tiene 2 líneas */
    gap: 10px;
    margin-bottom: 5px;
}

/* Ajuste del título para que ocupe el espacio */
.dish-name {
    flex: 1; /* Toma todo el espacio disponible */
    margin: 0; /* Quitamos márgenes extraños */
}

/* El botón del corazón (Estilo limpio) */
.fav-btn-inline {
    background: transparent; /* Sin fondo de burbuja */
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px; /* Tamaño del icono */
    height: 24px;
    flex-shrink: 0; /* Que no se aplaste */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

/* El icono SVG */
.fav-btn-inline svg {
    width: 22px;
    height: 22px;
    stroke: #64748b; /* Color gris suave por defecto */
    fill: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-btn-inline:hover {
    transform: scale(1.2); /* Efecto zoom al pasar mouse */
}

/* --- ESTADO ACTIVO (LIKED) --- */
.fav-btn-inline.liked svg {
    stroke: #ef4444; /* Borde rojo */
    fill: #ef4444;   /* Relleno rojo */
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)); /* Brillo neón */
    animation: heartBeat 0.4s forwards;
}

/* Animación de latido */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* =========================================
   SKELETON LOADERS (VERSIÓN ALTO CONTRASTE)
   ========================================= */

.skeleton-loader {
    position: absolute;
    inset: 0;
    background: #1e293b; /* Fondo base oscuro */
    /* El brillo ahora es mucho más claro para que se note */
    background: linear-gradient(90deg, #1e293b 25%, #64748b 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    z-index: 1;
    border-radius: inherit;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* IMPORTANTE: Aseguramos que la imagen tape al esqueleto al cargar */
.dish-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    position: relative;
}

.dish-img.loaded {
    opacity: 1;
}

/* =========================================
   ESTILOS DEL CARRITO (SIDEBAR)
   ========================================= */

/* Fondo oscuro (Overlay) */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

/* El Panel Lateral */
.cart-sidebar {
    position: fixed;
    top: 0; 
    right: 0;
    width: 100%;
    max-width: 400px; /* Ancho máximo en PC */
    
    /* 🔥 FIX MÓVIL: Usamos dvh para descontar la barra del navegador */
    height: 100vh; 
    height: 100dvh; 
    
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999; /* Z-Index alto */
    transform: translateX(100%); /* Oculto a la derecha */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 🔥 FLEXBOX VERTICAL: Clave para que el footer se quede abajo */
    display: flex;
    flex-direction: column;
    
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.cart-sidebar.active { transform: translateX(0); }

/* Header del Carrito */
.cart-header {
    flex-shrink: 0; /* No se encoge */
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
}
.cart-header h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.btn-close-cart {
    background: none; border: none; color: #94a3b8;
    font-size: 2rem; cursor: pointer; line-height: 1; padding: 10px;
}

/* Lista de Items (Scrollable) */
.cart-items-container {
    flex-grow: 1; /* 🔥 Ocupa todo el espacio disponible */
    overflow-y: auto; /* Scroll interno si hay muchos platos */
    padding: 15px;
    padding-bottom: 20px;
    
    /* Scroll suave */
    -webkit-overflow-scrolling: touch;
}

/* Tarjeta de Item en Carrito */
.cart-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item-img {
    width: 60px; height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.cart-item-info { flex: 1; }
.cart-item-title {
    color: #fff; font-size: 0.95rem; font-weight: 600;
    margin: 0 0 4px 0;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-variant { font-size: 0.8rem; color: #94a3b8; display: block; margin-bottom: 5px; }
.cart-item-price { color: #38bdf8; font-weight: bold; font-size: 0.95rem; }

/* Controles de Cantidad (+ -) */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.qty-btn-mini {
    width: 24px; height: 24px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.cart-qty-display { color: #fff; font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }

/* Botón Eliminar (Basurero) */
.btn-trash {
    background: none; border: none; color: #ef4444;
    cursor: pointer; padding: 5px; margin-left: auto;
}

/* Footer del Carrito */
.cart-footer {
    flex-shrink: 0; /* No se encoge */
    padding: 20px;
    /* Un poco de padding extra abajo para móviles con barra de gestos (iPhone) */
    padding-bottom: max(20px, env(safe-area-inset-bottom)); 
    background: rgba(15, 23, 42, 0.98); /* Fondo casi sólido */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; color: #cbd5e1;
}
.summary-row.total {
    font-size: 1.2rem; font-weight: bold; color: #fff;
    margin-top: 15px; margin-bottom: 20px;
    border-top: 1px dashed #334155; padding-top: 15px;
}
/* Ajuste para el botón de checkout */
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: #0f172a; border: none;
    padding: 16px; border-radius: 12px;
    font-weight: 800; font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    margin-top: 10px;
}

/* Mensaje Vacío */
.empty-cart-msg {
    text-align: center; color: #94a3b8; margin-top: 50px;
}
.btn-outline {
    margin-top: 15px;
    background: transparent; border: 1px solid #38bdf8;
    color: #38bdf8; padding: 8px 20px; border-radius: 8px; cursor: pointer;
}

/* =========================================
   LIMPIEZA DE CÓDIGO (SPRINT 5)
   Estilos extraídos del HTML/JS
   ========================================= */

/* --- Estilos del Sidebar del Carrito --- */
.summary-hint {
    color: #94a3b8;
    font-size: 0.9rem;
}

.empty-cart-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- Estilos de los Modales (Combos y Detalles) --- */
.modal-title-text {
    color: white;
    margin-bottom: 10px;
    margin-top: 0;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
}

.text-highlight {
    color: #38bdf8;
    font-weight: 600;
}

/* Lista de opciones en JS */
.no-options-msg {
    color: #cbd5e1;
    text-align: center;
    font-style: italic;
    padding: 10px;
}

.options-group-title {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* Inputs de radio personalizados */
.radio-accent {
    accent-color: #38bdf8;
    width: 18px;
    height: 18px;
}

/* --- Utilidades de visibilidad para JS --- */
.d-none { display: none !important; }
.d-flex-col { display: flex !important; flex-direction: column; gap: 10px; }

/* =========================================
   ESTILOS CHECKOUT Y MAPA
   ========================================= */

.checkout-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000; /* Encima de todo */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.checkout-modal-overlay.active { opacity: 1; visibility: visible; }

.checkout-modal {
    width: 90%; max-width: 800px;
    background: #0f172a; border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px; padding: 0; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    max-height: 90vh;
}

.checkout-header {
    padding: 15px 20px; background: rgba(30, 41, 59, 0.5);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-close-checkout { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.checkout-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    padding: 20px; overflow-y: auto;
}

/* Inputs */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #94a3b8; margin-bottom: 5px; font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 12px; background: #1e293b;
    border: 1px solid #334155; border-radius: 8px; color: #fff;
    font-size: 1rem;
}
.form-control:focus { outline: none; border-color: #38bdf8; }

/* Mapa */
.map-container { position: relative; height: 300px; border-radius: 12px; overflow: hidden; border: 2px solid #334155; }
.google-map { width: 100%; height: 100%; }

.btn-gps {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #0f172a; border: none;
    padding: 8px 16px; border-radius: 20px; font-weight: bold;
    cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 5; transition: transform 0.2s;
}
.btn-gps:active { transform: translateX(-50%) scale(0.95); }

/* Footer */
.checkout-footer {
    padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
    display: flex; flex-direction: column; gap: 15px;
}
.total-row { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 1.1rem; }
.highlight-total { color: #38bdf8; font-weight: 800; font-size: 1.4rem; }

.btn-whatsapp-final {
    width: 100%; background: #22c55e; color: #fff;
    padding: 15px; border: none; border-radius: 10px;
    font-weight: bold; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn-whatsapp-final:hover { background: #16a34a; }

/* Móvil */
@media (max-width: 768px) {
    .checkout-body { grid-template-columns: 1fr; }
    .map-container { height: 250px; }
}

/* =========================================
   🛒 BOTÓN FLOTANTE (ESTILO HORIZONTAL)
   ========================================= */
.cart-flex-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.cart-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.cart-badge-static {
    position: static; /* Ya no flota absoluto */
    transform: none;
    background: white;
    color: var(--primary-color, #000);
    font-weight: 800;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-label-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.4);
    margin: 0 15px;
}

.cart-total-text {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* SELECTOR DE PAÍS (Dark Mode) */
.country-select {
    width: 140px;
    background-color: #1e293b; /* Fondo Azul Oscuro (Slate 800) */
    color: #ffffff;            /* Texto Blanco */
    border: 1px solid #334155; /* Borde sutil */
    border-radius: 8px;
    padding: 0 10px;
    appearance: none;          /* Quita la flecha fea por defecto del navegador */
    cursor: pointer;
    font-size: 0.95rem;
    outline: none;
    
    /* Flechita personalizada blanca (SVG en base64) */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.country-select:focus {
    border-color: #0ea5e9; /* Borde Cian al hacer clic */
}

/* Estilo para las opciones desplegables (Chrome/Firefox) */
.country-select option {
    background-color: #0f172a; /* Fondo muy oscuro */
    color: #fff;
    padding: 10px;
}

//* =========================================
   BADGE DE CALIFICACIÓN (Social Proof)
   ========================================= */

.rating-badge-container {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center; /* ✅ SIEMPRE CENTRADO (Móvil y Desktop) */
    width: 100%;
}

/* En Desktop lo alineamos a la izquierda junto al logo 
@media (min-width: 768px) {
    .rating-badge-container {
        justify-content: flex-start;
    }
}*/

.restaurant-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Un poco más de espacio */
    background: rgba(30, 41, 59, 0.6); /* Un poco más oscuro para contraste */
    padding: 8px 16px; /* Un poco más grande */
    border-radius: 50px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.restaurant-rating:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.rating-star {
    color: #fbbf24; /* Dorado */
    font-size: 0.95rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); /* Resplandor Neon */
}

.rating-score {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

.rating-count {
    color: #cbd5e1; /* Gris claro */
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 2px;
}

/* Estado "Nuevo" */
.badge-new {
    background: linear-gradient(135deg, #059669, #10b981); /* Verde Esmeralda */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* =========================================
   MODAL DE RESEÑAS (SPRINT 9)
   ========================================= */

/* 1. Estrellas en el Header (Clickables) */
.clickable-badge {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s;
}

.clickable-badge:active { transform: scale(0.96); }

.icon-arrow {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 8px;
    transition: transform 0.2s;
}

.clickable-badge:hover .icon-arrow {
    transform: translateX(3px); /* Pequeña animación de flecha */
    opacity: 1;
}

/* =========================================
   MODAL DE RESEÑAS (V3 - SCROLL GARANTIZADO)
   ========================================= */
   
/* 2. Estructura del Modal */
.reviews-modal-content {
    /* Dimensiones y Posición */
    width: 95% !important;
    max-width: 700px !important;
    max-height: 85vh !important; /* Altura máxima del 85% de la pantalla */
    
    /* Estética */
    background: #1e293b !important;
    border: 1px solid #334155;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    
    /* 🔥 FLEXBOX CORRECTO PARA SCROLL */
    display: flex !important;
    flex-direction: column !important;
    
    /* Importante: Overflow hidden aquí para redondear bordes, 
       pero el scroll va en el hijo (.reviews-body) */
    overflow: hidden !important; 
    padding: 0 !important;
}

/* Cabecera Fija (No se mueve) */
.reviews-header {
    flex-shrink: 0; /* Evita que se aplaste */
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b; 
    z-index: 20;
}

.header-text h3 { margin: 0; font-size: 1.4rem; color: #fff; } /* Título un pelín más grande */
.header-text p { margin: 4px 0 0 0; color: #94a3b8; font-size: 0.95rem; }

.btn-close-reviews {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}
.btn-close-reviews:hover { color: #fff; transform: scale(1.1); }

/* Cuerpo (Aquí va el Scroll) */
.reviews-body {
    flex-grow: 1;  /* Ocupa todo el espacio sobrante */
    min-height: 0; /* 🔥 EL TRUCO MÁGICO: Permite que el scroll funcione dentro de Flexbox */
    
    overflow-y: auto !important; /* Fuerza el scroll vertical */
    padding: 30px;
    background: #0f172a;
    
    /* Configuración de scroll suave */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Para móviles */

    /* Scrollbar Firefox */
    scrollbar-width: thin !important;
    scrollbar-color: #64748b #0f172a !important; /* Un poco más claro para que lo veas */
}

/* 🔥 SCROLLBAR PERSONALIZADO (Chrome, Edge, Safari) */
.reviews-body::-webkit-scrollbar {
    width: 10px !important; /* Un poco más ancho para que sea fácil de usar */
}

.reviews-body::-webkit-scrollbar-track {
    background: #0f172a !important; 
}

.reviews-body::-webkit-scrollbar-thumb {
    background-color: #475569 !important; /* Gris medio (visible) */
    border-radius: 10px;
    border: 2px solid #0f172a !important; /* Borde para efecto flotante */
}

.reviews-body::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8 !important; /* Gris claro al pasar el mouse */
}

/* 3. Tarjeta de Resumen */
.reviews-summary-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.big-score-box { text-align: center; min-width: 80px; }
.big-score-num { font-size: 2.8rem; font-weight: 700; color: #fbbf24; line-height: 1; display: block; }
.stars-static { color: #fbbf24; font-size: 0.85rem; margin-top: 6px; letter-spacing: 2px; }

.score-details-box {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-detail-item { font-size: 0.95rem; color: #cbd5e1; display: flex; align-items: center; gap: 10px; }
.icon-food { color: #fbbf24; }
.icon-delivery { color: #10b981; }

/* 4. Lista de Comentarios (Generados por JS) */
.loader-placeholder { text-align: center; padding: 40px; color: #64748b; }
.spinner {
    width: 30px; height: 30px; 
    border: 3px solid rgba(255,255,255,0.1); 
    border-top-color: #fbbf24; 
    border-radius: 50%; 
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Estilos para los items inyectados por JS */
.review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: background 0.2s;
}
.review-item:hover { background: rgba(255, 255, 255, 0.05); }

.review-header-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-user { font-weight: 600; color: #fff; font-size: 1rem; }
.review-time { font-size: 0.8rem; color: #64748b; }

.review-comment { color: #cbd5e1; font-style: italic; font-size: 0.95rem; margin: 10px 0 0 0; line-height: 1.5; }

/* Respuesta del Dueño */
.owner-reply-box {
    margin-top: 15px;
    background: rgba(16, 185, 129, 0.08); /* Fondo verde muy sutil */
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    position: relative;
}
.reply-header { font-size: 0.75rem; color: #10b981; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.reply-text { margin: 0; font-size: 0.9rem; color: #e2e8f0; }

/* ========================
   ESTILOS DE CUPÓN
   ======================== */
.coupon-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #334155;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
    background: #0f172a;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #334155;
    align-items: center;
}

.coupon-icon {
    padding-left: 10px;
    font-size: 1.2rem;
}

.coupon-input-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    outline: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.coupon-input-group input::placeholder {
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.btn-apply-coupon {
    background: #334155;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-apply-coupon:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* Mensajes de validación */
.coupon-msg {
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 5px;
    min-height: 1.2em;
}
.coupon-msg.success { color: #10b981; }
.coupon-msg.error { color: #ef4444; }

/* Estados del input */
.coupon-input-group input.applied {
    color: #10b981;
}

.error-shake {
    animation: shake 0.3s ease-in-out;
    border-color: #ef4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- Clases utilitarias para Checkout --- */

/* Texto secundario (Subtotal y Delivery) */
.text-detail {
    font-size: 0.9rem;
    color: #94a3b8; /* Gris suave */
    margin-bottom: 5px;
}

/* Margen extra para separar el delivery del total */
.mb-medium {
    margin-bottom: 15px;
}

/* Fila de descuento */
.discount-row {
    font-size: 0.9rem;
    color: #38bdf8; /* Azul cyan */
    margin-bottom: 5px;
    display: none; /* Oculto por defecto, JS lo activará */
    justify-content: space-between;
}

/* Total Final */
.main-total {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* ========================
   ESTILOS DE MENSAJES DE CUPÓN (PARA EL CHECKOUT)
   ======================== */

.coupon-msg {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    display: none; /* Oculto si no hay mensaje */
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.coupon-msg:not(:empty) { display: flex; }

/* ÉXITO (VERDE) */
.coupon-msg.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.coupon-msg.success::before { content: '✅'; font-size: 1rem; }

/* ERROR (ROJO) */
.coupon-msg.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.coupon-msg.error::before { content: '⚠️'; font-size: 1rem; }

/* ========================
   OCULTAR SCROLLBAR DEL CHECKOUT
   ======================== */

/* Para Chrome, Safari y Opera */
.checkout-body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Para Firefox y Edge */
.checkout-body {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE y Edge */
}

/* ========================
   ESTILOS DE OFERTAS (SPRINT 9)
   ======================== */

/* Badge Rojo de Oferta */
.tag-offer {
    background: linear-gradient(135deg, #ef4444, #b91c1c); /* Rojo intenso */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    font-weight: 800;
}

/* Contenedor de precios (para alinearlos) */
.price-container {
    display: flex;
    flex-direction: column; /* Uno arriba del otro */
    align-items: flex-start;
    line-height: 1.1;
}

/* Precio Original Tachado */
.price-original {
    font-size: 0.8rem;
    color: #94a3b8; /* Gris apagado */
    text-decoration: line-through;
    margin-bottom: 2px;
}

/* Precio de Oferta (Resaltado) */
.price-offer {
    color: #ef4444 !important; /* Rojo oferta */
    font-weight: 800;
    font-size: 1.1rem;
}

/* ========================
   CORRECCIÓN FINAL DE IMÁGENES
   ======================== */

/* 1. CONTENEDOR (Caja cuadrada fija) */
.dish-img-box {
    position: relative;
    width: 120px;   /* Ancho fijo necesario */
    height: 120px;  /* Alto fijo necesario */
    flex-shrink: 0; /* Evita que se aplaste en móviles */
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a; /* Color de fondo mientras carga */
}

/* 2. IMAGEN (Llenar el contenedor perfectamente) */
.dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: Esto hace que la foto llene el cuadrado sin estirarse */
    display: block;    /* Elimina pequeños espacios debajo de la imagen */
}

/* 3. Placeholder (cuando no hay foto) */
.dish-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #1e293b;
    color: #334155;
}

/* =========================================
   CORRECCIONES VISUALES (BOTÓN Y MODALS)
   ========================================= */

/* 1. Ocultar modals por defecto para que no ensucien el fondo */
#comboModal, #detailModal, #checkoutModal, #reviewsModal {
    display: none;
}

/* 2. Asegurar que los fondos oscuros (overlay) funcionen bien */
.option-modal-overlay, .detail-modal-overlay, .checkout-modal-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 10000;
    background: rgba(0,0,0,0.8);
}

/* 3. Estilos Definitivos del Botón Flotante */
.floating-cart {
    display: flex;                /* Alineación horizontal */
    position: fixed;              /* Fijo en la pantalla */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);  /* Centrado perfecto */
    background-color: #10b981;    /* Verde Esmeralda */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); /* Sombra suave */
    z-index: 9000;
    text-decoration: none;
    width: 90%;
    max-width: 400px;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.floating-cart:active {
    transform: translateX(-50%) scale(0.98); /* Efecto de clic */
}

/* Detalles internos del botón */
.cart-info-group { display: flex; align-items: center; gap: 10px; }

.cart-badge-static { 
    background: white; 
    color: #10b981; 
    width: 24px; height: 24px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: bold; font-size: 0.9rem;
}

.cart-label-text { font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; }
.cart-total-text { font-weight: 700; font-size: 1.1rem; }
.cart-separator { width: 1px; height: 20px; background: rgba(255,255,255,0.3); margin: 0 10px; }

/* =========================================
   CORRECCIÓN DEFINITIVA DE MODALS
   ========================================= */

/* 1. ESTADO OCULTO (Base) */
/* Usamos !important para asegurar que no aparezcan rotos al cargar */
#comboModal, 
#detailModal, 
#checkoutModal, 
#reviewsModal, 
#cartOverlay {
    display: none !important;
    opacity: 0;
    pointer-events: none; /* Para que no bloqueen clics si quedan invisibles */
    transition: opacity 0.3s ease;
}

/* 2. ESTADO VISIBLE (Activado) */
/* Aquí está la magia: Usamos el ID de nuevo para ganar la "guerra" de especificidad.
   Detectamos: Clase 'active', Clase 'show', Clase 'open' O cualquier cambio en el estilo inline */

#comboModal.active, #comboModal.show, #comboModal.open, #comboModal[style*="display"],
#detailModal.active, #detailModal.show, #detailModal.open, #detailModal[style*="display"],
#checkoutModal.active, #checkoutModal.show, #checkoutModal.open, #checkoutModal[style*="display"],
#reviewsModal.active, #reviewsModal.show, #reviewsModal.open, #reviewsModal[style*="display"] {
    display: flex !important;       /* ¡Aparece a la fuerza! */
    opacity: 1 !important;
    pointer-events: auto !important; /* Reactiva los clics */
    
    /* Centrado Perfecto */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
}

/* Caso especial para el Overlay del carrito (que es solo fondo) */
#cartOverlay.active, #cartOverlay[style*="display"] {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 3. Estilos de las Cajitas (Para asegurar que se vean bien al centro) */
.option-modal, .checkout-modal, .detail-modal {
    position: relative;
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-height: 90vh; /* Evita que sea más alto que la pantalla */
    overflow-y: auto; /* Scroll si es muy alto */
    /* Aseguramos que el contenido interno se vea */
    display: block; 
    opacity: 1;
}

/* =========================================
   ESTILOS DE MAQUILLAJE PARA EL MODAL
   ========================================= */

/* 1. La Caja Principal (Darle aire y forma) */
.option-modal {
    background: #1e293b;       /* Fondo azul oscuro sólido */
    border: 1px solid #334155; /* Borde sutil */
    border-radius: 16px;       /* Bordes redondeados */
    padding: 25px;             /* Relleno interno (IMPORTANTE) */
    width: 90%;
    max-width: 420px;          /* Que no sea ni muy ancho ni muy angosto */
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); /* Sombra elegante */
}

/* 2. Textos */
.modal-title-text {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

.modal-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Línea separadora */
}

.text-highlight {
    color: #38bdf8; /* Azul neón para el nombre del plato */
    font-weight: bold;
}

/* 3. Lista de Opciones (Radio Buttons) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;           /* Espacio entre opciones */
    text-align: left;    /* Texto a la izquierda */
    margin-bottom: 25px;
    max-height: 300px;   /* Si hay muchas, que haga scroll */
    overflow-y: auto;
}

/* Estilo de cada fila de opción */
.options-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03); /* Fondo sutil */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
}

.options-list label:hover {
    background: rgba(56, 189, 248, 0.1); /* Azulito al pasar el mouse */
    border-color: #38bdf8;
}

/* El circulito del radio button */
.options-list input[type="radio"] {
    accent-color: #10b981; /* Verde esmeralda */
    width: 18px; 
    height: 18px;
    cursor: pointer;
}

/* 4. Botones de Acción (Cancelar / Confirmar) */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #ef4444; /* Rojo borde */
    color: #ef4444;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-confirm {
    flex: 2; /* El botón de confirmar es más grande */
    padding: 12px;
    background: #10b981; /* Verde sólido */
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: 0.2s;
}

.btn-confirm:hover {
    background: #059669;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .hero-logo {
        width: 140px;
        height: 140px;
    }
    .hero-content {
        margin-top: -75px;
    }
}

/* ==========================================================================
   🚀 SPRINT 20: ESTILOS PARA MODAL PREMIUM (AGREGAR AL FINAL DE MENU.CSS)
   ========================================================================== */

/* 1. ETIQUETAS SOBRE LA FOTO (Spicy, Vegan, Nuevo) */
.detail-tags-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 10;
}

.detail-tag {
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 2. CONTENEDOR DE OPCIONES (Scroll independiente) */
.dynamic-options-wrapper {
    margin: 15px 0;
    max-height: 45vh; /* Evita que el modal se haga infinito */
    overflow-y: auto;
    padding-right: 5px;
    /* Scrollbar fino */
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

/* 3. GRUPOS DE OPCIONES */
.option-group {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 15px;
}
.option-group:last-child {
    border-bottom: none;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.group-title {
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 700;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.group-limit {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: 5px;
}

/* Badges de Requerimiento */
.badge-required {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-optional {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 4. FILAS DE OPCIONES (Radio/Checkbox) */
.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.option-row:hover {
    background: rgba(255,255,255,0.06);
}

.option-row.selected {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.opt-info {
    display: flex;
    flex-direction: column;
}

.opt-name {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.opt-price {
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 3px;
}

/* 5. INPUTS PERSONALIZADOS */
.option-check { display: none; } /* Ocultar nativo */

.check-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #475569;
    border-radius: 50%; /* Redondo por defecto (Radio) */
    display: block;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0,0,0,0.2);
}

/* Si es checkbox, lo hacemos cuadrado */
input[type="checkbox"] ~ .check-circle {
    border-radius: 6px;
}

/* Estado Seleccionado */
.option-row.selected .check-circle {
    border-color: #10b981;
    background: #10b981;
    transform: scale(1.1);
}

.option-row.selected .check-circle::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 6. CAMPO DE NOTA AL CHEF */
.chef-note-container {
    margin-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.15);
    padding-top: 20px;
}

.note-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.chef-note-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-family: inherit;
    resize: none;
    height: 70px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.chef-note-input:focus {
    outline: none;
    border-color: #38bdf8;
}

/* 7. ANIMACIONES DE ERROR (Feedback Visual) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake-error {
    animation: shake 0.3s;
    border: 1px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.shake-limit {
    animation: shake 0.3s;
}

/* 8. FOOTER DEL MODAL (Ajuste para botones grandes) */
.modal-footer-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}

/* Cantidad */
.quantity-control.large {
    background: rgba(0,0,0,0.3);
    border: 1px solid #334155;
    padding: 5px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    min-width: 110px;
    justify-content: space-between;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:active { background: rgba(255,255,255,0.2); }

.qty-number {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Botón Agregar */
.btn-add-large {
    flex-grow: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0 20px; /* Padding horizontal */
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: transform 0.1s;
}

.btn-add-large .separator { opacity: 0.3; margin: 0 10px; }

/* =============================================================
   CORRECCIÓN FINAL: BOTÓN MODAL COMPACTO (Una línea)
   ============================================================= */

.btn-add-large {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    
    /* Ajuste de tamaño: Más compacto */
    padding: 12px 0; 
    
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    
    /* Centrado perfecto de texto */
    display: block; 
    text-align: center;
    
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: transform 0.1s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-large:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Ajuste del precio principal (el que está junto al nombre) */
.detail-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8; /* Azul cyan (más legible en dark mode) */
    white-space: nowrap; /* Que no se rompa la línea */
}

/* =============================================================
   CORRECCIÓN FINAL: ALINEACIÓN PERFECTA (HERMANOS)
   ============================================================= */

/* 1. El Contenedor Padre: Forzamos la alineación */
.modal-footer-actions {
    display: flex !important;
    align-items: stretch !important; /* CLAVE: Estira ambos a la misma altura */
    gap: 12px;
    margin-top: 20px;
    height: 50px; /* Altura maestra para ambos */
}

/* 2. El Control de Cantidad (Hijo 1) */
.quantity-control.large {
    flex: 0 0 110px; /* Ancho fijo */
    margin: 0 !important; /* Sin márgenes externos */
    padding: 0 5px;
    
    background: #020617;
    border: 1px solid #334155;
    border-radius: 12px;
    
    /* Centrado interno */
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    box-sizing: border-box; /* Para que el borde no sume altura extra */
}

/* 3. El Botón Agregar (Hijo 2) */
.btn-add-large {
    flex: 1; /* Ocupa todo el resto del espacio */
    margin: 0 !important; /* Sin márgenes externos */
    
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    
    /* Centrado interno del texto */
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: transform 0.1s;
    
    box-sizing: border-box;
}

.btn-add-large:active {
    transform: scale(0.98);
}

/* Ajuste de los botones +/- */
.qty-btn {
    width: 36px; 
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px; /* Pequeño ajuste visual para centrar el signo */
}

/* =============================================================
   🔥 FIX FINAL: DISEÑO DE VARIANTES (Sobre-escritura Forzada)
   ============================================================= */

/* 1. Contenedor principal de la opción */
#dynamicOptionsContainer .variant-option-row {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 15px !important;
    margin-bottom: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* 2. OCULTAR EL INPUT NATIVO FEO (Círculo azul windows/mac) */
#dynamicOptionsContainer input[type="radio"],
#dynamicOptionsContainer input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 3. CREAR EL NUEVO CHECK/RADIO PERSONALIZADO */
.custom-control-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%; /* Redondo por defecto */
    border: 2px solid #64748b;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: transparent; 
}

/* Cuadrado si es checkbox */
.variant-group-box[data-type="checkbox"] .custom-control-indicator {
    border-radius: 6px !important; 
}

/* 4. ESTADO ACTIVADO (CUANDO SE SELECCIONA) */
/* El borde de la fila se pone verde */
#dynamicOptionsContainer .variant-option-row.active {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
}

/* El círculo se pinta de verde */
#dynamicOptionsContainer .variant-option-row.active .custom-control-indicator {
    background: #10b981 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* El icono de check/bolita dentro */
#dynamicOptionsContainer .variant-option-row.active .custom-control-indicator::after {
    content: '✔';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: block;
}

/* 5. TEXTOS */
.opt-name { font-size: 1rem; color: #f1f5f9; font-weight: 500; }
.opt-price { font-weight: 700; color: #38bdf8; font-size: 0.9rem; }