/* =========================================================================
   Cerostaff — cerostaff.com (landing de marketing)
   Sistema de diseño "black-pastel" portado desde Claude Design.
   Estático puro: tokens + componentes. Sin build, sin framework.
   Tipografía: Inter (UI/display) + IBM Plex Mono (eyebrows/mono) — Google Fonts.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..700;1,14..32,300..600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* -------------------------------------------------------------------------
   Tokens de color — triples RGB, consumidos con rgb(var(--token))
   (misma convención que el producto Cerostaff)
   ------------------------------------------------------------------------- */
:root {
  /* Marca — carbón plano */
  --brand-sky:      66 66 70;
  --brand-primary:  40 40 42;
  --brand-hover:    69 69 74;
  --brand-deep:     27 27 28;
  --brand-ink:      22 22 23;

  /* Tier cálido — papel + arcilla (Anthropic-inspired) */
  --paper:      250 249 245;
  --paper-deep: 240 238 230;
  --paper-card: 255 255 255;
  --clay:        204 120 92;
  --clay-strong: 179 99 73;
  --kraft:       166 119 84;

  /* Superficies */
  --bg-surface: 255 255 255;
  --bg-page:    248 250 251;
  --bg-muted:   245 247 250;
  --bg-sunken:  238 242 247;

  /* Texto */
  --text-primary:   27 27 28;
  --text-secondary: 74 85 104;
  --text-subtle:    122 133 151;

  /* Bordes */
  --border-default: 225 229 236;
  --border-strong:  201 208 218;

  /* Estados */
  --success: 34 160 107;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radios / sombras / motion */
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 18px;
  --shadow-card: rgba(22,42,91,0.04) 0 0 0 1px, rgba(11,42,91,0.05) 0 1px 2px 0;
  --shadow-md: rgba(22,22,23,0.10) 0 6px 18px -6px, rgba(22,22,23,0.06) 0 2px 6px -2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgb(var(--text-primary));
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(40,40,42,0.18); border-radius: 6px; }

/* -------------------------------------------------------------------------
   Header (compartido con las páginas legales)
   ------------------------------------------------------------------------- */
.lp-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; }
.lp-header__bar {
  width: 92%; max-width: 1440px; padding: 0 22px 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(22,22,23,0.08); border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 22px -16px rgba(22,22,23,0.32);
  transition: background var(--dur-base), box-shadow var(--dur-base);
}
.lp-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.lp-header__logo img { height: 34px; width: auto; display: block; }
.lp-navlinks { display: flex; gap: 26px; align-items: center; }
.lp-navlink { font-size: 14px; color: rgb(var(--text-secondary)); text-decoration: none; letter-spacing: -0.01em; transition: color .15s; }
.lp-navlink:hover { color: rgb(var(--brand-ink)); }

