/* ============================================================
   Gancho · ganchoapp.com — Landing premium
   HTML5 + CSS + JS vanilla. Sin frameworks.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Fondos navy */
  --navy-950: #0A0B11;
  --navy-900: #0C0E14;
  --navy-850: #10131C;
  --navy-800: #141720;
  --navy-750: #1A1F2B;
  --navy-700: #232A3A;

  /* Ámbar / marca */
  --amber-300: #FCD34D;
  --amber-400: #FBBF24;
  --amber-500: #F5A623;
  --amber-600: #D97706;

  /* Acento éxito (uso muy restringido) */
  --emerald: #34D399;

  /* Texto */
  --text: #F6F8FC;
  --muted: #9AA6B8;
  --dim: #6B7688;

  /* Líneas */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Gradientes / efectos */
  --grad-amber: linear-gradient(135deg, #FCD34D 0%, #F5A623 55%, #D97706 100%);
  --glow-amber: 0 18px 50px -12px rgba(245, 166, 35, 0.55);

  /* Tipografía */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(245, 166, 35, 0.3); color: #fff; }

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  padding: 7px 14px;
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.06);
}
.eyebrow i { font-size: 0.7rem; }

.section {
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}
.section-head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  margin-top: 18px;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.amber-text {
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-amber);
  color: #1a1204;
  box-shadow: var(--glow-amber);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -12px rgba(245, 166, 35, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); border-color: var(--amber-400); }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }
.btn i { font-size: 0.95em; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 10px 8px; }
.nav-login:hover { color: var(--amber-400); }
.nav-cta { padding: 11px 22px; font-size: 0.95rem; }
.nav-toggle { display: none; font-size: 1.4rem; color: var(--text); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(106px, 12vw, 146px);
  padding-bottom: clamp(56px, 8vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -280px; right: -180px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.20) 0%, rgba(245, 166, 35, 0) 66%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}
.hero h1 .amber-text { display: inline-block; }
.hero-lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 30ch;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 0.9rem;
}
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }

/* ---------- Hero mockup (signature) ---------- */
.mockup { position: relative; z-index: 1; }
.mock-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(26, 31, 43, 0.92), rgba(12, 14, 20, 0.94));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
/* Contenido que rota entre historias (Pizzería, Restaurante, Cafe Bar, Tienda) */
#mockBrand, .mock-dynamic { transition: opacity 0.35s ease; }
.mock-fade-out { opacity: 0; }
.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mock-brand { display: flex; align-items: center; gap: 10px; }
.mock-brand img { height: 22px; width: auto; }
.mock-brand span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.mock-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--emerald);
}
.mock-live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.mock-metric { padding: 18px 2px 6px; }
.mock-metric .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.mock-metric .value { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin-top: 4px; }
.mock-metric .value b { color: var(--amber-400); font-weight: 800; }
.mock-metric .delta { color: var(--emerald); font-size: 0.82rem; font-weight: 600; margin-left: 8px; }

/* Filas animadas del mockup */
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(10px);
}
.mock-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #1a1204;
  background: var(--grad-amber);
}
.mock-row .who { font-weight: 600; font-size: 0.9rem; }
.mock-row .meta { font-size: 0.78rem; color: var(--muted); }
.mock-code {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--amber-400);
  padding: 4px 9px; border-radius: 7px;
  border: 1px dashed rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.06);
}
.mock-check { margin-left: auto; color: var(--emerald); font-size: 1.1rem; }

/* Burbuja SMS */
.mock-sms {
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 16px 16px 16px 5px;
  background: var(--grad-amber);
  color: #1a1204;
  font-size: 0.9rem; font-weight: 500;
  max-width: 82%;
  box-shadow: var(--glow-amber);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}
.mock-sms .tag { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 3px; }

