/* =========================================================
   ELP — Pasarela de Pagos Latam
   Hoja de estilos principal
   ========================================================= */

:root {
  /* Paleta ELP 2026 */
  --primary: #8231A7;          /* ELP Primary */
  --primary-light: #A855D4;    /* Purple Light */
  --primary-dark: #551D70;     /* Purple Dark */
  --midnight: #211329;         /* ELP Midnight */
  --lavender: #F0E6F5;         /* Lavender Soft */
  --bg: #F8F7FA;               /* Background */
  --bg-soft: #F3F0F7;
  --surface: #FFFFFF;          /* Surface */
  --surface-2: #FAF8FC;
  --border: #E7E1EA;           /* Border */
  --text: #201A24;             /* Text Primary */
  --text-muted: #716A78;       /* Text Secondary */
  --success: #19B879;          /* Pago aprobado */
  --tech: #3689F5;             /* Tech Accent (IA/APIs) */
  --warning: #F5A524;          /* Alertas */
  --error: #E5484D;            /* Rechazo / error */
  --accent: #3689F5;
  --warn: #F5A524;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -22px rgba(85, 29, 112, .22);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(130, 49, 167, .5);
}
.btn--outline {
  border-color: #D8CFE0;
  color: var(--primary);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Topbar / Segmento ---------- */
.topbar {
  background: linear-gradient(90deg, var(--midnight) 0%, var(--primary-dark) 100%);
  border-bottom: 1px solid rgba(33, 19, 41, .6);
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  flex-wrap: wrap;
}
.topbar__msg { color: var(--text-muted); display: flex; align-items: center; gap: .6rem; }
.topbar__badge {
  background: rgba(130, 49, 167, .15);
  color: var(--primary);
  border: 1px solid rgba(130, 49, 167, .35);
  padding: .1rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
}
.segment-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .2rem;
}
.segment-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.segment-switch__btn.is-active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
}

