/*
    GastroGestiónNexus — Landing Page
    Premium dark theme inspired by ReactBits.dev
*/

/* ========================== RESET & BASE ========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-base:       #07070f;
    --bg-surface:    #0d0c1a;
    --bg-card:       rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border:        rgba(255,255,255,0.08);
    --border-hover:  rgba(255,255,255,0.16);

    --orange:        #f97316;
    --orange-glow:   rgba(249,115,22,0.25);
    --orange-mid:    rgba(249,115,22,0.12);
    --purple:        #8b5cf6;
    --purple-glow:   rgba(139,92,246,0.2);
    --blue:          #3b82f6;

    --text-primary:   #ffffff;
    --text-secondary: rgba(255,255,255,0.72);
    --text-muted:     rgba(255,255,255,0.4);

    --radius:    16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', sans-serif;
    --font-alt: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================== CANVAS ========================== */
#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ========================== NAVBAR ========================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7,7,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--orange); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    text-decoration: none;
    padding: 10px 22px;
    background: var(--orange);
    color: white;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--orange-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px var(--orange-glow);
}

/* ========================== HERO ========================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation: glow-drift 8s ease-in-out infinite alternate;
}

.hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    bottom: 0; right: 0;
    animation: glow-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 7px; height: 7px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-family: var(--font-alt);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.title-gradient {
    background: linear-gradient(135deg, var(--orange) 0%, #f59e0b 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Star Border Button */
.btn-primary-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--bg-surface);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 50px;
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    z-index: 0;
}

.btn-primary-star::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        var(--orange) 10%,
        transparent 20%
    );
    animation: spin-border 3s linear infinite;
    z-index: -1;
}

.btn-primary-star::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a1025, #0d0c1a);
    z-index: -1;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to { --angle: 360deg; }
}

.btn-primary-star:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(249,115,22,0.3);
}

.btn-primary-star.large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-ghost-hero {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    padding: 14px 8px;
}

.btn-ghost-hero:hover { color: var(--text-primary); }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-alt);
    color: var(--orange);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================== HERO MOCKUP ========================== */
.hero-mockup {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 560px;
}

.mockup-frame {
    background: rgba(15,14,25,0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28ca41; }

.mockup-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    flex: 1;
    text-align: center;
}

.mockup-content {
    display: flex;
    height: 300px;
}

.mock-sidebar {
    width: 48px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 10px;
}

.mock-nav-item {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--border);
}

.mock-nav-item.active { background: var(--orange); }

.mock-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.mock-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    align-content: start;
}

.mock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 3px;
}

.mock-card small { font-size: 0.6rem; font-weight: 400; opacity: 0.7; }
.card-orange { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.card-green  { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #4ade80; }

.mock-order-panel {
    width: 160px;
    border-left: 1px solid var(--border);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.7rem;
}

.mock-order-title { font-weight: 700; color: var(--orange); margin-bottom: 4px; font-size: 0.75rem; }
.mock-item { display: flex; justify-content: space-between; color: var(--text-secondary); padding: 2px 0; }
.mock-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 2px; }
.mock-btn { margin-top: auto; background: var(--orange); color: white; text-align: center; padding: 7px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.7rem; }

.mockup-glow {
    position: absolute;
    bottom: -40px; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 60px;
    background: var(--orange-glow);
    filter: blur(30px);
    border-radius: 50%;
    z-index: 0;
}

/* ========================== SECTIONS SHARED ========================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.section-title {
    font-family: var(--font-alt);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
}

/* ========================== FEATURES ========================== */
.features { position: relative; z-index: 1; }

.features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.feature-card {
    position: relative;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-alt);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ========================== MODULES ========================== */
.modules { position: relative; z-index: 1; }

.modules::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 70px;
}

.module-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.module-item.reverse { direction: rtl; }
.module-item.reverse > * { direction: ltr; }

.module-number {
    font-family: var(--font-alt);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(249,115,22,0.08);
    line-height: 1;
    margin-bottom: 8px;
}

