/* ============================================================
   Samurai — landing premium
   Sistema visual desde raw/DESIGN.md
   Dark editorial · champagne gold · cinematic precision
   ============================================================ */

:root {
  /* — colores (DESIGN.md) — */
  --bg-black: #050505;
  --bg-charcoal: #0B0B0A;
  --bg-panel: #11100E;
  --bg-card: #15130F;

  --text-ivory: #F4EFE6;
  --text-muted: #A7A097;
  --text-dim: #6F6A61;

  --gold: #C9A86A;
  --gold-light: #E7CE97;
  --gold-dark: #8E7346;
  --gold-border: rgba(201, 168, 106, 0.35);
  --gold-soft: rgba(201, 168, 106, 0.10);

  --whatsapp-green: #25D366; /* verde OFICIAL de WhatsApp (#25D366), exacto a la marca (Federico 2026-07-03). Antes era #128C4A, un verde profundo que Codex eligió para pegar con negro/oro; Federico pidió el original. */

  /* — radios (DESIGN.md) — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;

  /* — spacing (DESIGN.md) — */
  --s-xs: 6px;
  --s-sm: 12px;
  --s-md: 20px;
  --s-lg: 32px;
  --s-xl: 56px;
  --s-xxl: 96px;

  /* — tipografía (DESIGN.md) — */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-black);
  color: var(--text-ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* grain / noise overlay — atmósfera cinematográfica */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
.gold { color: var(--gold); }
.muted-line { color: var(--text-muted); }

/* ---------- Eyebrow / label-caps ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-md);
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.dim { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #17110699;
  color: #1a1206;
  padding: 16px 28px;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 34px -14px rgba(201, 168, 106, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -14px rgba(201, 168, 106, 0.78); }

.btn-secondary {
  background: transparent;
  color: var(--text-ivory);
  padding: 16px 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
}
.btn-secondary:hover { border-color: var(--gold); color: #fff; }
.btn-secondary .dot-ring {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: inline-block;
}
.btn-sm { padding: 12px 18px; }
.btn-lg { padding: 19px 36px; font-size: 12px; }
.btn:focus-visible,
.lead-form input:focus-visible,
.lead-form select:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@media (hover: none) {
  .btn:hover, .btn-primary:hover, .btn-secondary:hover, .wa-float:hover { transform: none; }
  .btn:active, .wa-float:active { transform: translateY(1px) scale(0.99); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 24px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 13px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 106, 0.13);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { color: var(--gold); font-size: 19px; line-height: 1; }
.brand-word { font-family: var(--sans); font-weight: 700; letter-spacing: 0.3em; font-size: 14px; }
.nav-links { display: flex; gap: 38px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-ivory); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 108px 0 96px;
  background:
    radial-gradient(110% 75% at 80% 22%, rgba(201,168,106,0.09), transparent 58%),
    linear-gradient(180deg, #060605 0%, var(--bg-black) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 24px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-lg);
  max-width: 15ch;
}
.hero-sub {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: var(--s-xl);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--s-xl); }

.trust { border-top: 1px solid rgba(244,239,230,0.08); padding-top: var(--s-lg); }
.trust-line { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--s-md); }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logos li {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex: none;
  color: rgba(244, 239, 230, 0.62);
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0.78;
}
.logos li svg {
  width: 15px; height: 15px; flex: none;
  color: var(--gold);
}
.logos li span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logos li:hover { color: var(--text-ivory); opacity: 1; }

/* ---- Hero visual (imagen real del samurái) ---- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.samurai-hero {
  position: relative;
  width: 112%; max-width: 700px;
  margin-left: -170px;
  margin-right: 0;
  animation: floaty 10s ease-in-out infinite;
}
.samurai-hero img {
  display: block; width: 100%; height: auto;
  /* feather en los 4 bordes para que el rectángulo se funda al negro */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 79%, transparent 96%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 79%, transparent 96%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
  filter: contrast(1.05) brightness(1.02);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.kanji-rail {
  position: absolute; right: -28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  z-index: 3;
}
.kanji { font-size: 46px; line-height: 1; color: var(--gold); writing-mode: vertical-rl; letter-spacing: 0.06em; opacity: 0.95; }
.kanji-label {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase;
}
.kanji-sub {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.2em; text-transform: uppercase;
  max-width: 6em; line-height: 1.5;
}

/* ---- Hero: intake en vivo (mensajes entran → lead sale) ---- */
.hero-flow { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-flow span {
  position: absolute;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  white-space: nowrap; padding: 8px 13px; border-radius: 13px;
  background: rgba(6,8,7,0.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid var(--gold-border); color: var(--text-ivory);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.95);
  opacity: 0; will-change: transform, opacity;
}
.flow-msg { padding-left: 27px; }
.flow-msg::before {
  content: ""; position: absolute; left: 12px; top: 50%; margin-top: -3.5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--whatsapp-green);
}
.flow-msg-1 { left: 2%; bottom: 27%; animation: heroMsg 7s var(--ease) infinite; }
.flow-msg-2 { left: 12%; bottom: 14%; animation: heroMsg 7s var(--ease) infinite 3.4s; }
.flow-lead {
  right: 3%; top: 16%; padding-left: 29px; font-weight: 700;
  border-color: var(--gold); color: var(--gold-light);
  animation: heroLead 7s var(--ease) infinite 1.4s;
}
.flow-lead::before {
  content: "✓"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 700;
}
@keyframes heroMsg {
  0% { opacity: 0; transform: translateY(16px); }
  11% { opacity: 1; transform: translateY(0); }
  34% { opacity: 1; transform: translateY(-6px); }
  48% { opacity: 0; transform: translateY(-24px); }
  100% { opacity: 0; transform: translateY(-24px); }
}
@keyframes heroLead {
  0%, 38% { opacity: 0; transform: translateY(12px) scale(0.96); }
  52% { opacity: 1; transform: translateY(0) scale(1); }
  84% { opacity: 1; transform: translateY(0) scale(1); }
  98%, 100% { opacity: 0; transform: translateY(-6px) scale(1); }
}

/* ============================================================
   BRAND PHRASE + BENEFITS
   ============================================================ */
.brandphrase { padding: var(--s-xxl) 0; border-top: 1px solid rgba(201,168,106,0.08); }
.phrase-head { text-align: center; max-width: 800px; margin: 0 auto var(--s-xl); }
.phrase-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: var(--s-md); letter-spacing: -0.02em; }
.phrase-head p { color: var(--text-muted); font-size: 16px; }
.brand-figure { width: 100%; max-width: 430px; margin: 0 auto var(--s-xl); }
.brand-figure img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 80%, transparent 97%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 80%, transparent 97%),
    linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
  filter: contrast(1.04) brightness(1.02);
}

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.benefit {
  text-align: center;
  padding: 0 6px;
  transition: transform 0.35s var(--ease);
}
.benefit:hover { transform: translateY(-4px); }
.benefit:hover .benefit-ico { color: var(--gold-light); }
.benefit-ico {
  color: var(--gold); display: flex; justify-content: center;
  margin-bottom: 24px; transition: color 0.3s var(--ease);
}
.benefit-ico svg { width: 46px; height: 46px; }
.benefit h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin-bottom: 11px; letter-spacing: -0.01em; }
.benefit p { font-family: var(--sans); font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 26ch; margin: 0 auto; }

