/* 
    NexIA Premium Design System — Carta Digital
    Traditional & Premium aesthetic with Glassmorphism
*/

:root {
    --accent: #FFD700;
    --accent-secondary: #E040A0;
    --accent-glow: rgba(255, 215, 0, 0.45);
    --accent-glow-secondary: rgba(224, 64, 160, 0.35);
    --bg-dark: #07060a;
    --bg-surface: #0e0d13;
    --card-bg: rgba(255, 255, 255, 0.025);
    --glass-bg: rgba(14, 13, 19, 0.75);
    --border: rgba(255, 215, 0, 0.10);
    --border-hover: rgba(255, 215, 0, 0.30);
    --text-primary: #f5f0e8;
    --text-secondary: rgba(245, 240, 232, 0.55);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THEME OVERRIDES */
body.theme-vegas {
    --accent: #FFD700;
    --accent-secondary: #E040A0;
    --accent-glow: rgba(255, 215, 0, 0.45);
}

body.theme-gato-negro {
    --accent: #FFD700; /* Gold */
    --accent-secondary: #A3455A; /* Wine Red */
    --accent-glow: rgba(255, 215, 0, 0.35);
}

/* THEME OVERRIDES (legacy compatibility) */
body.theme-sage { --accent: #7A9E7D; --accent-glow: rgba(122, 158, 125, 0.4); }
body.theme-gold { --accent: #FFB340; --accent-glow: rgba(255, 179, 64, 0.4); }
body.theme-wine { --accent: #A3455A; --accent-glow: rgba(163, 69, 90, 0.4); }

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Effect */
body::before {
    content: '';
    position: fixed;
    top: -40%; left: -20%;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%; right: -15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(224,64,160,0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar Premium */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,215,0,0.35); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   NAVBAR — GLASSMORPHISM PREMIUM
   ═══════════════════════════════════════ */
#main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    background: rgba(7, 6, 10, 0.78);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: var(--transition-smooth);
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.logo {
    display: flex; align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 42px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.4));
    transform: scale(1.03);
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.admin-btn {
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 18px; border-radius: 30px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}
.admin-btn:hover {
    background: var(--accent); color: var(--bg-dark);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.header-controls { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; display: block; padding: 8px; border-radius: 50%;
    transition: var(--transition-smooth);
}
.sidebar-toggle:hover { color: var(--accent); background: rgba(255,215,0,0.05); }

/* ═══════════════════════════════════════
   SIDEBAR NAV
   ═══════════════════════════════════════ */
.sidebar-nav {
    position: fixed; top: 72px; left: 0; bottom: 0;
    width: 260px; background: rgba(7, 6, 10, 0.95);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    transition: var(--transition-smooth);
    z-index: 900; 
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-nav.active { transform: translateX(0); }

.sidebar-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.sidebar-header h3 { 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--accent); margin-bottom: 0; font-weight: 700;
    text-align: left;
}

.sidebar-close-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sidebar-close-btn:hover {
    background: rgba(255,215,0,0.1);
    color: var(--accent);
}

.sidebar-menu-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 32px 24px;
}

#sidebar-menu { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link {
    text-decoration: none; color: var(--text-secondary);
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
    border-left: 3px solid transparent;
    text-align: left;
    display: block;
    width: 100%;
}
.sidebar-link:hover { background: rgba(255,215,0,0.05); color: #fff; }
.sidebar-link.active { 
    background: rgba(255,215,0,0.1); color: var(--accent);
    border-left-color: var(--accent);
}

/* Adjust App Root when sidebar is active */
#app-root { transition: var(--transition-smooth); }
body.sidebar-open #app-root { padding-left: 260px; }

@media (max-width: 1024px) {
    body.sidebar-open #app-root { padding-left: 0; }
    .sidebar-nav { box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
}

/* ═══════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════ */
.lang-selector { position: relative; }
.lang-trigger { 
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    background: rgba(255,215,0,0.04);
    border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.lang-trigger:hover {
    background: rgba(255,215,0,0.10);
    border-color: var(--accent);
    color: var(--accent);
}
.lang-trigger svg { color: inherit; }

.lang-dropdown { 
    position: absolute; top: calc(100% + 12px); right: 0;
    background: rgba(14, 13, 19, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px; min-width: 160px;
    display: none; flex-direction: column; gap: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,215,0,0.05);
    z-index: 1100;
}
.lang-dropdown.active { display: flex; animation: fadeInScale 0.25s ease; }

.lang-option { 
    padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 0.85rem; color: var(--text-secondary);
    transition: all 0.2s;
}
.lang-option:hover { background: rgba(255,215,0,0.08); color: var(--text-primary); }
.lang-option.active {
    color: var(--accent); font-weight: 700;
    background: rgba(255,215,0,0.10);
}

/* ═══════════════════════════════════════
   HERO — IMMERSIVE VEGAS
   ═══════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Neon ambient lights */
.hero::before {
    content: ''; position: absolute;
    top: 10%; left: 15%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(255,215,0,0.10) 0%, transparent 60%);
    z-index: 1; filter: blur(40px);
    animation: floatGlow 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute;
    bottom: 15%; right: 10%;
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(224,64,160,0.08) 0%, transparent 60%);
    z-index: 1; filter: blur(50px);
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.08); }
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 800px; padding: 0 24px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -0.04em;
    background: linear-gradient(135deg, #FFD700, #FFF8E1, #FFD700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out, goldShimmer 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 40px; max-width: 550px; margin-left: auto; margin-right: auto;
    animation: fadeInUp 1.2s ease-out;
}

/* ═══════════════════════════════════════
   LOCALES GRID (Landing Cards)
   ═══════════════════════════════════════ */
.locales-section {
    position: relative; z-index: 2;
    margin-top: -12vh; padding-bottom: 100px;
}

.locales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    animation: fadeInUp 1.4s ease-out;
}

.bar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-decoration: none; color: inherit;
    transition: var(--transition-smooth);
    display: flex; flex-direction: column; gap: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    position: relative; overflow: hidden;
}

/* Subtle glow on card */
.bar-card::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.03), transparent 30%);
    animation: rotateGlow 12s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.bar-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.5),
        0 0 40px var(--accent-glow),
        inset 0 0 30px rgba(255,215,0,0.03);
}

