/* Landing pública — NG Platform */
:root {
    --lp-bg: #070b14;
    --lp-bg-alt: #0c1222;
    --lp-surface: rgba(255, 255, 255, 0.04);
    --lp-surface-hover: rgba(255, 255, 255, 0.08);
    --lp-border: rgba(255, 255, 255, 0.1);
    --lp-text: #e8edf7;
    --lp-muted: #94a3b8;
    --lp-primary: #6366f1;
    --lp-primary-2: #8b5cf6;
    --lp-accent: #22d3ee;
    --lp-success: #34d399;
    --lp-radius: 16px;
    --lp-radius-lg: 24px;
    --lp-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --lp-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --lp-header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body.landing-page {
    margin: 0;
    font-family: var(--lp-font);
    background: var(--lp-bg);
    color: var(--lp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.landing-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #000;
}
.landing-skip:focus { left: 1rem; top: 1rem; }

.landing-container {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--lp-header-h);
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.landing-header.is-scrolled {
    background: rgba(7, 11, 20, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--lp-header-h);
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}
.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.landing-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2));
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}
.landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.landing-brand-text strong { font-size: 0.95rem; letter-spacing: 0.02em; }
.landing-brand-text small { font-size: 0.72rem; color: var(--lp-muted); font-style: italic; }

.landing-nav {
    display: flex;
    gap: 1.5rem;
}
.landing-nav a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.landing-nav a:hover { color: #fff; }

.landing-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.landing-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--lp-border);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
}
.landing-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--lp-bg-alt);
    border-bottom: 1px solid var(--lp-border);
}
.landing-mobile-nav a {
    color: var(--lp-text);
    text-decoration: none;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
}
.landing-mobile-nav a:hover { background: var(--lp-surface-hover); }
.landing-mobile-nav.is-open { display: flex; }

/* Buttons */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}
.landing-btn-lg { padding: 0.85rem 1.35rem; font-size: 0.95rem; }
.landing-btn-primary {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2));
    color: #fff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
    color: #fff;
}
.landing-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--lp-border);
}
.landing-btn-outline:hover {
    background: var(--lp-surface-hover);
    color: #fff;
    transform: translateY(-2px);
}
.landing-btn-ghost {
    background: transparent;
    color: var(--lp-muted);
}
.landing-btn-ghost:hover { color: #fff; }
.landing-btn-store {
    margin-top: auto;
    width: 100%;
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.landing-store-card:hover .landing-btn-store {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2));
    color: #fff;
    border-color: transparent;
}

/* Hero */
.landing-hero {
    position: relative;
    padding: calc(var(--lp-header-h) + 4rem) 0 5rem;
    overflow: hidden;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: lp-float 12s ease-in-out infinite;
}
.landing-orb-1 {
    width: 420px;
    height: 420px;
    background: #6366f1;
    top: -120px;
    right: -80px;
}
.landing-orb-2 {
    width: 320px;
    height: 320px;
    background: #22d3ee;
    bottom: -80px;
    left: -60px;
    animation-delay: -4s;
}
.landing-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
@keyframes lp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -16px) scale(1.05); }
}

.landing-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lp-accent);
    margin-bottom: 1rem;
}
.landing-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.landing-gradient-text {
    background: linear-gradient(135deg, #a5b4fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-hero-lead {
    font-size: 1.05rem;
    color: var(--lp-muted);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}
.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.landing-hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.landing-hero-stats li {
    display: flex;
    flex-direction: column;
}
.landing-hero-stats strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.landing-hero-stats span { font-size: 0.8rem; color: var(--lp-muted); }

.landing-hero-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow);
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.landing-hero-card-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lp-border);
    background: rgba(0,0,0,0.2);
}
.landing-hero-card-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.landing-hero-card-header span:nth-child(1) { background: #f87171; }
.landing-hero-card-header span:nth-child(2) { background: #fbbf24; }
.landing-hero-card-header span:nth-child(3) { background: #34d399; }
.landing-hero-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.landing-mini-metric {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--lp-surface);
    border-radius: 12px;
    border: 1px solid var(--lp-border);
}
.landing-mini-metric > i {
    font-size: 1.25rem;
    color: var(--lp-accent);
    width: 36px;
    text-align: center;
}
.landing-mini-metric small { display: block; color: var(--lp-muted); font-size: 0.75rem; }
.landing-mini-metric strong { font-size: 0.9rem; }
.landing-pill {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}
.landing-pill-success { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.landing-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 0.5rem 0.25rem 0;
}
.landing-mini-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--lp-primary), rgba(99, 102, 241, 0.2));
    animation: lp-bar 1.2s ease-out backwards;
}
.landing-mini-chart span:nth-child(2) { animation-delay: 0.1s; }
.landing-mini-chart span:nth-child(3) { animation-delay: 0.2s; }
.landing-mini-chart span:nth-child(4) { animation-delay: 0.3s; }
.landing-mini-chart span:nth-child(5) { animation-delay: 0.4s; }
.landing-mini-chart span:nth-child(6) { animation-delay: 0.5s; }
@keyframes lp-bar {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); }
}