/* ---------- Language switch (header) ---------- */
.lang-switch {
  display: inline-flex;
  background: rgba(130, 49, 167, .08);
  border: 1px solid rgba(130, 49, 167, .22);
  border-radius: 999px;
  padding: .15rem;
  flex-shrink: 0;
}
.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1.2;
}
.lang-switch__btn:hover { color: var(--primary); }
.lang-switch__btn.is-active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
}
.header--dark .lang-switch,
.hero--dark ~ * .lang-switch {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}
.header--dark .lang-switch__btn { color: rgba(255, 255, 255, .7); }
.header--dark .lang-switch__btn:hover { color: #fff; }

/* ---------- Topbar: dropdown Conéctate (nodos) ---------- */
/* ---------- Topbar: grupo Conéctate / Desarrolladores ---------- */
.topbar-connect { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-connect__dropdown { position: relative; }
.topbar-connect__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  line-height: inherit;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(130, 49, 167, .35);
  transition: all .2s ease;
}
.topbar-connect__btn--docs {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none;
}
.topbar-connect__btn--docs:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: none;
}
.topbar-connect__btn:hover,
.topbar-connect__btn[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 18px rgba(130, 49, 167, .5);
  transform: translateY(-1px);
}
.topbar-connect__menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(33, 19, 41, .18);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
  z-index: 60;
}
.topbar-connect__dropdown:has(.topbar-connect__btn[aria-expanded="true"]) .topbar-connect__menu,
.topbar-connect__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.topbar-connect__title {
  margin: 0;
  padding: .45rem .75rem .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.topbar-connect__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.topbar-connect__item:hover {
  background: var(--lavender);
  color: var(--primary-dark);
}
.topbar-connect__item svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 250, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 11px;
}
.brand__logo {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(85, 29, 112, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand__logo:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(85, 29, 112, .3);
  border-color: var(--primary-light);
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand__dot { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav__link:hover { color: var(--text); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .75rem; }
/* ---------- Menú desplegable "Soluciones" ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__menu-btn {
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  margin: 0;
}
.nav__caret { font-size: .72rem; transition: transform .2s ease; color: var(--primary); }
.has-menu:hover .nav__caret,
.has-menu.is-open .nav__caret { transform: rotate(180deg); }
.has-menu:hover .nav__menu-btn,
.has-menu.is-open .nav__menu-btn { color: var(--text); }
.has-menu:hover .nav__menu-btn::after,
.has-menu.is-open .nav__menu-btn::after { width: 100%; }

.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .5rem;
  min-width: 330px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 80;
}
.has-menu:hover .nav__menu,
.has-menu.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__menu::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav__menu-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .7rem;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.nav__menu-link:hover { background: var(--lavender); color: var(--primary-dark); }
.nav__menu-icon { font-size: 1.05rem; line-height: 1; }
.nav__menu-label { line-height: 1.25; }

/* Item de solución activo dentro del submenú */
.nav__menu-link.is-current {
  background: var(--lavender);
  color: var(--primary-dark);
  font-weight: 600;
}
.has-menu.is-active-section > .nav__menu-btn { color: var(--text); }
.has-menu.is-active-section > .nav__menu-btn::after { width: 100%; }



.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* cover entire hero */
  object-position: center;
  display: block;
  transform: scale(1.02);     /* avoid edge gaps */
}
.hero__video--flip {
  transform: scaleX(-1) scale(1.02);
}
.hero__media-overlay {
  position: absolute;
  inset: 0;
  /* Keep existing light-theme text readable over unknown video */
  background:
    linear-gradient(105deg,
      rgba(250, 247, 252, 0.94) 0%,
      rgba(250, 247, 252, 0.82) 42%,
      rgba(245, 240, 250, 0.62) 72%,
      rgba(245, 240, 250, 0.48) 100%);
}
/* Portal ContiiA video is lighter — less wash so it reads vividly */
.hero__media-overlay--vivid {
  background:
    linear-gradient(105deg,
      rgba(250, 247, 252, 0.78) 0%,
      rgba(250, 247, 252, 0.48) 38%,
      rgba(245, 240, 250, 0.22) 68%,
      rgba(245, 240, 250, 0.08) 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: .45;
}
.hero__glow--1 {
  width: 520px; height: 520px;
  background: rgba(130, 49, 167, .16);
  top: -160px; right: -120px;
}
.hero__glow--2 {
  width: 420px; height: 420px;
  background: rgba(54, 137, 245, .14);
  bottom: -180px; left: -140px;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(130, 49, 167, .1);
  border: 1px solid rgba(130, 49, 167, .3);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.4rem;
}
.pill__dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .5); }
  50% { box-shadow: 0 0 0 7px rgba(130, 49, 167, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.3rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__subtitle--ink {
  color: #121014;
}
.hero__subtitle--ink strong {
  color: #0a090c;
}
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__trust {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .88rem;
}
.hero__trust strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Mockup */
.hero__visual { position: relative; }
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(130, 49, 167, .05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #E5484D; }
.dot--y { background: #F5A524; }
.dot--g { background: #19B879; }
.mockup__url {
  margin-left: .8rem;
  font-size: .74rem;
  color: var(--text-muted);
  background: rgba(130, 49, 167, .10);
  padding: .2rem .8rem;
  border-radius: 6px;
}
.mockup__body { padding: 1.1rem; }
.mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: 1rem;
}
.mstat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .8rem;
}
.mstat__label { display: block; font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.mstat__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-top: .15rem; }
.mstat__delta { font-size: .7rem; font-weight: 700; }
.mstat__delta.up { color: var(--success); }
.mockup__chart {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem;
  margin-bottom: 1rem;
}
.mockup__chart svg { width: 100%; height: 110px; }
.mockup__rows { display: grid; gap: .5rem; }
.mrow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .8rem;
  font-size: .8rem;
}
.mrow__icon {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--c, var(--primary));
  border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 45%, transparent);
  padding: .15rem .5rem;
  border-radius: 6px;
}
.mrow__name { color: var(--text-muted); }
.mrow__amount { font-weight: 700; font-family: var(--font-display); }
.mrow__tag {
  font-size: .65rem;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: 999px;
}
.mrow__tag.ok { color: #0E8F5E; background: rgba(25, 184, 121, .14); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .7rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .85rem; }
.float-card small { color: var(--text-muted); font-size: .72rem; }
.float-card__icon { font-size: 1.4rem; }
.float-card--1 { top: -22px; left: -28px; }
.float-card--2 { bottom: -18px; right: -20px; animation-delay: 2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Cobertura marquee ---------- */
.coverage {
  border-block: 1px solid var(--border);
  padding-block: 1.6rem;
  background: var(--bg-soft);
}
.coverage__label {
  text-align: center;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.coverage__marquee {
  display: flex;
  overflow: hidden;
  gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.coverage__track {
  display: flex;
  gap: 2.6rem;
  padding-right: 2.6rem;
  flex-shrink: 0;
  animation: marquee 32s linear infinite;
}
.coverage__track span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: .95rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: .8rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: .9rem;
}
.section__lead { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.7rem;
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: .9rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: .93rem; }
.step::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.15rem;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  z-index: 2;
}
.step:last-child::after { display: none; }
.steps__cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Planes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-5px); }
.plan--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--lavender), var(--surface) 55%);
  box-shadow: 0 30px 60px -30px rgba(130, 49, 167, .4);
}
.plan__ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .25rem .9rem;
  border-radius: 999px;
}
.plan__name { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .3rem; }
.plan__desc { color: var(--text-muted); font-size: .88rem; min-height: 3.2em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  margin: 1.2rem 0 1.4rem;
  font-family: var(--font-display);
}
.plan__currency { font-size: 1.4rem; font-weight: 600; color: var(--text-muted); }
.plan__amount { font-size: 3rem; font-weight: 700; line-height: 1; }
.plan__amount--custom { font-size: 1.9rem; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__period { color: var(--text-muted); font-size: .95rem; }
.plan__price-note { margin: -.7rem 0 1.2rem; font-size: .8rem; color: var(--text-muted); }
.plan__price-usd {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: .25rem;
}
.plan__list { display: grid; gap: .6rem; margin-bottom: 1.8rem; flex: 1; }
.plan__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.plan__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}
.plan__btn { width: 100%; }
.plans__note { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 2rem; }
.plans__note a { color: var(--primary); font-weight: 600; }
.plans__note a:hover { text-decoration: underline; }
.plans__note--negotiate { color: var(--warning, #b45309); font-weight: 600; margin-top: 1.25rem; }

/* ---------- Toolbar de planes + switch de moneda ---------- */
.plans__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.plans__toolbar-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.currency-switch {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .28rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 22px -16px rgba(85, 29, 112, .35);
}
.currency-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-muted);
  padding: .45rem 1rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.currency-switch__btn:hover { color: var(--primary); }
.currency-switch__btn.is-active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(130, 49, 167, .65);
}
.currency-switch__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.plans--duo { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.plans__requirement {
  margin-top: 1.4rem;
  padding: .9rem 1.2rem;
  background: var(--lavender);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
}
.plan__requirement {
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.plans__fx {
  text-align: center;
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.plan.is-switching .plan__amount { animation: pricePop .28s ease; }
@keyframes pricePop {
  0%   { opacity: .25; transform: translateY(6px); }
  100% { opacity: 1;   transform: translateY(0); }
}

/* ---------- Testimonios ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-bottom: 3.5rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial__stars { color: var(--warn); letter-spacing: .15em; font-size: .9rem; }
.testimonial blockquote { color: var(--text-muted); font-size: .94rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  background: var(--a, var(--primary));
  flex-shrink: 0;
}
.testimonial figcaption strong { display: block; font-size: .92rem; }
.testimonial figcaption span { color: var(--text-muted); font-size: .8rem; }

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.counter { text-align: center; }
.counter__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter__label { color: var(--text-muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(130, 49, 167, .45); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: .98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 1.3rem 1.2rem; }
.faq__answer p { color: var(--text-muted); font-size: .92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 130%);
  padding: 4rem 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.cta-banner p { color: rgba(255, 255, 255, .85); max-width: 34rem; }
.cta-banner__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__info .section__title { text-align: left; }
.contact__info .section__lead { text-align: left; }
.contact__info .eyebrow { display: block; }
.contact__list { display: grid; gap: .8rem; margin: 1.6rem 0; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text-muted);
  font-size: .93rem;
}
.contact__badge {
  background: rgba(130, 49, 167, .08);
  border: 1px solid rgba(130, 49, 167, .3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .87rem;
  color: var(--text-muted);
}
.contact__badge strong { display: block; color: var(--text); margin-bottom: .2rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.form__field { display: flex; flex-direction: column; gap: .35rem; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-size: .84rem; font-weight: 600; }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(130, 49, 167, .18);
}
.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea { border-color: var(--error); }
.form__error { display: none; color: var(--error); font-size: .78rem; }
.form__field.is-invalid .form__error { display: block; }
.form__error--consent { margin-top: .3rem; }
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  cursor: pointer;
}
.form__consent input { margin-top: .25rem; accent-color: var(--primary); width: 16px; height: 16px; }
.form__consent a { color: var(--primary); }
.form__consent a:hover { text-decoration: underline; }
.form__submit { width: 100%; }
.form__success {
  margin-top: 1.2rem;
  background: rgba(25, 184, 121, .1);
  border: 1px solid rgba(25, 184, 121, .45);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--text);
}
.form__success strong { display: block; margin-bottom: .2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--midnight);
  padding-top: 3.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
}
.footer__brand p { color: var(--text-muted); font-size: .9rem; margin-top: 1rem; max-width: 30rem; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  margin-bottom: .4rem;
}
.footer__col a { color: var(--text-muted); font-size: .88rem; transition: color .2s ease; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-block: 1.4rem;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__credit {
  flex-basis: 100%;
  margin-top: .35rem;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: .85;
}
.footer__credit a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(130, 49, 167, .4);
  transition: color .2s ease;
}
.footer__credit a:hover { color: var(--primary-light); }
.footer__credit strong { color: inherit; font-weight: 700; }
.footer__bottom-links a:hover { color: var(--primary); }

/* ---------- Animaciones reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .coverage__track, .float-card, .pill__dot { animation: none; }
  .hero__video { display: none; }
  .hero__media-overlay {
    background: linear-gradient(180deg, #faf7fc, #f3eef8);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 4rem; }
  .hero { padding-top: 4rem; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Avoid trapping position:fixed drawer inside header stacking context */
  .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header.is-scrolled { background: #fff; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100%;
    height: 100dvh;
    margin: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    z-index: 80;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Closed: zero footprint so it cannot widen the page */
    width: 0;
    max-width: 0;
    padding: 5.5rem 0 2rem;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .nav.is-open {
    width: min(320px, 85vw);
    max-width: 320px;
    padding: 5.5rem 1.35rem 2rem;
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 48px rgba(33, 19, 41, .22);
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease, visibility 0s;
    animation: elp-nav-in .28s ease;
  }
  @keyframes elp-nav-in {
    from { transform: translate3d(100%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
  }
  .nav__link {
    font-size: 1.05rem;
    color: var(--text);
    padding: .7rem .55rem;
    border-radius: 10px;
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link.is-active { background: var(--lavender); color: var(--primary-dark); }
  .nav__item { flex-direction: column; align-items: stretch; width: 100%; }
  .nav__menu-btn {
    width: 100%;
    justify-content: space-between;
    padding: .7rem .55rem;
    border-radius: 10px;
    color: var(--text);
  }
  .nav__menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    border: none;
    background: var(--bg-soft);
    border-radius: 12px;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: .15rem 0 .45rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav__menu::before { display: none; }
  .has-menu.is-open .nav__menu {
    max-height: 420px;
    padding: .35rem;
  }
  .has-menu:hover .nav__menu { transform: none !important; }
  .nav__menu-link { font-size: .95rem; padding: .55rem .65rem; }
  .nav-toggle { display: flex; z-index: 90; position: relative; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 34, .48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 70;
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .header__actions .btn--ghost { display: none; }
  .header__actions .lang-switch { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .step::after {
    content: '↓';
    top: auto; bottom: -1.5rem; right: 50%;
    transform: translateX(50%);
  }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plans__toolbar { flex-direction: column; align-items: stretch; }
  .currency-switch { justify-content: center; width: 100%; }
  .currency-switch__btn { flex: 1; }
  .plan--featured { order: -1; }
  .testimonials { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

@media (max-width: 640px) {
  .section { padding: 3.8rem 0; }
  .form__grid { grid-template-columns: 1fr; }
  .topbar__msg { display: none; }
  .topbar__inner { justify-content: center; }
  .hero__trust { gap: 1.4rem; }
  .float-card--1 { left: -6px; top: -16px; }
  .float-card--2 { right: -6px; bottom: -12px; }
  .mockup__stats { grid-template-columns: 1fr 1fr; }
  .mstat:last-child { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
}

/* ---------- Superficies oscuras ELP Midnight ---------- */
.topbar { color: rgba(255, 255, 255, .82); }
.topbar__msg { color: rgba(255, 255, 255, .78); }
.topbar__badge {
  background: rgba(168, 85, 212, .25);
  color: #E9D5F5;
  border-color: rgba(168, 85, 212, .5);
}
.segment-switch__btn { color: rgba(255, 255, 255, .7); }
.segment-switch__btn:hover { color: #fff; }
.cta-banner { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, .88); }
.footer, .footer * { color: #fff; }
.footer a, .footer__col a, .footer__bottom,
.footer__brand p, .footer__col h4 { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #C89BE3; }
.footer__col h4 { color: #fff; }
.footer__bottom { border-top-color: rgba(255, 255, 255, .12); }
.footer__credit { color: rgba(255, 255, 255, .62); }
.footer__credit a {
  color: #C89BE3;
  text-decoration-color: rgba(200, 155, 227, .45);
}
.footer__credit a:hover { color: #E9D5F5; }
.footer__credit strong { color: rgba(255, 255, 255, .85); }

/* ---------- Página Grandes Empresas (Nodos) ---------- */
.hero--dark {
  background: linear-gradient(180deg, var(--midnight) 0%, #2E1A3A 55%, var(--bg) 100%);
  color: #fff;
}
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__subtitle { color: rgba(255, 255, 255, .82); }
.hero--dark .hero__trust { color: rgba(255, 255, 255, .72); }
.hero--dark .hero__trust strong { color: #fff; }
.hero--dark .pill {
  color: #E9D5F5;
  background: rgba(168, 85, 212, .18);
  border-color: rgba(168, 85, 212, .45);
}
.hero--dark .pill__dot { background: var(--primary-light); }


/* ---------- Marca Blanca ---------- */
.node-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .node-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.node-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.node-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 49, 167, .45);
  box-shadow: var(--shadow);
}
.node-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: var(--lavender);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.node-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .45rem; }
.node-card p { color: var(--text-muted); font-size: .88rem; }

.spec-band {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: 2.2rem;
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.spec-chip strong { color: var(--primary); }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .9rem;
}
.compare th, .compare td {
  padding: .95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-family: var(--font-display);
  font-size: .95rem;
  background: var(--surface-2);
}
.compare thead th:last-child { color: var(--primary); }
.compare td:first-child { color: var(--text-muted); font-weight: 500; }
.compare td { color: var(--text); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--text-muted); }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.plan--node {
  border-color: rgba(130, 49, 167, .35);
}
.plan__tagline {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  background: var(--lavender);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .7rem;
}

@media (max-width: 1024px) {
  .node-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .node-grid { grid-template-columns: 1fr; }
}

/* Submenú: en pantallas sin hover fino se maneja solo por tap (JS) — desktop only */
@media (hover: none) and (min-width: 861px) {
  .has-menu:hover .nav__menu { opacity: 0; visibility: hidden; }
  .has-menu.is-open .nav__menu { opacity: 1; visibility: visible; }
}

/* =========================================================
   Página Tokenización: tarjeta-token, split con código
   ========================================================= */
.token-card {
  position: relative;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #551D70 0%, #8231A7 55%, #A855D4 100%);
  box-shadow: 0 16px 34px rgba(85, 29, 112, .28);
  overflow: hidden;
}
.token-card::after {
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  right: -70px; top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.token-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.token-card__brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: .82rem; letter-spacing: .16em;
}
.token-card__chip {
  width: 34px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #F5D48A, #C79A3C);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.token-card__pan {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600; letter-spacing: .12em;
  margin-bottom: .9rem;
}
.token-card__meta {
  display: flex; justify-content: space-between;
  font-size: .68rem; letter-spacing: .1em;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .9rem;
}
.token-card__hash {
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .6rem;
  border-radius: 9px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .16);
}
.token-card__hash code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  color: #EAD9F5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.token-card__lock { font-size: .75rem; }
.token-card__badge {
  font-size: .58rem; font-weight: 700; letter-spacing: .08em;
  padding: .18rem .4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* --- Split de contenido + bloque de código --- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.2rem;
  align-items: center;
}
.split__content .section__title { text-align: left; }
.split__content .section__lead { text-align: left; }
.split__content .eyebrow { display: block; }
.split__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.code-card {
  border-radius: var(--radius);
  background: var(--midnight);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(33, 19, 41, .32));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.code-card__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .95rem;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-card__file {
  margin-left: .5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; color: rgba(255, 255, 255, .68);
}
.code-card__body {
  margin: 0;
  padding: 1.05rem 1.15rem 1.25rem;
  overflow-x: auto;
}
.code-card__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem; line-height: 1.75;
  color: #E7DEF0;
  white-space: pre;
}
.c-comment { color: #9C86AE; }
.c-str { color: #7DD3A8; }
.c-key { color: #C89BE3; }

/* --- Lista con checks --- */
.check-list {
  display: grid; gap: .7rem;
  margin-top: 1.5rem;
}
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-muted);
  font-size: .93rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -.05rem;
  width: 1.15rem; height: 1.15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .68rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .split__media { order: 2; }
}

/* ============================================================
   Cobros telefónicos (IVR): pantalla de llamada + acordeón inline
   ============================================================ */
.ivr-screen {
  position: relative;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.05rem;
  margin: .2rem 0 1.1rem;
  background: linear-gradient(150deg, #2B1738 0%, #4A1F66 55%, #6B2A93 100%);
  color: #fff;
  box-shadow: 0 18px 40px -22px rgba(85, 29, 112, .55);
  overflow: hidden;
}
.ivr-screen::after {
  content: "";
  position: absolute; inset: auto -40% -70% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 212, .45), transparent 70%);
  pointer-events: none;
}
.ivr-screen__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.ivr-screen__live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.ivr-screen__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(25, 184, 121, .55);
  animation: ivrPulse 1.8s ease-out infinite;
}
@keyframes ivrPulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 184, 121, .5); }
  70% { box-shadow: 0 0 0 9px rgba(25, 184, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 184, 121, 0); }
}
.ivr-screen__timer { font-family: var(--font-display); font-weight: 700; color: #fff; }
.ivr-screen__caller {
  margin-top: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.ivr-wave {
  display: flex; align-items: flex-end; gap: 3px;
  height: 34px; margin: .75rem 0 .5rem;
}
.ivr-wave i {
  flex: 1; display: block; border-radius: 2px;
  background: linear-gradient(180deg, #D9BBEC, var(--primary-light));
  opacity: .85;
  animation: ivrBar 1.1s ease-in-out infinite;
}
.ivr-wave i:nth-child(2n) { animation-duration: .85s; }
.ivr-wave i:nth-child(3n) { animation-duration: 1.35s; }
.ivr-wave i:nth-child(1) { height: 30%; }
.ivr-wave i:nth-child(2) { height: 62%; }
.ivr-wave i:nth-child(3) { height: 45%; }
.ivr-wave i:nth-child(4) { height: 88%; }
.ivr-wave i:nth-child(5) { height: 55%; }
.ivr-wave i:nth-child(6) { height: 100%; }
.ivr-wave i:nth-child(7) { height: 40%; }
.ivr-wave i:nth-child(8) { height: 72%; }
.ivr-wave i:nth-child(9) { height: 50%; }
.ivr-wave i:nth-child(10) { height: 84%; }
.ivr-wave i:nth-child(11) { height: 36%; }
.ivr-wave i:nth-child(12) { height: 64%; }
@keyframes ivrBar {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
.ivr-screen__prompt {
  font-size: .78rem; color: rgba(255, 255, 255, .8);
  font-style: italic;
}
.ivr-screen__digits {
  margin-top: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .12em;
}
.ivr-screen__digits span {
  display: inline-block;
  padding: 0 .35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.ivr-screen__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .72rem;
  color: rgba(255, 255, 255, .78);
}
.ivr-screen__ok {
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(25, 184, 121, .22);
  color: #8FF0C4;
}

/* Acordeón compacto dentro de un split */
.faq--inline { margin-top: 1.4rem; }
.faq--inline .faq__item { background: var(--surface); }
.faq--inline .faq__item summary { font-size: .95rem; }
.faq--inline .faq__answer p { font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  .ivr-wave i, .ivr-screen__pulse { animation: none; }
}

/* =========================================================
   Cobranza con IA Telefónica (Agente IA + Xeretron Callcenter)
   ========================================================= */

/* Transcript del Agente IA dentro del mockup */
.ai-chat {
  margin-top: .9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem;
  display: grid;
  gap: .55rem;
}
.ai-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ai-chat__head strong { color: var(--primary); }
.ai-chat__line {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: .55rem;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--text);
}
.ai-chat__line span:first-child {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: .72rem;
  background: var(--lavender);
}
.ai-chat__line--ai span:first-child { background: rgba(54,137,245,.14); }
.ai-chat__line--sys span:first-child { background: rgba(25,184,121,.16); }
.ai-chat__line--sys { color: var(--success); font-weight: 600; }
.ai-chat__line em { color: var(--text-muted); font-style: normal; }

/* Banda del motor Xeretron Callcenter */
.engine {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--midnight) 0%, #3A1B4D 55%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.engine::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(168,85,212,.45), transparent 65%);
  pointer-events: none;
}
.engine__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.engine__mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.engine__kicker {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C89BE3;
  margin-bottom: .25rem;
}
.engine__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.engine__name a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.engine__name a:hover { color: #C89BE3; }
.engine__text {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  max-width: 68ch;
}
.engine__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}
.engine__feat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
}
.engine__feat strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  margin: .5rem 0 .3rem;
}
.engine__feat p { color: rgba(255,255,255,.72); font-size: .82rem; }
.engine__feat span { font-size: 1.2rem; }
.engine__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.6rem;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: .15rem;
  position: relative;
  z-index: 1;
}
.engine__link:hover { color: #C89BE3; border-bottom-color: #C89BE3; }

/* Chip de tecnología enlazado */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(54,137,245,.1);
  border: 1px solid rgba(54,137,245,.28);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .76rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.tech-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.hero__engine { margin-top: 1.1rem; }

@media (max-width: 1024px) {
  .engine__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .engine { padding: 1.8rem 1.3rem; }
}
@media (max-width: 640px) {
  .engine__grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Cobra con tu Celular NFC · ELP TAP
   ========================================================= */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover { transform: translateY(-4px); }
.pain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(229, 72, 77, .10);
  font-size: 1.25rem;
  margin-bottom: .8rem;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: .45rem;
}
.pain-card p { color: var(--text-muted); font-size: .87rem; }

/* Pantalla de cobro contactless */
.tap-phone {
  position: relative;
  overflow: hidden;
  margin-top: 1.1rem;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--midnight) 0%, var(--primary-dark) 78%, var(--primary) 130%);
  color: #fff;
}
.tap-phone::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(168,85,212,.42), transparent 70%);
  pointer-events: none;
}
.tap-phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}
.tap-phone__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-top: .5rem;
}
.tap-phone__hint { font-size: .8rem; color: rgba(255,255,255,.78); }
.nfc-wave {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin: .8rem 0 .6rem;
}
.nfc-wave span {
  position: absolute;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255,255,255,.55);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
  animation: nfcPulse 2.1s ease-out infinite;
}
.nfc-wave span:nth-child(2) { width: 48px; height: 48px; animation-delay: .35s; }
.nfc-wave span:nth-child(3) { width: 70px; height: 70px; animation-delay: .7s; }
.nfc-wave__card {
  position: absolute;
  bottom: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  animation: nfcTap 2.1s ease-in-out infinite;
}
@keyframes nfcPulse {
  0%   { opacity: 0; transform: rotate(-45deg) scale(.7); }
  35%  { opacity: .95; }
  100% { opacity: 0; transform: rotate(-45deg) scale(1.18); }
}
@keyframes nfcTap {
  0%, 100% { transform: translateY(10px); }
  50%      { transform: translateY(-8px); }
}
.tap-phone__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .74rem;
  color: rgba(255,255,255,.72);
}
.tap-phone__ok {
  padding: .22rem .65rem;
  border-radius: 999px;
  background: rgba(25,184,121,.18);
  color: #6FE3B0;
  font-weight: 700;
}

