/* Landing facturas.valltech.es — "Premium confianza".
   Reusa los tokens de marca de la app (css/styles.css) y añade una capa de presentación.
   Sin fuentes externas ni CDN (CSP script-src 'self'); todo self-hosted. */

/* ============================ Tokens ============================ */
:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;

  --bg: #f6f8fc;
  --bg-deep: #eef3fb;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text: #131c2b;
  --muted: #5b6b82;
  --muted-2: #8a99ad;
  --line: #dde5f0;
  --line-soft: #edf2f8;

  --primary: #0b57d0;
  --primary-strong: #0842a0;
  --primary-soft: #d8e6fd;
  --on-primary: #ffffff;

  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 14px 34px rgba(16, 24, 40, .10);
  --shadow-lg: 0 40px 80px -32px rgba(11, 87, 208, .34);
  --ring: rgba(11, 87, 208, .28);

  --glow: radial-gradient(60% 60% at 50% 0%, rgba(11, 87, 208, .14), rgba(11, 87, 208, 0) 70%);
  --dots: radial-gradient(currentColor 1px, transparent 1.4px);

  --maxw: 1160px;
  --t-fast: .16s ease;
  --t-med: .26s cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0d1626;
  --bg-deep: #0a1120;
  --surface: #14203a;
  --surface-subtle: #111c33;
  --text: #e7eefb;
  --muted: #a6b6cf;
  --muted-2: #6f7f98;
  --line: #283a59;
  --line-soft: #1d2c47;

  --primary: #6ea8ff;
  --primary-strong: #9bc2ff;
  --primary-soft: rgba(77, 139, 245, .18);
  --on-primary: #0a1a36;

  --success: #6ce9a6;
  --success-soft: rgba(18, 183, 106, .14);
  --warning: #fdb022;
  --warning-soft: rgba(253, 176, 34, .14);

  --shadow-md: 0 18px 40px rgba(0, 0, 0, .42);
  --shadow-lg: 0 44px 90px -34px rgba(0, 0, 0, .7);
  --ring: rgba(110, 168, 255, .4);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(110, 168, 255, .16), rgba(110, 168, 255, 0) 70%);
}

