/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.08);
    
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.35);
    --gold-logo: #d4af37;
    --secondary: #6366f1;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. BRANDING & LOGO RISTORANTI
   ========================================================================== */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold-logo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* ==========================================================================
   3. TIPOGRAFÍA, BADGES & BOTONES
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    color: #fbbf24;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 10px #f59e0b;
}

/* --- Botones Genéricos --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Botón Principal Naranja & Aura Perimetral --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
}

.btn-subtitle {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Aura exterior ahuecada que rodea el botón sin superponerse */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 16px;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 126, 95, 0.8) 0%, rgba(255, 107, 0, 0.4) 60%, transparent 100%);
    filter: blur(8px);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 10px;
    opacity: 0.6;
    animation: auraExterior 2.5s ease-in-out infinite alternate;
}

@keyframes auraExterior {
    0% {
        opacity: 0.35;
        filter: blur(6px);
        transform: scale(0.98);
    }
    100% {
        opacity: 0.75;
        filter: blur(10px);
        transform: scale(1.02);
    }
}

/* ==========================================================================
   4. HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-cta {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.hero-wrapper {
    min-height: calc(100vh - 80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cta-microcopy {
    font-size: 0.88rem;
    color: #a0a0a0;
    margin-bottom: 36px;
    letter-spacing: 0.3px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-card);
}

/* ==========================================================================
   6. PHONE MOCKUP INTERACTIVO
   ========================================================================== */
.phone-mockup {
    width: 320px;
    height: 640px;
    background: #111;
    border-radius: 44px;
    border: 12px solid #222;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-header {
    height: 30px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-notch {
    width: 100px;
    height: 18px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.phone-screen {
    background: #121214;
    height: calc(100% - 30px);
    padding: 16px;
    color: #fff;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.phone-screen::-webkit-scrollbar {
    width: 4px;
}

.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.app-header-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-avatar {
    font-size: 1.6rem;
}

.app-header-simple h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.status-open {
    font-size: 0.75rem;
    color: #22c55e;
}

.category-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.category-section-title:first-child {
    margin-top: 0;
}

.menu-card {
    background: #1c1c1f;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-card img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.menu-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #fff;
}

.menu-info p {
    font-size: 0.72rem;
    color: #a1a1aa;
    margin-bottom: 6px;
    line-height: 1.3;
}

.menu-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================================================
   7. FEATURES & CARDS
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.4);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.gradient-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gradient-2 { background: linear-gradient(135deg, #10b981, #047857); }
.gradient-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.gradient-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

/* ==========================================================================
   8. MODAL DEMOS INTERACTIVAS
   ========================================================================== */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 15, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal-container {
    background: rgba(18, 22, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px;
    position: relative;
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.demo-modal-container::-webkit-scrollbar {
    width: 6px;
}

.demo-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.demo-modal-overlay.active .demo-modal-container {
    transform: translateY(0) scale(1);
}

.demo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.demo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.demo-modal-header {
    text-align: center;
    margin-bottom: 18px;
    padding-right: 20px;
}

.demo-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
    margin: 8px 0 4px;
}

.demo-modal-header p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

.demo-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.demo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.2);
}

.demo-card:hover::before {
    opacity: 1;
}

.demo-card-icon {
    font-size: 1.6rem;
    margin-right: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.demo-card:hover .demo-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.demo-card-info {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.demo-card-info h4 {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.demo-card-info p {
    color: #94a3b8;
    font-size: 0.80rem;
    margin: 0;
    line-height: 1.25;
}

.demo-card-arrow {
    color: #64748b;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.demo-card:hover .demo-card-arrow {
    color: #a855f7;
    transform: translateX(3px);
}

.demo-card-custom {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.demo-card-custom:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.25);
}

.demo-card-custom .demo-card-arrow {
    color: #818cf8;
}

.demo-modal-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.demo-modal-footer p {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0;
}

.demo-modal-footer strong {
    color: #e2e8f0;
}

/* ==========================================================================
   9. WIDGET FLOTANTE WHATSAPP & BUBBLE ASISTENTE
   ========================================================================== */
.ws-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: inherit;
}

.ws-float-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.ws-float-btn:hover {
    transform: scale(1.1);
}

.ws-icon {
    width: 28px;
    height: 28px;
}

.ws-float-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    filter: blur(8px);
    z-index: -1;
    animation: wsPulse 2s infinite alternate;
}

@keyframes wsPulse {
    0% { transform: scale(0.95); opacity: 0.4; }
    100% { transform: scale(1.15); opacity: 0.8; }
}

.ws-chat-bubble {
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ws-chat-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ws-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #fff;
}

.ws-online-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25D366;
}

.ws-bubble-msg {
    font-size: 0.82rem;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.ws-bubble-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #777;
    font-size: 16px;
    cursor: pointer;
}

.ws-bubble-close:hover {
    color: #fff;
}

/* ==========================================================================
   10. BANNER CTA FINAL & FOOTER
   ========================================================================== */
.cta-box {
    padding: 64px 48px;
    max-width: 880px;
    margin: 0 auto;
    border-radius: 24px;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-btn-wrapper {
    display: flex;
    justify-content: center;
}

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.text-center { 
    text-align: center; 
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta-group, .hero-stats {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .cta-box {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-microcopy {
        text-align: center;
    }
}