/* ============================================================
   Byway — Landing styles
   Blend: bold "C" tone + "B" taped notebook card. Reduced blobs.
   ============================================================ */
:root{
  --base:#F7F2EA;        /* leche / crema */
  --base-2:#F1EADB;      /* crema un punto más profundo */
  --white:#FFFDF8;
  --blue:#1B326B;        /* azul marino */
  --blue-mid:#2A4AA0;    /* azul manuscrito */
  --muted:rgba(27,50,107,0.52);
  --faint:rgba(27,50,107,0.40);
  --border:rgba(27,50,107,0.14);
  --line:rgba(27,50,107,0.09);
  --yellow:#FFF6B8;      /* amarillo pastel */
  --yellow-deep:#F1DA6E; /* trazo amarillo */
  --pink:#FFCCCC;        /* rosa pastel */
  --pink-deep:#EF9F9F;   /* trazo rosa */
  --shadow:0 18px 50px rgba(27,50,107,.13);
  --shadow-sm:0 8px 24px rgba(27,50,107,.08);
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:'DM Sans',sans-serif;
  background:var(--base);
  color:var(--blue);
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  position:relative;
}
/* faint ruled paper across the whole page */
body::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:repeating-linear-gradient(0deg,transparent 0,transparent 39px,
    var(--line) 39px, var(--line) 40px);
}
section{ position:relative; z-index:1; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 32px; }

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

/* ---------- type ---------- */
.display{ font-family:'Playfair Display',serif; font-weight:800; line-height:1.04;
  letter-spacing:-0.015em; color:var(--blue); }
.script{ font-family:'Caveat',cursive; color:var(--blue-mid); font-weight:700; line-height:.92; }
.eyebrow{ font-family:'DM Sans',sans-serif; font-size:12.5px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; color:var(--faint); }
.lede{ color:var(--muted); line-height:1.62; }
.note{ font-family:'Caveat',cursive; font-weight:600; color:var(--blue); }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:9px; font-family:'DM Sans',sans-serif;
  font-size:15.5px; font-weight:600; text-decoration:none; cursor:pointer; border:none;
  padding:15px 28px; border-radius:13px; transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease; }
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--blue); color:var(--base); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ box-shadow:0 12px 30px rgba(27,50,107,.22); }
.btn-ghost{ background:transparent; color:var(--blue); border:2px solid var(--border); }
.btn-ghost:hover{ border-color:var(--blue); }
.btn-yellow{ background:var(--yellow); color:var(--blue); box-shadow:var(--shadow-sm); }

/* ---------- nav ---------- */
nav{ position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px; background:rgba(247,242,234,.82); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border); }
.nav-logo{ height:30px; }
.nav-links{ display:flex; gap:30px; align-items:center; }
.nav-links a{ font-size:14.5px; color:var(--muted); text-decoration:none; transition:color .2s; }
.nav-links a:hover{ color:var(--blue); }
.nav-right{ display:flex; align-items:center; gap:16px; }
.lang{ display:flex; gap:2px; background:var(--white); border:1px solid var(--border);
  border-radius:22px; padding:3px; }
.lang-btn{ font-family:'DM Sans',sans-serif; font-size:12.5px; font-weight:600; padding:6px 13px;
  border-radius:18px; border:none; background:transparent; color:var(--muted); cursor:pointer; transition:all .2s; }
.lang-btn.active{ background:var(--blue); color:var(--base); }
.nav-cta{ font-size:14px; }

/* ---------- doodles ---------- */
.doodle{ position:absolute; overflow:visible; pointer-events:none; z-index:2; }
.hl{ position:relative; display:inline-block; z-index:0; }
.hl > svg{ position:absolute; left:9%; bottom:-0.06em; width:54%; height:0.26em; overflow:visible; z-index:-1; }

/* ---------- taped notebook card (signature element) ---------- */
.card{ position:relative; background:var(--white); border:1px solid var(--border);
  border-radius:16px; box-shadow:var(--shadow); }
.card-ruled{ background-image:repeating-linear-gradient(0deg,transparent 0,transparent 35px,
    rgba(27,50,107,.08) 35px, rgba(27,50,107,.08) 36px); }
.tape{ position:absolute; top:-15px; left:50%; width:128px; height:30px; border-radius:3px;
  transform:translateX(-50%) rotate(-3deg); opacity:.92;
  box-shadow:0 2px 7px rgba(27,50,107,.10); z-index:3; }
