/* ==========================================================================
   Sabio Go — Sistema visual
   Estructura editorial (canvas blanco, hairlines, tipografía grande y ceñida)
   sobre la paleta de marca: ciruela Pantone 7643 + naranja Pantone 1585.
   ========================================================================== */

:root {
  /* — Marca — */
  --plum:            #522837;   /* Pantone 7643 C — principal */
  --plum-deep:       #3b1b27;
  --plum-ink:        #2a1119;   /* superficie oscura */
  --plum-ink-2:      #35171f;   /* superficie oscura elevada */
  --orange:          #ef7e31;   /* Pantone 1585 C — secundario */
  --orange-deep:     #d5641a;
  --orange-soft:     #fbead9;
  --cream:           #f3ece4;

  /* — Tinta y texto — */
  --ink:             #1b1216;
  --ink-2:           #3d2f35;
  --body:            #6d6169;
  --muted:           #988d94;

  /* — Superficies — */
  --canvas:          #ffffff;
  --canvas-soft:     #faf7f4;
  --canvas-warm:     #f7f1ea;
  --hairline:        #ebe4de;
  --hairline-2:      #ded4cb;
  --on-dark:         #ffffff;
  --on-dark-soft:    #c3b2b8;
  --on-dark-line:    rgba(255,255,255,.13);

  /* — Tipografía — */
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cond: "Roboto Condensed", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* — Ritmo — */
  --container: 1200px;
  --gutter: 28px;
  --section: 120px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 66px;
}

