/* =============================================================
   SISTEMAPAGO — styles.css
   Arquetipo: Glassmorphism Modern (adaptado a fintech claro)
   Identidad: azul #3B78FF + turquesa #00B7C6 sobre blanco frío
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f8fd;
  --paper:     #ffffff;
  --ink:       #0c1b33;
  --ink-soft:  #33415c;
  --ink-mute:  #5f6c85;
  --primary:   #3b78ff;
  --primary-2: #1e56e0;
  --accent:    #00b7c6;
  --accent-2:  #008fa3;
  --navy:      #0a2249;
  --glass:     rgba(255, 255, 255, 0.55);
  --glass-2:   rgba(255, 255, 255, 0.35);
  --line:      rgba(12, 27, 51, 0.1);
  --shadow-sm: 0 2px 8px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 27, 51, 0.09);
  --shadow-lg: 0 24px 60px rgba(30, 86, 224, 0.16);
  --radius:    20px;
  --radius-lg: 28px;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display:   "Sora", var(--sans);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:     76px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}
ul[class] { list-style: none; padding: 0; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* View transitions entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-head.center .kicker::after {
  content: ""; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .9rem; }
.section-sub { color: var(--ink-mute); font-size: 1.06rem; }

/* Reveals — defensivos: si JS falla, el timeout CSS nada oculta porque
   los elementos solo se ocultan cuando html.is-ready existe */
html.is-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html.is-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; line-height: 1.2;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 8px 24px rgba(59, 120, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(59, 120, 255, 0.45); }
.btn-ghost {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(59,120,255,.4); color: var(--primary-2); }
.btn-light {
  color: var(--primary-2);
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 16, 38, 0.25);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.02rem; }

