/* ═══════════════════════════════════════════════════════════════
   DEUNA — Landing page pública
   ═══════════════════════════════════════════════════════════════ */
:root {
  --l-ink:      #0f172a;
  --l-ink-soft: #475569;
  --l-muted:    #94a3b8;
  --l-line:     #e2e8f0;
  --l-bg:       #f4f4fb;
  --l-bg-soft:  #eaeaf6;
  --l-accent:   #6366f1;
  --l-accent2:  #8b5cf6;
  --l-grad:     linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --l-radius:   16px;
  --l-shadow:   0 10px 40px -12px rgba(15, 23, 42, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--l-ink);
  background: var(--l-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Botones ─────────────────────────────────────────────── */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 12px 22px;
  border-radius: 12px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.l-btn-primary { background: var(--l-grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5); }
.l-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(99, 102, 241, 0.6); }
.l-btn-ghost { background: transparent; color: var(--l-ink); border: 1.5px solid var(--l-line); }
.l-btn-ghost:hover { border-color: var(--l-accent); color: var(--l-accent); }
.l-btn-white { background: #fff; color: var(--l-accent); }
.l-btn-white:hover { transform: translateY(-2px); }
.l-btn-lg { padding: 15px 30px; font-size: 16px; }

/* ── Header ──────────────────────────────────────────────── */
.l-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--l-line);
}
.l-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.l-brand img { width: 34px; height: 34px; border-radius: 9px; }
.l-nav-links { display: flex; align-items: center; gap: 28px; }
.l-nav-links a.l-nav-link { color: var(--l-ink-soft); font-weight: 500; font-size: 15px; transition: color .15s; }
.l-nav-links a.l-nav-link:hover { color: var(--l-ink); }

