/* =========================================================
   Tickend · landing
   Tokens tomados del Manual de marca v1.0
   ========================================================= */
:root {
  /* Color */
  --steel: #2E4A7D;
  --steel-hover: #263F6C;
  --ink: #0F172A;
  --valid: #16C784;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --line: #E2E8F0;
  --line-strong: #7D8BA1;
  --ink-muted: #475569;
  --steel-soft: #EDF1F7;
  --valid-ink: #067647;
  --pending: #B54708;
  --danger: #C4262E;
  --grad-mid: #4F6FA8;
  --grad-end: #8DB3D6;
  --wine: #7A1F3D; /* color de ejemplo de la productora */

  /* Tipografía */
  --f-display: "Manrope", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Elevación */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, .16), 0 4px 10px -4px rgba(15, 23, 42, .08);
  --shadow-lg: 0 50px 100px -20px rgba(15, 23, 42, .25), 0 30px 60px -30px rgba(15, 23, 42, .30);
  --focus-ring: 0 0 0 3px rgba(46, 74, 125, .35);

  /* Espaciado */
  --container: 1200px;
  --gutter: 32px;
  --section-y: 96px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --nav-h: 72px;
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --section-y: 64px; --nav-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
[data-lucide] { width: 20px; height: 20px; }
svg.lucide { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografía ---------- */
.overline {
  font: 700 12px/16px var(--f-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.display {
  font: 800 64px/68px var(--f-display);
  letter-spacing: -.035em;
  color: var(--ink);
}
.h-section {
  font: 800 48px/52px var(--f-display);
  letter-spacing: -.03em;
  color: var(--ink);
  max-width: 16ch;
}
.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  max-width: 58ch;
}
@media (max-width: 760px) {
  .display { font-size: 42px; line-height: 46px; }
  .h-section { font-size: 32px; line-height: 38px; }
  .lead { font-size: 17px; line-height: 26px; }
}

/* ---------- Wordmark ---------- */
.wm {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.wm > span { display: inline-flex; align-items: baseline; }
.wm-i { position: relative; display: inline-block; }
.wm-dot {
  position: absolute;
  left: 50%;
  top: -.06em;
  width: .35em;
  transform: translateX(-50%);
  overflow: visible;
  fill: none;
  stroke: var(--steel);
  stroke-width: 4.2;
}
.wm-dot circle { fill: var(--steel); stroke: none; }
.wm--nav { font-size: 28px; }
.wm--sm { font-size: 24px; }
.wm--xs { font-size: 17px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font: 600 15px/1 var(--f-body);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--steel-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost { color: var(--steel); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--ink); }

/* Flecha que crece al pasar el mouse */
.ha { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ha-line { opacity: 0; transition: opacity .18s var(--ease); }
.ha-tip { transition: transform .18s var(--ease); }
a:hover .ha-line, button:hover .ha-line { opacity: 1; }
a:hover .ha-tip, button:hover .ha-tip { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--steel); }
.link-arrow:hover { color: var(--ink); }
.link-arrow--light { color: var(--grad-end); margin-top: 24px; }
.link-arrow--light:hover { color: #fff; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font: 600 12px/1 var(--f-body);
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }
.badge svg.lucide { width: 13px; height: 13px; }
.badge--valid { color: var(--valid-ink); background: #E7F8F0; }
.badge--valid .dot { background: var(--valid); }
.badge--pending { color: var(--pending); background: #FDF1E6; }
.badge--neutral { color: var(--ink-muted); background: var(--steel-soft); }
.badge--steel { color: #fff; background: var(--steel); }
.badge--solid { background: #fff; color: var(--valid-ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav .wm, .nav .wm-dot { color: #fff; }
.nav .wm-dot { stroke: #fff; }
.nav .wm-dot circle { fill: #fff; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font: 600 15px/1 var(--f-body);
  color: inherit;
  opacity: .92;
  transition: opacity .15s var(--ease), background-color .15s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-nav { height: 36px; padding: 0 14px; font-size: 15px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.btn-nav:hover { background: rgba(255, 255, 255, .28); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--r-md); align-items: center; justify-content: center; color: inherit; }
.nav-burger svg.lucide { width: 24px; height: 24px; }
.nav-burger.is-dark { color: var(--ink); }

.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav.is-scrolled .wm { color: var(--ink); }
.nav.is-scrolled .wm-dot { stroke: var(--steel); }
.nav.is-scrolled .wm-dot circle { fill: var(--steel); }
.nav.is-scrolled .nav-link:hover, .nav.is-scrolled .nav-link[aria-expanded="true"] { background: var(--steel-soft); }
.nav.is-scrolled .btn-nav { background: var(--steel); color: #fff; }
.nav.is-scrolled .btn-nav:hover { background: var(--steel-hover); }

@media (max-width: 980px) {
  .nav-links, .nav-signin { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 420px) {
  .btn-nav { display: none; }
}

/* ---------- Dropdown que cambia de forma ---------- */
.dd {
  position: absolute;
  top: calc(var(--nav-h) - 6px);
  left: 0;
  perspective: 1500px;
  pointer-events: none;
  z-index: 60;
}
.dd-bg {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .04);
  overflow: hidden;
  transform-origin: 50% -40px;
  opacity: 0;
  transform: rotateX(-12deg) scale(.96);
  transition: opacity .2s var(--ease), transform .2s var(--ease), width .28s var(--ease), height .28s var(--ease);
}
.dd-arrow {
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
  opacity: 0;
  z-index: 1;
  transition: opacity .2s var(--ease), left .28s var(--ease);
  box-shadow: -1px -1px 0 rgba(15, 23, 42, .04);
}
.dd.is-open { pointer-events: auto; }
.dd.is-open .dd-bg { opacity: 1; transform: none; }
.dd.is-open .dd-arrow { opacity: 1; }
.dd.no-anim .dd-bg, .dd.no-anim .dd-arrow { transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dd-panel {
  position: absolute;
  top: 0;
  left: 0;
  padding: 24px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}
.dd-panel.is-left { transform: translateX(-60px); }
.dd-panel.is-right { transform: translateX(60px); }
.dd-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .2s .05s var(--ease), transform .28s var(--ease), visibility 0s; }
.dd-grid { display: grid; gap: 4px; width: 300px; }
.dd-grid--2 { grid-template-columns: 1fr 1fr; width: 560px; }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r-md); transition: background-color .15s var(--ease); }
.dd-item:hover { background: var(--surface-subtle); }
.dd-item b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.dd-item small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dd-ico { width: 32px; height: 32px; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; flex: none; }
.dd-ico svg.lucide { width: 18px; height: 18px; }
.dd-foot { margin: 16px -24px -24px; padding: 14px 24px; background: var(--surface-subtle); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.dd-foot svg.lucide { color: var(--steel); width: 16px; height: 16px; }
.dd-label { font: 700 12px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 4px 10px 10px; }
.dd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; width: 360px; }
.dd-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); font-weight: 500; font-size: 15px; }
.dd-list a:hover { background: var(--surface-subtle); }
.dd-list svg.lucide { color: var(--steel); width: 18px; height: 18px; }
.dd-dev { display: grid; grid-template-columns: 250px 220px; gap: 16px; }
.dd-code { margin: 0; padding: 16px; border-radius: var(--r-md); background: var(--ink); color: #CBD5E1; font: 400 12.5px/20px var(--f-mono); align-self: start; }
.c-k { color: var(--grad-end); }
.c-s { color: #7EE2B8; }

/* ---------- Menú mobile ---------- */
.mnav { position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .25); }
.mnav[hidden] { display: none; }
.mnav-card { margin: 8px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-6px); } }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; }
.mnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 10px 20px; }
.mnav-grid a { display: block; padding: 8px 10px; font-weight: 600; font-size: 15px; border-radius: var(--r-md); }
.mnav-grid a:hover { background: var(--surface-subtle); }
.mnav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; background: var(--surface-subtle); border-top: 1px solid var(--line); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 56px;
}
.hero-bg {
  /* alto del borde diagonal en cada lado, medido desde arriba */
  --edge-l: 38%;
  --edge-r: 100%;
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  clip-path: polygon(0 0, 100% 0, 100% var(--edge-r), 0 var(--edge-l));
  background: linear-gradient(110deg, var(--steel), var(--grad-mid) 55%, var(--grad-end));
  overflow: hidden;
}
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}
.hero-copy { padding-top: 88px; max-width: 580px; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; color: var(--ink-muted); }
.overline--hero { color: var(--steel); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* El escenario mide 760 × 600 y se escala (--s) para que el panel entre completo en pantalla */
.hero-visual { position: relative; height: calc(600px * var(--s, 1)); }
.hero-stage { position: absolute; top: 0; left: 0; width: 760px; height: 600px; transform-origin: 0 0; transform: scale(var(--s, 1)); }

/* Panel de ventas */
.dash {
  position: absolute;
  top: 0;
  left: 70px;
  width: 690px;
  height: 460px;
  display: grid;
  grid-template-columns: 168px 1fr;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
}
.dash-side { background: var(--surface-subtle); border-right: 1px solid var(--line); padding: 20px 14px; }
.dash-side .wm { margin: 2px 6px 18px; }
.dash-org { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; padding: 8px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.org-dot { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font: 700 9.5px/22px var(--f-body); text-align: center; letter-spacing: .02em; flex: none; }
.org-dot--wine { background: var(--wine); }
.dash-side li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--ink-muted); font-weight: 500; }
.dash-side li svg.lucide { width: 16px; height: 16px; }
.dash-side li.on { background: var(--steel-soft); color: var(--steel); font-weight: 600; }
.dash-main { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.dash-k { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }
.dash-title { font: 700 17px/24px var(--f-display); letter-spacing: -.01em; }
.dash-kpis { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.amount { font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.dash-kpi-sm { width: 170px; }
.dash-num { font-size: 15px; font-weight: 600; margin: 2px 0 6px; }
.dash-num span { color: var(--line-strong); font-weight: 400; }
.bar { height: 6px; border-radius: var(--r-full); background: var(--steel-soft); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); background: var(--steel); border-radius: inherit; transform-origin: left; }
.dash-chart { width: 100%; height: 104px; margin: 14px 0 12px; overflow: visible; }
.grid-lines path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--steel); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash-table { border-top: 1px solid var(--line); }
.dash-row { display: grid; grid-template-columns: 1.15fr 1.1fr .95fr 1.05fr; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.dash-row > span { overflow: hidden; text-overflow: ellipsis; }
.dash-row .badge { justify-self: start; font-size: 11px; height: 20px; }
.dash-row--head { color: var(--ink-muted); font-size: 11.5px; font-weight: 500; padding: 8px 0 6px; }
.dash-row:last-child { border-bottom: 0; }

/* Teléfono */
.phone {
  position: absolute;
  left: 0;
  top: 104px;
  width: 260px;
  height: 496px;
  padding: 9px;
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; font-size: 12.5px; line-height: 17px; }
.co-bar { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 12px 0 6px; font-size: 11px; color: var(--ink-muted); }
.co-bar svg.lucide { width: 11px; height: 11px; }
.co-brand { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; font-weight: 700; font-family: var(--f-display); font-size: 14px; }
.co-photo {
  height: 92px;
  margin: 0 12px;
  border-radius: var(--r-md);
  background:
    radial-gradient(60% 90% at 25% 0%, rgba(255, 170, 120, .85), transparent 60%),
    radial-gradient(45% 80% at 60% 0%, rgba(255, 105, 160, .7), transparent 62%),
    radial-gradient(40% 80% at 85% 0%, rgba(140, 150, 255, .6), transparent 60%),
    radial-gradient(120% 60% at 50% 120%, #12060C 40%, transparent 70%),
    linear-gradient(180deg, #4A1426, #1C0910);
}
.co-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.co-event { font: 700 16px/21px var(--f-display); letter-spacing: -.01em; }
.co-meta { color: var(--ink-muted); font-size: 11.5px; margin: 2px 0 12px; }
.co-line { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.co-line--muted { color: var(--ink-muted); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 0 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 12px; }
.co-total .mono { font-size: 13px; white-space: nowrap; }
.co-label { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.co-input { height: 34px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 0 10px; display: flex; align-items: center; color: var(--ink); font-size: 12px; }
.co-pay { margin-top: 10px; height: 38px; border-radius: var(--r-md); background: var(--wine); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 13px; }
.co-foot { margin-top: auto; text-align: center; font-size: 10px; color: var(--line-strong); padding-top: 8px; }

@media (max-width: 1100px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 72px); }
  .hero-bg { --edge-l: 100%; --edge-r: 48%; height: 420px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { padding-top: 270px; max-width: 640px; }
  .hero-stage { left: 50%; margin-left: calc(-380px * var(--s, 1)); }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 32px; }
  .hero-bg { --edge-r: 52%; height: 300px; }
  .hero-copy { padding-top: 200px; }
  .hero-grid { gap: 40px; }
}

/* =========================================================
   FRANJA
   ========================================================= */
.strip { padding: 24px 0 48px; }
.strip-title { text-align: center; font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.strip-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.strip-list li { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/24px var(--f-display); letter-spacing: -.01em; color: var(--line-strong); transition: color .18s var(--ease); }
.strip-list li:hover { color: var(--ink); }
.strip-list svg.lucide { width: 22px; height: 22px; }
@media (max-width: 980px) { .strip-list { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }
@media (max-width: 520px) { .strip-list { grid-template-columns: repeat(2, 1fr); } .strip-list li { justify-content: flex-start; font-size: 15px; } }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { position: relative; padding: var(--section-y) 0; }
.section-head { margin-bottom: 48px; }
.section-head .h-section { margin-bottom: 20px; }
.section-head--center { text-align: center; }
.section-head--center .h-section, .section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .h-section { max-width: none; }

/* Fondo inclinado, a la Stripe */
.section--slant { padding: calc(var(--section-y) + 64px) 0; isolation: isolate; }
.section--slant::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface-subtle);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
:root { --slant: min(8vw, 120px); }
.section--subtle { background: var(--surface-subtle); border-top: 1px solid var(--line); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }
.card--wide { grid-column: span 4; }
.card-visual { position: relative; height: 260px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-visual--center { display: grid; place-items: center; padding: 24px; }
.card-body { padding: 24px; }
.card-body h3 { display: flex; align-items: center; gap: 10px; font: 700 20px/28px var(--f-display); letter-spacing: -.015em; margin-bottom: 8px; }
.card-body h3 svg.lucide { color: var(--steel); width: 22px; height: 22px; }
.card-body p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card, .card--wide { grid-column: span 1; }
  .card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: span 1; }
}

/* Browser mockup */
.card-visual--browser { padding: 28px 0 0 32px; }
.browser { width: 640px; height: 100%; background: #fff; border-radius: var(--r-md) 0 0 0; box-shadow: var(--shadow-md), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.url { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); font: 400 11.5px/1 var(--f-mono); color: var(--ink-muted); }
.url svg.lucide { width: 11px; height: 11px; color: var(--valid-ink); }
.site { font-size: 12px; }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; }
.site-logo { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-display); }
.site-links { display: flex; gap: 16px; color: var(--ink-muted); }
.site-hero { margin: 0 18px; padding: 16px 18px; border-radius: var(--r-md); color: #fff; background: linear-gradient(100deg, rgba(122, 31, 61, .96), rgba(122, 31, 61, .75)), radial-gradient(60% 120% at 80% 0%, #FF9A76, transparent 60%); }
.site-hero span { display: block; font-size: 11px; opacity: .85; }
.site-hero b { font: 800 22px/28px var(--f-display); letter-spacing: -.02em; }
.site-events { padding: 10px 18px 0; }
.site-ev { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ev-date { width: 38px; text-align: center; font-size: 10px; text-transform: uppercase; color: var(--wine); font-weight: 600; line-height: 12px; }
.ev-date b { display: block; font: 800 17px/20px var(--f-display); color: var(--ink); }
.ev-name { flex: 1; }
.ev-name b { display: block; font-weight: 600; }
.ev-name small { color: var(--ink-muted); font-size: 11px; }
.ev-btn { padding: 6px 12px; border-radius: var(--r-md); background: var(--wine); color: #fff; font-weight: 600; font-size: 11.5px; }
.site-foot { padding: 10px 18px; font-size: 10px; color: var(--line-strong); }

/* Mini checkout */
.mini-co { width: 100%; max-width: 300px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); padding: 18px; font-size: 13px; }
.mini-co-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini-co-row--muted { color: var(--ink-muted); }
.mini-co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 0 4px; font-weight: 600; }
.mini-co-total .mono { font-size: 15px; white-space: nowrap; }
.mini-co-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); font-size: 12px; font-weight: 500; }
.mini-co-note svg.lucide { width: 15px; height: 15px; }

/* Mini ticket */
.mini-tk { width: 100%; max-width: 290px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); position: relative; }
.mini-tk-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 18px 14px; }
.mini-tk-ev { font: 700 15px/20px var(--f-display); }
.mini-tk-perf { position: relative; height: 0; border-top: 2px dotted var(--line-strong); margin: 0 14px; opacity: .55; }
.mini-tk-perf::before, .mini-tk-perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-subtle); box-shadow: inset 0 0 0 1px var(--line); }
.mini-tk-perf::before { left: -24px; clip-path: inset(0 0 0 50%); }
.mini-tk-perf::after { right: -24px; clip-path: inset(0 50% 0 0); }
.mini-tk-body { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; }
.mini-tk-code { font-size: 13px; font-weight: 500; }
.mini-tk-meta { font-size: 12px; color: var(--ink-muted); }

