/* =========================================================
   landing.css — página de presentación de FinzApp (marketing)
   Mobile-first: estilos base para celular, media queries
   (min-width) van agregando/ajustando para tablet y escritorio.
   ========================================================= */

:root{
  --purple-500:#6C5CE7;
  --purple-400:#8B7CF6;
  --purple-50:#EFECFE;
  --indigo-500:#6366F1;
  --indigo-400:#7C6FF0;
  --indigo-50:#ECEBFE;
  --green-500:#10B981;
  --green-400:#34D399;
  --green-50:#E7F9F1;
  --amber-500:#F59E0B;
  --amber-400:#FBBF24;
  --amber-50:#FFF6E3;
  --pink-500:#EC4899;
  --pink-400:#F472B6;
  --pink-50:#FDECF5;

  --bg:#F7F7FB;
  --surface:#FFFFFF;
  --surface-alt:#F8FAFC;
  --border:#EEF0F4;

  --text:#0F1117;
  --text-secondary:#3D4451;
  --text-tertiary:#68717F;
  --text-muted:#A8B0BF;

  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;

  --shadow-card:0 2px 10px rgba(20,20,43,0.06);
  --shadow-pop:0 20px 50px rgba(20,20,43,0.14);

  --font:'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:'DM Mono', ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

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

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

h1,h2,h3,p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

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

/* ---------- botones ---------- */

.l-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:999px;
  font-family:inherit;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:transform .12s ease, filter .15s ease, opacity .15s ease;
}
.l-btn:active{ transform:scale(0.97); }

.l-btn-primary{
  background:linear-gradient(135deg,var(--purple-400),var(--purple-500));
  color:#fff;
  box-shadow:0 10px 24px rgba(108,92,231,0.32);
}
.l-btn-primary:hover{ filter:brightness(1.05); }

.l-btn-ghost{
  background:var(--surface);
  color:var(--text);
  border:1.5px solid var(--border);
}
.l-btn-ghost:hover{ background:var(--surface-alt); }

.l-btn-sm{ padding:9px 16px; font-size:13.5px; }
.l-btn-lg{ padding:15px 26px; font-size:16px; }

.l-link{
  font-weight:600;
  font-size:14.5px;
  color:var(--text-secondary);
  padding:8px 4px;
}
.l-link:hover{ color:var(--text); }

/* ---------- nav ---------- */

.l-nav{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(247,247,251,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.l-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}
.l-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:16px;
  color:var(--text);
}
.l-brand-icon{ color:var(--purple-500); display:flex; }
.l-nav-links{ display:none; }
.l-nav-actions{ display:flex; align-items:center; gap:6px; }
.l-nav-actions .l-link{ display:none; }

/* ---------- hero ---------- */

.l-hero{ padding:52px 0 60px; }
.l-hero-inner{
  display:flex;
  flex-direction:column;
  gap:40px;
}
.l-eyebrow{
  display:inline-block;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.02em;
  color:var(--purple-500);
  background:var(--purple-50);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.l-hero-text h1{
  font-size:32px;
  line-height:1.18;
  font-weight:800;
  letter-spacing:-0.02em;
  margin-bottom:16px;
}
.l-hero-text h1 em{
  font-style:normal;
  background:linear-gradient(135deg,var(--purple-500),var(--indigo-500));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.l-hero-sub{
  font-size:16.5px;
  line-height:1.6;
  color:var(--text-secondary);
  max-width:52ch;
  margin-bottom:26px;
}
.l-hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.l-hero-note{
  font-size:13px;
  color:var(--text-muted);
}

/* ---------- mock del celular (hero) ---------- */

.l-hero-visual{ display:flex; justify-content:center; }
.l-mock-phone{
  width:100%;
  max-width:300px;
  background:var(--surface);
  border-radius:28px;
  padding:14px;
  box-shadow:var(--shadow-pop);
  border:1px solid var(--border);
}
.l-mock-topbar{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  color:var(--text-secondary);
  padding:2px 4px 14px;
}
.l-mock-topbar span{
  width:18px;height:18px;border-radius:6px;
  background:linear-gradient(135deg,var(--purple-400),var(--purple-500));
}

/* ---------- piezas de mockup reutilizables ---------- */

.l-mini-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow-pop);
  width:100%;
  max-width:340px;
  margin:0 auto;
}
.l-mini-card-title{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--text-tertiary);
  margin-bottom:8px;
}

