/* ============================================================
   Thinkpago — marketing site
   Built to Thinkpago · Manual de marca v1.0 (DESIGN.md)
   Font: Rajdhani (self-hosted static weights 300–700)
   ============================================================ */

@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Rajdhani-300.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Rajdhani-400.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Rajdhani-500.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Rajdhani-600.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Rajdhani-700.woff2') format('woff2'); }

/* ---------- Tokens (DESIGN.md §3–4) ---------- */
:root {
  --tp-navy: #13192f;
  --tp-azul: #0c46dd;
  --tp-celeste: #00beff;
  --tp-verde: #10b981;
  --tp-gris-claro: #f3f6f9;
  --tp-white: #ffffff;

  --tp-navy-70: rgb(19 25 47 / 0.70);
  --tp-navy-12: rgb(19 25 47 / 0.12);
  --tp-navy-06: rgb(19 25 47 / 0.06);
  --tp-white-70: rgb(255 255 255 / 0.70);
  --tp-white-12: rgb(255 255 255 / 0.12);

  --tp-azul-dark: #0937ad;
  --tp-azul-15: rgb(12 70 221 / 0.15);

  --radius-pill: 999px;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;

  --shadow-sm: 0 2px 8px rgb(19 25 47 / 0.06);
  --shadow-md: 0 12px 32px rgb(19 25 47 / 0.08);
  --shadow-lg: 0 24px 64px rgb(19 25 47 / 0.12);

  --font: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1240px;
  --edge: clamp(1.5rem, 4vw, 2.5rem);

  /* fluid type scale, desktop -> mobile per manual */
  --fs-display: clamp(2.75rem, 1.5vw + 2.4rem, 5rem);
  --fs-h2: clamp(2.25rem, 1.6vw + 1.7rem, 3.5rem);
  --fs-h3: clamp(1.5rem, 0.4vw + 1.35rem, 1.875rem);
  --fs-lead: clamp(1.19rem, 0.2vw + 1.1rem, 1.375rem);
  --fs-body: clamp(1.125rem, 0.15vw + 1.05rem, 1.25rem);
  --fs-small: 1.0625rem;
  --fs-eyebrow: 0.9375rem;
  --fs-figure: clamp(2rem, 1vw + 1.6rem, 2.75rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--tp-white);
  color: var(--tp-navy);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
input { font: inherit; color: inherit; }

::selection { background: var(--tp-azul); color: #fff; }
:focus-visible { outline: 3px solid var(--tp-celeste); outline-offset: 2px; border-radius: 4px; }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--tp-white); }
::-webkit-scrollbar-thumb { background: var(--tp-navy-12); border-radius: 999px; border: 3px solid var(--tp-white); }
::-webkit-scrollbar-thumb:hover { background: var(--tp-navy-70); }
* { scrollbar-color: var(--tp-navy-12) var(--tp-white); scrollbar-width: thin; }

/* ---------- Type (DESIGN.md §4) ---------- */
h1, h2, h3 {
  font-family: var(--font);
  color: var(--tp-navy);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1.0; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.05; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }

p { color: var(--tp-navy-70); max-width: 62ch; text-wrap: pretty; }
p.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; max-width: 46ch; color: var(--tp-navy-70); }