.tape.yellow{ background:rgba(241,218,110,.72); }
.tape.pink{ background:rgba(239,159,159,.6); }
.tape::after{ /* subtle tape sheen edges */
  content:''; position:absolute; inset:0; border-radius:3px;
  background:linear-gradient(90deg,rgba(255,255,255,.25),transparent 18%,transparent 82%,rgba(255,255,255,.25)); }

/* ---------- waitlist ---------- */
.wl-title{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--faint);
  font-weight:600; margin-bottom:6px; }
.wl-row{ display:flex; align-items:center; gap:13px; padding:11px 4px; position:relative; }
.wl-dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; background:rgba(27,50,107,.18);
  transition:background .4s; }
.wl-name{ position:relative; font-size:16.5px; font-weight:500; color:var(--blue); transition:color .4s; white-space:nowrap; }
.wl-eta{ margin-left:auto; font-size:13.5px; font-weight:600; color:var(--muted); }
.wl-row.done .wl-dot{ background:var(--pink-deep); }
.wl-row.done .wl-name{ color:var(--muted); }
.wl-strike{ position:absolute; left:-4px; top:52%; width:118%; height:12px; overflow:visible; pointer-events:none; }
.wl-strike path{ stroke-dasharray:300; stroke-dashoffset:300; transition:stroke-dashoffset .55s ease; }
.wl-row.done .wl-strike path{ stroke-dashoffset:0; }
.wl-you{ display:flex; align-items:center; gap:13px; padding:13px 12px; margin-top:6px; border-radius:11px;
  transition:background .4s; }
.wl-you .wl-dot{ width:10px; height:10px; }
.wl-you .wl-name{ font-weight:700; font-size:17px; }
.wl-you.lit{ background:var(--yellow); animation:blink 1.4s ease-in-out infinite; }
.wl-you.lit .wl-dot{ background:var(--blue); }
.wl-you.lit .wl-eta{ color:var(--blue); }
@keyframes blink{ 0%,100%{ opacity:1 } 50%{ opacity:.5 } }
@keyframes liftIn{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }

/* ============================================================ HERO */
.hero{ padding:140px 0 90px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.08fr .92fr; gap:54px; align-items:center; }
.hero h1{ font-size:clamp(2.7rem,5.4vw,4.6rem); margin:18px 0 0; }
.hero .script{ font-size:clamp(3.1rem,6.4vw,5.6rem); }
.hero-sub{ font-size:19.5px; max-width:480px; margin:26px 0 0; }
.hero-sub b{ color:var(--blue); }
.hero-ctas{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-trust{ display:flex; align-items:center; gap:9px; margin-top:26px; font-size:14px; color:var(--muted); }
.hero-trust .live{ width:8px; height:8px; border-radius:50%; background:var(--pink-deep);
  box-shadow:0 0 0 0 rgba(239,159,159,.6); animation:pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(239,159,159,.5) } 70%{ box-shadow:0 0 0 9px rgba(239,159,159,0) } 100%{ box-shadow:0 0 0 0 rgba(239,159,159,0) } }
.hero-card-wrap{ position:relative; justify-self:center; width:380px; max-width:100%; transform:rotate(1.6deg); }
.hero-card-wrap .card{ padding:30px 30px 32px; }
.hero-card-note{ position:absolute; right:-40px; bottom:-46px; width:150px; transform:rotate(5deg); z-index:4; }
.hero-card-note p{ font-size:22px; line-height:1.05; }

/* ============================================================ PROBLEMA */
.problema{ padding:96px 0; }
.section-head{ max-width:720px; }
.section-title{ font-family:'Playfair Display',serif; font-weight:800; line-height:1.12;
  font-size:clamp(2rem,3.8vw,3.05rem); color:var(--blue); margin:16px 0 0; letter-spacing:-0.01em; }
.section-sub{ font-size:18px; color:var(--muted); line-height:1.62; max-width:560px; margin:20px 0 0; }
.problem-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:48px; }
.problem-card{ background:var(--white); border:1px solid var(--border); border-radius:16px;
  padding:26px 24px 28px; box-shadow:var(--shadow-sm); }
.problem-card .pc-mark{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center;
  justify-content:center; margin-bottom:16px; }
.problem-card h3{ font-family:'Playfair Display',serif; font-size:1.18rem; font-weight:700; margin-bottom:9px; }
.problem-card p{ font-size:14.5px; color:var(--muted); line-height:1.58; }
.stat-bar{ display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:18px;
  margin-top:24px; background:var(--white); border:1px solid var(--border); border-radius:16px;
  padding:30px 28px; box-shadow:var(--shadow-sm); }