.bar-card h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem; color: var(--text-primary);
    position: relative; z-index: 1;
}

.bar-card p {
    color: var(--text-secondary); font-size: 0.95rem;
    position: relative; z-index: 1; line-height: 1.7;
}

.btn-card {
    align-self: flex-start;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--bg-dark);
    padding: 12px 30px; border-radius: 30px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: var(--transition-smooth);
    margin-top: auto; position: relative; z-index: 1;
    box-shadow: 0 4px 15px rgba(255,215,0,0.25);
}

.bar-card:hover .btn-card {
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   MENU VIEW — CARTA DIGITAL
   ═══════════════════════════════════════ */
.menu-page { padding-top: 110px; position: relative; z-index: 1; }

.menu-header {
    text-align: center; margin-bottom: 56px;
    padding: 32px 0;
}

.section-label {
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--accent);
    font-weight: 600; margin-bottom: 12px;
}

.menu-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-top: 8px;
    background: linear-gradient(135deg, #FFD700, #FFF8E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-header p {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 550px; margin: 12px auto 0;
}

/* Category Cards */
.menu-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.6s ease-out both;
}

.menu-category:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.04);
}

.menu-cat-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.menu-cat-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--accent), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.schedule-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.75rem !important;
    color: var(--accent) !important;
    background: rgba(255,215,0,0.08);
    padding: 4px 12px; border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.15);
    font-weight: 500 !important;
}

/* Menu Items */
.menu-items { list-style: none; }

.menu-items li {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,215,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-items li:hover {
    transform: translateX(6px);
    background: rgba(255,215,0,0.02);
    padding-left: 12px;
    border-radius: var(--radius-sm);
}

.menu-items li.is-special { 
    background: linear-gradient(90deg, rgba(255,215,0,0.04), transparent);
    border-left: 3px solid var(--accent);
    padding-left: 16px; margin: 4px 0;
    border-radius: 4px 12px 12px 4px;
}

.menu-items li.is-special:hover {
    background: linear-gradient(90deg, rgba(255,215,0,0.08), transparent);
}

.menu-items li:last-child { border-bottom: none; }

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

.menu-name {
    font-size: 1.05rem; font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.menu-desc {
    font-size: 0.85rem; color: var(--text-secondary);
    margin-top: 4px; max-width: 85%;
    line-height: 1.5;
}

.menu-price {
    font-size: 1.1rem; font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    padding-left: 16px;
    text-shadow: 0 0 15px rgba(255,215,0,0.2);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    padding: 50px 0; text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    position: relative; z-index: 1;
}

footer p {
    color: var(--text-secondary); font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Staggered animation for categories */
.menu-category:nth-child(1) { animation-delay: 0.0s; }
.menu-category:nth-child(2) { animation-delay: 0.1s; }
.menu-category:nth-child(3) { animation-delay: 0.2s; }
.menu-category:nth-child(4) { animation-delay: 0.3s; }
.menu-category:nth-child(5) { animation-delay: 0.4s; }

/* Loader */
.loader {
    text-align: center; padding: 60px;
    color: var(--text-secondary); font-size: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Error State */
.error {
    text-align: center; padding: 60px;
    color: var(--accent-secondary);
}
.error a { color: var(--accent); text-decoration: underline; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .locales-section { margin-top: -5vh; }
    .locales-grid { grid-template-columns: 1fr; }
    .menu-header h2 { font-size: 2rem; }
    .bar-card { padding: 28px; }
    .menu-category { padding: 24px; }
    .menu-items li { flex-direction: column; gap: 6px; }
    .menu-price { padding-left: 0; font-size: 1rem; }
    .header-controls { gap: 10px; }
    .admin-btn { font-size: 0.7rem; padding: 6px 12px; }
    nav { padding: 0 16px; }
    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    .hero { min-height: 80vh; }
    .hero p { font-size: 1rem; }
    .bar-card h2 { font-size: 1.5rem; }
    .menu-cat-header h3 { font-size: 1.3rem; }
}