.accent { color: var(--tp-azul); }
.on-navy .accent, .on-azul .accent { color: var(--tp-celeste); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-azul);
  margin-bottom: 0.75rem;
}
.on-navy .eyebrow { color: var(--tp-celeste); }
.on-azul .eyebrow { color: #fff; } /* celeste-on-azul measures 3.3:1, below the 4.5:1 this small text needs; manual §10 also reserves white-70/celeste for navy, never azul */

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head p { margin-top: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--edge); }
section { padding-block: 80px; }
@media (min-width: 900px) { section { padding-block: 128px; } }
section.on-navy { background: var(--tp-navy); color: #fff; }
section.on-navy h1, section.on-navy h2, section.on-navy h3 { color: #fff; }
section.on-navy p { color: var(--tp-white-70); }
section.on-azul { background: var(--tp-azul); color: #fff; }
section.on-azul h1, section.on-azul h2, section.on-azul h3 { color: #fff; }
section.on-azul p { color: rgba(255, 255, 255, 0.92); } /* manual §10: never white-70 on azul, use full white */
section.on-gris { background: var(--tp-gris-claro); }

/* ---------- Buttons (DESIGN.md §7) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 52px;
  padding-inline: 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (max-width: 640px) { .btn { height: 44px; padding-inline: 22px; font-size: 1rem; } }

.btn-primary { background: var(--tp-navy); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); background: #1d2544; }

.btn-on-dark { background: var(--tp-celeste); color: var(--tp-navy); }
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); filter: brightness(1.04); }

.btn-accent { background: var(--tp-azul); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); background: var(--tp-azul-dark); }

.btn-secondary { background: transparent; color: var(--tp-navy); border: 1.5px solid var(--tp-navy); }
.btn-secondary:hover { background: var(--tp-navy-06); transform: translateY(-1px); }
.on-navy .btn-secondary, .on-azul .btn-secondary { color: #fff; border-color: var(--tp-white-12); }
.on-navy .btn-secondary:hover, .on-azul .btn-secondary:hover { background: var(--tp-white-12); }

.btn-sm { height: 44px; padding-inline: 20px; font-size: 1rem; }

/* WhatsApp glyph used on every primary CTA */
.btn .wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.85; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.icon-bubble {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--tp-azul);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-bubble.on-navy-bubble { background: var(--tp-celeste); color: var(--tp-navy); }

/* small icon tile used in compact value tiles / list rows */
.icon-tile { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--tp-azul); color: #fff; flex-shrink: 0; }

/* ---------- Logo (placeholder — real SVG assets not yet supplied, per DESIGN.md §2) ---------- */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 32px;
  padding-inline: 0.85rem;
  border: 1.5px dashed var(--tp-navy-12);
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--tp-navy-70);
  white-space: nowrap;
}
.on-navy .logo-placeholder, .nav-pill .logo-placeholder { border-color: var(--tp-white-12); color: var(--tp-white-70); }
.on-azul .logo-placeholder { border-color: var(--tp-white-12); color: rgba(255, 255, 255, 0.92); }
.logo-placeholder .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-azul); flex-shrink: 0; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; }

/* ---------- Nav bar — floating pill (DESIGN.md §7) ---------- */
.nav-wrap { position: fixed; inset: 16px 0 auto 0; z-index: 100; display: flex; justify-content: center; padding-inline: var(--edge); }
.nav-wrap-inner { width: 100%; }
.nav-pill {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--tp-navy);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 24px;
  transition: box-shadow 0.3s ease;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 1.0625rem; font-weight: 500; color: #fff; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--tp-celeste); }
.main-nav a[aria-current="true"] { color: var(--tp-celeste); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(7.5rem, 14vw, 10.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); overflow: clip; transition: padding-bottom 0.65s var(--ease); }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { min-width: 0; overflow: hidden; transition: opacity 0.3s ease; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .lead { margin-bottom: 2.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }

.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; }
.trust-strip .label { font-size: var(--fs-small); color: var(--tp-navy-70); font-weight: 500; }
.bank-marks { display: flex; flex-wrap: wrap; gap: 1.2rem 1.7rem; }
.bank-marks span { font-weight: 600; font-size: 1rem; color: var(--tp-navy); letter-spacing: -0.005em; }

/* .hero-visual is the hover TRIGGER only — it never changes size or position
   itself, so it stays reliably "hovered" for as long as the pointer rests
   anywhere over it. Its aspect-ratio keeps that box's own geometry stable
   even once .hero-stage (the thing that actually grows) leaves the flow.
   .hero-stage carries the real content and is what resizes/recenters on
   hover; because it stays a DOM descendant of .hero-visual throughout,
   hovering it (wherever it ends up on screen) still counts as hovering
   .hero-visual, so the effect can't flicker between on/off. */
.hero-visual { aspect-ratio: 1630 / 920; }
/* pointer-events:none here is load-bearing: it keeps hover detection a pure
   function of .hero-visual's own static, never-moving box, with zero
   dependency on wherever this now-animating content currently renders —
   nothing inside it can intercept a hover, so the shrinking/growing edge
   can never sweep across a stationary cursor and re-trigger anything. */
.hero-stage { position: relative; width: 100%; height: 100%; pointer-events: none; transition: transform 0.65s var(--ease); transform-origin: center center; }
.device-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--tp-navy-12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(2%);
}
.device-frame .chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--tp-navy-12); background: var(--tp-navy); }
.device-frame .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--tp-white-12); }
.device-frame img { width: 100%; height: auto; display: block; }