.l-mock-hero{
  background:linear-gradient(135deg,var(--purple-500),var(--indigo-500));
  border-radius:18px;
  padding:18px;
  color:#fff;
  margin-bottom:12px;
}
.l-mock-hero-sm{ padding:14px 16px; margin-bottom:10px; }
.l-mock-label{ font-size:11px; text-transform:uppercase; letter-spacing:0.06em; opacity:0.85; font-weight:600; }
.l-mock-value{ font-family:var(--font-mono); font-size:26px; font-weight:600; margin:4px 0 14px; }
.l-mock-hero-sm .l-mock-value{ margin:4px 0 0; }
.l-mock-split{ display:flex; gap:16px; font-size:11.5px; opacity:0.92; }
.l-mock-split b{ display:block; font-family:var(--font-mono); font-size:12.5px; margin-top:2px; }
.l-mock-split .dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; }
.l-mock-split .dot.in{ background:#6EE7B7; }
.l-mock-split .dot.out{ background:#FCA5A5; }

.l-mock-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 4px;
  border-top:1px solid var(--border);
}
.l-mock-row:first-of-type{ border-top:none; }
.l-mock-icon{
  width:32px; height:32px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; flex-shrink:0;
}
.l-mock-icon.in{ background:var(--amber-50); }
.l-mock-icon.out{ background:var(--indigo-50); }
.l-mock-icon.piggy{ background:var(--pink-50); }
.l-mock-row-text{ flex:1; min-width:0; display:flex; flex-direction:column; }
.l-mock-row-text b{ font-size:12.5px; font-weight:600; }
.l-mock-row-text span{ font-size:10.5px; color:var(--text-muted); }
.l-mock-row-amt{ font-family:var(--font-mono); font-size:12.5px; font-weight:600; color:var(--text-secondary); white-space:nowrap; }
.l-mock-row-amt.in{ color:var(--amber-500); }
.l-mock-row-amt.out{ color:var(--indigo-500); }
.l-mock-check{
  width:20px; height:20px; border-radius:50%;
  background:var(--green-50); color:var(--green-500);
  display:flex; align-items:center; justify-content:center;
  font-size:10.5px; font-weight:700; flex-shrink:0;
}
.l-mock-toast{
  margin-top:12px;
  font-size:11px;
  font-weight:600;
  color:var(--green-500);
  background:var(--green-50);
  border-radius:10px;
  padding:8px 10px;
  text-align:center;
}

.l-mock-chart{
  display:flex;
  align-items:flex-end;
  gap:10px;
  height:110px;
  padding:6px 4px 24px;
}
.l-bar{
  flex:1;
  height:var(--h);
  background:var(--c);
  border-radius:8px 8px 4px 4px;
  position:relative;
  opacity:0.9;
}
.l-bar span{
  position:absolute;
  left:50%;
  bottom:-18px;
  transform:translateX(-50%);
  font-size:9px;
  color:var(--text-tertiary);
  font-weight:600;
  white-space:nowrap;
}
.l-mock-pdf{
  margin-top:10px;
  font-size:11px;
  font-weight:600;
  color:var(--text-secondary);
  background:var(--surface-alt);
  border-radius:10px;
  padding:9px 12px;
  text-align:center;
}
.l-mock-pdf b{ color:var(--purple-500); }

.l-save-goal{ padding:10px 2px; border-top:1px solid var(--border); }
.l-save-goal:first-child{ border-top:none; padding-top:0; }
.l-save-goal-top{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.l-save-goal-icon{
  width:34px; height:34px; border-radius:10px;
  background:var(--pink-50);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.l-save-goal-top b{ display:block; font-size:13px; font-weight:700; }
.l-save-goal-top span{ font-size:10.5px; color:var(--text-muted); font-family:var(--font-mono); }
.l-save-bar{ height:8px; border-radius:999px; background:var(--surface-alt); overflow:hidden; }
.l-save-bar-fill{ height:100%; border-radius:999px; }
.l-save-pct{ font-size:10.5px; color:var(--text-tertiary); font-weight:600; margin-top:5px; text-align:right; }

/* ---------- secciones ---------- */

.l-section{ padding:56px 0; }
.l-section-alt{ background:var(--surface); }
.l-section-head{ max-width:56ch; margin-bottom:34px; }
.l-section-head-center{ text-align:center; margin-left:auto; margin-right:auto; }
.l-section-head h2{
  font-size:26px;
  font-weight:800;
  letter-spacing:-0.01em;
  margin:2px 0 10px;
}
.l-section-head p{ font-size:15px; color:var(--text-secondary); line-height:1.55; }
.l-section-head-center p{ margin-left:auto; margin-right:auto; }

.l-grid{ display:grid; gap:16px; }
.l-grid-4{ grid-template-columns:1fr 1fr; }

.l-benefit{ padding:4px; }
.l-benefit-icon{ font-size:26px; margin-bottom:10px; }
.l-benefit h3{ font-size:15px; font-weight:700; margin-bottom:6px; }
.l-benefit p{ font-size:13px; line-height:1.55; color:var(--text-secondary); }

/* ---------- así funciona (showcase alternado) ---------- */

.l-show-row{
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:34px 0;
  border-top:1px solid var(--border);
}
.l-show-row:first-of-type{ border-top:none; padding-top:6px; }

.l-show-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:14px;
}
.l-show-tag.theme-purple{ background:var(--purple-50); color:var(--purple-500); }
.l-show-tag.theme-amber{ background:var(--amber-50); color:var(--amber-500); }
.l-show-tag.theme-indigo{ background:var(--indigo-50); color:var(--indigo-500); }
.l-show-tag.theme-green{ background:var(--green-50); color:var(--green-500); }
.l-show-tag.theme-pink{ background:var(--pink-50); color:var(--pink-500); }

.l-show-text h3{ font-size:20px; font-weight:800; letter-spacing:-0.01em; margin-bottom:10px; }
.l-show-text > p{ font-size:14.5px; line-height:1.6; color:var(--text-secondary); margin-bottom:14px; }
.l-show-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.l-show-list li{ font-size:13.5px; color:var(--text-secondary); padding-left:22px; position:relative; line-height:1.5; }
.l-show-list li::before{ content:"✓"; position:absolute; left:0; color:var(--green-500); font-weight:700; }

.l-show-visual{ display:flex; justify-content:center; }

/* ---------- extra: compartir ---------- */

.l-section-share{
  background:linear-gradient(135deg,var(--purple-50),var(--indigo-50));
}
.l-share-card{ max-width:250px; text-align:center; }
.l-share-avatars{ display:flex; justify-content:center; margin-bottom:12px; }
.l-avatar{
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:#fff;
  border:3px solid var(--surface);
}
.l-avatar.a1{ background:linear-gradient(135deg,var(--purple-400),var(--purple-500)); z-index:2; margin-right:-14px; }
.l-avatar.a2{ background:linear-gradient(135deg,var(--pink-400),var(--pink-500)); }
.l-share-code{
  font-family:var(--font-mono);
  font-size:12.5px; font-weight:600;
  color:var(--text-secondary);
  background:var(--surface-alt);
  border-radius:10px;
  padding:8px 10px;
  margin-bottom:10px;
  letter-spacing:0.02em;
}
.l-author{
  display:inline-block;
  align-self:flex-start;
  font-size:10px;
  font-weight:700;
  padding:2px 7px;
  border-radius:999px;
  margin-top:3px;
}
.l-author.a-tu{ background:var(--purple-50); color:var(--purple-500); }
.l-author.a-an{ background:var(--pink-50); color:var(--pink-500); }

/* ---------- cta final ---------- */

.l-final{
  padding:56px 0 64px;
  text-align:center;
}
.l-final-inner{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.l-final h2{ font-size:24px; font-weight:800; }
.l-final p{ font-size:14.5px; color:var(--text-secondary); margin-bottom:6px; }

/* ---------- footer ---------- */

.l-footer{ border-top:1px solid var(--border); padding:32px 0; }
.l-footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
}
.l-footer-note{ font-size:13px; color:var(--text-secondary); }
.l-footer-note a{ font-weight:600; color:var(--purple-500); }
.l-footer-copy{ font-size:12px; color:var(--text-muted); }

/* ---------- botón flotante ---------- */

.l-fab{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:50;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:15px 24px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--amber-400),var(--amber-500));
  color:#fff;
  font-weight:700;
  font-size:14.5px;
  white-space:nowrap;
  box-shadow:0 12px 28px rgba(245,158,11,0.45);
  transition:filter .15s ease;
  animation:l-fab-bounce 2.2s ease-in-out infinite;
}
.l-fab:hover{ filter:brightness(1.06); }
.l-fab:active{ transform:translateX(-50%) scale(0.96); animation-play-state:paused; }
.l-fab-icon{ display:flex; flex-shrink:0; }

