/* ==========================================================================
   Fluida Estudio — hoja de estilos única
   Mobile first: los estilos base son los del móvil; los @media (min-width)
   solo añaden lo que necesita una pantalla grande.
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Color — claro */
  --bg:        #F7F8FF;
  --bg-2:      #EDEEFF;
  --surface:   #FFFFFF;
  --surface-2: #FBFBFF;
  --text:      #0B0A1E;
  --muted:     #5A6377;
  --faint:     #8A93A8;
  --accent:    #5B5BE6;
  --accent-d:  #4F46E5;
  --accent-lt: #EEF2FF;
  --accent-tx: #4338CA;
  --violet:    #8B5CF6;
  --grad:      linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --border:    #E2E4F0;
  --border-2:  #D6D9EA;
  --ok:        #16A34A;
  --err:       #DC2626;

  /* Tinta oscura: el hero y la sección NFC son siempre oscuros */
  --ink:       #0B0A1E;
  --ink-2:     #13122A;
  --on-ink:    #EDEEFF;
  --on-ink-mut: rgba(237,238,255,.56);
  --on-ink-fnt: rgba(237,238,255,.38);
  --on-ink-line: rgba(237,238,255,.14);

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(11,10,30,.06), 0 2px 8px rgba(99,102,241,.06);
  --sh:    0 4px 20px rgba(99,102,241,.10);
  --sh-lg: 0 20px 56px rgba(99,102,241,.16);

  /* Radios */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-full: 999px;

  /* Tipografía fluida */
  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-md:  0.9375rem;
  --fs-lg:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-h3:  clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-h2:  clamp(1.75rem, 1.35rem + 2vw, 2.6rem);
  --fs-h1:  clamp(2.15rem, 1.4rem + 3.6vw, 3.85rem);

  /* Ritmo vertical y anchos */
  --gutter:  1.25rem;
  --maxw:    1120px;
  --sec-y:   clamp(3.75rem, 2.5rem + 6vw, 6.5rem);
  --nav-h:   62px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0A1E; --bg-2: #100F26; --surface: #171634; --surface-2: #1C1A3D;
    --text: #EDEEFF; --muted: #9AA2C2; --faint: #6B738F;
    --accent: #818CF8; --accent-d: #6366F1; --accent-lt: #201E44;
    --accent-tx: #A5B4FC; --violet: #A78BFA;
    --grad: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
    --border: #262450; --border-2: #322F63;
    --ok: #4ADE80; --err: #F87171;
    --sh-sm: 0 1px 2px rgba(0,0,0,.4);
    --sh: 0 4px 20px rgba(0,0,0,.35);
    --sh-lg: 0 20px 56px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0A1E; --bg-2: #100F26; --surface: #171634; --surface-2: #1C1A3D;
  --text: #EDEEFF; --muted: #9AA2C2; --faint: #6B738F;
  --accent: #818CF8; --accent-d: #6366F1; --accent-lt: #201E44;
  --accent-tx: #A5B4FC; --violet: #A78BFA;
  --grad: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
  --border: #262450; --border-2: #322F63;
  --ok: #4ADE80; --err: #F87171;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh: 0 4px 20px rgba(0,0,0,.35);
  --sh-lg: 0 20px 56px rgba(0,0,0,.5);
}