/* ============================================================
   MÉTODO — CÓMO TRABAJAMOS
   ============================================================ */
.metodo {
  padding: var(--s-xxl) 0;
  background: linear-gradient(180deg, var(--bg-black), #080807 50%, var(--bg-black));
  border-top: 1px solid rgba(201,168,106,0.08);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  counter-reset: step;
  margin-top: var(--s-xl);
}
.step {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-charcoal));
  border: 1px solid rgba(201,168,106,0.18);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--gold-border); }
.step-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-family: var(--sans); font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.metodo-note {
  max-width: 680px;
  margin: var(--s-xl) auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding: 22px 28px;
  border: 1px solid rgba(201,168,106,0.18);
  border-radius: var(--r-md);
  background: var(--gold-soft);
}
.metodo-note strong { color: var(--text-ivory); font-weight: 600; }

/* ============================================================
   ¿ES PARA TU EMPRESA? — filtro + garantía
   ============================================================ */
.fit { padding: var(--s-xxl) 0; border-top: 1px solid rgba(201,168,106,0.08); }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}
.fit-card {
  padding: 34px 32px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-charcoal));
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
}
.fit-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 18px; letter-spacing: -0.01em; }
.fit-card .ticks li { font-size: 14.5px; color: var(--text-muted); }
.fit-card .ticks { margin-bottom: 0; }
.fit-card-no { border-color: rgba(244,239,230,0.12); }
.ticks-no li::before { content: "✕"; color: var(--text-dim); }
.fit-note {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-dim);
}
.garantia {
  text-align: center;
  max-width: 720px;
  margin: var(--s-xl) auto 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.4;
  color: var(--text-ivory);
}
.garantia-sub {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   LEAD FORM
   ============================================================ */
.lead-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iti { width: 100%; }
/* intl-tel-input — dropdown en la estética dark/oro de Samurai (override del CSS de la librería) */
.iti__country-selector {
  background: #14110d !important;
  border: 1px solid rgba(201, 168, 106, 0.28) !important;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.55);
  color: var(--text-ivory);
  overflow: hidden;
}
.iti__search-input {
  background: rgba(244, 239, 230, 0.05);
  color: var(--text-ivory);
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  padding: 13px 14px !important;
  padding-left: 44px !important; /* deja lugar a la lupa: el texto ya no se solapa */
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.iti__search-input::placeholder { color: var(--text-dim); }
.iti__country-list { background: transparent; }
.iti__country { color: var(--text-ivory); padding: 10px 14px; }
.iti__country-name { color: var(--text-ivory); }
.iti__dial-code { color: var(--text-dim); }
.iti__country:hover { background: rgba(244, 239, 230, 0.06); }
.iti__country.iti__highlight { background: rgba(201, 168, 106, 0.16); }
.iti__selected-dial-code { color: var(--text-ivory); }
.lead-form label { display: flex; flex-direction: column; gap: 7px; height: 100%; }
/* En un form-row, el input se pega abajo: si una etiqueta se parte en 2 líneas, los campos igual alinean. */
.form-row label > input,
.form-row label > select,
.form-row label > .iti { margin-top: auto; }
.lead-form label > span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lead-form input,
.lead-form select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-ivory);
  background: rgba(244,239,230,0.04);
  border: 1px solid rgba(244,239,230,0.14);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  width: 100%;
  appearance: none;
}
.lead-form select { cursor: pointer; }
.lead-form select option { background: var(--bg-charcoal); color: var(--text-ivory); }
.lead-form input::placeholder { color: var(--text-dim); }
.lead-form input:focus,
.lead-form select:focus { border-color: var(--gold); background: rgba(201,168,106,0.06); }
.lead-form .btn { justify-content: center; margin-top: 6px; }
/* Honeypot anti-spam: display:none (NO off-screen) para que los navegadores/gestores
   NO lo autocompleten — un autofill del campo abortaba el envío de leads reales. */
