/* Tipografías alojadas en el propio sitio (subset latin) */
@font-face { font-family: "Cal Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cal-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

/* Solos web · misma identidad que la app y la prueba web: blanco, bordes finos, coral de marca.
   Solo tema claro. Animar solo transform y opacity. */
:root {
  --brand-50: #fff4f0;
  --brand-100: #ffe4da;
  --brand-200: #ffc6b2;
  --brand-500: #ff6a45;
  --brand-600: #d9431f;
  --brand-700: #b5361a;
  --ink: #0f0f10;
  --ink-2: #4b4b52;
  --ink-3: #6f6f78;
  --line: #e8e8ea;
  --line-2: #f0f0f2;
  --bg: #ffffff;
  --subtle: #f7f7f8;
  --stage: #f2f2f4;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --display: "Cal Sans", "Inter", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 15, 16, .05);
  --shadow-cta: 0 8px 24px rgba(217, 67, 31, .3);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.todo { background: var(--brand-50); color: var(--brand-700); border-radius: 4px; padding: 0 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* cabecera */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,.86); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.spacer { flex: 1; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-sm); transition: background var(--t-fast); }
.top nav a:hover { background: var(--subtle); color: var(--ink); }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; }
.langsw a { padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.langsw a[aria-current="true"] { background: var(--ink); color: #fff; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand-600); background: var(--brand-600); color: #fff; padding: 12px 20px; border-radius: var(--r-md); font: 600 15px/1.2 "Inter", sans-serif; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-cta); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--subtle); border-color: #d6d6da; }

/* estructura */
section { padding: 72px 24px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.center { text-align: center; }
.section-title { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; text-align: center; margin-bottom: 14px; }
.section-sub { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 auto 40px; text-align: center; }

/* portada */
.hero { max-width: 820px; margin: 0 auto; padding: 9vh 24px 40px; text-align: center; }
.hero > * { animation: rise var(--t-slow) var(--ease-out) backwards; }
.hero > :nth-child(2) { animation-delay: 60ms; } .hero > :nth-child(3) { animation-delay: 120ms; } .hero > :nth-child(4) { animation-delay: 180ms; }
.hero h1 { font-size: clamp(36px, 8vw, 72px); line-height: 1.05; margin-bottom: 20px; }
.nw { white-space: nowrap; }
/* «randoms» en cursiva en castellano; Cal Sans no tiene cursiva, así que se inclina */
.hero h1 em, .section-title em { font-style: normal; display: inline-block; transform: skewX(-10deg); transform-origin: 50% 100%; padding-right: .04em; }
.hero p.lead { color: var(--ink-2); font-size: clamp(17px, 2.4vw, 20px); max-width: 560px; margin: 0 auto 30px; }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .note { color: var(--ink-3); font-size: 13.5px; margin: 0; }

/* antes / después: marcadores grises */
.ba { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba figure { margin: 0; }
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--stage); border: 1px dashed #d4d4d8; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.ph span { max-width: 300px; text-wrap: balance; }
.ba figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ba .after figcaption { color: var(--brand-700); }
.ba .after .ph { border-color: var(--brand-200); background: var(--brand-50); }

/* pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; text-align: center; background: var(--bg); }
.steps .n { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font: 400 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* precios */
.prices-bg { background: var(--subtle); border-block: 1px solid var(--line-2); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.plan.free { border-color: var(--brand-200); background: var(--brand-50); }
.plan .amount { font: 400 34px/1.1 var(--display); }
.plan .what { font-weight: 600; font-size: 15px; }
.plan .sm { color: var(--ink-3); font-size: 13.5px; }
.prices-note { text-align: center; color: var(--ink-2); font-size: 14.5px; margin: 24px auto 0; max-width: 520px; }

/* privacidad corta */
.privacy-box { max-width: 680px; margin: 0 auto; text-align: center; }
.privacy-box p { color: var(--ink-2); font-size: 17px; margin: 0 0 22px; }
.link { color: var(--brand-700); font-weight: 600; text-underline-offset: 3px; }

.soon { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: default; user-select: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }

/* pie */
footer { border-top: 1px solid var(--line-2); padding: 28px 24px 40px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer p { margin: 0; }

/* páginas de texto */
.doc { max-width: 700px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; margin-bottom: 8px; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; text-align: left; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--ink); }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; margin: 10px 0; background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-600); font-weight: 400; font-size: 20px; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }
.contact-box { margin-top: 36px; border: 1px solid var(--line); background: var(--subtle); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.contact-box p { margin: 0 0 4px; }

/* responsive */
@media (max-width: 900px) {
  .steps, .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  section { padding: 52px 20px; }
  .top { padding: 10px 16px; }
  .top nav a { display: none; }
  .ba { grid-template-columns: 1fr; }
  .steps, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 6vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* comparativas */
.top nav a.keep { display: inline-block; }
.doc.cmp { max-width: 860px; }
.cmp h2 { margin-top: 40px; }
.cmp .answer { margin-top: 28px; border: 1px solid var(--brand-200); background: var(--brand-50); border-radius: var(--r-lg); padding: 20px 22px; }
.cmp .answer h2 { margin: 0 0 8px; font-size: 20px; color: var(--brand-700); }
.cmp .answer p { margin: 0; color: var(--ink); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pick > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 22px 14px; }
.pick h2 { font-size: 20px; margin-top: 18px; }
.pick-s { border-color: var(--brand-200) !important; }
.tbl { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.tbl thead th { background: var(--subtle); color: var(--ink); font-weight: 600; }
.tbl tbody th { color: var(--ink); font-weight: 600; width: 24%; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.testbox { margin-top: 32px; border: 1px dashed #d4d4d8; background: var(--subtle); border-radius: var(--r-lg); padding: 18px 22px; }
.testbox h2 { margin: 0 0 6px; font-size: 20px; }
.testbox p { margin: 0; }
.soon-row { margin: 32px 0 0; text-align: center; }
.others { padding-left: 20px; }
.others a { color: var(--brand-700); text-underline-offset: 3px; }
.notice { margin-top: 36px; color: var(--ink-3) !important; font-size: 13px; line-height: 1.5; }
.notice a { color: var(--ink-2); text-underline-offset: 2px; }
@media (max-width: 700px) { .pick { grid-template-columns: 1fr; } }
