/* ==========================================================================
   TuCardTech - Carta Digital Interactiva Premium
   ========================================================================== */

:root {
    --primary: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-dark: #4C1D95;
    --primary-light: #EDE9FE;
    --accent-emerald: #10B981;
    --accent-emerald-light: #ECFDF5;
    --accent-amber: #F59E0B;
    --accent-amber-light: #FFFBEB;
    
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.menu-header {
    background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #7C3AED 100%);
    color: #FFFFFF;
    padding: 36px 20px 28px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 6px #34D399;
}

.bar-nombre {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bar-tagline {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #E0E7FF;
    opacity: 0.9;
}

.header-quick-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.action-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-chip:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   SEARCH & FILTER BAR
   ========================================================================== */
.search-container {
    max-width: 680px;
    margin: -16px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 15;
}

.search-wrapper {
    background: #FFFFFF;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-main);
    background: transparent;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ==========================================================================
   CATEGORIES NAV (STICKY)
   ========================================================================== */
.categorias-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.categorias-nav::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #FFFFFF;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ==========================================================================
   MENU CONTENT & DISH CARDS
   ========================================================================== */
.menu-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px;
}

.categoria {
    margin-bottom: 36px;
}

.categoria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.categoria-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.categoria-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* DISH CARD */
.plato {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plato:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.3);
}

.plato.destacado {
    border: 1.5px solid #DDD6FE;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
}

.plato-badge {
    position: absolute;
    top: -9px;
    left: 16px;
    background: linear-gradient(90deg, #7C3AED, #6D28D9);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.plato-img-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: var(--primary-light);
}

.plato-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.plato-img-wrapper:hover .plato-img {
    transform: scale(1.08);
}

.img-zoom-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.6);
    color: #FFFFFF;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.plato-info {
    flex: 1;
    min-width: 0;
}

.plato-info h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.plato-desc {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plato-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.alergeno-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.alergeno-tag.clean {
    background: var(--accent-emerald-light);
    color: #047857;
}

.plato-precio {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
    align-self: center;
    text-align: right;
    padding-left: 8px;
}

/* NO RESULTS */
.no-results {
    display: none;
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   FLOATING ACTION BUTTON (REVIEWS / VALORAR)
   ========================================================================== */
.floating-nfc-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #18181B;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 100;
    border: 1px solid #3F3F46;
    transition: transform 0.2s ease, background 0.2s ease;
    width: max-content;
    max-width: 90%;
}

.floating-nfc-cta:hover {
    background: #27272A;
    transform: translateX(-50%) translateY(-2px);
}

.stars-gold {
    color: #FBBF24;
    letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.menu-footer {
    text-align: center;
    padding: 32px 16px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.menu-footer strong {
    color: var(--primary);
}

.tucardtech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   LIGHTBOX (ZOOM FOTOS)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.activo {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.lightbox-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: zoomIn 0.25s ease;
}

.lightbox-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.lightbox-body {
    padding: 20px;
}

.lightbox-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.lightbox-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.lightbox-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.lightbox-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-cerrar:hover {
    background: rgba(0, 0, 0, 0.85);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .plato {
        padding: 12px;
        gap: 12px;
    }
    .plato-img-wrapper {
        width: 76px;
        height: 76px;
    }
    .plato-info h3 {
        font-size: 0.96rem;
    }
    .plato-desc {
        font-size: 0.8rem;
    }
    .plato-precio {
        font-size: 1.05rem;
    }
    .bar-nombre {
        font-size: 1.6rem;
    }
}