/* ============================================================
   18PM — Landing Ecommerce Rentable
   Sistema visual: fintech-financiero, claro y data-driven
   ============================================================ */

:root {
  /* Marca — Manual 18PM */
  --azul-900: #012147;
  --azul-800: #013267;   /* primario dominante */
  --azul-700: #044987;
  --azul-500: #1f6bb8;
  --azul-300: #8fb4d8;
  --gris-200: #e2e2e2;
  --rosa-400: #f691c5;
  --rosa-600: #d25187;   /* acento creativo */

  /* Neutros tintados (azul) */
  --paper:    #ffffff;
  --panel:    #f4f7fb;
  --panel-2:  #eef3f9;
  --line:     #e2e9f1;
  --line-strong: #d3deea;
  --ink:      #0c2747;
  --ink-soft: #4b647f;
  --ink-faint:#7f93a8;

  /* Acentos derivados (control via Tweaks) */
  --accent:   var(--rosa-600);
  --accent-soft: var(--rosa-400);

  /* Tipografía */
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Escala / radios / sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(1,33,71,.06), 0 2px 8px rgba(1,33,71,.05);
  --shadow-md: 0 8px 24px rgba(1,33,71,.08), 0 2px 6px rgba(1,33,71,.05);
  --shadow-lg: 0 24px 60px rgba(1,33,71,.16), 0 6px 18px rgba(1,33,71,.08);
  --shadow-blue: 0 22px 50px rgba(4,73,135,.28);

  --maxw: 1200px;
  --ease: cubic-bezier(.4,.05,.15,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rosa-400); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.muted { color: var(--azul-700); }
.eyebrow.muted::before { background: var(--azul-700); }

/* Eyebrow del hero como pill prominente (no toca los eyebrows de otras secciones) */
.hero .eyebrow {
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: rgba(210, 81, 135, .08);
  border: 1.5px solid rgba(210, 81, 135, .28);
  gap: 9px;
}
.hero .eyebrow::before {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(210, 81, 135, .18);
}
/* Adaptación al hero oscuro */
.hero--b .eyebrow {
  background: rgba(246, 145, 197, .1);
  border-color: rgba(246, 145, 197, .32);
}
.hero--b .eyebrow::before {
  background: var(--rosa-400);
  box-shadow: 0 0 0 4px rgba(246, 145, 197, .18);
}

h1, h2, h3 { font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.lead { color: var(--ink-soft); font-size: 1.16rem; line-height: 1.6; text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
mark.hl {
  background: linear-gradient(180deg, transparent 58%, var(--accent-soft) 58%, var(--accent-soft) 92%, transparent 92%);
  color: inherit; padding: 0 .06em;
}
.txt-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  padding: 16px 26px; border: none; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--azul-800); color: #fff; box-shadow: 0 8px 20px rgba(1,33,71,.22); }
.btn-primary:hover { background: var(--azul-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1,33,71,.3); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(210,81,135,.32); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(210,81,135,.42); filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--azul-800); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--azul-800); background: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 30px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; }
.brand .brand-txt { font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; color: var(--azul-800); }
.header-meta { display: flex; align-items: center; gap: 22px; }
.header-meta .pill {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px;
}
.header-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #19b36b; box-shadow: 0 0 0 4px rgba(25,179,107,.16); }
@media (max-width: 720px) { .header-meta .pill { display: none; } }

/* ============================================================
   HERO — 3 variantes (body[data-hero=a|b|c])
   ============================================================ */
.hero { display: none; }
body[data-hero="a"] .hero--a,
body[data-hero="b"] .hero--b,
body[data-hero="c"] .hero--c { display: block; }