.float-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-navy-12);
  animation: float-card-drift 7s ease-in-out infinite;
}
.float-card img { width: 100%; height: auto; display: block; }
.float-card--cobro { width: 27%; top: -7%; left: -8%; rotate: -4deg; z-index: 3; animation-delay: 0s; }
.float-card--match { width: 27%; top: 2%; right: -7%; rotate: 3deg; z-index: 3; border-radius: var(--radius-md); animation-duration: 8s; animation-delay: -2.3s; }
.float-card--auto { width: 27%; top: 48%; right: -7%; rotate: -2deg; z-index: 3; padding: 5px; border-radius: var(--radius-md); animation-duration: 6.5s; animation-delay: -4.6s; }

@keyframes float-card-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

/* ---- Hero hover: expand the product image, let the copy step back ----
   Desktop/mouse only — js/main.js only wires this up when the browser
   itself reports (hover: hover) and (pointer: fine), so it never engages on
   mobile or tablet. Driven by a JS-toggled class/inline style rather than
   live CSS :hover matching, and by `transform` rather than
   position/top/left: a position:absolute version of this grew correctly
   but took an unpredictable path back on collapse — `position` itself
   can't transition, so it snaps from absolute to relative the instant
   hover ends while top/left keep trying to animate, and those percentages
   suddenly mean something totally different once the containing block
   changes underneath them. transform has no such discontinuity in either
   direction: .hero-stage stays position:relative (in normal flow,
   contributing to .hero-visual's grid-row height) at all times, and
   js/main.js computes the exact translate+scale needed and sets it as an
   inline style, which transitions smoothly the same way whether growing
   or shrinking. The floating cards get their own scaled-down bleed
   offsets so their outward overlap stays the same rough size instead of
   growing with the card they're pinned to — these stay percentage-based
   CSS since they're relative to .hero-stage's own stable layout box,
   which the transform never changes. */
.hero-grid.is-expanded .hero-copy { opacity: 0; pointer-events: none; }
.hero-grid.is-expanded .hero-stage { z-index: 5; }
.hero-grid.is-expanded .float-card--cobro { left: -5%; top: -5%; }
.hero-grid.is-expanded .float-card--match { right: -4.5%; }
.hero-grid.is-expanded .float-card--auto { right: -4.5%; }

/* ---------- El dolor (navy) ---------- */
.dolor-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dolor-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 0.5rem; }
.dolor-point { display: flex; gap: 1rem; align-items: flex-start; }
.dolor-point .icon-tile { background: var(--tp-white-12); color: #fff; }
.dolor-point strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.2rem; }
.dolor-point p { font-size: var(--fs-body); margin: 0; }

/* ---------- Cómo funciona + Match visual ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); counter-reset: step; }
.step { position: relative; padding-top: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tp-azul);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-body); margin: 0; }

.como-funciona-shot {
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--tp-navy-12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.como-funciona-shot img { width: 100%; height: auto; display: block; }

/* ---------- Beneficios: feature cards + value tiles ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.feature-card { background: var(--tp-gris-claro); border-radius: var(--radius-xl); padding: clamp(1.75rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.feature-card .mockup { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 1.75rem; }
.feature-card .mockup img { width: 100%; height: auto; display: block; }
.feature-card h3 { text-align: center; margin-bottom: 0.6rem; }
.feature-card p { text-align: center; color: var(--tp-navy-70); margin-inline: auto; font-size: var(--fs-small); }

.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-tile { background: var(--tp-gris-claro); border-radius: 24px; padding: 2rem 1.75rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.value-tile .icon-bubble { width: 56px; height: 56px; margin-bottom: 1rem; }
.value-tile .icon-bubble .icon { width: 24px; height: 24px; }
.value-tile h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value-tile p { font-size: var(--fs-small); margin: 0; }

.savings-card { margin-top: 1.75rem; background: var(--tp-gris-claro); border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.5rem); }
.savings-title { font-size: 1.375rem; font-weight: 700; color: var(--tp-navy); margin-bottom: 1.1rem; }
.savings-calc { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 3vw, 2rem); }

.savings-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }

.field.slider-field label { font-size: var(--fs-small); }
.slider-track-wrap { position: relative; padding-top: 1.75rem; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--tp-azul-15);
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--tp-azul-15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--tp-azul-15); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--tp-navy-12);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 1px solid var(--tp-navy-12);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.slider-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  background: var(--tp-azul);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
}
.slider-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--tp-azul);
}

.savings-result { display: flex; justify-content: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-navy-12); }
.savings-result-item { text-align: center; }
.savings-result-item .label { display: block; font-size: var(--fs-small); color: var(--tp-navy-70); margin-bottom: 0.3rem; }
.savings-result-item.highlight strong { display: block; color: var(--tp-azul); font-weight: 700; font-size: var(--fs-figure); letter-spacing: -0.01em; }

.savings-close { margin-top: 1.5rem; font-weight: 600; font-size: 1.125rem; color: var(--tp-navy); }

/* ---------- Por rubro (azul) ---------- */
.verticals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.vertical-card { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; display: flex; align-items: center; gap: 1rem; transition: grid-column 0.3s var(--ease); }
.vertical-card .icon-tile { background: var(--tp-celeste); color: var(--tp-navy); flex-shrink: 0; }
.vertical-card span { color: var(--tp-navy); font-weight: 600; font-size: 1.0625rem; }
.rubro-note { margin-top: 1.75rem; color: rgba(255, 255, 255, 0.92); font-size: var(--fs-small); max-width: 60ch; }