/* Chips flotantes — por encima del panel (no detrás) */
.mock-float {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16, 19, 28, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.mock-float i { color: var(--amber-400); }
.mock-float.sales { bottom: -22px; right: -18px; animation: floaty 6s ease-in-out infinite 0.6s; }
.mock-float.sales b { color: var(--emerald); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Stats bar ---------- */
.stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 40px 12px; position: relative; }
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: var(--line);
}
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); }
.stat .num .amber-text { display: inline; }
.stat .cap { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Cómo funciona (secuencia real → numerada) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-900);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-500);
  letter-spacing: 0.1em;
}
.step-icon {
  margin: 18px 0 16px;
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem; color: var(--amber-400);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.step h3 { font-size: 1.28rem; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.step-connect {
  position: absolute; top: 52px; right: -22px; z-index: 2;
  color: var(--dim); font-size: 1rem;
}

/* ---------- Cards genéricas (features / beneficios) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 166, 35, 0.35);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.05), rgba(255, 255, 255, 0));
}
.card-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.25rem; color: var(--amber-400);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.18);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; font-weight: 700; }
.card p { margin-top: 9px; color: var(--muted); font-size: 0.96rem; }

.benefits { background: var(--navy-900); border-block: 1px solid var(--line); }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-850);
  display: flex; flex-direction: column;
}
.testi-stars { color: var(--amber-400); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi-quote { font-size: 1.02rem; color: #DDE3EC; line-height: 1.65; flex: 1; }
.testi-who { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245, 166, 35, 0.4); }
.testi-who strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.testi-who span { font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA registro ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) var(--pad);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 166, 35, 0.3);
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 166, 35, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.cta-inner::after {
  content: '';
  position: absolute; inset: auto 0 -60% 0; height: 120%;
  background: radial-gradient(circle at 50% 100%, rgba(245, 166, 35, 0.14), transparent 55%);
  pointer-events: none;
}
.cta-logo { height: 48px; width: auto; margin: 0 auto 24px; opacity: 0.95; position: relative; }
.cta-inner h2 { position: relative; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.cta-inner p { position: relative; margin: 16px auto 34px; color: var(--muted); max-width: 46ch; font-size: 1.08rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-note { position: relative; margin-top: 20px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--dim); }

/* ---------- Formulario lead ---------- */
.lead { position: relative; overflow: hidden; }
.lead::before {
  content: '';
  position: absolute; bottom: -240px; left: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12), transparent 66%);
  pointer-events: none;
}
.lead-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.lead-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.lead-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 42ch; }
.lead-points { margin-top: 26px; display: grid; gap: 13px; }
.lead-points li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.lead-points i { color: var(--emerald); font-size: 1.05rem; }
.lead-wa { margin-top: 28px; }
.lead-wa a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; transition: color 0.2s; }
.lead-wa a:hover { color: #25D366; }
.lead-wa i { font-size: 1.3rem; color: #25D366; }

/* Card del formulario */
.lead-form-wrap {
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.7), rgba(12, 14, 20, 0.85));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: #C6CFDC; }
.field label .req { color: var(--amber-400); }
.field label .opt { color: var(--dim); font-weight: 400; font-family: var(--font-mono); font-size: 0.72rem; }
.input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(10, 11, 17, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--amber-400); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.14); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA6B8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.input option, select.input optgroup { background: var(--navy-800); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-submit { width: 100%; margin-top: 8px; padding: 16px; font-size: 1.05rem; }
.lead-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.lead-legal { margin-top: 14px; text-align: center; font-size: 0.78rem; color: var(--dim); }

/* Estado enviado */
.lead-ok { text-align: center; padding: 30px 10px; }
.lead-ok .ok-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 2rem; color: var(--emerald);
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35);
}
.lead-ok h3 { font-size: 1.5rem; font-weight: 800; }
.lead-ok p { margin-top: 12px; color: var(--muted); }

/* ---------- Registro (crear cuenta) ---------- */
.registro { position: relative; overflow: hidden; }
.registro::before {
  content: '';
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.16), transparent 66%);
  pointer-events: none;
}
.reg-inner { position: relative; max-width: 660px; margin: 0 auto; }
.reg-head { text-align: center; margin-bottom: 30px; }
.reg-head .cta-logo { height: 44px; width: auto; margin: 0 auto 20px; opacity: 0.95; }
.reg-head .eyebrow { margin-bottom: 16px; }
.reg-head h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); font-weight: 800; }
.reg-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.reg-card {
  background: linear-gradient(180deg, rgba(26, 31, 43, 0.75), rgba(12, 14, 20, 0.9));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}
.field-hint { margin-top: 6px; font-size: 0.78rem; color: var(--dim); }
.input.up { text-transform: uppercase; }
.input.up::placeholder { text-transform: none; }

.reg-checks {
  margin: 18px 0 6px; display: grid; gap: 13px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.86rem; line-height: 1.5; color: #C6CFDC; }
.check input[type=checkbox] {
  margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--amber-500); cursor: pointer;
}
.check a { color: var(--amber-400); text-decoration: underline; }
.check a:hover { color: var(--amber-300); }
.check .muted { color: var(--muted); }

.reg-submit { width: 100%; margin-top: 20px; padding: 16px; font-size: 1.05rem; }
.reg-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.reg-foot { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.reg-foot a { color: var(--amber-400); font-weight: 600; }
.reg-foot a:hover { color: var(--amber-300); }

.reg-ok { text-align: center; padding: 26px 10px; }
.reg-ok h3 { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.reg-ok p { margin-top: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #06070B; border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 34px; width: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--dim); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--muted); font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { color: var(--amber-400); border-color: rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.08); transform: translateY(-2px); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber-400); }
.footer-copy { width: 100%; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; text-align: center; }

/* ---------- WhatsApp flotante ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.7rem;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}
.float-wa:hover { transform: scale(1.08) translateY(-2px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Secuencia de entrada del mockup (JS añade .play) */
.mockup.play .mock-row,
.mockup.play .mock-sms { animation: mockIn 0.6s ease forwards; }
.mockup.play .mock-row.r1 { animation-delay: 0.5s; }
.mockup.play .mock-sms { animation-delay: 1.5s; }
.mockup.play .mock-row.r2 { animation-delay: 2.5s; }
@keyframes mockIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { max-width: 46ch; }
  .mockup { max-width: 440px; margin: 12px auto 0; }
  .lead-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connect { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
}

/* Menú móvil desplegable */
.mobile-menu {
  position: fixed; inset: 0 0 auto 0; z-index: 99;
  background: rgba(10, 11, 17, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 84px var(--pad) 28px;
  display: grid; gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { padding: 14px 6px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .btn { margin-top: 18px; }

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .mock-float.sales { right: -8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .mock-row, .mock-sms { opacity: 1 !important; transform: none !important; }
}