@keyframes l-fab-bounce{
  0%,100%{ transform:translateX(-50%) translateY(0); box-shadow:0 12px 28px rgba(245,158,11,0.45), 0 0 0 0 rgba(245,158,11,0.4); }
  50%{ transform:translateX(-50%) translateY(-7px); box-shadow:0 18px 34px rgba(245,158,11,0.5), 0 0 0 9px rgba(245,158,11,0); }
}
@media (prefers-reduced-motion: reduce){
  .l-fab{ animation:none; transform:translateX(-50%); }
}

/* =========================================================
   TABLET / ESCRITORIO
   ========================================================= */

@media (min-width:640px){
  .l-hero-text h1{ font-size:40px; }
}

@media (min-width:860px){
  .l-nav-links{ display:flex; gap:26px; font-size:14.5px; font-weight:600; color:var(--text-secondary); }
  .l-nav-links a:hover{ color:var(--text); }
  .l-nav-actions .l-link{ display:inline-flex; }

  .l-hero{ padding:80px 0 90px; }
  .l-hero-inner{ flex-direction:row; align-items:center; gap:48px; }
  .l-hero-text{ flex:1; }
  .l-hero-text h1{ font-size:46px; }
  .l-hero-visual{ flex:1; }

  .l-grid-4{ grid-template-columns:1fr 1fr 1fr 1fr; }

  .l-section-head h2{ font-size:32px; }
  .l-section{ padding:76px 0; }

  .l-show-row{ flex-direction:row; align-items:center; gap:56px; padding:50px 0; }
  .l-show-row-rev{ flex-direction:row-reverse; }
  .l-show-text{ flex:1; }
  .l-show-visual{ flex:1; }
  .l-show-text h3{ font-size:24px; }

  .l-final h2{ font-size:30px; }

  .l-footer-inner{ flex-direction:row; justify-content:space-between; text-align:left; }
}