/* Common form card */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.form-card .fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.form-card h3 { font-size: 1.34rem; letter-spacing: -.025em; }
.form-card .fc-sub { color: var(--ink-soft); font-size: .94rem; margin-top: 6px; margin-bottom: 20px; }
.form-card .free-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(210,81,135,.1);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-weight: 500;
}
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 6px; letter-spacing: .01em;
}
.field .req { color: var(--accent); }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%234b647f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--azul-700); box-shadow: 0 0 0 4px rgba(4,73,135,.12); }
.field.invalid input, .field.invalid select { border-color: var(--rosa-600); box-shadow: 0 0 0 4px rgba(210,81,135,.12); }
.field .err { display: none; color: var(--rosa-600); font-size: 12px; margin-top: 5px; font-weight: 500; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-foot { margin-top: 16px; display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 12px; }
.fc-foot svg { width: 14px; height: 14px; flex-shrink: 0; }

/* highlighted qualifying field */
.field.qualify label { color: var(--azul-800); font-weight: 700; }
.field.qualify select { border-color: var(--azul-300); background-color: #fbfdff; font-weight: 600; }

/* form success */
.form-success { display: none; text-align: center; padding: 18px 6px; }
.form-card.done .form-body { display: none; }
.form-card.done .form-success { display: block; }
.form-success .check { width: 60px; height: 60px; border-radius: 50%; background: rgba(25,179,107,.12); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .check svg { width: 30px; height: 30px; stroke: #19b36b; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: .95rem; }

/* trust strip under hero copy */
.hero-metrics { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-metrics .hm { display: flex; flex-direction: column; gap: 2px; }
.hero-metrics .hm b { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--azul-800); font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-metrics .hm { min-width: max-content; }
.hero-metrics .hm span { font-size: 12.5px; color: var(--ink-soft); }
.hero-metrics .hm + .hm { padding-left: 30px; border-left: 1px solid var(--line); }

/* ---- HERO A: claro / split dashboard ---- */
.hero--a { padding: 70px 0 84px; background:
  radial-gradient(120% 90% at 88% -10%, rgba(4,73,135,.07), transparent 55%),
  radial-gradient(80% 70% at 0% 100%, rgba(210,81,135,.06), transparent 60%),
  var(--paper); }
.hero--a .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero--a h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin: 22px 0 20px; }
.hero--a .lead { max-width: 30em; margin-bottom: 30px; }
.hero--a .hero-metrics { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }

/* ---- HERO B: oscuro / premium ---- */
.hero--b { padding: 76px 0 86px; color: #eaf1f8; background:
  radial-gradient(110% 80% at 80% 0%, #0a3f78 0%, var(--azul-800) 42%, var(--azul-900) 100%); }
.hero--b::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); pointer-events:none; }
.hero--b .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero--b .eyebrow { color: var(--rosa-400); }
.hero--b .eyebrow::before { background: var(--rosa-400); }
.hero--b h1 { color: #fff; font-size: clamp(2.3rem, 4.3vw, 3.7rem); margin: 22px 0 20px; }
.hero--b .lead { color: #b9cde0; max-width: 28em; margin-bottom: 30px; }
.hero--b mark.hl { background: linear-gradient(180deg, transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); color: #fff; }
.hero--b .hero-metrics { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hero--b .hero-metrics .hm b { color: #fff; }
.hero--b .hero-metrics .hm span { color: #9fb6cd; }
.hero--b .hero-metrics .hm + .hm { border-left-color: rgba(255,255,255,.14); }

/* ---- HERO C: editorial / data-driven ---- */
.hero--c { padding: 64px 0 80px; background: var(--panel); }
.hero--c .topline { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap: wrap; margin-bottom: 40px; }
.hero--c h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); max-width: 16ch; }
.hero--c .grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; margin-top: 30px; }
.hero--c .lead { max-width: 32em; margin: 26px 0 0; }
.hero--c .hero-metrics { margin-top: 38px; }
.hero--c .panel-visual { align-self: stretch; }

/* P&L mini-visual (decorative dashboard) */
.pl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.pl-card .pl-head { display:flex; align-items:center; justify-content:space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pl-card .pl-head span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.pl-card .pl-head .dots { display:flex; gap:6px; }
.pl-card .pl-head .dots i { width:9px; height:9px; border-radius:50%; background: var(--line-strong); display:block; }
.pl-rows { padding: 8px 20px 16px; }
.pl-rows .pl-row { display:flex; align-items:center; justify-content:space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pl-rows .pl-row:last-child { border-bottom: none; }
.pl-rows .pl-row span { color: var(--ink-soft); }
.pl-rows .pl-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.pl-rows .pl-row span { flex: 0 1 auto; }
.pl-rows .pl-row.good b { color: #128a52; }
.pl-rows .pl-row.bad b { color: var(--rosa-600); }
.pl-rows .pl-row.total { margin-top: 4px; padding-top: 14px; border-top: 2px solid var(--ink); }
.pl-rows .pl-row.total span { color: var(--ink); font-weight: 700; }
.pl-rows .pl-row.total b { font-size: 1.15rem; color: var(--azul-800); }
.pl-bar { height: 8px; background: var(--panel-2); display:flex; }
.pl-bar i { display:block; height:100%; }
.pl-bar .seg-cogs { background: var(--azul-300); }
.pl-bar .seg-ads { background: var(--rosa-400); }
.pl-bar .seg-op { background: var(--gris-200); }
.pl-bar .seg-profit { background: var(--azul-800); }

/* ============================================================
   Marquee de logos / clientes
   ============================================================ */
.logos { padding: 26px 0; border-block: 1px solid var(--line); background: #fff; }
.logos .wrap { display:flex; align-items:center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.logos .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.logos .client { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--azul-800); opacity: .55; }
/* En desktop el wrapper es invisible al layout (marcas inline con el label) */
.logos-list { display: contents; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 96px 0; }
.section.tight { padding: 76px 0; }
.section.panel-bg { background: var(--panel); }
.section.dark-bg { background: radial-gradient(120% 90% at 80% 0%, #0a3f78, var(--azul-800) 55%, var(--azul-900)); color: #eaf1f8; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); margin: 18px 0 16px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); text-wrap: pretty; }
.dark-bg .section-head p { color: #b9cde0; }
.dark-bg h2 { color: #fff; }

/* ---------- Problema ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prob {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.prob:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prob .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .06em; }
.prob h3 { font-size: 1.22rem; margin: 16px 0 10px; letter-spacing: -.02em; }
.prob p { color: var(--ink-soft); font-size: .97rem; }
.prob .stat { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); display:flex; align-items:baseline; gap: 8px; }
.prob .stat b { font-size: 1.5rem; color: var(--rosa-600); font-weight: 700; }

.prob-quote {
  margin-top: 40px; padding: 30px 34px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--azul-800), var(--azul-700));
  color: #fff; display:flex; align-items:center; gap: 24px; box-shadow: var(--shadow-blue);
}
.prob-quote .q-mark { font-size: 3.4rem; line-height: 1; font-weight: 800; color: var(--rosa-400); font-family: Georgia, serif; }
.prob-quote p { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- Proceso (P&L → estrategia → adquisición) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step { padding: 0 30px; position: relative; }
.step:not(:last-child)::after { content:""; position:absolute; top: 26px; right: -10px; width: 20px; height: 2px; background: var(--line-strong); }
.step .s-no {
  width: 54px; height: 54px; border-radius: 16px; display:grid; place-items:center;
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; color:#fff;
  background: var(--azul-800); box-shadow: 0 8px 18px rgba(1,33,71,.2); margin-bottom: 22px;
}
.step:nth-child(2) .s-no { background: var(--azul-700); }
.step:nth-child(3) .s-no { background: var(--accent); box-shadow: 0 8px 18px rgba(210,81,135,.3); }
.step h3 { font-size: 1.28rem; margin-bottom: 10px; letter-spacing: -.02em; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step ul { list-style: none; padding: 0; margin: 18px 0 0; display:flex; flex-direction: column; gap: 9px; }
.step ul li { display:flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.step ul li svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; stroke: var(--accent); }
@media (max-width: 860px){ .step:not(:last-child)::after{ display:none; } }

/* ---------- Diferenciador (comparativa) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col {
  border-radius: var(--r-lg); padding: 34px 32px; border: 1px solid var(--line);
}
.compare .col.them { background: #fff; }
.compare .col.us { background: var(--azul-800); color: #fff; border-color: var(--azul-800); box-shadow: var(--shadow-blue); position: relative; overflow: hidden; }
.compare .col.us::before { content:""; position:absolute; top:-40px; right:-40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(246,145,197,.35), transparent 70%); }
.compare .col h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-mono); font-weight: 600; margin-bottom: 22px; }
.compare .col.them h3 { color: var(--ink-faint); }
.compare .col.us h3 { color: var(--rosa-400); position: relative; }
.compare .col.us .badge { position:absolute; top:30px; right:30px; font-family: var(--font-mono); font-size: 11px; letter-spacing:.08em; text-transform:uppercase; background: var(--rosa-600); color:#fff; padding: 5px 11px; border-radius: 999px; }
.cmp-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; }
.cmp-list li { display:flex; gap:14px; align-items:flex-start; padding: 14px 0; font-size: 1rem; }
.cmp-list li + li { border-top: 1px solid var(--line); }
.compare .us .cmp-list li + li { border-top-color: rgba(255,255,255,.12); }
.cmp-list .ic { width: 22px; height: 22px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; margin-top:1px; }
.cmp-list .ic svg { width: 13px; height: 13px; }
.them .ic { background: var(--panel-2); } .them .ic svg { stroke: var(--ink-faint); }
.us .ic { background: rgba(246,145,197,.2); } .us .ic svg { stroke: var(--rosa-400); }
.compare .col.them p { color: var(--ink-soft); }
.compare .col.us li { color: #eaf1f8; }

/* ---------- Métricas ---------- */
.metrics-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric { text-align: left; padding: 8px 0; }
.metric .mv { font-family: var(--font-mono); font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.metric .mv .suf { color: var(--rosa-400); }
.metric .ml { margin-top: 12px; font-size: .98rem; color: #b9cde0; }
.metric + .metric { border-left: 1px solid rgba(255,255,255,.14); padding-left: 28px; }

/* ---------- Testimonios ---------- */
.tst-grid { display:grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.tst { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 34px; display:flex; flex-direction:column; box-shadow: var(--shadow-sm); }
.tst.lead-tst { background: var(--panel); }
.tst .stars { display:flex; gap:3px; margin-bottom: 18px; }
.tst .stars svg { width:17px; height:17px; fill: var(--rosa-400); }
.tst blockquote { font-size: 1.18rem; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); font-weight: 500; margin-bottom: 24px; text-wrap: pretty; }
.tst.lead-tst blockquote { font-size: 1.34rem; }
.tst .who { margin-top:auto; display:flex; align-items:center; gap: 14px; }
.tst .ava { width: 46px; height:46px; border-radius:50%; background: linear-gradient(135deg, var(--azul-700), var(--azul-900)); color:#fff; display:grid; place-items:center; font-weight:700; font-size: 1rem; flex-shrink:0; }
.tst .who b { display:block; font-size: .98rem; }
.tst .who span { font-size: 13px; color: var(--ink-soft); }
.tst-small-grid { display:grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.tst-small-grid .tst { padding: 26px; }
.tst-small-grid blockquote { font-size: 1rem; margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-wrap { display:grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width:100%; text-align:left; background:none; border:none; padding: 22px 0; display:flex; align-items:center; justify-content:space-between; gap: 20px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.faq-q .ic { width: 26px; height: 26px; flex-shrink:0; border-radius:50%; border:1.5px solid var(--line-strong); position: relative; transition: .25s var(--ease); }
.faq-q .ic::before, .faq-q .ic::after { content:""; position:absolute; top:50%; left:50%; background: var(--azul-800); border-radius:2px; }
.faq-q .ic::before { width: 11px; height: 1.8px; transform: translate(-50%, -50%); }
.faq-q .ic::after { width: 1.8px; height: 11px; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-item.open .faq-q .ic { background: var(--azul-800); border-color: var(--azul-800); }
.faq-item.open .faq-q .ic::before, .faq-item.open .faq-q .ic::after { background:#fff; }
.faq-item.open .faq-q .ic::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 0 24px; color: var(--ink-soft); font-size: 1rem; max-width: 56ch; }
.faq-aside { background: var(--azul-800); color:#fff; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-blue); position: sticky; top: 96px; }
.faq-aside h3 { color:#fff; font-size: 1.4rem; margin-bottom: 12px; }
.faq-aside p { color:#b9cde0; font-size: .98rem; margin-bottom: 22px; }

/* ---------- CTA final ---------- */
.cta { padding: 100px 0; background:
  radial-gradient(100% 120% at 85% 0%, #0a3f78, var(--azul-800) 50%, var(--azul-900)); color:#fff; }
.cta .grid { display:grid; grid-template-columns: 1fr .9fr; gap: 60px; align-items: center; }
.cta h2 { color:#fff; font-size: clamp(2rem, 3.6vw, 3rem); margin: 18px 0 18px; }
.cta .lead { color:#b9cde0; margin-bottom: 28px; }
.cta .guarantees { list-style:none; padding:0; margin: 26px 0 0; display:flex; flex-direction:column; gap: 14px; }
.cta .guarantees li { display:flex; gap:12px; align-items:center; font-size: 1.02rem; color:#dbe7f3; }
.cta .guarantees svg { width: 20px; height:20px; stroke: var(--rosa-400); flex-shrink:0; }
.cta .eyebrow { color: var(--rosa-400); } .cta .eyebrow::before { background: var(--rosa-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--azul-900); color: #9fb6cd; padding: 54px 0 30px; }
.site-footer .top { display:flex; justify-content:space-between; align-items:flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand img { height: 40px; }
.site-footer .f-tag { margin-top: 14px; max-width: 30ch; font-size: .92rem; line-height: 1.6; }
.site-footer .f-contact { font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.site-footer .f-contact a:hover { color:#fff; }
.site-footer .bottom { padding-top: 24px; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.site-footer .legal { font-family: var(--font-mono); letter-spacing: .03em; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* ============================================================
   Responsive — sistema de breakpoints
   XS  ≤479  · SM 480–767 · MD 768–1023 (tablet)
   LG 1024–1439 (desktop) · XL ≥1440
   ============================================================ */

/* ---- Desktop XL: agranda el lienzo en monitores grandes ---- */
@media (min-width: 1440px){
  :root { --maxw: 1280px; }
  .hero--a, .hero--b { padding-block: 90px 100px; }
}

/* ---- Tablet (≤1023): el form del hero baja, grillas a 2 col ---- */
@media (max-width: 1023px){
  .hero--a .grid, .hero--b .grid, .hero--c .grid, .cta .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero--c .grid { gap: 36px; }
  .hero-form { max-width: 520px; }
  .compare { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .tst-grid { grid-template-columns: 1fr; }
  .prob-grid { grid-template-columns: 1fr 1fr; }
  .prob-grid .prob:nth-child(3) { grid-column: 1 / -1; }
  .stories-rail { grid-template-columns: repeat(3, minmax(200px, 1fr)); grid-auto-flow: row; overflow: visible; }
}

/* ---- Mobile grande (≤767) ---- */
@media (max-width: 767px){
  .wrap, .wrap-narrow { width: min(100% - 36px, var(--maxw)); }
  .section { padding: 64px 0; }
  .section.tight { padding: 56px 0; }
  .prob-grid, .steps { grid-template-columns: 1fr; gap: 16px; }
  .prob-grid .prob:nth-child(3) { grid-column: auto; }
  .step { padding: 0; }
  .prob-quote { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  /* en mobile las métricas van apiladas verticales con separador horizontal entre filas */
  .metrics-grid { grid-template-columns: 1fr; gap: 26px; }
  .metric { padding: 0; text-align: center; }
  .metric .ml { max-width: 28ch; margin-left: auto; margin-right: auto; }
  .metric + .metric { border-left: none; padding-left: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
  .form-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .stories-rail { grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; }
  .stories-head { margin-bottom: 28px; }
  /* eyebrow más compacto: menos letter-spacing para evitar wrap feo */
  .eyebrow { letter-spacing: .08em; font-size: 11.5px; }
  /* pill del hero: 1 sola línea, font legible */
  .hero .eyebrow {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: .05em;
    padding: 7px 14px 7px 12px;
    gap: 8px;
  }
  .hero .eyebrow::before {
    width: 7px; height: 7px;
    box-shadow: 0 0 0 3px rgba(210,81,135,.18);
  }
  /* franja de marcas en mobile: label arriba + scroll horizontal abajo */
  .logos { padding: 20px 0; }
  .logos .wrap { display: block; padding: 0; }
  .logos .lbl { display: block; text-align: center; margin-bottom: 14px; padding: 0 18px; }
  .logos-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 18px 4px;
    -webkit-overflow-scrolling: touch;
  }
  .logos-list::-webkit-scrollbar { display: none; }
  .logos-list .client { white-space: nowrap; flex-shrink: 0; }
  /* subir el contenido del hero (menos espacio en blanco arriba) */
  .hero--a, .hero--b { padding: 28px 0 56px; }
  .hero--c { padding: 24px 0 56px; }
  /* métricas del hero en grilla fija de 3 columnas (evita el "×2 años" colgado) */
  .hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-metrics .hm { min-width: 0; }
  .hero-metrics .hm + .hm { padding-left: 14px; border-left: 1px solid var(--line); }
  .hero-metrics .hm b { font-size: 1.45rem; }
  .hero--b .hero-metrics .hm + .hm { border-left-color: rgba(255,255,255,.14); }
  /* deja aire para el CTA sticky */
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 90px; }
}

/* ---- Mobile chico (≤479): tipografía y métricas más compactas ---- */
@media (max-width: 479px){
  .wrap, .wrap-narrow { width: min(100% - 28px, var(--maxw)); }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem) !important; }
  .hero--a .lead, .hero--b .lead, .hero--c .lead, .section-head p { font-size: 1.02rem; }
  .hero-metrics .hm + .hm { padding-left: 10px; }
  .hero-metrics .hm b { font-size: 1.2rem; }
  .hero-metrics .hm span { font-size: 11px; }
  .btn-lg { padding: 16px 22px; font-size: 1rem; }
  .pl-rows .pl-row { font-size: 13px; }
  .prob-quote p { font-size: 1.06rem; }
  .stories-rail { grid-auto-columns: 80%; }
  .tst.lead-tst blockquote { font-size: 1.15rem; }
  /* en pantallas chicas tipo iPhone SE, achicar el pill un toque más */
  .hero .eyebrow { font-size: 10px; letter-spacing: .04em; padding: 6px 12px 6px 10px; }
}

/* ---- Áreas táctiles ≥44px en dispositivos touch ---- */
@media (hover: none){
  .faq-q { padding-block: 24px; }
  .header-meta .btn { min-height: 44px; }
  .story-card .play { width: 58px; height: 58px; }
}

/* ============================================================
   CTA sticky mobile — solo aparece en pantallas chicas
   ============================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(1,33,71,.1);
}
.mobile-cta .mc-txt { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-cta .mc-txt b { font-size: 14px; color: var(--ink); letter-spacing: -.01em; }
.mobile-cta .mc-txt span { font-size: 11.5px; color: var(--ink-soft); }
.mobile-cta .btn { flex: 1; min-height: 48px; padding: 12px 18px; }
@media (max-width: 767px){ .mobile-cta { display: flex; } }
/* ocultar cuando el form está a la vista o ya se envió */
.mobile-cta.hide { transform: translateY(120%); transition: transform .3s var(--ease); }
.mobile-cta { transition: transform .3s var(--ease); }


/* ============================================================
   Historias (videos formato 9:16 tipo IG)
   ============================================================ */
.stories-head { display:flex; align-items:flex-end; justify-content:space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.stories-head .st-left { max-width: 640px; }
.stories-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); margin: 18px 0 14px; }
.stories-head p { font-size: 1.12rem; color: var(--ink-soft); text-wrap: pretty; }
.stories-head .st-hint { font-family: var(--font-mono); font-size: 12px; letter-spacing:.04em; color: var(--ink-faint); display:flex; align-items:center; gap:8px; }
.stories-head .st-hint svg { width: 15px; height:15px; }

.stories-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(208px, 1fr);
  gap: 22px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.stories-rail::-webkit-scrollbar { height: 7px; }
.stories-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
@media (min-width: 1000px){ .stories-rail { grid-template-columns: repeat(5, 1fr); grid-auto-flow: row; overflow: visible; } }

.story-card {
  scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; border: none;
  background: var(--azul-900); padding: 0; text-align: left;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), box-shadow .25s;
  isolation: isolate;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.story-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* striped placeholder poster */
.story-poster { position:absolute; inset:0; z-index:0; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,0) 12px 24px),
  linear-gradient(165deg, var(--azul-700), var(--azul-900)); }
.story-card video, .story-card .story-img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; z-index:1; }
.story-card .scrim { position:absolute; inset:0; z-index:2; background: linear-gradient(to top, rgba(1,16,38,.85) 0%, rgba(1,16,38,.1) 42%, rgba(1,16,38,.25) 100%); }
.story-card .ring { position:absolute; top:14px; left:14px; z-index:3; width: 40px; height:40px; border-radius:50%; padding:2.5px; background: linear-gradient(135deg, var(--rosa-400), var(--rosa-600)); }
.story-card .ring span { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; background: var(--azul-900); color:#fff; font-weight:800; font-size: 13px; border: 2px solid var(--azul-900); }
.story-card .ph-tag { position:absolute; top:18px; right:14px; z-index:3; font-family: var(--font-mono); font-size: 10px; letter-spacing:.08em; text-transform:uppercase; color:#fff; background: rgba(255,255,255,.16); padding: 4px 8px; border-radius: 99px; backdrop-filter: blur(4px); }
.story-card .play { position:absolute; z-index:3; top:50%; left:50%; transform: translate(-50%,-50%); width: 54px; height:54px; border-radius:50%; background: rgba(255,255,255,.92); display:grid; place-items:center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.story-card:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.story-card .play svg { width: 20px; height:20px; fill: var(--azul-800); margin-left: 3px; }
.story-card .meta { position:absolute; z-index:3; left:16px; right:16px; bottom:16px; color:#fff; }
.story-card .meta .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--rosa-400); }
.story-card .meta h3 { color:#fff; font-size: 1.02rem; line-height: 1.2; margin-top: 5px; letter-spacing: -.01em; text-wrap: balance; }
.story-card .dur { position:absolute; z-index:3; bottom:16px; right:16px; display:none; }

/* ---- Player modal (stories) ---- */
.stp { position: fixed; inset:0; z-index: 1000; background: rgba(3,12,28,.92); backdrop-filter: blur(6px); display:none; place-items:center; opacity:0; transition: opacity .25s ease; }
.stp.open { display:grid; opacity:1; }
.stp-stage { position: relative; width: min(440px, 94vw); aspect-ratio: 9/16; max-height: 92vh; border-radius: 20px; overflow:hidden; background:#000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.stp-stage video { width:100%; height:100%; object-fit: cover; display:block; background:#000; }
.stp-ph { position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding: 40px; color:#fff; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,0) 12px 24px),
  linear-gradient(165deg, var(--azul-700), var(--azul-900)); }
.stp-ph .ph-ic { width: 64px; height:64px; border-radius:50%; background: rgba(255,255,255,.14); display:grid; place-items:center; margin: 0 auto 18px; }
.stp-ph .ph-ic svg { width: 28px; height:28px; fill:#fff; margin-left:3px; }
.stp-ph h3 { color:#fff; font-size: 1.25rem; margin-bottom: 10px; }
.stp-ph p { color: #b9cde0; font-size: .92rem; max-width: 24ch; margin: 0 auto; }
.stp-ph .ph-file { font-family: var(--font-mono); font-size: 11px; color:#fff; margin-top:16px; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 99px; display:inline-block; }
/* progress bars */
.stp-bars { position:absolute; top:12px; left:12px; right:12px; z-index:5; display:flex; gap:5px; }
.stp-bars i { flex:1; height:3px; border-radius:99px; background: rgba(255,255,255,.3); overflow:hidden; }
.stp-bars i b { display:block; height:100%; width:0; background:#fff; border-radius:99px; }
.stp-bars i.done b { width:100%; }
/* top gradient + caption */
.stp-top { position:absolute; top:0; left:0; right:0; z-index:4; height: 110px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); pointer-events:none; }
.stp-cap { position:absolute; z-index:5; left:18px; right:60px; top:30px; color:#fff; }
.stp-cap .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--rosa-400); }
.stp-cap h3 { color:#fff; font-size: 1.05rem; margin-top:4px; line-height:1.2; }
.stp-close { position:absolute; top:26px; right:14px; z-index:6; width: 36px; height:36px; border-radius:50%; border:none; background: rgba(255,255,255,.16); color:#fff; display:grid; place-items:center; cursor:pointer; transition: background .2s; }
.stp-close:hover { background: rgba(255,255,255,.3); }
.stp-close svg { width:18px; height:18px; }
/* tap zones */
.stp-nav { position:absolute; inset:0; z-index:3; display:flex; }
.stp-nav button { flex:1; border:none; background:transparent; cursor:pointer; -webkit-tap-highlight-color: transparent; }
.stp-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:6; width:42px; height:42px; border-radius:50%; border:none; background: rgba(255,255,255,.9); color: var(--azul-800); display:none; place-items:center; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.stp-arrow svg { width:20px; height:20px; }
.stp-arrow.prev { left: -58px; } .stp-arrow.next { right: -58px; }
@media (min-width: 900px){ .stp-arrow { display:grid; } }
@media (max-width: 767px){
  .stories-head h2 { font-size: 1.9rem; }
  .stp-stage { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; aspect-ratio: auto; }
  .stp-close { width: 42px; height: 42px; }
}