/* =============================================================
   5. Navegación
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
  background: rgba(246, 248, 253, 0.7);
}
@supports (backdrop-filter: blur(18px)) {
  .nav { backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(12, 27, 51, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  font-family: var(--display);
  font-weight: 700; font-size: 1.28rem; letter-spacing: -0.03em;
  color: var(--ink); display: inline-flex; align-items: baseline;
}
.brand em { font-style: normal; color: var(--primary); }
.brand .brand-dot { color: var(--accent); }
.nav-links {
  display: none; align-items: center; gap: 1.9rem;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
}
.nav-links a { position: relative; padding-block: .35rem; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links .ext svg { width: 12px; height: 12px; margin-left: .3rem; opacity: .55; display: inline; vertical-align: baseline; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  padding: .6rem; margin-right: -.6rem;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(12, 27, 51, 0.12);
  padding: 1.2rem 1.4rem 1.8rem;
  display: grid; gap: .2rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease-out), opacity .3s ease, visibility 0s .3s;
}
@supports (backdrop-filter: blur(18px)) {
  .nav-drawer { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
.nav.is-open + .nav-drawer {
  transform: none; opacity: 1; visibility: visible;
  transition: transform .4s var(--ease-out), opacity .3s ease, visibility 0s;
}
.nav-drawer a {
  padding: .8rem .4rem; font-weight: 500; font-size: 1.05rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-of-type { border-bottom: 0; }
.nav-drawer .btn { margin-top: .8rem; justify-content: center; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-drawer { display: none; }
}

/* =============================================================
   6. Hero (home)
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-mesh {
  position: absolute; inset: -20% -10% 0 -10%; z-index: -1;
  background:
    radial-gradient(46% 42% at 16% 18%, rgba(59, 120, 255, 0.16) 0%, transparent 70%),
    radial-gradient(40% 38% at 86% 12%, rgba(0, 183, 198, 0.14) 0%, transparent 70%),
    radial-gradient(52% 46% at 72% 78%, rgba(59, 120, 255, 0.1) 0%, transparent 72%);
  filter: blur(48px) saturate(130%);
  animation: meshDrift 26s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, -2%, 0) scale(1.06); }
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.hero-copy .kicker { color: var(--accent-2); }
.hero-title {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--ink-mute); max-width: 46ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.proof-item { min-width: 108px; }
.proof-num {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1;
}
.proof-num small { font-size: .95rem; font-weight: 600; }
.proof-label { font-size: .82rem; color: var(--ink-mute); margin-top: .15rem; }

/* Terminal flotante (dibujada en CSS) */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-visual-halo {
  position: absolute; inset: 8% 4%;
  background: radial-gradient(48% 44% at 50% 46%, rgba(59, 120, 255, 0.2), transparent 72%);
  filter: blur(50px); pointer-events: none;
}
.terminal {
  position: relative; z-index: 1;
  width: min(250px, 62vw);
  border-radius: 30px;
  background: linear-gradient(165deg, #12264a 0%, #0a1a38 100%);
  padding: 1rem 1rem 1.5rem;
  box-shadow: 0 46px 90px rgba(10, 34, 73, 0.4), 0 12px 28px rgba(10, 34, 73, 0.24),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: floatBob 6.5s ease-in-out infinite;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-14px) rotate(1.2deg); }
}
.terminal-screen {
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  padding: 1.15rem 1rem 1.3rem;
  box-shadow: inset 0 0 0 1px rgba(12, 27, 51, 0.08);
}
.terminal-brand {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; color: var(--ink-mute); text-transform: lowercase;
}
.terminal-brand em { font-style: normal; color: var(--primary); }
.terminal-amount {
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
  color: var(--ink); margin-top: .55rem; letter-spacing: -0.02em;
}
.terminal-status {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .8rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(0, 183, 198, 0.12); color: var(--accent-2);
  font-size: .74rem; font-weight: 600;
}
.terminal-status svg { width: 13px; height: 13px; }
.terminal-wave {
  margin-top: 1rem; display: flex; align-items: flex-end; gap: 4px; height: 26px;
}
.terminal-wave i {
  flex: 1; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: .85;
  animation: wavePulse 1.6s ease-in-out infinite;
}
.terminal-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.terminal-wave i:nth-child(2) { height: 75%; animation-delay: .12s; }
.terminal-wave i:nth-child(3) { height: 55%; animation-delay: .24s; }
.terminal-wave i:nth-child(4) { height: 95%; animation-delay: .36s; }
.terminal-wave i:nth-child(5) { height: 62%; animation-delay: .48s; }
.terminal-wave i:nth-child(6) { height: 82%; animation-delay: .6s; }
.terminal-wave i:nth-child(7) { height: 45%; animation-delay: .72s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.65); }
  50%      { transform: scaleY(1); }
}
.terminal-keys {
  margin-top: 1.05rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
.terminal-keys i {
  height: 15px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.terminal-keys i:last-child { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem .95rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  font-size: .8rem; font-weight: 600; color: var(--ink);
  animation: floatBob 7.5s ease-in-out infinite;
}
@supports (backdrop-filter: blur(14px)) {
  .float-chip { backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.float-chip svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.float-chip small { display: block; font-weight: 500; color: var(--ink-mute); font-size: .7rem; line-height: 1.2; }
.chip-1 { top: 10%; left: 2%; animation-delay: .8s; }
.chip-2 { bottom: 14%; right: 0; animation-delay: 1.6s; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .hero-visual { min-height: 480px; }
  .chip-1 { left: 8%; }
  .chip-2 { right: 6%; }
}

/* =============================================================
   7. Franja de confianza
   ============================================================= */
.trust { padding-block: 1.4rem; border-block: 1px solid var(--line); background: var(--paper); }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.6rem;
}
.trust-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.trust-item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  opacity: .8; transition: opacity .25s ease;
}
.trust-item:hover { opacity: 1; }
.trust-item svg { width: 18px; height: 18px; color: var(--primary); }

/* =============================================================
   7b. Declaración institucional
   ============================================================= */
.statement {
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
  text-align: center;
}
.statement .kicker { justify-content: center; }
.statement .kicker::after {
  content: ""; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}
.statement-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}
.statement-text em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* =============================================================
   8. Tarjetas de soluciones
   ============================================================= */
.cards-3 { display: grid; gap: 1.4rem; }
@media (min-width: 720px)  { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.sol-card {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2rem 1.7rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  overflow: clip;
}
@supports (backdrop-filter: blur(20px)) {
  .sol-card { background: var(--glass); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
}
.sol-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .35s ease;
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sol-card:hover::before { opacity: 1; }
.sol-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59, 120, 255, 0.12), rgba(0, 183, 198, 0.12));
  color: var(--primary);
}
.sol-icon svg { width: 26px; height: 26px; }
.sol-card h3 { font-size: 1.25rem; }
.sol-card p { color: var(--ink-mute); font-size: .96rem; flex-grow: 1; }
.sol-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .93rem; color: var(--primary-2);
}
.sol-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.sol-card:hover .sol-link svg { transform: translateX(4px); }