@media (max-width: 900px) {
  :root { --section: 76px; --gutter: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","ss01";
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================ Layout ============================ */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.wrap--wide   { max-width: 1320px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--soft { background: var(--canvas-soft); }
.section--warm { background: var(--canvas-warm); }

.section--dark {
  background: var(--plum-ink);
  color: var(--on-dark);
}
.section--dark .lead,
.section--dark .p { color: var(--on-dark-soft); }

.rule { height: 1px; background: var(--hairline); border: 0; }

/* ============================ Tipografía ============================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--dark .eyebrow { color: var(--orange); }
.eyebrow--plain::before { display: none; }

.h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 620;
}
.h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.032em;
  font-weight: 620;
}
.h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 600;
}
.h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -.012em;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--body);
}
.p { color: var(--body); }
.small { font-size: .875rem; }
.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: -.01em;
}

.tint { color: var(--orange-deep); }
.section--dark .tint { color: var(--orange); }

/* Marcador de texto: subrayado orgánico naranja */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .04em;
  height: .30em;
  background: var(--orange);
  opacity: .26;
  border-radius: 2px;
  z-index: -1;
}

.section__head { max-width: 720px; }
.section__head > * + * { margin-top: 18px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* ============================ Botones ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding-inline: 20px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 550;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 50px; padding-inline: 26px; font-size: .96rem; }
.btn--sm { height: 36px; padding-inline: 14px; font-size: .85rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); }

.btn--accent { background: var(--orange); color: #2a1119; font-weight: 600; }
.btn--accent:hover { background: var(--orange-deep); color: #fff; }

.btn--outline {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--outline:hover { border-color: var(--ink); }

.section--dark .btn--outline,
.hero .btn--outline,
.nav--over .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.section--dark .btn--outline:hover,
.hero .btn--outline:hover,
.nav--over .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }

.btn--text {
  height: auto; padding: 0;
  color: var(--orange-deep);
  font-weight: 550;
}
.btn--text:hover { color: var(--plum); }
.btn--text .arrow { transition: transform .2s var(--ease); }
.btn--text:hover .arrow { transform: translateX(3px); }

/* ============================ Badges / chips ============================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  background: var(--canvas-warm);
  border: 1px solid var(--hairline);
  font-family: var(--font-cond);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.badge--accent { background: var(--orange-soft); border-color: #f2d6bc; color: var(--orange-deep); }
.badge--beta   { background: transparent; border-color: var(--orange); color: var(--orange); }
.badge--dark   { background: rgba(255,255,255,.08); border-color: var(--on-dark-line); color: #fff; }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding-inline: 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  font-size: .8rem;
  color: var(--ink-2);
}
.section--dark .chip {
  border-color: var(--on-dark-line);
  background: rgba(255,255,255,.04);
  color: var(--on-dark-soft);
}

/* ============================ Navbar ============================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background .25s, border-color .25s;
}
.nav--over {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
}
.nav__logo { height: 30px; width: auto; }
.nav__logo--dark { display: none; }
.nav--over .nav__logo--light { display: none; }
.nav--over .nav__logo--dark { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  margin-right: auto;
}
.nav__link {
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav__link:hover { background: var(--canvas-warm); }
.nav--over .nav__link { color: rgba(255,255,255,.86); }
.nav--over .nav__link:hover { background: rgba(255,255,255,.1); color: #fff; }

/* margin-left:auto propio: en mobile .nav__links se oculta y con él
   desaparecería el margin-right:auto que empuja los botones a la derecha */
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.nav__burger span {
  display: block; width: 19px; height: 1.6px;
  background: currentColor; border-radius: 2px;
}
.nav__burger span + span { margin-top: 5px; }
.nav--over .nav__burger { color: #fff; }

.nav__progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: var(--p, 0%);
  background: var(--orange);
  transition: width .1s linear;
}

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--outline { display: none; }
}

.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--canvas);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drawer a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: -.02em;
}
.drawer .btn { margin-top: 22px; }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 74px);
  padding-bottom: 90px;
  background: var(--plum-ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__wash {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(239,126,49,.34), transparent 62%),
    radial-gradient(ellipse 55% 50% at 12% 88%, rgba(82,40,55,.9), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(243,236,228,.14), transparent 70%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
}

.hero__copy > * + * { margin-top: 22px; }
.hero .h1 { color: #fff; }
.hero .lead { color: var(--on-dark-soft); max-width: 47ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

.hero__products {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero__product {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--on-dark-line);
  background: rgba(255,255,255,.05);
  font-size: .82rem;
  color: rgba(255,255,255,.9);
}
.hero__product b { font-weight: 600; }
.hero__product .ico { color: var(--orange); display: grid; place-items: center; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 12px;
  border-top: 1px solid var(--on-dark-line);
  list-style: none;
  font-size: .82rem;
  color: var(--on-dark-soft);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust svg { color: var(--orange); flex: none; }

/* — Composición de dispositivos — */
.stack { position: relative; }
.stack__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #120a0e;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 2px 0 rgba(255,255,255,.06) inset;
}
.winbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding-inline: 12px;
  background: #1d1015;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.winbar__dots { display: flex; gap: 6px; }
.winbar__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.winbar__title {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.55);
}
.winbar__title img { height: 13px; width: auto; opacity: .9; }

.stack__float {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.8);
  background: #1d1015;
}
.stack__float--b2b {
  width: 43%;
  right: -2%;
  bottom: -9%;
}
.stack__float--app {
  width: 17%;
  left: -6%;
  bottom: 4%;
  border-radius: 16px;
}
.stack__tag {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(20,10,14,.86);
  color: var(--orange);
  border: 1px solid rgba(239,126,49,.35);
  backdrop-filter: blur(6px);
}
@media (max-width: 700px) {
  .stack__float--app { display: none; }
  .stack__float--b2b { width: 52%; right: -3%; bottom: -8%; }
}

/* ============================ Media slots ============================ */
/* Un slot muestra el asset si existe; si no, un placeholder con su ficha. */

.slot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 10);
  overflow: hidden;
  background: var(--canvas-warm);
  container-type: inline-size;
}
.slot img, .slot video, .slot iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.slot__ph {
  display: none;
  position: absolute;
  inset: 0;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  background:
    repeating-linear-gradient(-45deg, rgba(82,40,55,.035) 0 9px, transparent 9px 18px),
    var(--canvas-warm);
  border: 1px dashed var(--hairline-2);
  color: var(--ink-2);
  text-align: left;
}
.slot.is-empty .slot__ph { display: flex; }
.slot.is-empty img, .slot.is-empty video, .slot.is-empty iframe { visibility: hidden; }

