/* Flowlet landing — cuaderno de dictados sobre la lengua visual de la app:
   fondo #151926, tarjetas #1B2130 radio 14, tinta #F2F4FA, verdes para coste.
   Bricolage Grotesque para texto, Space Mono para números/precios/etiquetas.
   Cero chips, cero pills: líneas de puntos tipo factura y filetes dashed. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/spacemono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/spacemono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #151926;
  --bg-deep: #0F1320;
  --card: #1B2130;
  --ink: #F2F4FA;
  --muted: #8A93B0;
  --dim: #727E99;
  --green: #8FD5A9;
  --accent: #FF5A6E;
  --hair: rgba(242, 244, 250, .12);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.62 "Bricolage", system-ui, sans-serif;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}
/* grano fino: quita el "plástico" de las superficies planas */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--green); color: #10241A; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 88px; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.02em; font-weight: 620; }
img { display: block; }
.nb { white-space: nowrap; }
:focus-visible { outline: 2px dashed var(--green); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: "Space Mono", monospace; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 26px;
  padding: 15px 30px;
  background: rgba(21, 25, 38, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 640; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-family: "Space Mono", monospace; font-size: 12.5px; color: var(--muted);
  padding-bottom: 2px; border-bottom: 1px dashed transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--hair); }

/* ---- botones: radio 14 como en la app; nunca pills ---- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 15.5px; font-weight: 560;
  border: 1px solid var(--hair);
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: scale(.98); }
.btn-primary { background: var(--green); color: #10241A; border: 1px solid transparent; }
.btn-primary:hover { background: #A3E0BA; }
.btn-ghost:hover { background: var(--card); }
.btn-tiny { padding: 8px 14px; font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted); }
.btn-tiny:hover { color: var(--ink); background: var(--card); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 92px 30px 72px;
}
.kicker {
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--dim);
  margin-bottom: 22px; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(38px, 6.6vw, 70px); line-height: 1.0; margin-bottom: 24px; }
.hero .hl { color: var(--green); }
.lead { color: var(--muted); font-size: 19px; max-width: 44ch; }
.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---- móvil pegatina ---- */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 280px;
  border: 1.5px dashed rgba(242, 244, 250, .28);
  border-radius: 30px;
  padding: 12px;
  transform: rotate(2deg);
}
.phone-screen {
  background: var(--bg-deep);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 16px 14px 14px;
}
.phone-head {
  display: flex; align-items: center; gap: 8px;
  font-family: "Space Mono", monospace; font-size: 11px; color: var(--dim);
}
.phone-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.phone-body { height: 148px; display: flex; align-items: center; justify-content: center; }
.bubble-side { position: relative; }
.bubble-side img { color: var(--ink); }
.wave { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; height: 18px; align-items: flex-end; }
.wave i { width: 3px; border-radius: 2px; background: var(--green); animation: bar 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 7px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 15px; animation-delay: .14s; }
.wave i:nth-child(3) { height: 11px; animation-delay: .28s; }
.wave i:nth-child(4) { height: 17px; animation-delay: .42s; }
.wave i:nth-child(5) { height: 6px; animation-delay: .56s; }
@keyframes bar { 50% { transform: scaleY(.35); } }

.phone-compose {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 13px 15px;
  font-size: 14.5px;
  min-height: 48px;
}
.caret {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: -2px;
  background: var(--green); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.compose-hint {
  display: block; text-align: right; padding: 8px 4px 0;
  font-family: "Space Mono", monospace; font-size: 10.5px; color: var(--dim);
}

/* ---- ticker: los dictados de verdad ---- */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--hair);
  padding: 15px 0;
}
.ticker-track {
  display: inline-block; white-space: nowrap;
  font-family: "Space Mono", monospace; font-size: 13px; color: var(--muted);
  animation: scroll 46s linear infinite;
}
.ticker-track span { margin: 0 22px; }
.ticker-track b { color: var(--green); font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- secciones ---- */
.section { max-width: 1120px; margin: 0 auto; padding: 76px 30px; }
.section h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 34px; }
.section-sub { color: var(--muted); margin: -22px 0 34px; max-width: 58ch; }

/* ---- tres toques ---- */
.steps { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
.step { padding: 6px 30px 6px 0; }
.step + .step { border-left: 1px dashed var(--hair); padding-left: 30px; }
.step-n {
  display: block;
  font-family: "Space Mono", monospace; font-size: 42px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 244, 250, .4);
  margin-bottom: 18px;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 34ch; }