/* ============================ Reset / base ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }

::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Nav y hero a todo el ancho de la pantalla (el resto de secciones siguen centradas). */
.nav > .container,
.hero > .container { max-width: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ Botones ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 20px -6px var(--ring);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 14px 30px -8px var(--ring); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ============================ Nav ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.12rem;
}
.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  color: var(--text);
}
.brand-logo .s0 { fill: currentColor; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a.nav-link:hover { color: var(--text); background: var(--surface-subtle); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-cta { padding: 9px 18px; }

.nav-contact { display: inline-flex; align-items: center; gap: 2px; }
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .94rem;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-contact-link:hover { color: var(--primary); background: var(--surface-subtle); }
.nav-contact-link svg { color: var(--primary); }
.nav-contact-mail { padding: 8px; }

.nav-burger { display: none; }

/* ============================ Secciones ============================ */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 16px 0 14px; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

/* ============================ Hero ============================ */
.hero {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding-top: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(24px, 3vw, 48px);
  overflow: clip;
  background-image:
    linear-gradient(96deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 44%, color-mix(in srgb, var(--bg) 40%, transparent) 100%),
    image-set(url(/landing/img/hero-light.jpg) 1x);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
[data-theme="dark"] .hero {
  background-image:
    linear-gradient(96deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 46%, color-mix(in srgb, var(--bg) 48%, transparent) 100%),
    image-set(url(/landing/img/hero-dark.jpg) 1x);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 680px;
  background: var(--glow);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 600px);
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-pill .tag {
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
}
[data-theme="dark"] .hero-pill .tag { color: var(--primary-strong); }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  margin: 22px 0 0;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), #4f93ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 30ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: .9rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--success); flex-shrink: 0; }

/* Marco de navegador con la captura del producto */
.hero-visual { position: relative; }
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(2000px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform var(--t-med);
}
.hero-visual:hover .browser { transform: perspective(2000px) rotateY(-1.5deg) rotateX(.5deg); }
/* El contenedor se adapta al tamano original de la captura (sin recorte). */
.browser-view {
  position: relative;
  background: var(--surface);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-subtle);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 999px; background: var(--line); }
.browser-bar i:nth-child(1) { background: #ff6058; }
.browser-bar i:nth-child(2) { background: #ffbe2f; }
.browser-bar i:nth-child(3) { background: #2aca44; }
.browser-bar .addr {
  margin-left: 10px;
  font-size: .78rem;
  color: var(--muted-2);
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 14px;
  flex: 1;
  max-width: 280px;
}
/* La captura se muestra completa a su tamaño natural; el contenedor se adapta a su alto. */
.browser-shot { display: block; width: 100%; height: auto; }
.browser-shot.dark-only { display: none; }
[data-theme="dark"] .browser-shot.light-only { display: none; }
[data-theme="dark"] .browser-shot.dark-only { display: block; }

/* Tarjetas flotantes sobre el marco */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.float-card .fc-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
}
.float-card .fc-num { display: block; font-weight: 800; font-size: .98rem; letter-spacing: -.02em; line-height: 1.15; }
.float-card .fc-label { display: block; font-size: .72rem; color: var(--muted); line-height: 1.25; }
.float-card.fc-time { bottom: 7%; left: -4%; }
.float-card.fc-time .fc-icon { background: var(--success-soft); color: var(--success); }
.float-card.fc-ok { top: 7%; right: -2%; }
.float-card.fc-ok .fc-icon { background: var(--primary-soft); color: var(--primary-strong); }

/* ============================ Logos / banda confianza ============================ */
.trust-band {
  border-block: 1px solid var(--line-soft);
  background: var(--surface-subtle);
}
.trust-band .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 38px; padding-block: 26px; }
.trust-band p { color: var(--muted-2); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600;
}
.trust-chip svg { color: var(--primary); }

/* ============================ Problema (stats) ============================ */
.problem { background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 8px;
}
.stat {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat .big {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary);
}
.stat p { color: var(--muted); margin-top: 6px; }

/* ============================ Features ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature .f-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  margin-bottom: 18px;
}
[data-theme="dark"] .feature .f-icon { color: var(--primary-strong); }
.feature h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.feature p { color: var(--muted); margin-top: 10px; font-size: .98rem; }
.feature .note {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted-2);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* ============================ VeriFACTU ============================ */
.verifactu {
  position: relative;
  color: #eaf2ff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(79, 147, 255, .35), transparent 60%),
    linear-gradient(160deg, #0a3a8f, #06234f);
  background-color: #082a63;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.verifactu .container { padding-block: clamp(48px, 6vw, 72px); }
.verifactu-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.verifactu .eyebrow { color: #9cc2ff; }
.verifactu .eyebrow::before { background: #9cc2ff; }
.verifactu h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 16px; color: #fff; }
.verifactu p { color: #c6d8f7; font-size: 1.08rem; }
.vf-status { display: grid; gap: 12px; margin-top: 6px; }
.vf-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.vf-item .vf-check {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: rgba(108, 233, 166, .18); color: #6ce9a6;
}
.vf-item.pending .vf-check { background: rgba(253, 176, 34, .18); color: #fdb022; }
.vf-item b { color: #fff; display: block; font-size: .98rem; }
.vf-item span { color: #b7cdf2; font-size: .88rem; }
.vf-disclaimer {
  margin-top: 22px;
  font-size: .82rem;
  color: #9fb6da;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 16px;
}

/* ============================ Cómo funciona ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); counter-reset: step; }
.step { position: relative; }
.step .num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 10px 24px -10px var(--ring);
}
.step h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); }
.step:not(:last-child) .num::after {
  content: "";
  position: absolute;
  top: 23px; left: 58px; right: -20px;
  height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ============================ Por qué Valltech ============================ */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.why-list { display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.why-list .wi {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-strong);
}
.why-list b { display: block; }
.why-list span { color: var(--muted); font-size: .95rem; }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.01em; }
.quote .author { display: block; font-family: var(--font); font-size: .95rem; color: var(--muted); margin-top: 18px; font-style: normal; }

/* ============================ Piloto + formulario ============================ */
.pilot { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.pilot-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.pilot-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pilot-perks { display: grid; gap: 14px; margin-top: 24px; }
.pilot-perks li { display: flex; gap: 12px; align-items: flex-start; list-style: none; color: var(--muted); }
.pilot-perks svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pilot-perks b { color: var(--text); }

.pilot-call { margin-top: 22px; color: var(--muted); }
.pilot-call a { color: var(--primary); font-weight: 700; text-decoration: none; }
.pilot-call a:hover { text-decoration: underline; }

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted-2); }
.form-note a { color: var(--primary); text-decoration: underline; }
.form-status { font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--warning); }

/* ============================ Footer ============================ */
.footer { border-top: 1px solid var(--line); background: var(--surface-subtle); }
.footer .container { padding-block: 48px 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 1.05rem; }
.footer-tag { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 36ch; }
.footer-contact { margin-top: 8px; font-size: .92rem; }
.footer-contact a { color: var(--primary); font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted-2); font-size: .85rem;
}
.footer-disclaimer { max-width: 70ch; line-height: 1.5; }

/* ============================ Reveal on scroll ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(22px); }
[data-stagger].in > * { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
[data-stagger].in > *:nth-child(2) { transition-delay: .08s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .24s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .32s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .4s; }

/* Carga del hero */
.hero [data-anim] { opacity: 0; transform: translateY(18px); animation: heroIn .7s cubic-bezier(.22,.61,.36,1) forwards; }
.hero [data-anim="1"] { animation-delay: .05s; }
.hero [data-anim="2"] { animation-delay: .15s; }
.hero [data-anim="3"] { animation-delay: .25s; }
.hero [data-anim="4"] { animation-delay: .35s; }
.hero [data-anim="5"] { animation-delay: .3s; }
.hero-visual { opacity: 0; transform: translateY(24px) scale(.98); animation: heroIn .9s cubic-bezier(.22,.61,.36,1) .35s forwards; }
.float-card { opacity: 0; animation: floatIn .6s ease forwards; }
.float-card.fc-time { animation-delay: .8s; }
.float-card.fc-ok { animation-delay: 1s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes floatIn { to { opacity: 1; } }

/* Flotación sutil continua (solo puntero fino, ver JS guard) */
.float-anim .float-card.fc-time { animation: floatIn .6s ease .8s forwards, bob 6s ease-in-out 1.6s infinite; }
.float-anim .float-card.fc-ok { animation: floatIn .6s ease 1s forwards, bob 7s ease-in-out 1.8s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================ Responsive ============================ */
@media (max-width: 1080px) {
  .nav-contact { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { max-width: 46ch; }
  .hero-visual { margin-right: 0; }
  .browser { transform: none; }
  .hero-visual:hover .browser { transform: none; }
  .float-card.fc-time { left: 0; }
  .float-card.fc-ok { right: 0; }
  .verifactu-grid, .why-grid, .pilot-card { grid-template-columns: 1fr; }
  .stat-grid, .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child) .num::after { display: none; }
  .nav-links .nav-link { display: none; }
}

@media (max-width: 640px) {
  .stat-grid, .feature-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .float-card { display: none; }
  .footer-top { flex-direction: column; }
}

/* Móvil: sin efectos dependientes de cursor (doble guard con JS) */
@media (pointer: coarse) {
  .hero-visual:hover .browser { transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); }
}

/* Accesibilidad: sin movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, [data-stagger] > *, .hero [data-anim], .hero-visual, .float-card { opacity: 1 !important; transform: none !important; }
}