/* ---------- paginas legales (Terminos, Privacidad) ---------- */

.l-legal{ padding:44px 0 70px; }
.l-legal-header{ margin-bottom:8px; }
.l-legal-header h1{ font-size:26px; font-weight:800; letter-spacing:-0.01em; margin-bottom:8px; }
.l-legal-updated{ font-size:13px; color:var(--text-muted); margin-bottom:28px; }
.l-legal-notice{
  background:var(--amber-50);
  border:1px solid rgba(245,158,11,0.35);
  border-radius:var(--radius-md);
  padding:14px 16px;
  font-size:13.5px;
  color:var(--text-secondary);
  line-height:1.6;
  margin-bottom:32px;
}
.l-legal-body h2{
  font-size:18px;
  font-weight:700;
  margin:34px 0 10px;
  letter-spacing:-0.005em;
}
.l-legal-body h2:first-child{ margin-top:0; }
.l-legal-body p{ font-size:14.5px; line-height:1.7; color:var(--text-secondary); margin-bottom:12px; }
.l-legal-body ul{ margin:0 0 14px; padding-left:20px; }
.l-legal-body li{ font-size:14.5px; line-height:1.7; color:var(--text-secondary); margin-bottom:6px; }
.l-legal-body strong{ color:var(--text); }
.l-legal-body a{ color:var(--purple-500); font-weight:600; }
.l-legal-toc{
  background:var(--surface-alt);
  border-radius:var(--radius-md);
  padding:16px 20px;
  margin-bottom:8px;
}
.l-legal-toc p{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); margin-bottom:8px; }
.l-legal-toc ol{ margin:0; padding-left:18px; columns:1; }
.l-legal-toc li{ font-size:13.5px; margin-bottom:4px; }
.l-legal-toc a{ color:var(--text-secondary); }
.l-legal-toc a:hover{ color:var(--purple-500); }

@media (min-width:640px){
  .l-legal-toc ol{ columns:2; }
}

@media (min-width:1180px){
  .l-hero-text h1{ font-size:52px; }
}
