/* ============================================================
   landing.css — Página pública / landing
   Tema: Claro · Acento índigo/slate
   ============================================================ */

:root {
    --l-primary:   #4f46e5;
    --l-primary-d: #3730a3;
    --l-primary-l: #ede9fe;
    --l-grad:      linear-gradient(135deg, #4f46e5, #818cf8);
    --l-text:      #0f172a;
    --l-muted:     #64748b;
    --l-border:    #e2e8f0;
    --l-bg:        #f8fafc;
    --l-white:     #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--l-text);
    background: var(--l-white);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Navbar ── */
.lnav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--l-border);
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.lnav-logo {
    display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.lnav-logo-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--l-grad);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.lnav-logo-icon .sq { width: 13px; height: 13px; background: #fff; border-radius: 3px; }
.lnav-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: var(--l-text); letter-spacing: -.3px;
}
.lnav-logo-text span { color: var(--l-primary); }
.lnav-links { display: flex; align-items: center; gap: 2rem; }
.lnav-links a { font-size: .9rem; font-weight: 500; color: var(--l-muted); transition: color .15s; }
.lnav-links a:hover { color: var(--l-text); }
.lnav-actions { display: flex; align-items: center; gap: .75rem; }

/* ── Hamburger ── */
.lnav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    margin-left: .25rem;
}
.lnav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--l-text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.lnav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lnav-hamburger.open span:nth-child(2) { opacity: 0; }
.lnav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer mobile ── */
.lnav-drawer {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--l-border);
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.lnav-drawer.open { transform: translateY(0); }
.lnav-drawer a {
    padding: .8rem .25rem;
    font-weight: 600;
    color: var(--l-text);
    border-bottom: 1px solid var(--l-border);
    font-size: .95rem;
    display: block;
}
.lnav-drawer a.l-btn { border-bottom: none; padding: .6rem 1.25rem; }

.lnav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 98;
}
.lnav-overlay.open { display: block; }