/* Tarjetas grandes de compatibilidad / conexión */
.tap-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.tap-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--surface) 0%, var(--lavender) 140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.tap-card__tag {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .9rem;
}
.tap-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: .6rem;
}
.tap-card p { color: var(--text-muted); font-size: .88rem; }
.tap-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: .87rem;
  color: var(--primary);
}
.tap-card__link:hover { color: var(--primary-dark); }

.node-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .9rem;
  font-weight: 700;
  font-size: .84rem;
  color: var(--primary);
}
.node-card__link:hover { color: var(--primary-dark); }

@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tap-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pain-grid { grid-template-columns: 1fr; }
  .tap-phone__amount { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nfc-wave span, .nfc-wave__card { animation: none; }
}


/* =========================================================
   ContiiA — Portal de Pagos, Facturación y Contabilidad con IA
   ========================================================= */

/* Flujo de 5 pasos factura → cobro → contabilidad */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.flow__node {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.4rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.flow__node:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 49, 167, .45);
  box-shadow: var(--shadow);
}
.flow__node::after {
  content: "→";
  position: absolute;
  right: -1.05rem; top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light);
  font-weight: 700;
  font-size: .95rem;
  z-index: 2;
}
.flow__node:last-child::after { content: ""; }
.flow__step {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .55rem;
}
.flow__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lavender);
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.flow__node h3 {
  font-family: var(--font-display);
  font-size: .98rem;
  line-height: 1.35;
  margin-bottom: .45rem;
}
.flow__node p { color: var(--text-muted); font-size: .82rem; }
.flow__auto {
  display: inline-block;
  margin-top: .8rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0E8F5E;
  background: rgba(25, 184, 121, .14);
}