/* Expandable vertical: click "Ver más" to spotlight its body text full-width
   and hide the other five cards, same accordion contract as the FAQ
   (data-open on the item, JS closes siblings before opening the target). */
.vertical-card--expandable { display: block; }
.vertical-card__head { width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; cursor: pointer; }
.vertical-card__head .vertical-card__toggle {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--tp-azul);
  white-space: nowrap;
}
.vertical-card__head .vertical-card__toggle-text { color: var(--tp-azul); text-decoration: underline; text-underline-offset: 2px; }
.vertical-card__chevron { width: 16px; height: 16px; stroke-width: 2.4; transition: transform 0.3s var(--ease); }
.vertical-card[data-open="true"] .vertical-card__chevron { transform: rotate(180deg); }
.vertical-card__body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.vertical-card .vertical-card__body p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tp-navy-12);
  max-width: 60ch;
  font-size: var(--fs-body);
  color: var(--tp-navy-70);
}
.vertical-card[data-open="true"] .vertical-card__body { max-height: 20rem; }
.vertical-card[data-open="true"] { grid-column: 1 / -1; }
.verticals-grid[data-has-open="true"] .vertical-card:not([data-open="true"]) { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; }
.faq-item { border-top: 1px solid var(--tp-navy-12); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--tp-navy-12); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; text-align: left; }
.faq-q h3 { font-size: 1.125rem; font-weight: 600; }
.faq-q .icon { color: var(--tp-azul); transition: transform 0.4s var(--ease); flex-shrink: 0; width: 22px; height: 22px; }
.faq-item[data-open="true"] .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.4rem; max-width: 60ch; font-size: var(--fs-small); }
.faq-item[data-open="true"] .faq-a { max-height: 16rem; }

/* ---------- CTA band (azul) ---------- */
.cta-band {
  background: var(--tp-azul);
  background-image: radial-gradient(circle at 50% 30%, rgb(0 190 255 / 0.35), transparent 60%);
  border-radius: var(--radius-xl);
  margin-inline: var(--edge);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band__logo { justify-content: center; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band__logo img { height: 36px; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2.25rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--tp-gris-claro); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer-row1 { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-row1 h2 { margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; text-align: right; }
.footer-contact a { font-size: 1.125rem; font-weight: 600; color: var(--tp-navy); }
.footer-contact a:hover { color: var(--tp-azul); }

.footer-row2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--tp-navy-12); border-bottom: 1px solid var(--tp-navy-12); }
.footer-col h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tp-navy-70); margin-bottom: 1rem; font-family: var(--font); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9375rem; color: var(--tp-navy); }
.footer-col a:hover { color: var(--tp-azul); }

.footer-row3 { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: clamp(2rem, 4vw, 3rem); }
.footer-row3 .legal { display: flex; align-items: center; gap: 1.25rem; font-size: 0.84rem; color: var(--tp-navy-70); flex-wrap: wrap; }
.family-badge { display: inline-flex; align-items: center; gap: 0.5rem; }
.family-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-azul); }