.slot__ph-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot__ph-kind {
  font-family: var(--font-cond);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--plum);
  color: #fff;
}
.slot__ph-kind[data-kind="arcade"] { background: var(--orange-deep); }
.slot__ph-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.slot__ph-label {
  font-size: .92rem;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slot__ph-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slots angostos (miniaturas, mockup de celular): sólo el chip y el id */
@container (max-width: 300px) {
  .slot__ph { padding: 10px; }
  .slot__ph-label { -webkit-line-clamp: 3; font-size: .78rem; }
  .slot__ph-note { display: none; }
}
@container (max-width: 170px) {
  .slot__ph-label, .slot__ph-id { display: none; }
  .slot__ph-kind { font-size: 9px; padding: 2px 6px; }
}
.section--dark .slot__ph,
.stack .slot__ph {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 9px, transparent 9px 18px),
    #1d1015;
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
}
.section--dark .slot__ph-note,
.stack .slot__ph-note,
.section--dark .slot__ph-id,
.stack .slot__ph-id { color: rgba(255,255,255,.45); }

/* ============================ Banda de números ============================ */

.statband {
  background: var(--plum);
  color: #fff;
  padding-block: 54px;
}
.statband__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.statband__cell { background: var(--plum); padding: 26px 24px; }
.statband__n {
  font-family: var(--font-cond);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.statband__n .u { color: var(--orange); }
.statband__l {
  margin-top: 9px;
  font-size: .86rem;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}
.statband__foot {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 820px) {
  .statband__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ Configurador (casos) ============================ */

.cfg {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 0;
  margin-top: 46px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--canvas);
  overflow: hidden;
}
@media (max-width: 940px) {
  .cfg { grid-template-columns: 1fr; }
}

.cfg__list {
  border-right: 1px solid var(--hairline);
  background: var(--canvas-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* sin max-height: los siete rubros entran completos y la columna
     se estira hasta la altura del panel */
}
@media (max-width: 940px) {
  .cfg__list {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .cfg__list::-webkit-scrollbar { display: none; }
  .cfg__tab { min-width: 190px; scroll-snap-align: center; }
}

.cfg__tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .16s, border-color .16s;
}
.cfg__tab:hover { background: var(--canvas); }
.cfg__tab[aria-selected="true"] {
  background: var(--canvas);
  border-color: var(--hairline-2);
  box-shadow: 0 1px 2px rgba(27,18,22,.05);
}
.cfg__tab-rubro,
.cfg__tab-name,
.cfg__tab-meta { display: block; }
.cfg__tab-rubro {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.cfg__tab[aria-selected="true"] .cfg__tab-rubro { color: var(--orange-deep); }
.cfg__tab-name {
  margin-top: 3px;
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: -.015em;
  color: var(--ink);
}
.cfg__tab-meta {
  margin-top: 2px;
  font-size: .78rem;
  color: var(--muted);
}
.cfg__tab-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.45;
  color: var(--muted);
}
.cfg__tab[aria-selected="true"] .cfg__tab-sub { color: var(--ink-2); }
/* En la fila horizontal el subrubro no entra: el panel ya lo muestra */
@media (max-width: 940px) { .cfg__tab-sub { display: none; } }

.cfg__otro {
  margin-top: 10px;
  padding: 14px 13px;
  border-top: 1px solid var(--hairline-2);
}
.cfg__otro p {
  margin: 6px 0 10px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--body);
}
@media (max-width: 940px) {
  .cfg__otro {
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid var(--hairline-2);
    min-width: 230px;
    align-self: center;
  }
}

.cfg__panel { padding: 34px; min-width: 0; }
@media (max-width: 560px) { .cfg__panel { padding: 22px; } }

.cfg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.cfg__title { display: flex; align-items: center; gap: 14px; }
.cfg__logo {
  height: 30px; width: auto; max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
}
.cfg__intro {
  max-width: 46ch;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--body);
}