/* ── Hero ────────────────────────────────────────────────── */
.l-hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.l-hero::before {
  content: ''; position: absolute; top: -180px; right: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  z-index: 0;
}
.l-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef2ff; color: var(--l-accent); font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.l-hero h1 { font-size: 50px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 850; margin-bottom: 20px; }
.l-hero h1 .l-hl { background: var(--l-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.l-hero p.l-lead { font-size: 19px; color: var(--l-ink-soft); margin-bottom: 30px; max-width: 520px; }
.l-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.l-hero-note { margin-top: 18px; font-size: 13px; color: var(--l-muted); }

/* ── Mockup del hero ─────────────────────────────────────── */
.l-mock {
  background: #fff; border: 1px solid var(--l-line); border-radius: 20px;
  box-shadow: var(--l-shadow); overflow: hidden;
}
.l-mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--l-line); background: var(--l-bg-soft); }
.l-mock-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.l-mock-body { padding: 18px; }
.l-mock-title { font-size: 13px; font-weight: 700; color: var(--l-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.l-mock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.l-mock-prod { background: var(--l-bg-soft); border: 1px solid var(--l-line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.l-mock-prod-emoji { font-size: 26px; }
.l-mock-prod-name { font-size: 12px; font-weight: 600; margin-top: 6px; }
.l-mock-prod-price { font-size: 12px; color: var(--l-accent); font-weight: 700; }
.l-mock-total { display: flex; justify-content: space-between; align-items: center; background: var(--l-grad); color: #fff; border-radius: 12px; padding: 14px 16px; }
.l-mock-total small { opacity: .85; font-size: 12px; display: block; }
.l-mock-total b { font-size: 22px; }

/* ── Logos / rubros ──────────────────────────────────────── */
.l-strip { padding: 30px 0; border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); background: var(--l-bg-soft); }
.l-strip-inner { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.l-strip-item { display: flex; align-items: center; gap: 9px; color: var(--l-ink-soft); font-weight: 600; font-size: 15px; }
.l-strip-item span { font-size: 22px; }

/* ── Secciones ───────────────────────────────────────────── */
.l-section { padding: 88px 0; }
.l-section-alt { background: var(--l-bg-soft); }
.l-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.l-head .l-kicker { color: var(--l-accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.l-head h2 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 820; margin: 10px 0 14px; }
.l-head p { font-size: 18px; color: var(--l-ink-soft); }

/* ── Grid de features ────────────────────────────────────── */
.l-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.l-feature {
  background: #fff; border: 1px solid var(--l-line); border-radius: var(--l-radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.l-feature:hover { transform: translateY(-4px); box-shadow: var(--l-shadow); border-color: transparent; }
.l-feature-ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; background: #eef2ff; margin-bottom: 16px;
}
.l-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.l-feature p { font-size: 15px; color: var(--l-ink-soft); }

/* ── Bloque "ejemplo" alternado ──────────────────────────── */
.l-example { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.l-example:last-child { margin-bottom: 0; }
.l-example.l-reverse .l-example-text { order: 2; }
.l-example-text h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.l-example-text p { font-size: 17px; color: var(--l-ink-soft); margin-bottom: 18px; }
.l-check { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.l-check li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--l-ink); }
.l-check li::before { content: '✓'; color: #16a34a; font-weight: 800; flex: 0 0 auto; }

/* Tarjetas de ejemplo (mock UI) */
.l-card { background: #fff; border: 1px solid var(--l-line); border-radius: 18px; box-shadow: var(--l-shadow); overflow: hidden; }
.l-card-head { padding: 14px 18px; border-bottom: 1px solid var(--l-line); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; background: var(--l-bg-soft); }
.l-card-body { padding: 18px; }

/* Stat cards */
.l-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l-stat { background: var(--l-bg-soft); border: 1px solid var(--l-line); border-radius: 12px; padding: 14px; }
.l-stat small { color: var(--l-muted); font-size: 12px; font-weight: 600; }
.l-stat b { display: block; font-size: 24px; margin-top: 4px; letter-spacing: -0.02em; }
.l-stat.l-up b { color: #16a34a; }

/* Chat WhatsApp mock */
.l-wa { background: #e5ddd5; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.l-wa-msg { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; max-width: 90%; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.l-wa-msg.l-out { background: #dcf8c6; align-self: flex-end; }
.l-wa-time { font-size: 10px; color: var(--l-muted); text-align: right; margin-top: 2px; }

/* Access mock (gym/bar) */
.l-access { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.l-access-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }
.l-access-ok { background: #dcfce7; color: #16a34a; }
.l-access-no { background: #fee2e2; color: #dc2626; }
.l-access b { font-size: 15px; }
.l-access small { color: var(--l-muted); font-size: 12px; }

/* ── Rubros (para quién) ─────────────────────────────────── */
.l-verticals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.l-vert { border: 1px solid var(--l-line); border-radius: var(--l-radius); padding: 26px 22px; text-align: center; background: #fff; transition: transform .18s, box-shadow .18s; }
.l-vert:hover { transform: translateY(-4px); box-shadow: var(--l-shadow); }
.l-vert-emoji { font-size: 40px; }
.l-vert h4 { font-size: 17px; font-weight: 750; margin: 12px 0 6px; }
.l-vert p { font-size: 14px; color: var(--l-ink-soft); }

/* ── CTA final ───────────────────────────────────────────── */
.l-cta { text-align: center; }
.l-cta-box { background: var(--l-grad); border-radius: 28px; padding: 64px 32px; color: #fff; position: relative; overflow: hidden; }
.l-cta-box h2 { font-size: 38px; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 14px; }
.l-cta-box p { font-size: 18px; opacity: .92; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }
.l-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.l-footer { padding: 44px 0; border-top: 1px solid var(--l-line); color: var(--l-muted); font-size: 14px; }
.l-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.l-footer .l-brand { font-size: 17px; color: var(--l-ink); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .l-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .l-hero { padding: 56px 0 48px; }
  .l-hero h1 { font-size: 38px; }
  .l-hero p.l-lead { font-size: 17px; }
  .l-nav-links .l-nav-link { display: none; }
  .l-features { grid-template-columns: 1fr; }
  .l-verticals { grid-template-columns: 1fr 1fr; }
  .l-example, .l-example.l-reverse { grid-template-columns: 1fr; gap: 28px; }
  .l-example.l-reverse .l-example-text { order: 0; }
  .l-section { padding: 60px 0; }
  .l-head h2 { font-size: 30px; }
  .l-cta-box h2 { font-size: 30px; }
  .l-cta-box { padding: 48px 22px; }
}
@media (max-width: 480px) {
  .l-verticals { grid-template-columns: 1fr; }
  .l-strip-inner { gap: 22px; }
}

/* ── Animaciones al scroll ───────────────────────────────────
   Se activan solo si <html> tiene .l-anim (lo agrega un script en el
   <head> cuando el navegador soporta IntersectionObserver y el usuario
   no pidió menos movimiento). Sin .l-anim, todo se ve normal (sin riesgo
   de página en blanco si el JS fallara). */
.l-anim .l-head,
.l-anim .l-feature,
.l-anim .l-vert,
.l-anim .l-strip-item,
.l-anim .l-cta-box,
.l-anim .l-hero-grid > div:first-child {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.l-anim .l-in { opacity: 1 !important; transform: none !important; }

/* Ejemplos: llegan desde los costados (texto de un lado, tarjeta del otro) */
.l-anim .l-example .l-example-text,
.l-anim .l-example .l-card {
  opacity: 0;
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.l-anim .l-example .l-example-text { transform: translate3d(-50px, 0, 0); }
.l-anim .l-example .l-card         { transform: translate3d(50px, 0, 0); }
.l-anim .l-example.l-reverse .l-example-text { transform: translate3d(50px, 0, 0); }
.l-anim .l-example.l-reverse .l-card         { transform: translate3d(-50px, 0, 0); }

/* Cambio de color de toda la página al llegar a rubros/CTA */
body { transition: background .9s ease; }
body.l-warm { background: linear-gradient(170deg, #f2effc 0%, #ece2fb 55%, #e6d8fb 100%); }

/* Offset para que el header fijo no tape el título al saltar a una sección */
#inicio, #modulos, #ejemplos, #rubros, #contacto { scroll-margin-top: 78px; }

/* Header: sombra al hacer scroll */
.l-header { transition: box-shadow .25s ease, background .25s ease; }
.l-header.l-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .22); background: rgba(255, 255, 255, .92); }

/* Movimiento sutil continuo (solo si el usuario no pidió menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .l-mock { animation: l-fadein .8s cubic-bezier(.16, .8, .3, 1) both, l-floaty 6.5s ease-in-out .9s infinite; }
  .l-hero::before { animation: l-drift 16s ease-in-out infinite; }
}
@keyframes l-fadein { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes l-floaty { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes l-drift  { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-24px, 20px, 0) scale(1.08); } }