/* Comprobante de factura dentro del mockup */
.invoice {
  margin: .9rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 26px -18px rgba(85, 29, 112, .3);
}
.invoice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .35rem;
}
.invoice__doc {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.invoice__status {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .18rem .55rem;
  border-radius: 999px;
  color: #0E8F5E;
  background: rgba(25, 184, 121, .16);
}
.invoice__client {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .7rem;
}
.invoice__rows {
  display: grid;
  gap: .35rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--border);
}
.invoice__rows > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .74rem;
  color: var(--text-muted);
}
.invoice__rows > span > span:last-child { font-weight: 700; color: var(--text); }
.invoice__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 0 .2rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.invoice__total strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--success);
}
.invoice__timeline {
  display: grid;
  gap: .5rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.evt {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: .5rem;
  font-size: .73rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.evt em { font-style: normal; color: var(--text-muted); opacity: .8; }
.evt__dot {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 800;
  background: var(--lavender);
  color: var(--primary-dark);
}
.evt--done .evt__dot { background: rgba(25, 184, 121, .18); color: #0E8F5E; }
.acct {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  color: var(--primary-dark);
  background: var(--lavender);
  border-radius: 6px;
  padding: .05rem .35rem;
}

/* Portal público de pagos (búsqueda por documento) */
.portal-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.portal-search__bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .6rem .55rem 1rem;
  margin-bottom: .9rem;
}
.portal-search__doc {
  flex: 1;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.portal-search__go,
.portal-search__pay {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .4rem .85rem;
  white-space: nowrap;
}
.portal-search__who {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.prow {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: .6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .75rem;
  font-size: .79rem;
  color: var(--text);
  margin-bottom: .45rem;
}
.prow--due { border-color: rgba(229, 72, 77, .4); background: rgba(229, 72, 77, .05); }
.prow__check {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--lavender);
  color: var(--primary-dark);
}
.prow--due .prow__check { background: rgba(229, 72, 77, .14); color: var(--error); }
.prow__meta {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: .1rem;
}
.prow__amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.portal-search__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}
.portal-search__note {
  margin-top: .8rem;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Grilla de 4 planes (ContiiA) */
.plans--quad { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.plans--centered { max-width: 1200px; margin-inline: auto; width: 100%; }
.plans--quad .plan { padding: 1.7rem 1.4rem; }
.plans--quad .plan__list { font-size: .85rem; }

@media (max-width: 1120px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__node::after { content: ""; }
}
@media (max-width: 1024px) {
  .plans--quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .plans--quad { grid-template-columns: 1fr; }
  .portal-search { padding: 1.2rem 1rem; }
  .portal-search__total { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .flow__node { transition: none; }
}

.split__sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 .8rem;
}
/* Caption under code/media cards — keep clear of the image above */
.code-card + .split__sub,
.qr-card + .split__sub {
  margin-top: 1.4rem;
}
.counters--mt { margin-top: 2rem; }
.ai-chat--mt { margin-top: 1.8rem; }

/* Dropdown "Soluciones" dentro del drawer móvil (etiquetas largas) */
@media (max-width: 860px) {
  .nav__menu {
    min-width: 0;
    width: 250px;
    left: 0;
    transform: translate(0, 8px);
  }
  .has-menu:hover .nav__menu,
  .has-menu.is-open .nav__menu { transform: translate(0, 0); }
  .nav__menu::before { left: 26px; }
  .nav__menu-link { font-size: .84rem; }
}

/* ============================================================
   Suite de soluciones (home) + chips del hero + medios de pago
   ============================================================ */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.suite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.suite-card:hover {
  transform: translateY(-5px);
  border-color: rgba(130, 49, 167, .45);
}
.suite-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity .25s ease;
}
.suite-card:hover::before { opacity: 1; }
.suite-card__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
}
.suite-card__icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: var(--lavender);
  border-radius: 12px;
}
.suite-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--lavender);
  border-radius: 999px;
  padding: .22rem .6rem;
}
.suite-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.suite-card p {
  color: var(--text-muted);
  font-size: .88rem;
  flex: 1 1 auto;
}
.suite-card__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .38rem;
}
.suite-card__list li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 1.15rem;
  position: relative;
}
.suite-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.suite-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.15rem;
  font-weight: 700;
  font-size: .86rem;
  color: var(--primary);
}
.suite-card__link:hover { color: var(--primary-dark); gap: .6rem; }
.suite-card--feature {
  background: linear-gradient(160deg, var(--lavender) 0%, var(--surface) 60%);
  border-color: rgba(130, 49, 167, .28);
}