/* QR */
.qr { width: 76px; height: 76px; flex: none; }
.qr svg { width: 100%; height: 100%; }
.qr--sm { width: 88px; height: 88px; }
.qr--lg { width: 116px; height: 116px; }

/* Escáner */
.card-visual--subtle { background: var(--steel-soft); }
.scanner { width: 210px; background: var(--ink); color: #fff; border-radius: 26px; padding: 14px; box-shadow: var(--shadow-md); }
.scanner-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.scanner-top .badge { background: rgba(255, 255, 255, .1); color: #CBD5E1; height: 20px; font-size: 11px; }
.scanner-view { position: relative; height: 120px; border-radius: var(--r-md); background: #1E293B; display: grid; place-items: center; overflow: hidden; }
.scanner-view .qr { background: #fff; padding: 6px; border-radius: 6px; width: 76px; height: 76px; }
.corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--grad-end); }
.c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.scan-beam { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--valid); box-shadow: 0 0 12px 2px rgba(22, 199, 132, .55); top: 20%; animation: beam 2.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 18%; } 50% { top: 80%; } }
.scanner-result { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; margin-top: 10px; border-radius: var(--r-md); font-weight: 600; font-size: 13px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.scanner-result svg.lucide { width: 18px; height: 18px; }
.scanner-result[data-state="valid"] { background: var(--valid); color: var(--ink); }
.scanner-result[data-state="used"] { background: #FDE8E8; color: var(--danger); }
.scanner-result[data-state="scan"] { background: rgba(255, 255, 255, .08); color: #CBD5E1; }
.scanner-sub { text-align: center; font-size: 10.5px; color: #94A3B8; margin-top: 8px; }

/* Email */
.mail { width: 100%; max-width: 310px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); overflow: hidden; }
.mail-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mail-head b { display: block; font-size: 13px; }
.mail-head small { display: block; font-size: 12px; color: var(--ink-muted); }
.mail-av { width: 34px; height: 34px; border-radius: var(--r-full); background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; flex: none; }
.mail-av svg.lucide { width: 17px; height: 17px; }
.mail-body { padding: 16px; font-size: 13px; color: var(--ink-muted); }
.mail-btn { display: inline-flex; margin-top: 12px; padding: 8px 14px; border-radius: var(--r-md); background: var(--steel); color: #fff; font-weight: 600; font-size: 12.5px; }

/* =========================================================
   MARCA / TICKET
   ========================================================= */
.brand-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.brand-copy .h-section { margin-bottom: 20px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 32px 0; padding: 4px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 18px; font-weight: 600; font-size: 14px; color: var(--ink-muted); border-radius: 7px; transition: color .18s var(--ease); }
.seg button[aria-selected="true"] { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px; background: var(--steel); transition: transform .25s var(--ease); }
.seg[data-active="custom"] .seg-pill { transform: translateX(100%); }
.brand-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-lists h4 { font: 700 15px/22px var(--f-display); margin-bottom: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 22px; color: var(--ink-muted); margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: var(--r-full); background: var(--steel-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%232E4A7D' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.brand-note { margin-top: 20px; font-size: 13px; color: var(--ink-muted); text-align: center; }

.tk {
  --stub: 168px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  overflow: hidden;
}
.tk-main { position: relative; min-height: 280px; overflow: hidden; }
.tk-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s var(--ease); }
.tk-info { position: relative; height: 100%; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 24px; }
.tk-brand--custom { display: none; align-items: center; gap: 8px; font: 700 14px/1 var(--f-display); white-space: nowrap; }
.tk-brand--custom .org-dot { width: 20px; height: 20px; line-height: 20px; font-size: 8.5px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.tk-title { font: 800 22px/28px var(--f-display); letter-spacing: -.02em; margin-bottom: 14px; }
.tk-title span::before { content: "· "; }
.tk-data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.tk-data dt { font-size: 11.5px; color: var(--ink-muted); }
.tk-data dd { font-size: 13.5px; font-weight: 600; }
.tk-tech { display: none; font-size: 10px; opacity: .6; margin-top: 8px; }
.tk-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-right: 22px; background: #fff; border-left: 2px dashed var(--line); }
.tk-code { font-size: 12px; color: var(--ink-muted); }
.tk-price { font-size: 15px; font-weight: 600; }
.tk-side { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--line-strong); white-space: nowrap; }
.tk-notch { position: absolute; left: calc(100% - var(--stub) - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--surface-subtle); box-shadow: inset 0 0 0 1px var(--line); z-index: 2; }
.tk-notch--t { top: -10px; }
.tk-notch--b { bottom: -10px; }

/* Personalizada: la foto ocupa toda la entrada y los datos van encima, discretos */
.tk.is-custom .tk-art { opacity: 1; }
.tk.is-custom .tk-info {
  position: absolute;
  inset: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 2, 10, .45), rgba(8, 2, 10, 0) 38%, rgba(8, 2, 10, 0) 52%, rgba(8, 2, 10, .82));
}
.tk.is-custom .tk-brand--std { display: none; }
.tk.is-custom .tk-brand--custom { display: inline-flex; }
.tk.is-custom .tk-title { font-size: 34px; line-height: 34px; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); margin: 6px 0 0; }
.tk.is-custom .tk-title span { display: block; margin-top: 6px; font: 700 12px/16px var(--f-body); letter-spacing: .24em; opacity: .85; }
.tk.is-custom .tk-title span::before { content: none; }
.tk.is-custom .tk-data { margin-top: auto; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 22px; }
.tk.is-custom .tk-data dt { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.tk.is-custom .tk-data dd { font-size: 11.5px; line-height: 16px; }
.tk.is-custom .tk-tech { display: block; }

@media (max-width: 980px) {
  .brand-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .tk { --stub: 112px; }
  .tk-main { min-height: 240px; }
  .tk-info { padding: 16px; }
  .tk-title { font-size: 19px; line-height: 24px; }
  .tk-data { grid-template-columns: 1fr; gap: 8px; }
  .tk.is-custom .tk-title { font-size: 22px; line-height: 23px; }
  .tk.is-custom .tk-title span { font-size: 10px; letter-spacing: .18em; }
  .tk.is-custom .tk-data { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .tk.is-custom .tk-data dd { font-size: 10.5px; line-height: 14px; }
  .tk.is-custom .badge--solid { display: none; }
  .tk-stub { padding-right: 16px; }
  .tk-side { right: 4px; font-size: 8px; }
  .qr--lg { width: 76px; height: 76px; }
  .tk-code { font-size: 9.5px; }
  .tk-price { font-size: 12px; }
  .brand-lists { grid-template-columns: 1fr; }
}

/* =========================================================
   PASOS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: -32px; border-top: 2px dotted var(--line-strong); opacity: .5; }
.step:last-child::before { right: 0; }
.step::after { content: ""; position: absolute; top: -6px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 4px var(--steel-soft); }
.step-n { display: block; font-size: 13px; color: var(--steel); font-weight: 600; margin-bottom: 8px; }
.step h3 { font: 700 20px/28px var(--f-display); letter-spacing: -.015em; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step::before { right: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   SECCIÓN OSCURA
   ========================================================= */
.section--dark { color: #fff; padding: calc(var(--section-y) + 96px) 0 calc(var(--section-y) + 64px); isolation: isolate; }
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.section--dark .h-section { color: #fff; margin-bottom: 20px; }
.section--dark .lead { color: #CBD5E1; }
.overline--dark { color: var(--grad-end); }
.dark-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 80px; }

.terminal { border-radius: var(--r-lg); background: #0B1222; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-lg); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.terminal-bar .dots i { background: rgba(255, 255, 255, .16); }
.terminal-title { font-size: 12.5px; color: #94A3B8; }
.terminal-body { padding: 18px 18px 22px; font-size: 13px; line-height: 22px; min-height: 196px; }
.log-line { display: grid; grid-template-columns: 72px 150px 1fr; gap: 12px; white-space: nowrap; }
.log-line .t { color: #64748B; }
.log-line .d { color: #CBD5E1; overflow: hidden; text-overflow: ellipsis; }
.ev--ok { color: #5EE0AE; }
.ev--warn { color: #F5B97A; }
.ev--bad { color: #F48B8F; }
.log-line.is-hidden { visibility: hidden; }
.log-line.is-typing .d::after { content: "▍"; color: var(--grad-end); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.feature { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.feature svg.lucide { width: 24px; height: 24px; color: var(--grad-end); margin-bottom: 14px; }
.feature h3 { font: 700 17px/24px var(--f-display); margin-bottom: 6px; position: relative; }
.feature h3::before { content: ""; position: absolute; left: -17px; top: 2px; bottom: 2px; width: 1px; background: var(--grad-end); }
.feature p { color: #94A3B8; font-size: 15px; line-height: 23px; }

@media (max-width: 980px) {
  .dark-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section--dark { padding: calc(var(--section-y) + 48px) 0 calc(var(--section-y) + 32px); }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .log-line { grid-template-columns: 60px 1fr; }
  .log-line .d { grid-column: 2; margin-bottom: 6px; }
  .terminal-body { font-size: 12px; }
}

/* =========================================================
   SOPORTE
   ========================================================= */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.support-copy .h-section { margin-bottom: 20px; }
.support-visual { position: relative; padding: 32px; border-radius: var(--r-xl); background: var(--steel-soft); min-height: 420px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.alert-card, .chat-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); padding: 18px; max-width: 400px; }
.alert-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.alert-head b { display: block; font-size: 14px; }
.alert-head small { display: block; font-size: 12px; color: var(--ink-muted); }
.alert-av { width: 34px; height: 34px; border-radius: var(--r-full); background: var(--ink); color: #fff; display: grid; place-items: center; }
.alert-av svg.lucide { width: 17px; height: 17px; }
.alert-time { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.alert-msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--surface-subtle); box-shadow: inset 3px 0 0 var(--danger); margin-bottom: 14px; }
.alert-msg b { display: block; font-size: 14px; line-height: 20px; }
.alert-msg small { display: block; font-size: 12.5px; color: var(--ink-muted); }
.alert-taken { display: flex; align-items: center; gap: 8px; height: 34px; font-weight: 600; font-size: 14px; color: var(--valid-ink); }
.alert-taken svg.lucide { width: 18px; height: 18px; }
.prio { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; background: #FDE8E8; color: var(--danger); flex: none; }
.prio--p1 { background: #FDF1E6; color: var(--pending); }
.prio--p2 { background: var(--steel-soft); color: var(--steel); }
.prio--p3 { background: var(--surface-subtle); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }

.chat-card { align-self: flex-end; width: 100%; max-width: 360px; opacity: .45; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.chat-card.is-on { opacity: 1; transform: none; }
.chat-bubble { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--steel); color: #fff; font-size: 14px; line-height: 21px; }
.chat-opts { display: flex; gap: 8px; margin-top: 10px; }
.chat-opts span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-full); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--steel); }
.chat-opts svg.lucide { width: 15px; height: 15px; }

.prio-list { margin-top: 28px; border-top: 1px solid var(--line); }
.prio-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr; gap: 48px; }
  .support-visual { order: 2; }
}
@media (max-width: 560px) {
  .support-visual { padding: 16px; min-height: 0; }
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final { border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.cta-grid .h-section { margin-bottom: 20px; }
.cta-grid .lead { margin-bottom: 32px; }
.cta-side { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cta-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); margin-bottom: 16px; }
.cta-ico svg.lucide { width: 22px; height: 22px; }
.cta-item h3 { font: 700 17px/24px var(--f-display); margin-bottom: 6px; }
.cta-item p { color: var(--ink-muted); font-size: 15px; line-height: 23px; margin-bottom: 12px; }
@media (max-width: 980px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .cta-side { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--surface-subtle); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--ink-muted); max-width: 24ch; }
.footer-col h4 { font: 700 12px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-muted); padding: 4px 0; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--steel); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */
.btn-light { background: #fff; color: var(--steel); }
.btn-light:hover { background: var(--steel-soft); }
.btn-ghost-light { color: #fff; padding-left: 8px; padding-right: 8px; }
.btn-ghost-light:hover { color: var(--steel-soft); }
.btn svg.lucide { width: 18px; height: 18px; }
.overline--light { color: rgba(255, 255, 255, .82); }
.display--light { color: #fff; }
.lead--light { color: rgba(255, 255, 255, .86); }
.badge--danger { color: var(--danger); background: #FDE8E8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.subhero { position: relative; padding: calc(var(--nav-h) + 88px) 0 calc(80px + var(--slant)); color: #fff; }
.hero-bg--sub { --edge-l: 100%; --edge-r: calc(100% - var(--slant) * 1.6); height: 100%; }
.subhero-inner { position: relative; }
.subhero .display { max-width: 15ch; margin-bottom: 20px; }
.subhero .lead { margin-bottom: 32px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-full); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; backdrop-filter: blur(6px); transition: background-color .18s var(--ease); }
.subnav a:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 760px) { .subhero { padding-top: calc(var(--nav-h) + 48px); } }

/* ---------- Cargo de servicio ---------- */
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.fee-grid .h-section { margin-bottom: 32px; }
.fee-points li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.fee-points li:last-child { border-bottom: 1px solid var(--line); }
.fee-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); flex: none; }
.fee-points h3 { font: 700 17px/24px var(--f-display); margin-bottom: 4px; }
.fee-points p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }

.calc { position: relative; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 28px; overflow: hidden; }
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calc-title { font: 700 18px/24px var(--f-display); }
.calc-fields { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 600; }
.field-input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .15s var(--ease); }
.field-input:focus-within { box-shadow: inset 0 0 0 1px var(--steel), var(--focus-ring); }
.field-input span { font-family: var(--f-mono); color: var(--ink-muted); }
.field-input input, .stepper input { border: 0; outline: 0; background: none; font: 600 18px/1 var(--f-mono); color: var(--ink); width: 100%; min-width: 0; }
.stepper { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-strong); }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--steel); border-radius: var(--r-md); }
.stepper button:hover { background: var(--steel-soft); }
.stepper input { width: 40px; text-align: center; }
.calc-receipt { border-top: 1px solid var(--line); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-row--muted { color: var(--ink-muted); }
.calc-row--total { border-bottom: 0; font-weight: 600; }
.calc-row--total .mono { font-size: 18px; }
.calc-perf { position: relative; margin: 12px -28px 18px; border-top: 2px dashed var(--line); }
.calc-perf::before, .calc-perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.calc-perf::before { left: -10px; }
.calc-perf::after { right: -10px; }
.calc-org { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.calc-org .mono { font-size: 26px; color: var(--valid-ink); }
.calc-note { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.calc-row .mono, .calc-org .mono { white-space: nowrap; }
@media (max-width: 980px) { .fee-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) {
  .calc { padding: 20px; }
  .calc-perf { margin-left: -20px; margin-right: -20px; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-row--total .mono { font-size: 16px; }
  .calc-org .mono { font-size: 21px; }
}

/* ---------- Medios de pago ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pay-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); padding: 24px; }
.pay-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); margin-bottom: 16px; }
.pay-card h3 { font: 700 18px/24px var(--f-display); margin-bottom: 12px; }
.pay-card dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.pay-card dt { font-size: 12px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.pay-card dd { font-size: 14px; line-height: 21px; }
.pay-card dd .badge { margin-right: 4px; vertical-align: 1px; }
.pay-states { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 48px; padding: 32px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.pay-states h3 { font: 700 20px/28px var(--f-display); margin-bottom: 8px; }
.pay-states p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.pay-states-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.pay-states-list li:first-child { padding-top: 0; }
.pay-states-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-states-list .badge { justify-self: start; }
@media (max-width: 1100px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .pay-states { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-states { padding: 24px; }
  .pay-states-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Planes como entradas ---------- */
.pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.pt {
  --bg: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pt:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.pt-body { position: relative; flex: 1; padding: 28px 28px 24px; }
.pt-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 18px; }
.pt-code { font-size: 12px; letter-spacing: .12em; color: var(--line-strong); }
.pt h3 { font: 800 30px/34px var(--f-display); letter-spacing: -.03em; }
.pt-desc { color: var(--ink-muted); font-size: 15px; margin: 6px 0 22px; }
.pt-perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.pt-perf::before, .pt-perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pt-perf::before { left: -30px; }
.pt-perf::after { right: -30px; }
.pt-stub { padding: 22px 28px 28px; background: var(--surface-subtle); }
.pt-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pt-price { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; }
.pt-unit { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.pt-barcode {
  width: 64px;
  height: 40px;
  flex: none;
  opacity: .5;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}
.pt--featured { box-shadow: var(--shadow-md), 0 0 0 2px var(--steel); }
.pt--featured:hover { box-shadow: var(--shadow-lg), 0 0 0 2px var(--steel); }
.pt--featured .pt-body { background: var(--steel); color: #fff; overflow: hidden; }
.pt--featured .pt-body::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: rotate(18deg);
  transition: left .8s var(--ease);
  pointer-events: none;
}
.pt--featured:hover .pt-body::after { left: 120%; }
.pt--featured .pt-code { color: rgba(255, 255, 255, .6); }
.pt--featured .pt-desc { color: rgba(255, 255, 255, .8); }
.pt-badge { background: #fff; color: var(--steel); }
.checks--light li { color: rgba(255, 255, 255, .88); }
.checks--light li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plans-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.plans-note svg.lucide { color: var(--steel); flex: none; }
@media (max-width: 980px) { .pts { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
@media (max-width: 560px) {
  .pt-body { padding: 24px 22px 20px; }
  .pt-stub { padding: 20px 22px 24px; }
  .plans-note { align-items: flex-start; text-align: left; }
}

/* ---------- Cuadro comparativo ---------- */
.cmp-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.cmp thead th { position: sticky; top: 0; background: #fff; font: 700 17px/24px var(--f-display); padding-top: 22px; padding-bottom: 18px; }
.cmp thead th:first-child { width: 40%; }
.cmp td { color: var(--ink-muted); font-weight: 500; }
.cmp .is-featured { background: rgba(46, 74, 125, .045); }
.cmp thead .is-featured { color: var(--steel); box-shadow: inset 0 3px 0 var(--steel); }
.cmp-group th { padding-top: 22px; padding-bottom: 10px; font: 700 12px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); background: var(--surface-subtle); text-align: left; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .y, .cmp .n { display: inline-block; width: 20px; height: 20px; overflow: hidden; text-indent: 100%; white-space: nowrap; vertical-align: middle; }
.cmp .y { border-radius: var(--r-full); background: var(--steel-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%232E4A7D' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.cmp .n { background: linear-gradient(var(--line-strong), var(--line-strong)) center/12px 2px no-repeat; opacity: .55; }
@media (max-width: 560px) { .cmp th, .cmp td { padding: 12px 14px; font-size: 14px; } }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 700 17px/24px var(--f-display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 20px; color: var(--ink-muted); font-size: 15px; line-height: 23px; max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Banda de contacto ---------- */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; border-radius: var(--r-xl); background: var(--steel-soft); }
.cta-band h2 { font: 800 30px/36px var(--f-display); letter-spacing: -.025em; margin-bottom: 6px; }
.cta-band p { color: var(--ink-muted); }
@media (max-width: 760px) { .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; } .cta-band h2 { font-size: 24px; line-height: 30px; } }

/* ---------- Cómo trabajamos ---------- */
.support-hint { align-self: center; font-size: 13px; color: var(--ink-muted); }
.prio-list li > div b { display: block; font-weight: 600; }
.prio-list li > div small { display: block; color: var(--ink-muted); font-size: 14px; }
.prio-list li { align-items: flex-start; }
.prio-list .prio { margin-top: 1px; }

.flow { display: grid; gap: 0; max-width: 820px; }
.flow li { position: relative; display: flex; gap: 24px; padding-bottom: 32px; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; border-left: 2px dashed var(--line-strong); opacity: .5; }
.flow-n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-full); background: #fff; color: var(--steel); font-weight: 600; font-size: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.flow h3 { font: 700 20px/28px var(--f-display); margin: 8px 0 6px; }
.flow p { color: var(--ink-muted); font-size: 15px; line-height: 23px; max-width: 60ch; }

.cont-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cont { display: flex; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.cont-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: var(--steel-soft); color: var(--steel); }
.cont h3 { font: 700 17px/24px var(--f-display); margin-bottom: 6px; }
.cont p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
@media (max-width: 860px) { .cont-list { grid-template-columns: 1fr; } }
.section--dark .section-head { margin-bottom: 56px; }

/* =========================================================
   Movimiento
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.dash { animation: rise .9s .15s var(--ease) both; }
.phone { animation: rise .9s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bar span { animation: grow 1.2s .6s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
}

/* Horarios de soporte y asunto del email */
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.hours > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-subtle); box-shadow: inset 0 0 0 1px var(--line); }
.hours svg.lucide { color: var(--steel); margin-top: 2px; }
.hours b { display: block; font-size: 14px; }
.hours span { font-size: 14px; color: var(--ink-muted); }
.mail-subj { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 480px) { .hours { grid-template-columns: 1fr; } }