.hp-field { display: none !important; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--gold); text-align: center; margin: 0; }
.form-status.error { color: #d98c79; }

/* Confirmación tras enviar el formulario: reemplaza al form por un panel de aprobación
   (verde WhatsApp + tilde + próximos pasos + invitación a chatear con Samu). Antes los
   campos quedaban deshabilitados con los datos a la vista y la señal era un renglón de
   texto discreto, así que la persona no sabía si el envío había funcionado. */
.lead-form[hidden] { display: none; }
.lead-success[hidden] { display: none; }
.lead-success {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-sm);
  padding: var(--s-xl) var(--s-lg);
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(37, 211, 102, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(37, 211, 102, 0.06), rgba(11, 11, 10, 0.5));
  box-shadow: 0 30px 80px -40px rgba(37, 211, 102, 0.5);
  animation: leadPop 0.5s var(--ease) both;
}
.lead-success-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--whatsapp-green);
  box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.12), 0 10px 30px -8px rgba(37, 211, 102, 0.6);
}
.lead-success-badge svg { width: 30px; height: 30px; }
.lead-success h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.lead-success > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0;
}
.lead-success .btn-wa { margin-top: var(--s-xs); }
.lead-success-note { font-size: 13px; color: var(--text-dim); margin: 0; }

.btn-wa {
  background: var(--whatsapp-green);
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--r-sm);
  box-shadow: 0 10px 34px -14px rgba(37, 211, 102, 0.65);
  justify-content: center;
}
.btn-wa:hover { background: #1DA851; color: #fff; box-shadow: 0 16px 42px -14px rgba(37, 211, 102, 0.82); }

@keyframes leadPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-success { animation: none; }
}