.stat{ text-align:center; }
.stat-num{ font-family:'Playfair Display',serif; font-weight:800; font-size:2.7rem; line-height:1; color:var(--blue); }
.stat-num .mark{ background:var(--yellow); padding:0 6px; border-radius:3px; }
.stat-label{ font-size:13.5px; color:var(--muted); line-height:1.45; margin-top:8px; max-width:230px; margin-inline:auto; }
.stat-src{ font-size:11px; color:var(--faint); margin-top:5px; }
.stat-div{ width:1px; height:64px; background:var(--border); }

/* ============================================================ COMO FUNCIONA (dark) */
.como{ padding:104px 0; background:var(--blue); position:relative; overflow:hidden; }
.como::before{ content:''; position:absolute; inset:0;
  background-image:repeating-linear-gradient(0deg,transparent 0,transparent 39px,
    rgba(247,242,234,.05) 39px, rgba(247,242,234,.05) 40px); }
.como .wrap{ position:relative; }
.como .eyebrow{ color:rgba(247,242,234,.5); }
.como .section-title{ color:var(--base); }
.como .section-sub{ color:rgba(247,242,234,.6); }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:52px; }
.step{ background:rgba(247,242,234,.06); border:1px solid rgba(247,242,234,.14); border-radius:16px;
  padding:28px 26px 30px; position:relative; }
.step-num{ font-family:'Playfair Display',serif; font-weight:800; font-size:3.2rem; line-height:1;
  color:rgba(247,242,234,.16); margin-bottom:14px; }
.step h3{ font-family:'Playfair Display',serif; font-size:1.28rem; color:var(--base); margin-bottom:10px; }
.step p{ font-size:14.5px; color:rgba(247,242,234,.62); line-height:1.6; }
.chip{ display:inline-flex; align-items:center; gap:7px; margin-top:18px; padding:6px 14px; border-radius:30px;
  font-size:12.5px; font-weight:600; }
.chip.yellow{ background:var(--yellow); color:var(--blue); }
.chip.pink{ background:var(--pink); color:var(--blue); }
.chip.faint{ background:rgba(247,242,234,.1); color:rgba(247,242,234,.62); }

/* ============================================================ DEMO */
.demo{ padding:104px 0; text-align:center; }
.badge{ display:inline-flex; align-items:center; gap:8px; background:var(--white); border:1px solid var(--border);
  padding:8px 17px; border-radius:30px; font-size:13px; font-weight:600; color:var(--blue);
  box-shadow:var(--shadow-sm); }
.badge .live{ width:8px; height:8px; border-radius:50%; background:var(--pink-deep); animation:pulse 2s infinite; }
.demo .section-title{ margin-top:22px; }
.demo .section-sub{ margin:18px auto 0; text-align:center; }
/* real product shots, mounted as taped photos */
.shots{ display:grid; grid-template-columns:repeat(3,1fr); gap:34px; margin:60px 0 36px; align-items:start; }
.shot-card{ text-align:left; }
.shot{ position:relative; width:100%; }
.shot img{ width:100%; display:block; border-radius:14px; border:1px solid var(--border); box-shadow:var(--shadow); }
.shot .tape{ z-index:4; }
.rot-a{ transform:rotate(-1.5deg); }
.rot-b{ transform:rotate(1.1deg); }
.rot-c{ transform:rotate(-0.7deg); }
.shot-cap{ margin-top:26px; }
.shot-cap .tag,.demo-cap .tag{ display:inline-block; padding:4px 12px; border-radius:30px; font-size:11.5px;
  font-weight:600; margin-bottom:10px; }
.shot-cap h3{ font-family:'Playfair Display',serif; font-size:1.18rem; margin-bottom:6px; }
.shot-cap p{ font-size:14px; color:var(--muted); line-height:1.55; }
/* admin panel — featured row */
.shot-admin{ display:grid; grid-template-columns:1.45fr 1fr; gap:54px; align-items:center;
  text-align:left; margin:26px 0 44px; }
.shot-admin .shot-cap{ margin-top:0; }
.shot-admin h3{ font-family:'Playfair Display',serif; font-size:1.7rem; line-height:1.15; margin-bottom:12px; }
.shot-admin p{ font-size:15.5px; color:var(--muted); line-height:1.6; }

/* ============================================================ PARA QUIEN */
.quien{ padding:104px 0; }
.audience-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:52px; }
.aud{ border-radius:18px; padding:30px 28px 32px; border:1px solid var(--border); position:relative; }
.aud.rest{ background:var(--yellow); }
.aud.cli{ background:var(--pink); }
.aud.ciu{ background:var(--white); }
.aud-tag{ font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--blue);
  opacity:.55; display:block; margin-bottom:16px; }