/* ---------- Floating WhatsApp button ----------
   #25D366 is WhatsApp's own brand green, not a token from DESIGN.md's
   palette — kept deliberately off-brand so the button reads instantly as
   "this opens WhatsApp" rather than blending in as another site action. */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 40px rgb(19 25 47 / 0.22); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav sheet ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--tp-navy);
  display: flex; flex-direction: column;
  padding: 7rem var(--edge) 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav[data-open="true"] { transform: translateY(0); }
.mobile-nav a { font-family: var(--font); font-size: 1.6rem; font-weight: 600; color: #fff; padding-block: 0.8rem; border-bottom: 1px solid var(--tp-white-12); }
.mobile-nav a[aria-current="true"] { color: var(--tp-celeste); }
.mobile-nav .header-actions { flex-direction: column; margin-top: 2rem; align-items: stretch; }
.mobile-nav .header-actions .btn { justify-content: center; border-bottom: none; padding-block: 0; }
.mobile-nav .header-actions .btn-on-dark { color: var(--tp-navy); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .device-frame { transform: none; }

  .dolor-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .tile-row { grid-template-columns: 1fr 1fr; }
  .verticals-grid { grid-template-columns: 1fr 1fr; }
  .footer-row2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-pill { border-radius: var(--radius-xl); }
  .cta-band { margin-inline: 1rem; border-radius: var(--radius-lg); }

  .float-card--cobro { width: 34%; top: -6%; left: -5%; }
  .float-card--match, .float-card--auto { display: none; }

  .tile-row { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: 1fr; }

  .savings-inputs { grid-template-columns: 1fr; }

  .footer-row1 { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; text-align: left; }
  .footer-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-actions .btn-on-dark { display: none; }
  .hero-ctas .btn { width: 100%; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Demo request dialog
   ============================================================ */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  max-height: calc(100vh - 2rem);
  margin: auto;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.modal::backdrop { background: rgba(19, 25, 47, 0.6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in 0.25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

.modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--tp-navy-70);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--tp-navy-06); color: var(--tp-navy); }
.modal__close svg { width: 18px; height: 18px; }

.modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal__lede { font-size: var(--fs-small); margin-bottom: 1.75rem; max-width: 42ch; }

.banks-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.banks-list__item { display: flex; align-items: center; justify-content: center; min-height: 80px; padding: 1rem; background: var(--tp-gris-claro); border-radius: var(--radius-md); }
.banks-list__logo { max-width: 85%; max-height: 42px; width: auto; height: auto; display: block; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; margin-bottom: 1.75rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--tp-navy-70); }
.field input {
  height: 48px;
  padding-inline: 0.9rem;
  border: 1.5px solid var(--tp-navy-12);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--tp-navy);
  background: #fff;
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: var(--tp-navy-70); opacity: 0.6; }
.field input:hover { border-color: var(--tp-navy-70); }
.field input:focus { outline: none; border-color: var(--tp-azul); box-shadow: 0 0 0 3px var(--tp-navy-06); }
.field__error { display: none; font-size: 0.8125rem; color: var(--tp-rose, #c0344a); }
.field[data-invalid] input { border-color: var(--tp-rose, #c0344a); }
.field[data-invalid] input:focus { box-shadow: 0 0 0 3px rgba(192, 52, 74, 0.12); }
.field[data-invalid] .field__error { display: block; }

.modal__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.25rem; }
.modal__foot .btn { width: 100%; justify-content: center; }
.modal__foot .btn[data-busy] { opacity: 0.75; pointer-events: none; }
.modal__note { font-size: 0.8125rem; color: var(--tp-navy-70); margin: 0; }

.modal__alert {
  background: rgba(192, 52, 74, 0.08);
  color: #9c2740;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.modal__alert a { color: inherit; text-decoration: underline; }

/* Google's invisible-badge terms allow hiding the floating badge only when
   this attribution line is shown in its place — the two travel together. */
.grecaptcha-badge { visibility: hidden; }
.modal__legal { font-size: 0.75rem; color: var(--tp-navy-70); line-height: 1.5; margin: 0; }
.modal__legal a { color: var(--tp-azul); }
.modal__legal a:hover { text-decoration: underline; }

.modal__done { text-align: center; }
.modal__done .modal__title, .modal__done .modal__lede { padding-right: 0; }
.modal__done .modal__lede { margin-left: auto; margin-right: auto; }
.modal__done .btn { margin-top: 0.5rem; }
.modal__tick { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--tp-verde); }
.modal__tick svg { width: 100%; height: 100%; }

@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .banks-list { grid-template-columns: 1fr; }
}