/* ── Botones landing ── */
.l-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: 10px; font-weight: 700; font-size: .9rem;
    cursor: pointer; transition: all .15s; border: none;
    text-decoration: none;
}
.l-btn-primary {
    background: var(--l-grad); color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.l-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.l-btn-ghost {
    background: transparent; color: var(--l-muted);
    border: 1.5px solid var(--l-border);
}
.l-btn-ghost:hover { border-color: var(--l-primary); color: var(--l-primary); }
.l-btn-outline {
    background: transparent; color: var(--l-primary);
    border: 2px solid var(--l-primary);
}
.l-btn-outline:hover { background: var(--l-primary); color: #fff; }
.l-btn-lg { padding: .75rem 2rem; font-size: 1rem; border-radius: 12px; }
.l-btn-white {
    background: #fff; color: var(--l-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.l-btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.12); color: var(--l-primary); }

/* ── Secciones ── */
.l-section { padding: 5rem 2rem; }
.l-section-alt { background: var(--l-bg); }
.l-container { max-width: 1140px; margin: 0 auto; }

.l-section-head {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.l-section-head .l-subtitle { margin-top: .75rem; }

.l-eyebrow {
    display: inline-block;
    background: var(--l-primary-l); color: var(--l-primary);
    font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .85rem; border-radius: 20px; margin-bottom: 1rem;
}
.l-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.15;
    color: var(--l-text); letter-spacing: -.02em;
}
.l-title span { color: var(--l-primary); }
.l-subtitle {
    font-size: 1.1rem; color: var(--l-muted); line-height: 1.7;
    max-width: 560px;
}
.l-subtitle-c { text-align: center; margin: 0 auto; }

/* ── Hero ── */
.l-hero {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
    position: relative; overflow: hidden;
}
.l-hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%);
    pointer-events: none;
}
.l-hero-inner {
    max-width: 1140px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.l-hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1.5px solid var(--l-border);
    border-radius: 20px; padding: .35rem .85rem;
    font-size: .78rem; font-weight: 600; color: var(--l-muted);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.l-hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; }
.l-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900; line-height: 1.15;
    letter-spacing: -.03em; color: var(--l-text);
    margin-bottom: 1.25rem;
}
.l-hero h1 .accent { color: var(--l-primary); }
.l-hero p {
    font-size: 1.1rem; color: var(--l-muted); line-height: 1.7;
    margin-bottom: 2rem; max-width: 480px;
}
.l-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Trust line (reemplaza stats) */
.l-hero-trust {
    display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.l-hero-trust span {
    display: flex; align-items: center; gap: .35rem;
    font-size: .8rem; color: var(--l-muted); font-weight: 600;
}
.l-hero-trust i { color: #10b981; font-size: .9rem; }

/* Preview mock del dashboard */
.l-hero-preview {
    background: var(--l-bg);
    border: 1.5px solid var(--l-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
    position: relative;
}
.l-preview-bar {
    background: #0f172a; padding: .6rem 1rem;
    display: flex; align-items: center; gap: .5rem;
}
.l-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.l-preview-body { padding: 1.25rem; }
.l-preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .75rem; }
.l-preview-kpi {
    background: #fff; border-radius: 8px; padding: .6rem .75rem;
    border: 1px solid var(--l-border);
}
.l-preview-kpi-val { font-size: .9rem; font-weight: 900; color: var(--l-text); }
.l-preview-kpi-lbl { font-size: .58rem; color: var(--l-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.l-preview-chart {
    background: #fff; border-radius: 8px; height: 90px;
    border: 1px solid var(--l-border);
    display: flex; align-items: flex-end; padding: .75rem;
    gap: 4px;
}
.l-preview-bar-item {
    flex: 1; border-radius: 3px 3px 0 0;
    background: var(--l-primary-l);
    transition: background .2s;
}
.l-preview-bar-item.active { background: var(--l-primary); }

/* ── Features grid ── */
.l-feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.l-feat-card {
    background: var(--l-white); border: 1.5px solid var(--l-border);
    border-radius: 16px; padding: 1.5rem;
    transition: transform .15s, box-shadow .15s;
}
.l-feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }

/* Cards destacadas (POS, MP Point, CC) */
.l-feat-card.l-feat-highlight {
    border-color: var(--l-primary);
    border-width: 2px;
}
.l-feat-card.l-feat-highlight .l-feat-ico {
    background: var(--l-grad);
    color: #fff;
}

.l-feat-ico {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--l-primary-l);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--l-primary);
    margin-bottom: 1rem;
}
.l-feat-title { font-size: 1rem; font-weight: 800; color: var(--l-text); margin-bottom: .5rem; }
.l-feat-desc  { font-size: .875rem; color: var(--l-muted); line-height: 1.6; }

/* ── Steps (Cómo funciona) ── */
.l-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; position: relative;
}
/* Línea conectora horizontal entre pasos */
.l-steps::before {
    content: '';
    position: absolute;
    top: 28px; /* centro del número */
    left: calc(16.66% + 28px); /* desde centro del primer num */
    right: calc(16.66% + 28px); /* hasta centro del último num */
    height: 2px;
    background: var(--l-border);
    z-index: 0;
}
.l-step {
    background: var(--l-white);
    border: 1.5px solid var(--l-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.l-step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--l-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(99,102,241,.35);
    position: relative; z-index: 1;
}
.l-step-title { font-size: 1rem; font-weight: 800; color: var(--l-text); margin-bottom: .5rem; }
.l-step-desc  { font-size: .875rem; color: var(--l-muted); line-height: 1.6; }

/* ── Pricing ── */
.l-price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    align-items: stretch;
}
.l-price-card {
    background: var(--l-white); border: 1.5px solid var(--l-border);
    border-radius: 16px; padding: 2rem;
    position: relative; transition: transform .15s, box-shadow .15s;
    display: flex; flex-direction: column;
}
.l-price-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.l-price-card.featured {
    border-color: var(--l-primary); border-width: 2px;
    box-shadow: 0 8px 30px rgba(99,102,241,.15);
}
.l-price-chip {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--l-grad); color: #fff;
    font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem 1rem; border-radius: 20px;
    white-space: nowrap;
}
.l-price-name  { font-size: 1.1rem; font-weight: 800; color: var(--l-text); margin-bottom: .5rem; }
.l-price-desc  { font-size: .82rem; color: var(--l-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.l-price-val {
    font-size: 2.5rem; font-weight: 900; color: var(--l-text); line-height: 1;
    margin-bottom: .25rem;
}
.l-price-val sup { font-size: 1.2rem; font-weight: 700; vertical-align: top; margin-top: .5rem; }
.l-price-period { font-size: .78rem; color: var(--l-muted); margin-bottom: 1.5rem; }
.l-price-features { list-style: none; margin-bottom: 1.75rem; flex: 1; }
.l-price-features li {
    display: flex; align-items: center; gap: .55rem;
    font-size: .875rem; color: var(--l-text);
    padding: .4rem 0;
    border-bottom: 1px solid #f8fafc;
}
.l-price-features li:last-child { border-bottom: none; }
.l-price-features li i { color: #10b981; font-size: .9rem; flex-shrink: 0; }
.l-price-features li.off i { color: #cbd5e1; }
.l-price-features li.off span { color: var(--l-muted); }

/* ── CTA banner ── */
.l-cta {
    background: var(--l-grad);
    border-radius: 20px; padding: 3.5rem 2rem;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.l-cta::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.l-cta h2 { font-size: 2rem; font-weight: 900; margin-bottom: .75rem; }
.l-cta p  { font-size: 1.05rem; opacity: .85; margin-bottom: 2rem; }

/* ── Footer ── */
.l-footer {
    background: var(--l-text); color: rgba(255,255,255,.6);
    padding: 3rem 2rem;
}
.l-footer-inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.l-footer-logo { color: rgba(255,255,255,.4); font-size: .82rem; }
.l-footer a { color: rgba(255,255,255,.45); font-size: .82rem; text-decoration: none; }
.l-footer a:hover { color: #fff; }
.l-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Delays para items en grilla */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal[data-delay="6"] { transition-delay: .6s; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .lnav-links    { display: none; }
    .lnav-hamburger { display: flex; }
    .l-hero-inner  { grid-template-columns: 1fr; }
    .l-hero-preview { display: none; }
    .l-feat-grid   { grid-template-columns: repeat(2, 1fr); }
    .l-price-grid  { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .l-steps       { grid-template-columns: 1fr; gap: 1rem; }
    .l-steps::before { display: none; }
    .l-step        { text-align: center; }
    .l-step-num    { margin: 0 auto 1rem; }
}
@media (max-width: 600px) {
    .lnav          { padding: 0 1rem; }
    .l-feat-grid   { grid-template-columns: 1fr; }
    .l-hero        { padding: 4rem 1rem 3rem; }
    .l-section     { padding: 3.5rem 1rem; }
    .l-cta         { padding: 2.5rem 1rem; }
    .l-cta h2      { font-size: 1.5rem; }
    .l-hero-trust  { gap: .75rem; }
    .l-price-grid  { max-width: 100%; }
    .l-footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