.aud h3{ font-family:'Playfair Display',serif; font-size:1.5rem; margin-bottom:16px; }
.aud ul{ list-style:none; display:flex; flex-direction:column; gap:11px; }
.aud li{ font-size:15px; color:var(--blue); opacity:.78; padding-left:22px; position:relative; line-height:1.45; }
.aud li::before{ content:''; position:absolute; left:0; top:9px; width:11px; height:2px; border-radius:2px; background:var(--blue); opacity:.5; }

/* ============================================================ VISION */
.vision{ padding:120px 0; text-align:center; }
.vision .section-title{ font-size:clamp(2.1rem,4.4vw,3.4rem); max-width:880px; margin:18px auto 0; }
.vision .section-title .script{ font-size:clamp(2.6rem,5.4vw,4.4rem); }
.vision p{ font-size:18.5px; color:var(--muted); line-height:1.6; max-width:600px; margin:28px auto 0; }
.vision .btn{ margin-top:36px; }

/* ============================================================ CTA FINAL (dark) */
.cta{ padding:108px 0; background:var(--blue); position:relative; overflow:hidden; text-align:center; }
.cta::before{ content:''; position:absolute; inset:0;
  background-image:repeating-linear-gradient(0deg,transparent 0,transparent 39px,
    rgba(247,242,234,.05) 39px, rgba(247,242,234,.05) 40px); }
.cta-inner{ position:relative; max-width:560px; margin:0 auto; }
.cta .eyebrow{ color:rgba(247,242,234,.5); }
.cta-title{ font-family:'Playfair Display',serif; font-weight:800; color:var(--base);
  font-size:clamp(2.1rem,4.2vw,3.1rem); line-height:1.12; margin:16px 0 0; }
.cta-sub{ font-size:17px; color:rgba(247,242,234,.62); line-height:1.6; margin:18px 0 0; }
.cta-form{ display:flex; flex-direction:column; gap:11px; max-width:440px; margin:36px auto 0; }
.cta-input{ padding:15px 18px; background:rgba(247,242,234,.07); border:1px solid rgba(247,242,234,.22);
  border-radius:12px; font-family:'DM Sans',sans-serif; font-size:15px; color:var(--base); outline:none;
  transition:border-color .2s, background .2s; }
.cta-input::placeholder{ color:rgba(247,242,234,.4); }
.cta-input:focus{ border-color:rgba(247,242,234,.55); background:rgba(247,242,234,.1); }
.cta-form .btn{ justify-content:center; margin-top:4px; }
.cta-or{ display:flex; align-items:center; gap:16px; color:rgba(247,242,234,.4); font-size:13px; margin:30px 0 16px; }
.cta-or::before,.cta-or::after{ content:''; flex:1; height:1px; background:rgba(247,242,234,.18); }
.cta-mail{ font-size:15px; color:rgba(247,242,234,.66); }
.cta-mail a{ color:var(--base); text-decoration:underline; text-underline-offset:3px; }

/* ============================================================ FOOTER */
footer{ padding:30px 32px; display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--border); flex-wrap:wrap; gap:14px; }
.footer-logo{ height:22px; opacity:.55; }
.footer-copy{ font-size:13px; color:var(--muted); }
.footer-links{ display:flex; gap:20px; }
.footer-links a{ font-size:13px; color:var(--muted); text-decoration:none; }
.footer-links a:hover{ color:var(--blue); }

/* ---------- lang toggle visibility ---------- */
[data-en]{ display:none; }
body.en [data-es]{ display:none; }
body.en [data-en]{ display:revert; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ============================================================ RESPONSIVE */
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; gap:60px; }
  .hero-card-wrap{ justify-self:start; }
  .problem-grid,.steps,.shots,.audience-grid{ grid-template-columns:1fr; }
  .shots{ max-width:420px; }
  .shot-admin{ grid-template-columns:1fr; gap:28px; max-width:520px; }
  .stat-bar{ grid-template-columns:1fr; gap:24px; }
  .stat-div{ width:64px; height:1px; justify-self:center; }
  .nav-links{ display:none; }
}
@media (max-width:560px){
  .wrap{ padding:0 20px; }
  nav{ padding:14px 20px; }
  .hero{ padding:120px 0 70px; }
  .hero-card-wrap{ width:100%; transform:none; }
  .nav-cta{ display:none; }
}