/* Sections */
.landing-section {
    padding: 5rem 0;
    position: relative;
}
.landing-section-alt {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06), transparent);
}
.landing-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.landing-section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    margin: 0.35rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.landing-section-head p { color: var(--lp-muted); margin: 0; }

/* Features */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.landing-feature-card {
    padding: 1.5rem;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.landing-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    background: var(--lp-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.15));
    color: #a5b4fc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.landing-feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}
.landing-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lp-muted);
}

/* Stores */
.landing-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.landing-store-card {
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.landing-store-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--lp-shadow);
    border-color: rgba(99, 102, 241, 0.4);
}
.landing-store-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.landing-store-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.landing-store-banner-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(34,211,238,0.2));
}
.landing-store-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.landing-store-logo-wrap { margin-top: -2.5rem; position: relative; z-index: 1; }
.landing-store-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid var(--lp-bg-alt);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.landing-store-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-2));
    border: 3px solid var(--lp-bg-alt);
    color: #fff;
    font-size: 1.25rem;
}
.landing-store-body h3 {
    margin: 0.35rem 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.landing-store-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--lp-muted);
    flex: 1;
}
.landing-store-desc-muted { font-style: italic; }
.landing-stores-footer {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.landing-stores-count { color: var(--lp-muted); font-size: 0.9rem; margin: 0; }
.landing-stores-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lp-muted);
    font-size: 0.9rem;
}
.landing-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--lp-border);
    border-top-color: var(--lp-primary);
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
.landing-empty-stores {
    text-align: center;
    color: var(--lp-muted);
    padding: 2rem;
}

/* Why us */
.landing-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.landing-why-card {
    padding: 1.5rem;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    background: linear-gradient(145deg, rgba(255,255,255,0.04), transparent);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.landing-why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
}
.landing-why-card > i {
    font-size: 1.5rem;
    color: var(--lp-accent);
    margin-bottom: 0.75rem;
}
.landing-why-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.landing-why-card p { margin: 0; font-size: 0.88rem; color: var(--lp-muted); }

/* Footer */
.landing-footer {
    border-top: 1px solid var(--lp-border);
    background: var(--lp-bg-alt);
    padding-top: 3rem;
}
.landing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.landing-footer .platform-footer-enlaces a {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.2rem 0;
}
.landing-footer .platform-footer-enlaces a:hover { color: var(--lp-accent); }
.landing-footer .platform-footer-enlaces li + li { margin-top: 0.15rem; }
.landing-help-modal-body .accordion-button { font-size: 0.95rem; }
.landing-help-modal-body .accordion-body { font-size: 0.92rem; line-height: 1.55; }
.landing-page .legal-modal-body { max-height: 70vh; overflow-y: auto; }
.landing-page .modal-content {
    background: #f8fafc;
    color: #1e293b;
}
.landing-footer-brand p {
    color: var(--lp-muted);
    font-size: 0.9rem;
    max-width: 280px;
}
.landing-footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-muted);
    margin: 0 0 1rem;
}
.landing-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.landing-footer ul a {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.35rem 0;
    transition: color 0.2s;
}
.landing-footer ul a:hover { color: var(--lp-accent); }
.landing-social {
    display: flex;
    gap: 0.65rem;
}
.landing-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--lp-border);
    display: grid;
    place-items: center;
    color: var(--lp-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.landing-social a:hover {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
}
.landing-footer-bottom {
    border-top: 1px solid var(--lp-border);
    padding: 1rem 0;
}
.landing-footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--lp-muted);
    text-align: center;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay { transition-delay: 120ms; }

/* Responsive */
@media (max-width: 992px) {
    .landing-hero-grid { grid-template-columns: 1fr; }
    .landing-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
    .landing-features-grid,
    .landing-why-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-footer-grid { grid-template-columns: 1fr 1fr; }
    @media (min-width: 900px) {
        .landing-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    }
}
@media (max-width: 768px) {
    .landing-nav,
    .landing-header-actions { display: none; }
    .landing-nav-toggle { display: grid; place-items: center; }
    .landing-features-grid,
    .landing-why-grid { grid-template-columns: 1fr; }
    .landing-footer-grid { grid-template-columns: 1fr; }
    .landing-hero-cta { flex-direction: column; }
    .landing-hero-cta .landing-btn { width: 100%; }
}