/* Chips de acceso rápido bajo el hero */
.hero__solutions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.hero__solutions li { font-size: inherit; }
.hero__solutions a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .38rem .8rem;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hero__solutions a:hover {
  color: var(--primary-dark);
  border-color: rgba(130, 49, 167, .45);
  background: var(--lavender);
}

/* Medios de pago */
.medios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.medio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  transition: transform .25s ease, border-color .25s ease;
}
.medio:hover { transform: translateY(-4px); border-color: rgba(130, 49, 167, .4); }
.medio__icon { font-size: 1.5rem; display: block; margin-bottom: .6rem; }
.medio h3 { font-family: var(--font-display); font-size: .98rem; margin-bottom: .35rem; }
.medio p { font-size: .82rem; color: var(--text-muted); }

/* Sectores */
.sect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
.sect {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .95rem 1.05rem;
  font-size: .87rem;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease;
}
.sect:hover { transform: translateY(-3px); border-color: rgba(130, 49, 167, .4); }
.sect span { font-size: 1.15rem; }

@media (max-width: 1120px) {
  .medios-grid { grid-template-columns: repeat(2, 1fr); }
  .sect-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .suite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .suite-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .medios-grid { grid-template-columns: 1fr; }
  .sect-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .suite-card, .medio, .sect { transition: none; }
}