/* ── 2. Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-lg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
strong, b { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible { outline-color: #A5B4FC; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 200;
  transform: translateY(-200%);
  background: var(--surface); color: var(--text);
  padding: .6rem 1rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--sh);
}
.skip-link:focus { transform: none; }

/* ── 3. Layout ─────────────────────────────────────────────────────────── */
.container {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section { padding-block: var(--sec-y); }
.section--alt { background: var(--bg-2); }
.section--ink {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}

.stack > * + * { margin-top: var(--gap, 1rem); }

/* ── 4. Tipografía de sección ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; opacity: .7;
}
.section--ink .eyebrow { color: #A5B4FC; }

.h2 {
  font-size: var(--fs-h2); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.12;
  text-wrap: balance; margin-top: .75rem;
}
.h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }

.lede {
  font-size: var(--fs-md); color: var(--muted);
  line-height: 1.8; max-width: 52ch; margin-top: .9rem;
}
.section--ink .lede { color: var(--on-ink-mut); }

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

.sec-head { margin-bottom: clamp(2rem, 1rem + 4vw, 3.25rem); }

/* ── 5. Botones ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em;
  text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.36);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(99,102,241,.46); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-tx); }

.on-ink .btn--ghost, .btn--ghost-ink {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.82);
  border: 1px solid var(--on-ink-line);
}
.on-ink .btn--ghost:hover, .btn--ghost-ink:hover {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3);
}
.btn--block { width: 100%; }

/* ── 6. Logo ───────────────────────────────────────────────────────────── */
.logo {
  display: inline-flex; align-items: center; color: var(--text);
  font-size: 1.5rem; font-weight: 400; letter-spacing: -.01em; line-height: 1;
}

/* ── 7. Navegación ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s, box-shadow .3s;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(11,10,30,.06);
}
.nav .logo { color: #fff; }              /* sobre el hero oscuro */
.nav.is-stuck .logo { color: var(--text); }

/* Con el menú móvil abierto la barra vuelve a ser transparente sobre fondo oscuro */
body.is-locked .nav {
  background: transparent; box-shadow: none; border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.is-locked .nav .logo { color: #fff; }
body.is-locked .nav .icon-btn {
  color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);
}
body.is-locked .nav__progress { opacity: 0; }

/* Barra fina de progreso de lectura */
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.nav.is-stuck .nav__progress { opacity: 1; }

.nav__links { display: none; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.nav.is-stuck .icon-btn {
  color: var(--muted); background: var(--surface-2); border-color: var(--border);
}
.nav.is-stuck .icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}

.nav__cta { display: none; }

/* Menú móvil a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__list { display: flex; flex-direction: column; }
.menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; color: var(--on-ink);
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em;
  border-bottom: 1px solid var(--on-ink-line);
}
.menu__list a span { color: var(--on-ink-fnt); font-size: .8rem; font-weight: 500; }
.menu__foot { display: grid; gap: .75rem; }
.menu__mail { color: var(--on-ink-mut); font-size: var(--fs-sm); text-align: center; }

body.is-locked { overflow: hidden; }

@media (min-width: 62em) {
  :root { --nav-h: 74px; }
  .nav__links {
    display: flex; align-items: center; gap: .35rem;
    margin-left: auto; margin-right: .5rem;
  }
  .nav__links a {
    padding: .5rem .8rem; border-radius: var(--r-sm);
    font-size: var(--fs-sm); font-weight: 500;
    color: rgba(255,255,255,.72); transition: color .2s, background-color .2s;
  }
  .nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .nav__links a.is-active { color: #fff; }
  .nav.is-stuck .nav__links a { color: var(--muted); }
  .nav.is-stuck .nav__links a:hover { color: var(--text); background: var(--bg-2); }
  .nav.is-stuck .nav__links a.is-active { color: var(--accent-tx); background: var(--accent-lt); }
  .nav__cta { display: inline-flex; min-height: 42px; padding: .5rem 1.15rem; font-size: var(--fs-sm); }
  .nav__toggle { display: none; }
  .logo { font-size: 1.7rem; }
}

/* ── 8. Barra fija de acción (solo móvil) ──────────────────────────────── */
.dock {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: flex; gap: .6rem;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { flex: 1; min-height: 46px; font-size: var(--fs-sm); }
.dock .btn--ghost { flex: 0 0 auto; padding-inline: 1rem; }
@media (min-width: 48em) { .dock { display: none; } }

/* ── 9. Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 2.5rem) 3.5rem;
}
.hero::after { /* degradado de salida hacia la siguiente sección */
  content: ''; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(11,10,30,.9));
  pointer-events: none;
}

/* Orbes de fondo */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb--1 {
  width: 60vw; max-width: 520px; aspect-ratio: 1;
  background: rgba(99,102,241,.30); top: -12%; left: -18%;
  animation: drift 9s ease-in-out infinite;
}
.orb--2 {
  width: 55vw; max-width: 430px; aspect-ratio: 1;
  background: rgba(139,92,246,.24); bottom: -10%; right: -20%;
  animation: drift 11s ease-in-out infinite reverse;
}
.orb--3 {
  width: 40vw; max-width: 300px; aspect-ratio: 1;
  background: rgba(6,182,212,.14); top: 42%; left: 45%;
  animation: drift 14s ease-in-out infinite 4s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(28px, -22px); }
  66%      { transform: translate(-18px, 18px); }
}