/* — Comparativa de dos perfiles del mismo rubro — */
.perfiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.perfiles > * + * { border-left: 1px solid var(--hairline); }
@media (max-width: 860px) {
  .perfiles { grid-template-columns: 1fr; }
  .perfiles > * + * { border-left: 0; border-top: 1px solid var(--hairline); }
}

.perfil { padding: 22px; background: var(--canvas); }
.perfil__head { padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.perfil__n {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.perfil__t {
  margin-top: 12px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.018em;
}
.perfil__block { padding-top: 20px; }
.perfil__block .cfg__label { margin-bottom: 10px; }
.perfil .slot { border: 1px solid var(--hairline); border-radius: var(--r-sm); }

.contraste {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--plum-ink);
  color: var(--on-dark-soft);
}
.contraste .cfg__label { color: var(--orange); margin-bottom: 10px; }
.contraste p {
  font-size: .96rem;
  line-height: 1.6;
  max-width: 88ch;
}

.cfg__section { padding-top: 26px; }
.cfg__label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Flujo de comprobantes */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.flow__step {
  flex: 1 1 130px;
  min-width: 118px;
  padding: 12px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas-soft);
  position: relative;
}
.flow__step + .flow__step::before {
  content: "";
  position: absolute;
  left: -8px; top: 50%;
  width: 8px; height: 1px;
  background: var(--hairline-2);
}
.flow__code {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--orange-deep);
  letter-spacing: .02em;
}
.flow__t {
  margin-top: 5px;
  font-size: .84rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.3;
}
.flow__note {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--body);
  font-style: italic;
}

.flow--stack { flex-direction: column; }
.flow--stack .flow__step { flex: none; min-width: 0; }
.flow--stack .flow__step + .flow__step::before {
  left: 18px; top: -8px;
  width: 1px; height: 8px;
}
.flow--stack .flow__code { display: inline-block; min-width: 78px; }
.flow--stack .flow__t { display: inline; margin: 0; font-weight: 500; }

/* Puntos de configuración */
.cfgpoints { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.cfgpoints--single { grid-template-columns: 1fr; }
@media (max-width: 760px) { .cfgpoints { grid-template-columns: 1fr; } }
.cfgpoint { background: var(--canvas); padding: 18px; }
.cfgpoint h4 {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.32;
  padding-left: 16px;
  position: relative;
}
.cfgpoint h4::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.cfgpoint p {
  margin-top: 7px;
  padding-left: 16px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--body);
}