/* ============================================================
   SISTEMA VIVO  (copy izq · diagrama der)
   ============================================================ */
.sistema { padding: var(--s-xxl) 0; background: linear-gradient(180deg, var(--bg-black), #080807); }
.sistema-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: center; }
.sistema-copy h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; margin-bottom: var(--s-md); letter-spacing: -0.03em; }
.sistema-body { color: var(--text-muted); font-size: 16px; margin-bottom: var(--s-md); max-width: 42ch; }
.process-line { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 21px; margin-bottom: var(--s-md); }
.ticks { list-style: none; margin-bottom: var(--s-lg); }
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: var(--text-ivory); font-size: 15px;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--gold); font-size: 15px; font-weight: 700; line-height: 1.5;
}

/* ============================================================
   DIAGRAMA DE FLUJO
   ============================================================ */
.diagram-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 920 / 620;
}
.diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.node {
  position: absolute;
  width: 22.3%;
  z-index: 2;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-charcoal));
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 11px 13px;
  box-shadow: 0 14px 34px -22px rgba(0,0,0,0.9);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.node:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 38px -20px rgba(201,168,106,0.45); }
.node-k {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 5px;
}
.node-ico { display: inline-flex; color: var(--gold); margin-bottom: 7px; }
.node-ico svg { width: 19px; height: 19px; }
.node-ico.wa { color: var(--whatsapp-green); }
.node h4 { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.12; margin-bottom: 4px; letter-spacing: -0.01em; }
.node p { font-family: var(--sans); font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.node-loop { border-color: rgba(201,168,106,0.45); background: linear-gradient(180deg, #1c1810, var(--bg-charcoal)); }

/* posiciones (canvas 920x470, 4 col · 3 filas) */
.n1  { left: 0%;     top: 0%; }
.n2  { left: 25.87%; top: 0%; }
.n3  { left: 51.74%; top: 0%; }
.n4  { left: 25.87%; top: 37.4%; }
.n5  { left: 51.74%; top: 37.4%; }
.n6  { left: 77.6%;  top: 37.4%; }
.n7  { left: 77.6%;  top: 74.8%; }
.n8  { left: 51.74%; top: 74.8%; }
.n9  { left: 25.87%; top: 74.8%; }
.n10 { left: 0%;     top: 74.8%; }

.flow-foot {
  text-align: center; max-width: 640px; margin: var(--s-xl) auto 0;
  color: var(--text-muted); font-family: var(--serif); font-style: italic; font-size: 20px;
}

/* ============================================================
   CASOS  (cliente real + ejemplo ilustrativo)
   ============================================================ */
.casos {
  padding: var(--s-xxl) 0;
  border-top: 1px solid rgba(201,168,106,0.08);
  background: linear-gradient(180deg, var(--bg-black), #080807 50%, var(--bg-black));
}
.casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}
.caso-card {
  padding: 34px 32px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-charcoal));
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.caso-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.caso-ej { border-color: rgba(244,239,230,0.12); }
.caso-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 18px;
}
.caso-tag-dim { color: var(--text-dim); border-color: rgba(244,239,230,0.14); }
.caso-card h3 { font-size: 23px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; line-height: 1.12; }
.caso-lead { font-family: var(--sans); font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 22px; }
.caso-card .ticks { margin-bottom: 0; }
.caso-card .ticks li { font-size: 14.5px; color: var(--text-muted); }

/* ============================================================
   CTA FINAL  (samurái cinematográfico izq · copy der)
   ============================================================ */
.finalcta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 12% 55%, rgba(201,168,106,0.07), transparent 52%),
    linear-gradient(180deg, #070706, var(--bg-black));
  border-top: 1px solid rgba(201,168,106,0.1);
}
/* imagen real con full-bleed al borde izquierdo, fundida hacia el copy */
.final-art {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 58%; z-index: 0;
}
.final-art img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  -webkit-mask-image:
    linear-gradient(90deg, #000 52%, transparent 98%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 52%, transparent 98%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  filter: contrast(1.05);
}
.final-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 40% 1fr; gap: 40px; align-items: center; }
.final-grid > * { min-width: 0; }
.final-copy { text-align: center; }
.final-copy h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.05; margin-bottom: var(--s-md); letter-spacing: -0.025em; }
.final-copy p { color: var(--text-muted); font-size: 16px; max-width: 44ch; margin: 0 auto var(--s-lg); }
.final-primary { margin: 0 auto var(--s-lg); }
.final-primary .btn-lg { display: inline-flex; }
.final-primary-note { color: var(--text-dim); font-size: 13px; margin-top: 12px; }
.final-or { color: var(--text-muted); font-size: 14px; max-width: 44ch; margin: 0 auto var(--s-md); padding-top: var(--s-lg); border-top: 1px solid rgba(201,168,106,0.14); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 44px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-note { color: var(--text-dim); font-size: 13px; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 440px; margin: 0 auto; }
  .samurai-hero { width: 100%; margin-left: 0; margin-right: 0; }
  .hero-title { max-width: 100%; }
  .sistema-grid { grid-template-columns: 1fr; gap: 44px; }
  .finalcta { padding: 0 0 90px; }
  .final-grid { grid-template-columns: 1fr; gap: 36px; }
  .final-spacer { display: none; }
  .final-art {
    position: static; width: 100%; height: 280px;
    margin: 0 0 8px;
  }
  .final-art img {
    object-position: left center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  }
  .final-copy { padding: 0 40px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: 1fr; }
  .casos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .diagram-canvas { aspect-ratio: auto; display: flex; flex-direction: column; }
  .diagram-svg { display: none; }
  .node { position: relative; left: auto; top: auto; width: 100%; margin-bottom: 36px; }
  .node:last-child { margin-bottom: 0; }
  .node::after {
    content: ""; position: absolute; left: 50%; bottom: -30px;
    width: 1px; height: 24px; background: var(--gold-border);
  }
  .node:last-child::after { display: none; }
  /* legibilidad mobile (Codex): piso 12px en texto, 11px en micro-tags */
  .btn { font-size: 12px; line-height: 1.25; }
  .eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .trust-line { font-size: 12px; }
  .logos li span { font-size: 12px; }
  .lead-form label > span { font-size: 12px; }
  .node p { font-size: 12px; line-height: 1.5; }
  .caso-tag, .node-k { font-size: 11px; }
}