/* =========================================================
   Web Checkout, Links y QR
   ========================================================= */

/* ---------- Página de pago (mockup) ---------- */
.checkout {
  margin-top: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}
.checkout__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.checkout__secure {
  font-size: .68rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(25, 184, 121, .1);
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.checkout__order {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .7rem 0 .55rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.checkout__order strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}
.checkout__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .7rem;
}
.checkout__tab {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .65rem;
}
.checkout__tab.is-on {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.checkout__fields {
  display: flex;
  gap: .4rem;
  margin-bottom: .6rem;
}
.checkout__input {
  flex: 2 1 0;
  height: 34px;
  border-radius: 9px;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  font-size: .7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding-inline: .55rem;
}
.checkout__input--sm { flex: 1 1 0; }
.checkout__wallets {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .75rem;
}
.checkout__wallets span {
  font-size: .66rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--lavender);
  border-radius: 7px;
  padding: .2rem .45rem;
}
.checkout__pay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 12px 24px -14px rgba(130, 49, 167, .7);
}
.checkout__foot {
  margin-top: .55rem;
  font-size: .68rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Chat de WhatsApp (links de pago) ---------- */
.wa-chat {
  background: #EAF3E7;
  border: 1px solid #CFE3CB;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-inline: auto;
}
.wa-chat__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .95rem;
  background: #075E54;
  color: #fff;
}
.wa-chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.wa-chat__head strong { display: block; font-size: .85rem; line-height: 1.2; }
.wa-chat__head small { font-size: .68rem; opacity: .8; }
.wa-chat__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem .9rem 1.15rem;
  background-image: radial-gradient(rgba(7, 94, 84, .07) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-chat__msg {
  max-width: 82%;
  font-size: .8rem;
  line-height: 1.45;
  padding: .5rem .7rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .18);
}
.wa-chat__msg--in {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
}
.wa-chat__msg--out {
  align-self: flex-end;
  background: #DCF8C6;
  border-bottom-right-radius: 4px;
}
.wa-chat__link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: 88%;
  background: #fff;
  border-left: 3px solid var(--primary);
}
.wa-chat__link-top {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.wa-chat__link-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.wa-chat__link-url {
  font-size: .7rem;
  color: var(--primary);
  word-break: break-all;
}
.wa-chat__link-btn {
  margin-top: .2rem;
  display: flex;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  border-radius: 8px;
  padding: .35rem 0;
}
.wa-chat__sys {
  align-self: center;
  font-size: .68rem;
  font-weight: 600;
  color: #075E54;
  background: rgba(7, 94, 84, .1);
  border-radius: 999px;
  padding: .25rem .7rem;
}
/* ---------- QR de la pasarela ---------- */
.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-inline: auto;
  text-align: center;
}
.qr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
}
.qr-card__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}
.qr-card__live {
  font-size: .68rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(25, 184, 121, .1);
  border-radius: 999px;
  padding: .2rem .55rem;
}
.qr-card__live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: .35rem;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(25, 184, 121, .5);
  animation: qr-live-pulse 2s ease infinite;
}
@keyframes qr-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 184, 121, .5); }
  70% { box-shadow: 0 0 0 6px rgba(25, 184, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 184, 121, 0); }
}
.qr-card__code {
  position: relative;
  width: 200px;
  height: 200px;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.qr-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  image-rendering: pixelated;
}
.qr-card__code::before,
.qr-card__code::after {
  display: none;
  content: none;
}
.qr-card__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 5px #fff, 0 2px 8px rgba(0, 0, 0, .12);
  z-index: 1;
}
.qr-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}
.qr-card__amount strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}
.qr-card__methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
  margin-top: .7rem;
}
.qr-card__methods span {
  font-size: .66rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--lavender);
  border-radius: 7px;
  padding: .2rem .45rem;
}
.qr-card__hint {
  margin-top: .7rem;
  font-size: .7rem;
  color: var(--text-muted);
}