/* ---- ficha + factura ---- */
.ficha {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.ficha-list { padding: 12px 26px; display: flex; flex-direction: column; justify-content: space-evenly; }
.ficha-list .r-row b { color: var(--ink); font-weight: 400; }
.ficha-side img { margin-bottom: 16px; }
.ficha-side > p { color: var(--muted); font-size: 15.5px; max-width: 36ch; margin-bottom: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.ficha-side img, .brand img, .footer .brand img, .bubble-side img { display: block; }

/* ---- factura / menú: líneas de puntos, la firma visual de la casa ---- */
.receipt {
  margin: 16px 0 18px;
  padding: 16px 2px;
  border-top: 1px dashed var(--hair);
}
.r-row, .m-row { display: flex; align-items: baseline; padding: 7px 0; transition: background .15s ease; }
.r-row { font-family: "Space Mono", monospace; font-size: 13.5px; color: var(--muted); }
.m-row { border-radius: 8px; }
.m-row:hover { background: rgba(242, 244, 250, .03); }
.r-row i, .m-row i {
  flex: 1; margin: 0 12px; align-self: flex-end; transform: translateY(-4px);
  border-bottom: 1px dotted rgba(242, 244, 250, .3);
  transition: border-bottom-color .15s ease;
}
.r-row:hover i, .m-row:hover i { border-bottom-color: rgba(143, 213, 169, .6); }
.r-row b { color: var(--green); font-weight: 400; white-space: nowrap; }

.menu { padding: 20px 26px; }
.m-row { font-size: 18px; padding: 15px 0; }
.m-row small { font-family: "Space Mono", monospace; font-size: 11.5px; color: var(--dim); }
.m-row b {
  font-family: "Space Mono", monospace;
  font-size: 18px; color: var(--ink); font-weight: 700;
  min-width: 92px; text-align: right;
}
.m-row em {
  font-style: normal; font-family: "Space Mono", monospace;
  font-size: 11.5px; color: var(--green);
}
.m-free b em { color: var(--green); }

/* ---- dudas: lista abierta con números colgados, nada de acordeones ---- */
.faq { list-style: none; counter-reset: duda; max-width: 780px; }
.faq li {
  counter-increment: duda;
  display: grid; grid-template-columns: 54px 1fr;
  padding: 26px 0;
}
.faq li + li { border-top: 1px dashed var(--hair); }
.faq li::before {
  content: counter(duda, decimal-leading-zero);
  font-family: "Space Mono", monospace; font-size: 13px; color: var(--dim);
  padding-top: 5px;
  transition: color .15s ease;
}
.faq li:hover::before { color: var(--green); }
.faq h3, .faq p { grid-column: 2; }
.faq h3 { font-size: 19.5px; margin-bottom: 8px; }
.faq p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--hair);
  max-width: 1120px; margin: 0 auto;
  padding: 36px 30px 52px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 12px 20px; margin-left: auto; flex-wrap: wrap; }
.footer-links a {
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.footer-links a:hover { color: var(--ink); }
.footer .fineprint { width: 100%; color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.fineprint { color: var(--dim); font-size: 13.5px; }

/* ---- móvil ---- */
@media (max-width: 880px) {
  .nav { padding: 13px 20px; }
  .nav-links { display: none; }
  .nav .btn-tiny { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 44px 22px 36px; gap: 24px; }
  .hero-art { justify-content: center; }
  .hero h1 { margin-bottom: 18px; }
  .kicker { font-size: 11px; }
  .lead { font-size: 17.5px; }
  .cta-row { margin-top: 26px; }
  .section { padding: 48px 22px; }
  .section h2 { margin-bottom: 26px; }
  .section-sub { margin: -16px 0 28px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px 0; }
  .step + .step { border-left: none; padding-left: 0; }
  .ficha { grid-template-columns: 1fr; }
  .r-row { font-size: 12.5px; padding: 6px 0; }
  .r-row span { white-space: nowrap; }
  .r-row i, .m-row i { margin: 0 8px; min-width: 16px; }
  .m-row { flex-wrap: wrap; padding: 13px 0; }
  .m-row span { flex: 1 0 100%; }
  .m-row i { flex: 1 0 32px; }
  .m-row b { white-space: nowrap; margin-left: 12px; }
  .faq li { grid-template-columns: 34px 1fr; padding: 18px 0; }
  .footer-links { margin-left: 0; width: 100%; }
}

/* ---- páginas legales ---- */
.legal { max-width: 740px; margin: 0 auto; padding: 72px 30px; }
.legal h1 { font-size: 36px; margin-bottom: 6px; }
.legal .draft {
  font-family: "Space Mono", monospace;
  color: var(--accent); font-size: 12px; margin-bottom: 30px;
}
.legal .updated {
  font-family: "Space Mono", monospace;
  color: var(--dim); font-size: 12px; margin-bottom: 30px;
}
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.legal a { color: var(--green); }