.hero__grid { position: relative; z-index: 1; display: grid; gap: 3rem; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem .35rem .7rem; border-radius: var(--r-full);
  background: rgba(99,102,241,.16); border: 1px solid rgba(129,140,248,.32);
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #A5B4FC;
}
.badge__dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: #818CF8; box-shadow: 0 0 0 0 rgba(129,140,248,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(129,140,248,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(129,140,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(129,140,248,0); }
}

.hero h1 {
  font-size: var(--fs-h1); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.06;
  text-wrap: balance; margin-top: 1.25rem;
}
.hero__sub {
  margin-top: 1.1rem; max-width: 46ch;
  font-size: var(--fs-md); line-height: 1.85; color: var(--on-ink-mut);
}
.hero__sub strong { color: rgba(237,238,255,.88); font-weight: 600; }

.hero__actions { display: grid; gap: .75rem; margin-top: 2rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--on-ink-line);
}
.hero__trust li {
  display: flex; align-items: center; gap: .45rem;
  list-style: none; font-size: var(--fs-xs); color: var(--on-ink-mut);
}
.hero__trust svg { width: 14px; height: 14px; color: #818CF8; flex: none; }

@media (min-width: 30em) {
  .hero__actions { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
}

/* ── 10. Mockup del portátil ───────────────────────────────────────────── */
.hero__visual {
  --u: 1px;                 /* 1u = 1px del diseño (mockup de 390px) */
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding-inline: 1rem;
}
.hero__visual::before { /* halo */
  content: ''; position: absolute; z-index: 0;
  width: 78%; aspect-ratio: 2 / 1; bottom: 6%; left: 50%;
  translate: -50% 0; filter: blur(30px);
  background: radial-gradient(ellipse, rgba(99,102,241,.5) 0%, transparent 70%);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }

.mockup {
  /* El mockup entero escala con el ancho disponible (ver --u). */
  width: min(100%, 390px); position: relative; z-index: 1;
  animation: float 6s ease-in-out infinite;
}
@supports (container-type: inline-size) {
  .hero__visual { container-type: inline-size; --u: min(1px, calc(100cqw / 390)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.mk__lid {
  background: #18172F; border: 2px solid #26244A; border-bottom: none;
  border-radius: calc(12 * var(--u)) calc(12 * var(--u)) 0 0;
  padding: calc(8 * var(--u)) calc(8 * var(--u)) 0;
  box-shadow: inset 0 0 0 1px #0F0E20;
}
.mk__cam {
  width: calc(8 * var(--u)); height: calc(8 * var(--u));
  background: #26244A; border-radius: 50%;
  margin: 0 auto calc(6 * var(--u));
}
.mk__screen {
  background: #0F0E22; border-radius: calc(6 * var(--u));
  overflow: hidden;
}
.mk__bar {
  display: flex; align-items: center; gap: calc(5 * var(--u));
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  background: #1C1A38; border-bottom: 1px solid rgba(255,255,255,.05);
}
.mk__dot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; }
.mk__dot:nth-child(1) { background: #FF5F57; }
.mk__dot:nth-child(2) { background: #FEBC2E; }
.mk__dot:nth-child(3) { background: #28C840; }
.mk__url {
  flex: 1; margin-left: calc(6 * var(--u));
  background: #262346; border-radius: calc(4 * var(--u));
  padding: calc(2 * var(--u)) calc(7 * var(--u));
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: calc(6.5 * var(--u)); color: rgba(255,255,255,.38);
  white-space: nowrap; overflow: hidden;
}
.mk__body { padding: calc(9 * var(--u)); }
.mk__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(6 * var(--u)); margin-bottom: calc(7 * var(--u));
}
.mk__biz { font-size: calc(8.5 * var(--u)); font-weight: 700; color: #EDEEFF; }
.mk__chip {
  font-size: calc(5.5 * var(--u)); font-weight: 600; white-space: nowrap;
  background: rgba(99,102,241,.3); color: #A5B4FC;
  padding: calc(2 * var(--u)) calc(5 * var(--u)); border-radius: calc(3 * var(--u));
}
.mk__kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: calc(5 * var(--u)); margin-bottom: calc(7 * var(--u));
}
.mk__kpi {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: calc(5 * var(--u)); padding: calc(5 * var(--u));
}
.mk__kpi b { display: block; font-size: calc(11 * var(--u)); font-weight: 700; color: #EDEEFF; line-height: 1.2; }
.mk__kpi span { display: block; font-size: calc(5 * var(--u)); color: rgba(255,255,255,.34); }
.mk__kpi i { font-style: normal; font-size: calc(5.5 * var(--u)); font-weight: 600; color: #4ADE80; }
.mk__chart {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  border-radius: calc(5 * var(--u)); margin-bottom: calc(6 * var(--u));
  padding: calc(6 * var(--u)) calc(7 * var(--u)) calc(4 * var(--u));
}
.mk__chart > span { display: block; font-size: calc(5.5 * var(--u)); color: rgba(255,255,255,.3); margin-bottom: calc(5 * var(--u)); }
.mk__bars { display: flex; align-items: flex-end; gap: calc(3 * var(--u)); height: calc(30 * var(--u)); }
.mk__bars i {
  flex: 1; border-radius: calc(2 * var(--u)) calc(2 * var(--u)) 0 0;
  background: rgba(99,102,241,.3); height: var(--h);
  transform-origin: 50% 100%; animation: grow .9s var(--ease) backwards;
}
.mk__bars i:last-child { background: rgba(129,140,248,.95); }
@keyframes grow { from { transform: scaleY(.05); opacity: 0; } }
.mk__revs { display: grid; gap: calc(4 * var(--u)); }
.mk__rev {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05);
  border-radius: calc(4 * var(--u)); padding: calc(4 * var(--u)) calc(6 * var(--u));
}
.mk__rev b { display: block; font-size: calc(6 * var(--u)); color: #FBBC04; letter-spacing: calc(1 * var(--u)); }
.mk__rev span { font-size: calc(5 * var(--u)); color: rgba(255,255,255,.48); line-height: 1.5; }

.mk__base {
  height: calc(14 * var(--u)); position: relative;
  background: linear-gradient(to bottom, #18172F, #111025);
  border: 2px solid #26244A; border-top: none;
  border-radius: 0 0 calc(5 * var(--u)) calc(5 * var(--u));
}
.mk__base::after {
  content: ''; position: absolute; left: 50%; bottom: calc(4 * var(--u));
  translate: -50% 0; width: calc(56 * var(--u)); height: calc(3 * var(--u));
  background: rgba(255,255,255,.07); border-radius: calc(2 * var(--u));
}
.mk__foot {
  height: calc(6 * var(--u)); width: 105%; margin-left: -2.5%;
  background: linear-gradient(to bottom, #0E0D20, #09091A);
  border: 1.5px solid #1A1832; border-top: none;
  border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u));
}

/* Tarjetas flotantes */
.fbadge {
  position: absolute; z-index: 2;
  padding: calc(8 * var(--u)) calc(11 * var(--u)); border-radius: var(--r-sm);
  background: rgba(23,22,52,.92); border: 1px solid rgba(129,140,248,.28);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fbadge b { display: block; font-size: calc(12 * var(--u)); font-weight: 700; color: #EDEEFF; line-height: 1.1; }
.fbadge span { display: block; font-size: calc(9 * var(--u)); color: var(--on-ink-fnt); margin-top: 1px; }
.fbadge svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: #818CF8; margin-bottom: 3px; }
.fbadge--1 { top: -5%; right: -2%; animation: bob 6.5s ease-in-out infinite; }
.fbadge--2 { bottom: -4%; left: -2%; animation: bob 7.5s ease-in-out infinite reverse 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (min-width: 62em) {
  .fbadge--1 { right: -3%; }
  .fbadge--2 { left: -4%; }
}

/* ── 12. Servicios ─────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1rem; }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.6rem 1.4rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--accent-lt); color: var(--accent-tx);
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.card p { margin-top: .5rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.75; }
.card__tag {
  display: inline-block; margin-top: 1rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--accent-tx);
  background: var(--accent-lt); padding: .25rem .6rem; border-radius: var(--r-full);
}

/* ── 13. Sección NFC ───────────────────────────────────────────────────── */
.nfc__grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 62em) { .nfc__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Pasos de la compra */
.buy-steps { margin-top: 1.75rem; display: grid; gap: .7rem; counter-reset: buy; }
.buy-steps li {
  display: flex; align-items: flex-start; gap: .7rem; list-style: none;
  font-size: var(--fs-md); color: var(--on-ink-mut); line-height: 1.6;
}
.buy-steps span {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(129,140,248,.18); border: 1px solid rgba(129,140,248,.35);
  color: #A5B4FC; font-size: .7rem; font-weight: 700;
}

.pay-note {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .9rem; font-size: var(--fs-xs); color: var(--on-ink-fnt);
}
.pay-note svg { width: 13px; height: 13px; flex: none; }
.pay-note a { color: var(--on-ink-mut); text-decoration: underline; text-underline-offset: 2px; }
.pay-note a:hover { color: #fff; }

.nfc__visual {
  position: relative; display: flex; justify-content: center;
  padding: 0 4.5rem 3.5rem 0;
}

.plaque {
  --p: 1px;   /* 1p = 1px del diseño original (300px de ancho) */
  width: 100%; position: relative; overflow: hidden;
  background: #fff; border-radius: calc(22 * var(--p));
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  animation: tilt 6s ease-in-out infinite;
}
@supports (container-type: inline-size) {
  .nfc__visual { container-type: inline-size; }
  .plaque { --p: min(1px, calc(100cqw / 300)); }
}
/* El móvil se ancla a la placa, no a la columna */
.plaque-wrap { position: relative; width: min(100%, 300px); }
@keyframes tilt {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-12px); }
}
.pq__top { background: #1A73E8; padding: calc(20 * var(--p)) calc(20 * var(--p)) 0; }
.pq__head { display: flex; align-items: center; gap: calc(12 * var(--p)); }
.pq__g {
  width: calc(46 * var(--p)); height: calc(46 * var(--p)); flex: none;
  background: #fff; border-radius: 50%; padding: calc(9 * var(--p));
}
.pq__t1 { display: block; font-size: calc(10 * var(--p)); color: rgba(255,255,255,.92); font-weight: 500; line-height: 1.25; }
.pq__t2 { display: block; font-size: calc(18 * var(--p)); color: #fff; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.pq__stars {
  text-align: center; margin: calc(8 * var(--p)) 0 calc(2 * var(--p));
  font-size: calc(15 * var(--p)); color: #FBBC04; letter-spacing: calc(3 * var(--p));
}
.pq__wave { display: block; width: 100%; height: calc(26 * var(--p)); }
.pq__bot {
  display: flex; align-items: flex-start; gap: calc(10 * var(--p));
  padding: calc(4 * var(--p)) calc(18 * var(--p)) calc(30 * var(--p));
}
.pq__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(7 * var(--p)); text-align: center; }
.pq__cap { font-size: calc(9 * var(--p)); font-weight: 600; color: #3C4043; line-height: 1.3; }
.pq__nfc { width: calc(62 * var(--p)); height: calc(46 * var(--p)); }
.pq__nfc path, .pq__nfc rect { fill: none; stroke: #202124; stroke-width: 3.2; stroke-linecap: round; }
.pq__qr { width: calc(52 * var(--p)); height: calc(52 * var(--p)); }
.pq__or { align-self: center; padding-top: calc(16 * var(--p)); font-size: calc(9.5 * var(--p)); color: #80868B; }
.pq__brand {
  position: absolute; left: calc(16 * var(--p)); bottom: calc(11 * var(--p));
  color: #C4C7CB; font-weight: 300; letter-spacing: -.01em;
  font-size: calc(11 * var(--p)); line-height: 1;
}

.pq__phone {
  --fw: 118px; --f: calc(var(--fw) / 118);
  position: absolute; right: -30%; bottom: -6%; width: var(--fw);
  padding: calc(5 * var(--f)); border-radius: calc(16 * var(--f));
  background: #0B0A1E; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 44px rgba(0,0,0,.6);
  animation: tilt2 6s ease-in-out infinite 1.4s;
}
@keyframes tilt2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pq__scr { background: #fff; border-radius: calc(12 * var(--f)); padding: calc(9 * var(--f)) calc(8 * var(--f)) calc(8 * var(--f)); }
.pq__usr { display: flex; align-items: center; gap: calc(5 * var(--f)); margin-bottom: calc(6 * var(--f)); }
.pq__av {
  width: calc(15 * var(--f)); height: calc(15 * var(--f)); flex: none;
  border-radius: 50%; background: linear-gradient(135deg, #6366F1, #8B5CF6);
}
.pq__un { display: block; font-size: calc(6 * var(--f)); font-weight: 600; color: #202124; line-height: 1.25; }
.pq__uz { display: block; font-size: calc(5.5 * var(--f)); color: #80868B; }
.pq__ps { font-size: calc(8 * var(--f)); color: #FBBC04; letter-spacing: calc(2 * var(--f)); margin-bottom: calc(6 * var(--f)); }
.pq__line { height: calc(4 * var(--f)); border-radius: calc(2 * var(--f)); background: #E8EAED; margin-bottom: calc(4 * var(--f)); }
.pq__line.w70 { width: 70%; }
.pq__line.w45 { width: 45%; }
.pq__cta {
  margin-top: calc(8 * var(--f)); padding: calc(5 * var(--f));
  background: #1A73E8; color: #fff; border-radius: calc(20 * var(--f));
  text-align: center; font-size: calc(6 * var(--f)); font-weight: 600;
}
@media (min-width: 26em) { .pq__phone { --fw: 132px; } }

/* ── 14. Cómo funciona ─────────────────────────────────────────────────── */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.6rem 1.4rem;
}
.step__num {
  display: block; font-size: 2.6rem; font-weight: 800;
  letter-spacing: -.05em; line-height: 1; margin-bottom: .85rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.step h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.step p { margin-top: .45rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.75; }
/* Conector entre pasos (solo escritorio) */
@media (min-width: 52em) {
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 2.9rem; right: -1.5rem;
    width: 1.5rem; height: 1px; background: var(--border-2);
  }
}

/* ── 15. SEO local ─────────────────────────────────────────────────────── */
.local__grid { display: grid; gap: 3rem; }
@media (min-width: 62em) { .local__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; } }

.prose h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; margin-top: 1.8rem; }
.prose p { margin-top: .5rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.9; }
.prose > p:first-of-type { margin-top: 1rem; }
.prose strong { color: var(--text); }

.zones { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.zones li {
  list-style: none; font-size: var(--fs-xs); font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: .35rem .75rem; border-radius: var(--r-full);
}
.zones li:last-child { color: var(--accent-tx); background: var(--accent-lt); border-color: transparent; }

.faq { margin-top: .75rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 600; letter-spacing: -.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-tx); }
.faq summary::after {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: currentColor; opacity: .5;
  transition: transform .25s var(--ease);
  -webkit-mask: var(--chevron) center / 20px no-repeat;
  mask: var(--chevron) center / 20px no-repeat;
}
.faq details[open] summary { color: var(--accent-tx); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { padding-bottom: 1.1rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.85; max-width: 60ch; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* ── 16. Contacto ──────────────────────────────────────────────────────── */
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 62em) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }

.perks { display: grid; gap: .7rem; margin-top: 1.75rem; }
.perks li { display: flex; align-items: center; gap: .65rem; list-style: none; font-size: var(--fs-md); color: var(--muted); }
.perks svg { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; background: var(--accent-lt); color: var(--accent-tx); }

.contact__direct {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem;
  font-size: var(--fs-md); font-weight: 600; color: var(--accent-tx);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.form {
  display: grid; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem; box-shadow: var(--sh);
}
@media (min-width: 30em) { .form { padding: 2rem; } }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 34em) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; min-height: 48px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: var(--fs-md); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field .error { font-size: var(--fs-xs); color: var(--err); line-height: 1.4; }
.field .error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: var(--fs-xs); color: var(--faint); line-height: 1.6; text-align: center; }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.form__ok {
  display: none; gap: .6rem; align-items: flex-start;
  padding: .9rem 1rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
  color: var(--ok); font-size: var(--fs-md); font-weight: 600;
}
.form__ok svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form.is-sent .form__ok { display: flex; }
.form.is-sent .form__body { display: none; }
.form__body { display: grid; gap: 1rem; }

/* ── 16 bis. Página de gracias (post-pago) ─────────────────────────────── */
.thanks {
  min-height: 100svh; display: flex; align-items: center;
  padding-block: 3rem; background: var(--bg-2);
}
.thanks .container { display: grid; justify-items: center; gap: 2rem; }
.thanks__card {
  width: min(100%, 560px); text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  box-shadow: var(--sh-lg);
}
.thanks__icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}
.thanks__icon svg { width: 26px; height: 26px; }
.thanks__card .h2 { margin-top: 0; }
.thanks__card .lede { margin-inline: auto; }

.thanks__steps {
  display: grid; gap: .75rem; text-align: left;
  margin: 1.75rem 0; padding: 1.25rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.thanks__steps li {
  display: flex; align-items: flex-start; gap: .7rem; list-style: none;
  font-size: var(--fs-md); color: var(--muted); line-height: 1.6;
}
.thanks__steps span {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-lt); color: var(--accent-tx);
  font-size: .7rem; font-weight: 700;
}
.thanks__help { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.75rem; }
.thanks__help a { color: var(--accent-tx); font-weight: 600; }

/* ── 16 ter. Páginas legales ────────────────────────────────────────────── */
.legal { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 5rem; }
.legal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.legal__back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  transition: color .2s;
}
.legal__back:hover { color: var(--accent-tx); }
.legal__back svg { width: 15px; height: 15px; }

.legal__doc { max-width: 720px; }
.legal__doc .h2 { margin-top: .6rem; }
.legal__meta {
  margin-top: 1rem; font-size: var(--fs-sm); color: var(--faint);
}

.legal__doc h2 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em;
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.legal__doc > h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2.75rem; }
.legal__doc h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 1.5rem; }
.legal__doc p { margin-top: .85rem; font-size: var(--fs-md); color: var(--muted); line-height: 1.85; }
.legal__doc ul, .legal__doc ol {
  margin-top: .85rem; padding-left: 1.25rem;
  font-size: var(--fs-md); color: var(--muted); line-height: 1.85;
}
.legal__doc li + li { margin-top: .4rem; }
.legal__doc strong { color: var(--text); font-weight: 600; }
.legal__doc a { color: var(--accent-tx); text-decoration: underline; text-underline-offset: 2px; }

.legal__crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.legal__crumbs a { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-tx); }

/* ── 17. Pie ───────────────────────────────────────────────────────────── */
.footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
}
@media (max-width: 47.99em) { .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }
.footer__grid { display: grid; gap: 1.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer__links a { font-size: var(--fs-sm); color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--accent-tx); }
.footer__navs { display: flex; flex-direction: column; gap: .6rem; }
.footer__links--legal a { font-size: var(--fs-xs); color: var(--faint); }
.footer__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.footer__copy { font-size: var(--fs-xs); color: var(--faint); }
.footer__mail { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); transition: color .2s; }
.footer__mail:hover { color: var(--accent-tx); }
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .footer__navs { align-items: flex-end; }
  .footer__links { justify-content: flex-end; }
  .footer__meta { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--border); }
}

/* ── 18. Animación de entrada ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── 19. Accesibilidad de movimiento ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