@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .hero { padding: 132px 0 72px; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .kanji-rail { display: none; }
  /* navbar compacto para que no se desborde el CTA */
  .nav { padding: 16px 0; }
  .brand-word { font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; }
  .nav-inner { gap: 14px; }
  .nav .btn-primary {
    min-height: 44px; padding: 11px 16px;
    font-size: 12px; letter-spacing: 0.08em; white-space: nowrap;
  }
  .nav-cta-rest { display: none; }
  .nav .btn .arrow { display: none; }
  h1, h2, h3, h4, .hero-title, .final-copy h2 { letter-spacing: 0; }
  .final-copy { padding: 0; }
  .lead-form .btn-lg { white-space: normal; line-height: 1.6; padding: 15px 20px; }
  .hero-actions .btn-primary { white-space: normal; line-height: 1.35; }
  .final-primary .btn-lg { white-space: normal; line-height: 1.4; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .samurai-hero { animation: none; }
  .wa-float::after { animation: none; }
  .hero-flow .flow-msg { display: none; }
  .hero-flow .flow-lead { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   WHATSAPP — botón flotante original (FAB redondo, logo oficial)
   El único punto de WhatsApp en la landing: no agrega CTA al hero ni
   compite con el form; es el botón que todo el mundo reconoce.
   ============================================================ */
.wa-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--whatsapp-green); /* verde WhatsApp profundo */
  color: #fff;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.62); /* aro champagne: cohesión con la paleta */
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.08), 0 18px 42px -16px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Señal única al cargar: un aro dorado que se expande UNA sola vez (no bounce). */
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.55); pointer-events: none; opacity: 0;
  animation: waRing 900ms var(--ease) 1.8s 1 forwards;
}
@keyframes waRing {
  from { opacity: 0.85; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.55); }
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 5px rgba(201, 168, 106, 0.12), 0 20px 46px -16px rgba(0, 0, 0, 0.9); }
.wa-float:focus-visible { outline: 2px solid #E7CE97; outline-offset: 4px; }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   HERO — chat vivo + resolución (burbujas WhatsApp + spinner→check Vercel)
   ============================================================ */
.hchat { width: 100%; max-width: 400px; }
.hchat-live { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.hchat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--whatsapp-green); box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: hlive 2.4s infinite; }
@keyframes hlive { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hchat-body { display: flex; flex-direction: column; gap: 7px; min-height: 222px; }

.hmsg { max-width: 84%; padding: 8px 11px 9px; border-radius: 13px; font-family: var(--sans); font-size: 12.5px; line-height: 1.4; transition: opacity .28s var(--ease), transform .28s var(--ease); will-change: transform, opacity; }
.hmsg.show { opacity: 1; transform: none; }
.hmsg i { font-style: normal; font-size: 9.5px; color: var(--text-dim); float: right; margin: 5px 0 -2px 10px; }
.hmsg.in { align-self: flex-start; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); color: var(--text-muted); border-top-left-radius: 4px; }
.hmsg.out { align-self: flex-end; background: linear-gradient(180deg, rgba(201,168,106,.17), rgba(201,168,106,.10)); border: 1px solid var(--gold-border); color: var(--text-ivory); border-top-right-radius: 4px; }
.hmsg .hrt { color: #4FB6EC; font-weight: 700; letter-spacing: -1px; }
.hname { display: block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold); margin-bottom: 3px; }
.hmsg .htext { display: inline; }