/* Botones */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 500; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .12s;
}
.lp-btn--dark { background: #28282a; color: #fff; box-shadow: 0 1px 2px rgba(22,22,23,0.18); }
.lp-btn--dark:hover { background: #45454a; }
.lp-btn--dark:active { background: #1b1b1c; transform: translateY(1px); }
.lp-btn--ghost { background: transparent; color: #161617; }
.lp-btn--ghost:hover { background: rgba(40,40,42,0.05); }
.lp-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.lp-btn--md { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.lp-btn--dark.lp-btn--md { box-shadow: 0 8px 24px -12px rgba(22,22,23,0.5); }

/* -------------------------------------------------------------------------
   Utilidades landing: marquee, reveal, whatsapp flotante
   ------------------------------------------------------------------------- */
@keyframes lp-scroll { to { transform: translateX(-50%); } }
@keyframes lp-wa-ping { 0% { opacity:.5; transform:scale(.9); } 70% { opacity:0; transform:scale(1.5); } 100% { opacity:0; } }
.lp-marquee { position:relative; overflow:hidden; width:100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.lp-marquee__track { display:flex; align-items:center; gap:60px; width:max-content; animation: lp-scroll 64s linear infinite; }
.lp-marquee__track--rev { animation-direction: reverse; animation-duration: 79s; }
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
.lp-mq-logo { width:34px; height:34px; object-fit:contain; filter:grayscale(1); opacity:.4; transition:filter .25s, opacity .25s, transform .25s; }
.lp-mq-logo:hover { filter:grayscale(0); opacity:1; transform:translateY(-2px); }

[data-rv] { opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-rv].rv-in { opacity:1; transform:none; }

.lp-wa-float {
  position:fixed; right:26px; bottom:26px; z-index:60; width:58px; height:58px; border-radius:50%;
  background:#28282a; display:grid; place-items:center;
  box-shadow:0 12px 30px -10px rgba(22,22,23,0.5); text-decoration:none;
  transition:background .15s, transform .15s;
}
.lp-wa-float:hover { background:#45454a; transform:translateY(-2px); }
.lp-wa-float__ping { position:absolute; inset:0; border-radius:50%; border:1.5px solid rgba(40,40,42,0.35); animation:lp-wa-ping 2.6s ease-out infinite; }
.lp-wa-float img { width:30px; height:30px; object-fit:contain; position:relative; filter:brightness(0) invert(1); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.lp-hero { background: rgb(var(--paper)); scroll-margin-top: 84px; overflow: hidden; min-height: min(640px, 88vh); display:flex; flex-direction:column; }
.lp-hero__inner { max-width:1180px; width:100%; margin:0 auto; padding:0 32px; box-sizing:border-box; flex:1; display:flex; flex-direction:column; }
.lp-hero__head { padding-top:64px; max-width:760px; margin:0 auto; text-align:center; }
.lp-hero-h1 {
  font-family: var(--font-sans); font-weight: 600; font-size: 68px; letter-spacing: -0.04em;
  line-height: 1.04; color: rgb(var(--brand-ink)); margin: 0; text-wrap: balance; text-align: center;
}
.lp-hero__sub { max-width:560px; margin:26px auto 0; font-size:18px; line-height:1.55; letter-spacing:-0.01em; color:rgb(var(--text-secondary)); text-wrap:pretty; text-align:center; }
.lp-hero__ctas-wrap { margin-top:auto; padding-bottom:40px; display:flex; flex-direction:column; align-items:center; gap:18px; }
.lp-hero__ctas { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.lp-hero__meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:center; }
.lp-hero__meta span { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; color:rgb(var(--text-subtle)); }
.lp-hero__marquee-wrap { padding:0 32px 30px; }
.lp-hero__marquee-inner { max-width:1180px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }

/* -------------------------------------------------------------------------
   Sistema Vivo (Beneficios)
   ------------------------------------------------------------------------- */
.sv-eyebrow { font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#7A8597; }
.sv-h1 { font-family:var(--font-sans); font-weight:600; letter-spacing:-0.035em; line-height:1.04; color:#161617; margin:0; text-wrap:balance; }
.sv-sub { font-family:var(--font-sans); color:#4A5568; letter-spacing:-0.01em; line-height:1.55; margin:0; text-wrap:pretty; }
.sv-flowcanvas { position:relative; border-radius:12px; overflow:hidden; background-color:#F4F6F9; background-image:radial-gradient(#C4CCD8 1px,transparent 1px); background-size:22px 22px; border:1px solid #E1E5EC; }
@keyframes bubblein { 0%{opacity:0;transform:translateY(12px) scale(.92)} 60%{opacity:1;transform:translateY(-3px) scale(1.015)} 100%{opacity:1;transform:translateY(0) scale(1)} }
@keyframes eq { 0%,100%{transform:scaleY(.35)} 50%{transform:scaleY(1)} }
@keyframes pingr { 0%{opacity:.5;transform:scale(.9)} 70%{opacity:0;transform:scale(1.3)} 100%{opacity:0} }
.sv-node {
  width:250px; box-sizing:border-box; background:#fff; border:1px solid #E1E5EC; border-radius:13px;
  padding:12px 14px; display:flex; align-items:center; gap:12px; box-shadow:0 1px 3px rgba(22,22,23,.06);
}
.sv-node__icon { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; color:#fff; flex-shrink:0; }
.sv-node__eyebrow { font-family:var(--font-mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:#7A8597; }
.sv-node__title { font-size:13.5px; font-weight:600; color:#1b1b1c; letter-spacing:-.01em; margin-top:2px; }

/* -------------------------------------------------------------------------
   Red de Negocios
   ------------------------------------------------------------------------- */
.rn-node { position: absolute; top: 0; left: 0; width: 26px; transform-origin: 13px 13px; display: flex; flex-direction: column; align-items: center; gap: 7px; will-change: transform, opacity; cursor: grab; user-select: none; transition: opacity .18s ease; }
.rn-node.rn-dragging { cursor: grabbing; }
.rn-disc { width: 26px; height: 26px; border-radius: 50%; background: #28282a; border: 1px solid #28282a; box-shadow: rgba(0,0,0,0.10) 0 1px 3px 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .18s var(--ease-out), border-color .18s ease, box-shadow .18s ease, color .18s ease; }
.rn-node[data-featured="1"] .rn-disc { box-shadow: 0 0 0 4px rgb(var(--bg-page)), 0 0 0 5px rgb(var(--border-strong)), rgba(0,0,0,0.10) 0 1px 3px 0; }
.rn-node[data-hot="1"] .rn-disc { transform: scale(1.18); background: #161617; border-color: #161617; color: #fff; box-shadow: rgba(40,40,42,0.16) 0 0 0 4px, rgba(0,0,0,0.14) 0 4px 12px 0; }
.rn-disc svg { width: 11px; height: 11px; stroke-width: 1.75; }
.rn-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--text-subtle)); white-space: nowrap; transition: color .18s ease; text-align:center; }
.rn-node[data-hot="1"] .rn-label { color: rgb(var(--brand-ink)); }
.rn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes rn-fade { from { opacity: 0; } to { opacity: 1; } }
.rn-node[data-reco="1"] .rn-disc { background: #CC785C; border-color: #CC785C; color: #fff; box-shadow: rgba(204,120,92,0.30) 0 0 0 5px, rgba(0,0,0,0.12) 0 4px 12px 0; }
.rn-node[data-reco="1"] .rn-label { color: #CC785C; }
.rn-node[data-reco="1"] { opacity: 1 !important; transition: opacity .4s ease; }
.rn-node[data-dim="1"] { opacity: 0.32 !important; transition: opacity .5s ease; }
.rn-benefit { background:#fff; border:1px solid rgb(var(--border-default)); border-radius:12px; padding:20px; box-shadow:var(--shadow-card); transition:transform .18s var(--ease-out),box-shadow .18s ease,border-color .18s ease; }
.rn-benefit:hover { transform:scale(1.045); box-shadow:0 12px 30px -12px rgba(40,40,42,0.30); border-color:rgb(var(--border-strong)); }
.rn-layout { display:grid; grid-template-columns:300px 1fr; gap:48px; align-items:start; }
.rn-copy { display:flex; flex-direction:column; justify-content:center; padding-top:20px; }
.rn-graph-col { min-width:0; }
.rn-benefits { margin-top:40px; margin-left:-348px; width:calc(100% + 348px); display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.rn-benefit__icon { width:36px; height:36px; border-radius:9px; background:rgb(var(--bg-muted)); border:1px solid rgb(var(--border-default)); display:flex; align-items:center; justify-content:center; color:#28282a; margin-bottom:13px; }
.rn-benefit__icon svg { width:18px; height:18px; }
.rn-benefit__title { font-size:14.5px; font-weight:600; letter-spacing:-0.01em; color:rgb(var(--brand-ink)); line-height:1.3; margin-bottom:6px; }
.rn-benefit__desc { font-size:12.5px; line-height:1.5; color:rgb(var(--text-secondary)); }
@media (max-width: 900px) {
  .rn-layout { grid-template-columns:1fr; gap:20px; }
  .rn-benefits { grid-template-columns:1fr; margin-left:0; width:100%; }
  #rn-graph { height:360px !important; }
}

/* Producto y autoridad */
.pa-authority { display:grid; grid-template-columns:1.05fr 0.95fr; gap:54px; align-items:end; }
.pa-orbit-row { display:grid; grid-template-columns:minmax(0,360px) 1fr; gap:40px; align-items:center; }
.pa-orbit-col { width:100%; max-width:360px; margin:0 auto; }
.pa-security { margin-top:52px; background:linear-gradient(135deg,#1b1b1c 0%,#28282a 42%,#161617 100%); border-radius:18px; padding:44px 46px; position:relative; overflow:hidden; }
.pa-security__grid-bg { position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size:18px 18px; opacity:0.5; }
.pa-security__items { display:grid; grid-template-columns:repeat(2,1fr); gap:22px 40px; }
.pa-sec-item { display:flex; gap:12px; align-items:flex-start; }
.pa-sec-check { color:#22A06B; margin-top:1px; flex-shrink:0; display:inline-flex; }
.pa-sec-t { font-size:14px; font-weight:600; color:#fff; margin-bottom:3px; }
.pa-sec-d { font-size:12.5px; line-height:1.5; color:rgba(255,255,255,0.62); }
@media (max-width: 900px) {
  .pa-authority { grid-template-columns:1fr; gap:20px; align-items:start; }
  .pa-orbit-row { grid-template-columns:minmax(0,1fr); gap:8px; justify-items:center; }
  .pa-security__items { grid-template-columns:1fr; }
  .pa-security { padding:32px 24px; }
}

/* -------------------------------------------------------------------------
   Producto y Autoridad — órbita + seguridad
   ------------------------------------------------------------------------- */
@keyframes csspin { to { transform: rotate(360deg); } }
@keyframes csspinrev { to { transform: rotate(-360deg); } }
@keyframes csping { 0% { opacity:.5; transform:scale(.92); } 70% { opacity:0; transform:scale(1.16); } 100% { opacity:0; } }
.cs-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: rgb(var(--brand-primary)); text-transform: uppercase; letter-spacing: 0.12em; }

/* -------------------------------------------------------------------------
   Cierre — FAQ + CTA + footer
   ------------------------------------------------------------------------- */
.faq-item { border-top:1px solid #EEF2F7; }
.faq-btn { width:100%; display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:24px 2px; background:none; border:0; cursor:pointer; text-align:left; font-family:inherit; }
.faq-q { font-size:17.5px; font-weight:600; letter-spacing:-0.018em; line-height:1.35; color:#161617; flex:1; }
.faq-icon { flex-shrink:0; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; margin-top:-2px; border:1px solid #E1E5EC; background:#fff; color:#28282a; transition:transform .3s var(--ease-out), background .2s, border-color .2s, color .2s; }
.faq-item.is-open .faq-icon { border-color:#28282a; background:#28282a; color:#fff; transform:rotate(180deg); }
.faq-answer { display:grid; grid-template-rows:0fr; transition:grid-template-rows .34s var(--ease-out); }
.faq-item.is-open .faq-answer { grid-template-rows:1fr; }
.faq-answer > div { overflow:hidden; min-height:0; }
.faq-answer p { font-size:14.5px; line-height:1.64; color:#4A5568; margin:0; padding:0 46px 26px 2px; text-wrap:pretty; }

.lp-footer { background:#161617; color:#fff; padding:64px 40px 30px; }
.lp-footer a { transition:color .15s; }
.lp-footer__grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px; }
.lp-footer__brand p { font-size:13.5px; line-height:1.6; color:rgba(255,255,255,0.52); margin:20px 0 0; max-width:280px; text-wrap:pretty; }
.lp-footer__h { font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.12em; color:rgba(255,255,255,0.4); margin-bottom:18px; }
.lp-footer__col { display:flex; flex-direction:column; gap:12px; }
.lp-footer__col a { font-size:13.5px; color:rgba(255,255,255,0.72); text-decoration:none; display:inline-flex; align-items:center; gap:9px; }
.lp-footer__col a:hover { color:#fff; }
.lp-footer__bottom { max-width:1100px; margin:48px auto 0; padding-top:24px; border-top:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.lp-footer__bottom .copy { font-size:12.5px; color:rgba(255,255,255,0.4); }
.lp-footer__social { display:flex; align-items:center; gap:14px; }
.lp-footer__social a { display:inline-flex; align-items:center; opacity:0.55; filter:grayscale(1); transition:opacity .2s, filter .2s, transform .2s; }
.lp-footer__social a:hover { opacity:1; filter:none; transform:translateY(-1px); }
.lp-footer__social a img, .lp-footer__social a svg { width:18px; height:18px; object-fit:contain; display:block; }

/* -------------------------------------------------------------------------
   Navegación móvil (hamburguesa + panel desplegable)
   ------------------------------------------------------------------------- */
.lp-navtoggle {
  display:none; align-items:center; justify-content:center; width:40px; height:40px;
  border:1px solid rgba(22,22,23,0.10); border-radius:10px; background:#fff; color:#161617;
  cursor:pointer; flex-shrink:0; transition:background .15s, border-color .15s;
}
.lp-navtoggle:hover { background:rgba(40,40,42,0.05); }
.lp-navtoggle__close { display:none; }
.lp-navtoggle[aria-expanded="true"] .lp-navtoggle__open { display:none; }
.lp-navtoggle[aria-expanded="true"] .lp-navtoggle__close { display:block; }

.lp-mobilemenu {
  display:none; position:absolute; top:64px; left:4%; right:4%; z-index:49;
  flex-direction:column; gap:4px; padding:12px;
  background:rgba(255,255,255,0.98); backdrop-filter:saturate(180%) blur(14px); -webkit-backdrop-filter:saturate(180%) blur(14px);
  border:1px solid rgba(22,22,23,0.10); border-radius:16px;
  box-shadow:0 18px 40px -18px rgba(22,22,23,0.42);
  opacity:0; transform:translateY(-8px); transition:opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.lp-mobilemenu.is-open { display:flex; opacity:1; transform:none; }
.lp-mobilemenu__link { padding:12px 14px; border-radius:10px; font-size:15px; color:rgb(var(--text-secondary)); transition:background .15s, color .15s; }
.lp-mobilemenu__link:hover { background:rgba(40,40,42,0.05); color:rgb(var(--brand-ink)); }
.lp-mobilemenu__cta { margin-top:6px; width:100%; height:44px; }
@media (prefers-reduced-motion: reduce) {
  .lp-mobilemenu { transition:none; }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .lp-navlinks, .lp-signin, .lp-nav-cta { display:none !important; }
  .lp-navtoggle { display:inline-flex; }
  .lp-hero-h1 { font-size:44px !important; }
  .lp-footer__grid { grid-template-columns:1fr; gap:32px; }
}
@media (max-width: 640px) {
  .lp-hero-h1 { font-size:36px !important; }
  .lp-hero__sub { font-size:16px; }
  .lp-hero__head { padding-top:44px; }
  .faq-answer p { padding:0 8px 22px 2px; }
  .lp-footer { padding:48px 24px 26px; }
}
@media (max-width: 400px) {
  .lp-hero-h1 { font-size:31px !important; }
  .lp-header__bar { padding:0 14px 0 18px; }
}
@media (max-width: 640px) {
  section[data-screen-label="Preguntas frecuentes"] { padding:64px 20px 56px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv] { opacity:1 !important; transform:none !important; }
  .lp-marquee__track { animation:none !important; }
}

/* Sistema Vivo: pista de desplazamiento en móvil */
.sv-scrollhint { display:none; font-family:var(--font-mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:rgb(var(--text-subtle)); text-align:center; margin-top:10px; }
.sv-scrollhint svg { vertical-align:middle; margin-left:4px; }
@media (max-width: 900px) { .sv-scrollhint { display:block; } }