.cfg__media { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cfg__media .slot { border: 1px solid var(--hairline); border-radius: var(--r-md); }

/* ============================ Producto (bloques alternados) ============================ */

.prod {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: center;
}
.prod--flip > *:first-child { order: 2; }
@media (max-width: 980px) {
  .prod { grid-template-columns: 1fr; gap: 36px; }
  .prod--flip > *:first-child { order: 0; }
}
.prod__copy > * + * { margin-top: 20px; }
.prod__list { list-style: none; display: grid; gap: 2px; }
.prod__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.section--dark .prod__list li { border-color: var(--on-dark-line); }
.prod__list svg { color: var(--orange); margin-top: 3px; }
.prod__list b { font-weight: 600; letter-spacing: -.01em; }
.prod__list span { display: block; font-size: .89rem; color: var(--body); margin-top: 2px; }
.section--dark .prod__list span { color: var(--on-dark-soft); }

.prod__visual .slot {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -34px rgba(27,18,22,.4);
}
.section--dark .prod__visual .slot { border-color: var(--on-dark-line); }

/* Bloque de código / configuración */
.code {
  background: var(--plum-ink);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.75;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  font-size: .7rem;
}
.code__body { padding: 14px; color: var(--on-dark-soft); overflow-x: auto; }
.code__body .k { color: var(--orange); }
.code__body .v { color: #fff; }
.code__body .c { color: rgba(255,255,255,.35); }
.code__body .row + .row { margin-top: 2px; }

/* ============================ Grillas de tarjetas ============================ */

.grid { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.section--dark .grid { background: var(--on-dark-line); border-color: var(--on-dark-line); }

.card { background: var(--canvas); padding: 26px 24px; }
.section--dark .card { background: var(--plum-ink); }
.card__ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--canvas-warm);
  color: var(--plum);
  margin-bottom: 16px;
}
.section--dark .card__ico { background: rgba(255,255,255,.07); color: var(--orange); }
.card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.card p { margin-top: 8px; font-size: .89rem; line-height: 1.55; color: var(--body); }
.section--dark .card p { color: var(--on-dark-soft); }
.card__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
}
.card__ul {
  list-style: none;
  margin-top: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 9px;
}
.card__ul li {
  position: relative;
  padding-left: 17px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--body);
}
.card__ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============================ Depósito / pasos ============================ */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--on-dark-line);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 44px;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--plum-ink); padding: 22px 20px; }
.step__n {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--orange);
}
.step h4 { margin-top: 12px; color: #fff; }
.step p { margin-top: 7px; font-size: .85rem; color: var(--on-dark-soft); line-height: 1.5; }

/* Timeline de implementación */
.timeline { list-style: none; counter-reset: s; margin-top: 44px; }
.timeline li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
@media (max-width: 820px) {
  .timeline li { grid-template-columns: 54px 1fr; gap: 18px; }
  .timeline li > p { grid-column: 2; }
}
.timeline__n {
  font-family: var(--font-cond);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: .9;
  color: var(--hairline-2);
  letter-spacing: -.03em;
}
.timeline h3 { font-size: 1.22rem; }
.timeline h3 + .small { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; }

/* ============================ Integraciones ============================ */

.integra { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.integra__item { background: var(--canvas); padding: 20px; display: flex; gap: 12px; align-items: flex-start; }
.integra__item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: none; }
.integra__item b { font-size: .93rem; font-weight: 600; letter-spacing: -.01em; }
.integra__item span { display: block; margin-top: 4px; font-size: .84rem; color: var(--body); line-height: 1.5; }

/* ============================ Logos ============================ */

.logos { padding-block: 58px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--canvas-soft); }
.logos__label { text-align: center; color: var(--muted); font-size: .84rem; margin-bottom: 30px; }
.logos__mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.logos__set { display: flex; align-items: center; gap: 62px; padding-right: 62px; }
.logos__set img {
  height: 32px; width: auto;
  filter: grayscale(1);
  opacity: .5;
  transition: opacity .25s, filter .25s;
}
.logos__set img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ Testimonios ============================ */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote__mark { font-family: var(--font-cond); font-size: 2.2rem; line-height: .6; color: var(--orange); }
.quote blockquote { font-size: 1.02rem; line-height: 1.5; letter-spacing: -.012em; }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: .82rem; color: var(--muted); }
.quote--empty blockquote { color: var(--muted); font-style: italic; }

/* ============================ FAQ ============================ */

.faq { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq p { padding-bottom: 24px; max-width: 70ch; color: var(--body); }

/* ============================ Contacto ============================ */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 60px; align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact__copy > * + * { margin-top: 20px; }
.contact__data { list-style: none; display: grid; gap: 12px; padding-top: 8px; }
.contact__data li { display: flex; gap: 11px; align-items: center; font-size: .92rem; color: var(--on-dark-soft); }
.contact__data svg { color: var(--orange); flex: none; }

.form {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.contact__copy, .form { min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; color: var(--on-dark-soft); }
.field input, .field textarea, .field select {
  /* sin esto el <select> se niega a achicarse por debajo de su opción
     más larga y desborda la página en pantallas angostas */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--on-dark-line);
  background: rgba(0,0,0,.22);
  color: #fff;
  font: inherit;
  font-size: .93rem;
}
.field textarea { height: auto; padding: 11px 13px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: none; }
.field--row { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; } }
.form__legal { font-size: .76rem; color: rgba(255,255,255,.42); line-height: 1.5; }