.hproc { margin: 8px 0 2px; border: 1px solid var(--gold-border); border-radius: var(--r-md); background: linear-gradient(180deg, rgba(21,19,15,.5), rgba(11,11,10,.5)); overflow: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.hproc.show { opacity: 1; transform: none; }
.hstep { display: flex; align-items: center; gap: 10px; padding: 8px 13px; font-family: var(--sans); font-size: 12px; color: var(--text-ivory); transition: color .3s; }
.hstep + .hstep { border-top: 1px solid rgba(255,255,255,.05); }
.hstep-l { flex: 1; }
.hdot { width: 18px; height: 18px; flex: none; position: relative; }
.hring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(201,168,106,.20); opacity: 0; transition: opacity .18s var(--ease); }
.hspin { position: absolute; inset: 0; opacity: 0; transition: opacity .18s var(--ease); }
.hspin i { position: absolute; left: 44.5%; top: 37%; width: 11%; height: 26%; border-radius: 9999px; background: var(--gold-light); animation: hbar 1.2s linear infinite; }
@keyframes hbar { 0% { opacity: 1; } 100% { opacity: .15; } }
.hspin i:nth-child(1){transform:rotate(0deg) translate(146%);animation-delay:-1.1s;}
.hspin i:nth-child(2){transform:rotate(30deg) translate(146%);animation-delay:-1.0s;}
.hspin i:nth-child(3){transform:rotate(60deg) translate(146%);animation-delay:-.9s;}
.hspin i:nth-child(4){transform:rotate(90deg) translate(146%);animation-delay:-.8s;}
.hspin i:nth-child(5){transform:rotate(120deg) translate(146%);animation-delay:-.7s;}
.hspin i:nth-child(6){transform:rotate(150deg) translate(146%);animation-delay:-.6s;}
.hspin i:nth-child(7){transform:rotate(180deg) translate(146%);animation-delay:-.5s;}
.hspin i:nth-child(8){transform:rotate(210deg) translate(146%);animation-delay:-.4s;}
.hspin i:nth-child(9){transform:rotate(240deg) translate(146%);animation-delay:-.3s;}
.hspin i:nth-child(10){transform:rotate(270deg) translate(146%);animation-delay:-.2s;}
.hspin i:nth-child(11){transform:rotate(300deg) translate(146%);animation-delay:-.1s;}
.hspin i:nth-child(12){transform:rotate(330deg) translate(146%);animation-delay:0s;}
.hchk { position: absolute; inset: 0; display: grid; place-items: center; opacity: 1; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.hchk svg { width: 17px; height: 17px; }
.hchk path { stroke: var(--gold-light); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset .24s var(--ease); }
/* ---- modo animado: el JS agrega .animate al body; sin él, el chat se ve resuelto ---- */
.hchat-body.animate .hmsg,
.hchat-body.animate .hproc { opacity: 0; transform: translateY(9px); }
.hchat-body.animate .hmsg.show,
.hchat-body.animate .hproc.show,
.hchat-body.animate .htyping.show { opacity: 1; transform: none; }
.hchat-body.animate .hstep { color: var(--text-dim); }
.hchat-body.animate .hstep .hring { opacity: 1; }
.hchat-body.animate .hstep .hchk { opacity: 0; transform: scale(.6); }
.hchat-body.animate .hstep .hchk path { stroke-dashoffset: 24; }
.hchat-body.animate .hstep.is-active .hspin { opacity: 1; }
.hchat-body.animate .hstep.is-active .hring { opacity: 0; }
.hchat-body.animate .hstep.is-active { color: var(--text-ivory); }
.hchat-body.animate .hstep.is-done .hspin { opacity: 0; }
.hchat-body.animate .hstep.is-done .hring { opacity: 0; }
.hchat-body.animate .hstep.is-done .hchk { opacity: 1; transform: scale(1); }
.hchat-body.animate .hstep.is-done .hchk path { stroke-dashoffset: 0; }
.hchat-body.animate .hstep.is-done { color: var(--text-ivory); }

.htyping { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; padding: 11px 13px; border-radius: 13px; border-top-left-radius: 4px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); width: max-content; opacity: 0; transform: translateY(9px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.htyping.show { opacity: 1; transform: none; }
.htyping i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: htype 1.2s infinite; }
.htyping i:nth-child(2) { animation-delay: .18s; }
.htyping i:nth-child(3) { animation-delay: .36s; }
@keyframes htype { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 560px) {
  .hchat { max-width: 100%; }
  .hchat-body { min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .hchat-dot, .hspin i, .htyping i { animation: none; }
  .hchk path { transition: none; }
  .hmsg, .hproc, .htyping { transition: none; }
}

/* Affordance inline única: link de texto bajo el form (no botón, no verde). */
.form-wa-link {
  display: block; text-align: center; margin-top: 8px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: underline; text-decoration-color: rgba(201, 168, 106, 0.45);
  text-underline-offset: 4px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.form-wa-link:hover { color: var(--text-ivory); text-decoration-color: var(--gold); }

@media (max-width: 560px) {
  .wa-float { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
  .footer { padding-bottom: 96px; } /* que el FAB no tape el cierre */
}