/* ---------- Plataformas / tiendas virtuales ---------- */
.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: 2rem;
}
.shop {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.shop:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 49, 167, .45);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .checkout__fields { flex-wrap: wrap; }
  .checkout__input { flex: 1 1 100%; }
  .wa-chat__msg, .wa-chat__link { max-width: 92%; }
  .qr-card__code { width: 168px; height: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop { transition: none; }
  .qr-card__live::before { animation: none; }
}
/* ---------- Ajustes sueltos ---------- */
.hero__content { position: relative; z-index: 2; }
.tap-phone__lock,
.ivr-screen__lock { font-size: .66rem; font-weight: 600; color: rgba(255, 255, 255, .8); }

/* ---------- Botón flotante: volver arriba ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(130, 49, 167, .35);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(130, 49, 167, .4);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .back-to-top { right: 14px; bottom: 18px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; transform: none; }
}

/* ---------- Botón flotante: bajar (scroll down) ---------- */
.back-to-top--down {
  bottom: auto;
  top: 5.6rem; /* below sticky header */
  background: var(--midnight);
  box-shadow: 0 8px 24px rgba(33, 19, 41, .35);
}
.back-to-top--down:hover {
  background: #3a2745;
  transform: translateY(3px) scale(1.05);
}
@media (max-width: 640px) {
  .back-to-top--down { top: 5.2rem; }
}
.blog-site .back-to-top--down {
  top: 5.6rem;
}

