/*
  Sistema visual de la landing y de los informes: el del rediseño de
  heselmedia.com (hesel-home-astro, en vivo en hesel-home.vercel.app). Tokens de
  src/styles/tokens.css y primitivas de src/styles/global.css, más la cápsula,
  la tarjeta del calendario de /book-a-call/, las listas numeradas, el badge de
  reseñas y el pie. Lo propio de cada página va en su <style>. Si el rediseño
  cambia, se copia de nuevo desde allá.
*/

/* Onest, variable, latin, sin preload (retiene el texto). */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest.woff2") format("woff2"); }
/* Fallback con las métricas que midió el rediseño: sin él, el texto salta cuando entra Onest. */
@font-face { font-family: "Onest Fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT"), local("Roboto"); size-adjust: 104.5%; ascent-override: 92.8%; descent-override: 28.7%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 100.7%; ascent-override: 96.3%; descent-override: 29.8%; line-gap-override: 0%; }

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-2: #1b1b1b;
  --color-capsule: #121212;
  --color-light: #ffffff;
  --color-text: #f4f4f4;
  --color-text-2: #cfcfcf;
  --color-text-3: #b0b0b0;
  --color-muted: #9a9a9a;
  --color-primary: #8010db;          /* solo rellenos: 2.8:1 sobre negro */
  --color-primary-text: #b57cf5;     /* el morado para texto e íconos */
  --color-primary-soft: rgba(128, 16, 219, 0.18);
  --color-primary-glow: rgba(128, 16, 219, 0.6);
  --color-secondary: #ebe70e;        /* amarillo: solo cifras */
  --color-danger: #f87171;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --gradient-primary: linear-gradient(180deg, #3d0776 0%, #8f2af0 100%);
  --gradient-text: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1240px;
  --font: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 0.22s;
  --gutter: clamp(20px, 4vw, 48px);
  --band-y: clamp(72px, 8vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--color-bg); color-scheme: dark; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--color-primary); color: #fff; }
:where(a, button):focus-visible { outline: 2px solid var(--color-primary-text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---- Primitivas ---------------------------------------------------------- */
.container { position: relative; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; padding-block: var(--band-y); }
.band.rule { border-top: 1px solid var(--color-border); }
.card { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.grad { padding-bottom: 0.08em; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.grad .light { color: var(--color-text-3); -webkit-text-fill-color: var(--color-text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--color-text-2); }
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary-text); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--color-text-3); }
.meta { font-size: 13px; font-weight: 500; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.t-2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; }
.t-3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
/* Etiqueta en mayúsculas sobre una lista ("What happens on the call"). */
.side-h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }

/* La píldora con degradado del rediseño, y sus dos secundarias. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px 0 28px; border: 0; border-radius: var(--radius-pill); background: var(--gradient-primary); box-shadow: inset 0 -2px 3px rgba(255, 255, 255, 0.3), 0 12px 32px -12px var(--color-primary-glow); color: #fff; font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: filter var(--dur-hover) ease, box-shadow var(--dur-hover) ease; }
.btn:hover { filter: brightness(1.14); box-shadow: inset 0 -2px 3px rgba(255, 255, 255, 0.35), 0 16px 44px -12px var(--color-primary-glow); }
.btn svg { transition: transform 0.3s var(--ease-brand); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.04); color: var(--color-light); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.09); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--color-border-strong); font-size: 15px; font-weight: 500; color: var(--color-text); white-space: nowrap; transition: border-color var(--dur-hover) ease, gap 0.3s var(--ease-brand); }
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 14px; border-color: var(--color-text); }

/* ---- La cápsula flotante (sin menú: en una página de campaña no hay a dónde más ir) ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 16px var(--gutter) 0; pointer-events: none; }
.bar { pointer-events: auto; max-width: 1160px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 71px; padding: 0 12px 0 24px; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: var(--radius-pill); background: var(--color-capsule); transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.nav.scrolled .bar { background: rgba(18, 18, 18, 0.9); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { width: 132px; }

/* El brillo morado del hero del rediseño, estático (el respaldo CSS de FlowBackground, más suave). */
.glow { position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 20% at 50% 0%, rgba(138, 43, 232, 0.38), transparent 72%), radial-gradient(32% 40% at 96% 26%, rgba(138, 43, 232, 0.3), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }

/* ---- Tarjeta del calendario (de /book-a-call/) ----
   La tarjeta guarda la altura, no el iframe: mientras form_embed.js mide el widget, nada se mueve. */
.cal { min-height: 900px; overflow: hidden; }
.cal-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--color-border); }
.cal iframe { display: block; width: 100%; min-height: 720px; border: 0; background: var(--color-surface); }

/* ---- Listas numeradas con hairlines ---- */
.steps { width: 100%; border-top: 1px solid var(--color-border); }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.steps h3 { font-size: 16px; letter-spacing: -0.01em; }
.steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--color-text-3); }
.ico, .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary-text); }
.n { font-size: 13px; font-weight: 600; }

/* ---- Prueba social ---- */
.proof { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 500; color: var(--color-text-2); }
.proof img { width: 110px; }
/* RatingsBadge del rediseño: todo escala desde --u. */
.rb { --u: 16px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px; margin: 0; font-size: var(--u); font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: var(--color-light); white-space: nowrap; }
.rb .grp { display: inline-flex; align-items: center; gap: 10px; }
.rb .stars { display: inline-flex; gap: 3px; }
.rb .stars svg { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); }
.rb .tp { gap: 5px; }
.rb .tp svg { width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); }
.rb .tp-word { font-size: calc(var(--u) * 1.15); letter-spacing: -0.02em; }
.rb .sep { width: 1px; height: calc(var(--u) * 1.6); background: rgba(255, 255, 255, 0.22); }
.rb .gg img { width: auto; height: calc(var(--u) * 2.4); }
.rb .num { font-size: calc(var(--u) * 1.75); font-weight: 700; letter-spacing: -0.03em; color: var(--color-light); font-variant-numeric: tabular-nums; }

/* ---- La fila de abajo del footer del rediseño ---- */
.bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 24px; padding-block: 12px 20px; border-top: 1px solid var(--color-border); font-size: 13.5px; color: var(--color-muted); }
.bottom > span { padding-block: 12px; }
.legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.legal a { display: inline-block; padding-block: 12px; transition: color var(--dur-hover) ease; }
.legal a:hover { color: var(--color-text); }

@media (max-width: 560px) {
  :root { --band-y: 56px; }
  .bar { height: 62px; padding: 0 8px 0 18px; }
  .logo { width: 116px; }
  .btn-ghost { height: 44px; padding: 0 16px; font-size: 14px; }
  .cal { margin-inline: calc(-1 * var(--gutter) + 8px); }
  .cal iframe { min-height: 820px; }
  .proof { font-size: 13px; }
  .proof img { width: 88px; }
  .rb { --u: 13px; gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