/* =============================================================
   9. Beneficios (grid 6)
   ============================================================= */
.benefits { background: var(--paper); border-block: 1px solid var(--line); }
.grid-6 { display: grid; gap: 1.2rem; }
@media (min-width: 720px)  { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59, 120, 255, 0.3); }
.benefit-icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59, 120, 255, 0.12), rgba(0, 183, 198, 0.14));
  color: var(--primary);
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.benefit p { font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   10. Manager
   ============================================================= */
.manager-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 960px) { .manager-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.manager-list { display: grid; gap: .9rem; margin-block: 1.5rem; }
.manager-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.manager-list svg { flex: none; width: 20px; height: 20px; color: var(--accent-2); margin-top: .15rem; }

.dash {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: clip;
}
.dash-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dash-bar i:nth-child(1) { background: #f87171; }
.dash-bar i:nth-child(2) { background: #fbbf24; }
.dash-bar i:nth-child(3) { background: #34d399; }
.dash-bar span { margin-left: .6rem; font-size: .72rem; color: var(--ink-mute); font-weight: 500; }
.dash-body { padding: 1.4rem; display: grid; gap: 1.2rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.dash-kpi {
  padding: .85rem .9rem; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
}
.dash-kpi b {
  display: block; font-family: var(--display); font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--ink); letter-spacing: -0.02em;
}
.dash-kpi span { font-size: .68rem; color: var(--ink-mute); font-weight: 500; }
.dash-chart { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding-top: .4rem; }
.dash-chart i {
  flex: 1; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--primary), rgba(59, 120, 255, 0.25));
  transform-origin: bottom;
  transform: scaleY(var(--h, .5));
  transition: transform 1s var(--ease-out);
}
.dash-chart i:nth-child(3n) { background: linear-gradient(180deg, var(--accent), rgba(0, 183, 198, 0.25)); }

/* =============================================================
   11. Pasos
   ============================================================= */
.steps { display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  padding: 1.9rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: clip;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step::before {
  content: "0" counter(step);
  font-family: var(--display); font-weight: 700; font-size: 3.6rem;
  position: absolute; top: .4rem; right: 1rem;
  background: linear-gradient(135deg, rgba(59, 120, 255, 0.16), rgba(0, 183, 198, 0.16));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; max-width: 78%; }
.step p { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: clip;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(59, 120, 255, 0.3); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(var(--primary), var(--primary)) center/12px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center/2px 12px no-repeat;
  border-radius: 50%;
  transition: transform .4s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-mute); font-size: .95rem; }
.faq-body a { color: var(--primary-2); font-weight: 600; }
.faq-body a:hover { text-decoration: underline; }
.faq-more { text-align: center; margin-top: 2rem; }

/* =============================================================
   13. CTA final
   ============================================================= */
.cta-band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-panel {
  position: relative; overflow: clip;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0e2a5c 0%, var(--primary-2) 55%, #0d95a6 120%);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
}
.cta-panel::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(30% 40% at 22% 30%, rgba(0, 183, 198, 0.35), transparent 70%),
    radial-gradient(34% 44% at 80% 70%, rgba(59, 120, 255, 0.4), transparent 70%);
  filter: blur(46px);
  animation: meshDrift 20s ease-in-out infinite;
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: .8rem; }
.cta-panel p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta-panel .btn-ghost {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border-color: rgba(255, 255, 255, 0.35); box-shadow: none;
}
.cta-panel .btn-ghost:hover { border-color: #fff; color: #fff; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: .93rem; }
.footer-grid {
  display: grid; gap: 2.4rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer .brand { color: #fff; margin-bottom: .9rem; display: inline-flex; }
.footer-about { max-width: 34ch; }
.footer h4 {
  color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact svg { flex: none; width: 17px; height: 17px; margin-top: .2rem; color: var(--accent); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   15. Sub-heros de páginas internas
   ============================================================= */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.page-hero .hero-mesh { inset: -30% -10% 0 -10%; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; max-width: 18ch; margin-bottom: 1rem; }
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero .lead { font-size: 1.1rem; color: var(--ink-mute); max-width: 56ch; }

/* =============================================================
   16. Soluciones — productos
   ============================================================= */
.product-grid { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(59, 120, 255, 0.35); }
.product-tag {
  align-self: flex-start;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(59, 120, 255, 0.1); color: var(--primary-2);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.product-tag.alt { background: rgba(0, 183, 198, 0.12); color: var(--accent-2); }
.product-card h3 { font-size: 1.35rem; }
.product-card > p { color: var(--ink-mute); font-size: .97rem; }
.product-feats { display: grid; gap: .55rem; margin-top: .4rem; }
.product-feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.product-feats svg { flex: none; width: 18px; height: 18px; color: var(--accent-2); margin-top: .12rem; }
.product-card .btn { align-self: flex-start; margin-top: auto; }

.integr-row {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem;
}
.integr-row span {
  padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}

/* OXXO band */
.oxxo-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff8ec 0%, #fff 60%);
  border: 1px solid rgba(212, 127, 47, 0.25);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; gap: 1.6rem;
}
@media (min-width: 960px) { .oxxo-band { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.oxxo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.oxxo-stat b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--ink);
}
.oxxo-stat span { font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   17. Nosotros
   ============================================================= */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.about-body p + p { margin-top: 1rem; }
.about-aside { display: grid; gap: 1.2rem; }
.value-card {
  padding: 1.7rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.value-card h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.05rem; margin-bottom: .5rem;
}
.value-card h3 svg { width: 20px; height: 20px; color: var(--primary); }
.value-card p { font-size: .93rem; color: var(--ink-mute); }

.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.6rem; max-width: 720px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px; opacity: .4;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--primary);
}
.timeline b { font-family: var(--display); color: var(--ink); display: block; margin-bottom: .15rem; }
.timeline p { font-size: .93rem; color: var(--ink-mute); }

/* =============================================================
   18. Contacto
   ============================================================= */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.contact-cards { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(59, 120, 255, 0.35); }
.contact-card .benefit-icon { width: 46px; height: 46px; }
.contact-card b { display: block; font-family: var(--display); color: var(--ink); font-size: .98rem; }
.contact-card span { font-size: .86rem; color: var(--ink-mute); }

.form-card {
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}
@supports (backdrop-filter: blur(20px)) {
  .form-card { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 540px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label {
  display: block; font-size: .84rem; font-weight: 600; color: var(--ink);
  margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 120, 255, 0.15);
}
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: .9rem; }

/* Selector formulario / chatbot */
.contact-tabs {
  display: inline-flex; gap: .3rem;
  padding: .32rem;
  border-radius: 999px;
  background: rgba(12, 27, 51, 0.06);
  margin-bottom: 1.5rem;
}
.contact-tabs button {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .58rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-mute);
  transition: background-color .3s var(--ease-out), color .25s ease, box-shadow .3s var(--ease-out);
}
.contact-tabs button svg { width: 16px; height: 16px; }
.contact-tabs button:hover { color: var(--ink); }
.contact-tabs button[aria-selected="true"] {
  background: var(--paper); color: var(--primary-2);
  box-shadow: var(--shadow-sm);
}
.contact-panel[hidden] { display: none; }

.chatbot-frame {
  height: clamp(480px, 62vh, 640px);
  border-radius: var(--radius);
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--paper);
}
/* Landbot inserta su propio contenedor + iframe: forzamos que ocupen el alto */
.chatbot-frame > div,
.chatbot-frame .LandbotContainer { height: 100%; }
.chatbot-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.chatbot-note {
  font-size: .82rem; color: var(--ink-mute);
  margin-top: .9rem; text-align: center;
}
.form-success {
  display: none; align-items: center; gap: .7rem;
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: rgba(0, 183, 198, 0.1); color: var(--accent-2);
  font-weight: 600; font-size: .92rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

/* =============================================================
   18b. Imágenes y logos
   ============================================================= */
.badge-netpay {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem .5rem .8rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.badge-netpay img { height: 16px; width: auto; }

.hero-photo {
  position: relative; z-index: 1;
  width: min(430px, 88vw);
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  overflow: clip;
  box-shadow: 0 40px 80px rgba(10, 34, 73, 0.28), 0 10px 24px rgba(10, 34, 73, 0.16);
  animation: floatBob 7.5s ease-in-out infinite;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-soft);
}
.hero-photo img.is-active { opacity: 1; transform: scale(1); }

.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 2;
  display: flex; justify-content: center; gap: .5rem;
}
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(10, 34, 73, 0.3);
  transition: width .35s var(--ease-out), background-color .25s ease;
}
.carousel-dots button.is-active {
  width: 22px;
  background: #fff;
}

.trust-row img { height: 26px; width: auto; }
.trust-row .trust-logo { display: inline-flex; align-items: center; opacity: .9; transition: opacity .25s ease; }
.trust-row .trust-logo:hover { opacity: 1; }
.trust-row .trust-logo.femsa img { height: 20px; }
.trust-row .trust-logo.netpay img { height: 22px; }

.sol-media {
  margin: -2rem -1.7rem 0;
  aspect-ratio: 4 / 3;
  overflow: clip;
}
.sol-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform .7s var(--ease-out);
}
.sol-card:hover .sol-media img { transform: scale(1.05); }

.product-media {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: clip;
  background: linear-gradient(160deg, #f2f6ff 0%, #e8f6f8 100%);
  display: grid; place-items: center;
}
.product-media img {
  max-height: 92%; max-width: 88%; object-fit: contain;
  transition: transform .7s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.05) translateY(-4px); }

.sol-card .sol-illus {
  margin: -.6rem 0 .2rem;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
}
.sol-card .sol-illus img { max-height: 100%; max-width: 82%; object-fit: contain; }

.wide-figure {
  border-radius: var(--radius-lg);
  overflow: clip;
  box-shadow: var(--shadow-lg);
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.wide-figure img { width: 100%; height: auto; }

.contact-figure {
  border-radius: var(--radius-lg);
  overflow: clip;
  margin-top: 1.6rem;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;               /* más compacta en móvil */
}
.contact-figure img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
}
@media (min-width: 960px) {
  .contact-figure { aspect-ratio: 4 / 5; }   /* columna lateral en escritorio */
}

.oxxo-mini {
  display: grid; gap: 1.6rem; align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
@media (min-width: 720px) { .oxxo-mini { grid-template-columns: auto 1fr auto; } }
.oxxo-mini-img { width: 132px; margin-inline: auto; }
.oxxo-mini h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.oxxo-mini p { font-size: .93rem; color: var(--ink-mute); max-width: 52ch; }

.clients-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 720px)  { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }
.client-tile {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: clip;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .25s ease;
}
.client-tile img { width: 100%; height: auto; }
.client-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(59, 120, 255, 0.3); }
@media (max-width: 719px) { .clients-grid .client-tile:nth-child(n+13) { display: none; } }

.footer-netpay { margin-top: 1.4rem; }
.footer-netpay img { height: 26px; width: auto; margin-bottom: .5rem; }
.footer-netpay small { display: block; font-size: .76rem; color: rgba(255,255,255,.5); }

.solnote {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem;
  text-align: center; font-size: .93rem; color: var(--ink-mute);
}
.solnote img { height: 22px; width: auto; }
.solnote a { color: var(--primary-2); font-weight: 600; }
.solnote a:hover { text-decoration: underline; }

/* =============================================================
   19. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .cta-panel::before { animation: none; }
  .terminal, .float-chip, .hero-photo { animation: none; }
  .terminal-wave i { animation: none; transform: none; }
  /* hovers, fades y transiciones se conservan intencionalmente */
}