/* ---------- Blog ---------- */
.blog-main { min-height: 60vh; }
.blog-index .blog-main { padding-top: 0; }
.blog-post-page .blog-main { padding-top: 0; }

.blog-hero {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 4.2rem;
}
.blog-hero__overlay {
  background:
    linear-gradient(105deg,
      rgba(250, 247, 252, 0.96) 0%,
      rgba(250, 247, 252, 0.88) 36%,
      rgba(245, 240, 250, 0.55) 68%,
      rgba(245, 240, 250, 0.28) 100%),
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(130, 49, 167, 0.12), transparent 60%);
}
.blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}
.blog-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .92;
  color: #121014;
  margin: 0 0 .55rem;
}
.blog-hero__title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.blog-hero__sub {
  color: #3a3340;
  max-width: 32rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 720px) {
  .blog-hero { min-height: auto; padding: 6.2rem 0 3rem; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface, #fff);
  border: 1px solid rgba(32, 26, 36, .08);
  border-radius: 1rem;
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(32, 26, 36, .08);
}
.blog-card__date {
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
  flex: 1;
}
.blog-card__more {
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
  text-decoration: none;
}
.blog-empty { color: var(--text-muted); }
.blog-article { padding-bottom: 4rem; }
.blog-post-mast {
  position: relative;
  overflow: hidden;
  padding: 6.4rem 0 2.75rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(168, 85, 212, .22) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(54, 137, 245, .12) 0%, transparent 50%),
    linear-gradient(145deg, #1a0f22 0%, #2a1638 42%, #551d70 100%);
  color: #fff;
  isolation: isolate;
}
.blog-post-mast__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 212, .35) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: blog-mast-glow 7s ease-in-out infinite alternate;
}
.blog-post-mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 28%),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 11px,
      rgba(255,255,255,.015) 11px,
      rgba(255,255,255,.015) 12px
    );
  pointer-events: none;
  z-index: 0;
}
@keyframes blog-mast-glow {
  from { transform: translate(0, 0) scale(1); opacity: .85; }
  to { transform: translate(-6%, 8%) scale(1.08); opacity: 1; }
}
.blog-post-mast__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.blog-post-mast__back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.blog-post-mast__back:hover {
  color: #fff;
  transform: translateX(-2px);
}
.blog-post-mast__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.blog-post-mast__chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.blog-post-mast__chip--soft {
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  background: rgba(0, 0, 0, .18);
}
.blog-post-mast__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.blog-article__inner {
  max-width: 46rem;
  padding-top: 2rem;
}
.blog-article__inner--has-cover { padding-top: 0; }
.blog-article__inner--has-cover .blog-article__cover {
  margin-top: -1.6rem;
  margin-bottom: 2rem;
  box-shadow:
    0 24px 48px -20px rgba(33, 19, 41, .45),
    0 0 0 1px rgba(255, 255, 255, .08);
}
.blog-article__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1a151f;
}
.blog-article__body p { margin: 0 0 1.1rem; }
.blog-article__body h2,
.blog-article__body h3 {
  font-family: var(--font-display);
  margin: 1.8rem 0 .8rem;
}
.blog-article__body ul,
.blog-article__body ol { margin: 0 0 1.1rem 1.2rem; }
.blog-article__body a { color: var(--primary); }
.blog-article__body img { max-width: 100%; height: auto; border-radius: .75rem; }

.blog-card { overflow: hidden; padding: 0; }
.blog-card__cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #efe8f4;
}
.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card__cover img { transform: scale(1.04); }
.blog-card__date,
.blog-card__title,
.blog-card__excerpt,
.blog-card__meta {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.blog-card__date { padding-top: 1.15rem; }
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-bottom: 1.35rem;
}
.blog-card__likes { color: var(--primary); font-size: .88rem; font-weight: 600; }
.blog-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}
.blog-card__views {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
}
.blog-article__cover {
  margin: 0 0 1.8rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #efe8f4;
}
.blog-article__cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .blog-post-mast { padding: 5.6rem 0 2.1rem; }
  .blog-article__inner--has-cover .blog-article__cover {
    margin-top: -1rem;
    border-radius: 1rem;
  }
}
.blog-engage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(32, 26, 36, .08);
}
.blog-like-btn,
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(130, 49, 167, .28);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: .55rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.blog-like-btn__heart { color: var(--primary); font-size: 1.1rem; line-height: 1; }
.blog-like-btn.is-liked {
  background: rgba(130, 49, 167, .12);
  border-color: var(--primary);
  color: var(--primary);
}
.blog-like-btn:hover,
.blog-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-share { position: relative; }
.blog-share-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + .55rem);
  left: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid rgba(32, 26, 36, .1);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(32, 26, 36, .14);
  padding: .55rem;
  z-index: 20;
  gap: .3rem;
}
.blog-share-menu.is-open {
  display: grid;
  animation: blog-share-in .18s ease;
}
.blog-share-menu[hidden] { display: none !important; }
@keyframes blog-share-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.blog-share-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1a151f;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: .55rem .65rem;
  border-radius: .75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.blog-share-item:hover {
  background: rgba(130, 49, 167, .07);
  transform: translateX(2px);
}
.blog-share-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 6px 14px rgba(32, 26, 36, .12);
}
.blog-share-item__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.blog-share-item--wa .blog-share-item__icon { background: linear-gradient(145deg, #25D366, #128C7E); }
.blog-share-item--li .blog-share-item__icon { background: linear-gradient(145deg, #0A66C2, #004182); }
.blog-share-item--fb .blog-share-item__icon { background: linear-gradient(145deg, #1877F2, #0C63D4); }
.blog-share-item--ig .blog-share-item__icon {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.blog-share-item--copy .blog-share-item__icon { background: linear-gradient(145deg, #8231A7, #5B1F7A); }
.blog-share-item.is-copied .blog-share-item__icon { background: linear-gradient(145deg, #16a34a, #15803d); }