/* ============================ Footer ============================ */

.footer { background: var(--plum-ink); color: var(--on-dark-soft); padding-top: 66px; padding-bottom: 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--on-dark-line);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__logo { height: 28px; width: auto; margin-bottom: 16px; }
.footer h4 {
  font-family: var(--font-cond);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col { display: flex; flex-direction: column; gap: 9px; font-size: .88rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer__social { display: flex; gap: 18px; }

/* ============================ WhatsApp flotante ============================ */

.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #0b2015;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

/* ============================ Reveal ============================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Refinamiento mobile
   Va al final a propósito: acá se ajusta el ritmo y la tipografía para
   pantallas chicas, sin pelearse con el orden de las reglas de arriba.
   ========================================================================== */

@media (max-width: 720px) {
  :root { --section: 68px; --gutter: 20px; --nav-h: 58px; }

  /* Header: barra más baja, logo más chico y CTA compacto.
     Antes el hero arrancaba 110px abajo y quedaba una franja muerta. */
  .nav__inner { gap: 12px; }
  .nav__logo { height: 26px; }
  .nav__actions { gap: 2px; }
  .nav__actions .btn { height: 34px; padding-inline: 14px; font-size: .84rem; }
  .nav__burger { width: 38px; height: 38px; }

  /* La escala de display baja más rápido que el ancho de pantalla */
  .h1 { font-size: clamp(2.05rem, 8.6vw, 4.15rem); letter-spacing: -.028em; }
  .h2 { font-size: clamp(1.6rem, 6.4vw, 2.9rem); letter-spacing: -.025em; }
  .h3 { font-size: clamp(1.2rem, 5vw, 1.65rem); }
  .lead { font-size: 1rem; }

  /* El titular del hero se lee mejor sin los saltos de línea del diseño ancho */
  .hero { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 64px; }
  .hero .h1 br { display: none; }
  .hero .lead { max-width: none; }
  .hero__cta .btn { flex: 1 1 auto; }

  /* Números: que entren en media pantalla sin romperse */
  .statband { padding-block: 40px; }
  .statband__cell { padding: 18px 16px; }
  .statband__n { font-size: clamp(1.65rem, 7vw, 2.9rem); }
  .statband__l { font-size: .8rem; }

  .card { padding: 22px 20px; }
  .cfg__panel { padding: 20px 18px; }
  .perfil { padding: 20px 18px; }
  .contraste { padding: 20px 18px; }
  .contraste p { font-size: .92rem; }

  .timeline li { padding: 22px 0; }
  .timeline__n { font-size: 1.7rem; }

  .quote { padding: 22px 20px; }
  .form { padding: 22px 20px; }
  .faq summary { font-size: 1rem; padding: 18px 34px 18px 0; }

  .logos { padding-block: 42px; }
  .logos__set { gap: 42px; padding-right: 42px; }
  .logos__set img { height: 26px; }

  /* El botón flotante no debe pisar el contenido del pie */
  .wa-float { width: 46px; height: 46px; right: 16px; bottom: 16px; }
  .footer__bottom { padding-bottom: 46px; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .cfg__tab { min-width: 168px; }
  /* Una sola columna: a este ancho dos celdas dejan renglones de 3 palabras */
  .statband__grid { grid-template-columns: 1fr; }
  .statband__cell { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .statband__n { font-size: 1.55rem; flex: none; min-width: 92px; }
  .statband__l { margin-top: 0; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos__track { animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