.module-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.module-info h3 {
    font-family: var(--font-alt);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.module-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.module-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Module Previews */
.module-preview {
    position: relative;
}

.preview-screen {
    background: rgba(13,12,26,0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    font-size: 0.72rem;
    transition: var(--transition);
}

.preview-screen:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    box-shadow: 0 40px 100px rgba(249,115,22,0.15), 0 0 0 1px rgba(249,115,22,0.1);
}

/* POS Preview */
.ps-topbar { display: flex; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); font-weight: 700; }
.ps-time { color: var(--text-muted); }
.ps-body { display: flex; height: 240px; }
.ps-left { width: 90px; border-right: 1px solid var(--border); padding: 8px; }
.ps-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ps-table { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; font-weight: 800; font-size: 0.78rem; }
.ps-table.ocu { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }
.ps-table.free { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.ps-right { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ps-title { font-weight: 800; color: var(--orange); margin-bottom: 6px; }
.ps-item { display: flex; justify-content: space-between; color: var(--text-secondary); padding: 2px 0; }
.ps-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ps-total { display: flex; justify-content: space-between; font-weight: 700; }
.ps-btn { margin-top: auto; background: var(--orange); color: white; text-align: center; padding: 8px; border-radius: 8px; font-weight: 700; }

/* KDS Preview */
.dark-screen { background: #0a0a12; }
.kds-title { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
.kds-card { margin: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.kds-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.kds-timer { color: #f97316; font-family: monospace; }
.kds-items .kds-item { color: var(--text-secondary); padding: 2px 0; }
.kds-btn-listo { margin-top: 8px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; text-align: center; padding: 6px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* Kiosk Preview */
.kiosk-screen { background: #f8fafc; color: #1e293b; }
.kiosk-header { padding: 10px 12px; font-weight: 800; font-size: 0.85rem; border-bottom: 1px solid #e2e8f0; }
.kiosk-cats { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; }
.kcat { padding: 3px 10px; border-radius: 20px; background: #f1f5f9; font-size: 0.68rem; font-weight: 600; white-space: nowrap; color: #64748b; }
.kcat.active { background: #f97316; color: white; }
.kiosk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px; }
.kiosk-product { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px; text-align: center; }
.kp-img { font-size: 1.4rem; }
.kp-name { font-weight: 600; font-size: 0.62rem; color: #1e293b; margin: 2px 0; }
.kp-price { color: #f97316; font-weight: 800; font-size: 0.7rem; }

/* Admin Preview */
.admin-topbar { padding: 8px 12px; font-weight: 700; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.admin-body { display: flex; height: 220px; }
.admin-sidebar-mini { width: 36px; border-right: 1px solid var(--border); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sm-item { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; background: var(--bg-card); cursor: pointer; }
.sm-item.active { background: var(--orange-mid); }
.admin-content-mini { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.stat-row { display: flex; gap: 6px; }
.stat-mini { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-weight: 800; font-size: 0.72rem; display: flex; flex-direction: column; gap: 2px; }
.stat-mini small { font-size: 0.6rem; font-weight: 400; opacity: 0.6; }
.stat-mini.orange { border-color: rgba(249,115,22,0.2); color: var(--orange); }
.stat-mini.blue { border-color: rgba(59,130,246,0.2); color: #60a5fa; }
.stat-mini.red { border-color: rgba(239,68,68,0.2); color: #f87171; }
.chart-mock { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding-top: 8px; }
.bar { flex: 1; background: linear-gradient(to top, rgba(249,115,22,0.6), rgba(249,115,22,0.2)); border-radius: 4px 4px 0 0; animation: bar-grow 1.2s ease-out; }

@keyframes bar-grow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

/* ========================== CTA ========================== */
.cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 40px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-alt);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.cta-actions { margin-bottom: 24px; }

.cta-support {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cta-support a {
    color: var(--orange);
    text-decoration: none;
}

/* ========================== FOOTER ========================== */
.footer {
    border-top: 1px solid var(--border);
    z-index: 1;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 1rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; padding: 120px 32px 60px; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-mockup { max-width: 100%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .module-item { grid-template-columns: 1fr; gap: 40px; }
    .module-item.reverse { direction: ltr; }
}

@media (max-width: 640px) {
    .section-container { padding: 70px 20px; }
    .hero { padding: 110px 20px 50px; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
}
