/* ==========================================================================
   CROEM — Sistema de diseño
   Identidad oficial (Brand Book CROEM inc):
   Principal: Rojo #D50037 (Pantone 206 C) + Carbón #3D4543 (Pantone 446 C)
   Secundarios: #101820, #402020, #F93549, #F6DADF
   Auxiliares: #BFB800, #009ABF, #00698F, #DCE3EB
   Tipografía: TT Norms Pro (títulos) + Raleway (cuerpo, auxiliar de marca)
   ========================================================================== */

/* --- Fuentes de marca (self-host, woff2) --- */
@font-face {
  font-family: 'TT Norms Pro'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/TT Norms Pro Light.woff2') format('woff2');
}
@font-face {
  font-family: 'TT Norms Pro'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/TT Norms Pro Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'TT Norms Pro'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/TT Norms Pro Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'TT Norms Pro'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/TT Norms Pro Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Raleway-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Raleway-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Raleway-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Raleway-Bold.woff2') format('woff2');
}

:root {
  /* Marca — principal */
  --croem-ink: #3d4543;         /* Pantone 446 C */
  --croem-ink-deep: #101820;    /* Pantone Black 6 C */
  --croem-red: #d50037;         /* Pantone 206 C */
  --croem-red-light: #f93549;   /* Pantone 1787 C */
  --croem-red-dark: #b3002f;

  /* Secundarios / auxiliares oficiales */
  --croem-blush: #f6dadf;       /* Pantone 705 C */
  --croem-cyan: #009abf;        /* Pantone 7703 C */
  --croem-blue: #00698f;        /* Pantone 7706 C */

  /* Neutros */
  --croem-text: #2b302f;
  --croem-muted: #5b6360;
  --croem-line: #e7e9e9;
  --croem-bg: #ffffff;
  --croem-bg-alt: #f7f7f8;
  --croem-bg-subtle: #fafbfc;
  --croem-surface-top: #f8f9fb;
  --croem-border-subtle: #e9ecef;
  --croem-bg-ink: #101820;      /* negro oficial de marca */
  --croem-success: #2d8a5f;     /* verde éxito — badges, LIVE */
  --croem-success-ink: #1f6b47;

  /* Gradiente de marca */
  --croem-gradient: linear-gradient(120deg, #f93549 0%, #d50037 100%);
  --croem-gradient-ink: linear-gradient(160deg, #3d4543 0%, #101820 100%);

  /* Sistema */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(43, 48, 47, .06);
  --shadow: 0 18px 50px rgba(43, 48, 47, .10);
  --shadow-red: 0 16px 40px rgba(213, 0, 55, .28);
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: 180ms cubic-bezier(.22, 1, .36, 1);

  /* Escala de espaciado — landing enterprise */
  --space-section-y: clamp(40px, 5vw, 68px);
  --space-section-y-landing: clamp(34px, 4.2vw, 52px);
  --space-section-y-landing-first: clamp(28px, 3.5vw, 44px);
  --space-section-y-landing-emphasis: clamp(40px, 4.8vw, 60px);
  --space-title-bottom: clamp(22px, 2.8vw, 34px);
  --space-grid-gap: 24px;
  --space-grid-gap-lg: 32px;
  --space-col-gap: clamp(32px, 5vw, 64px);

  --ff-head: 'TT Norms Pro', 'Tw Cen MT', system-ui, sans-serif;
  --ff-body: 'Raleway', system-ui, sans-serif;
}

/* Reset base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h, 32px) + 68px); }
html.header-scrolled { scroll-padding-top: calc(68px + 8px); }
body {
  margin: 0;
  padding-top: var(--topbar-h, 32px);
  font-family: var(--ff-body);
  color: var(--croem-text);
  background: var(--croem-bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--croem-red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--croem-red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--croem-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Utilidades */
.section { padding: var(--space-section-y) 0; }
.section--alt { background: var(--croem-bg-alt); }
.section--ink { background: var(--croem-bg-ink); color: #d8dad9; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--cta {
  padding: var(--space-section-y) 0;
  background: var(--croem-bg-subtle);
}
.section--cta .container { max-width: var(--container); }
.section--cta .cta-band {
  max-width: 56rem;
  margin-inline: auto;
  box-shadow:
    0 16px 48px rgba(16, 24, 32, .14),
    0 4px 12px rgba(16, 24, 32, .06);
}
.text-red { color: var(--croem-red) !important; }
.bg-red { background: var(--croem-red) !important; }
.lead-muted { color: var(--croem-muted); font-size: 1.15rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--croem-red);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--croem-red); border-radius: 2px; }

.section-title { max-width: 720px; margin: 0 auto var(--space-title-bottom); text-align: center; }
.section-title .eyebrow { justify-content: center; }
.section-title p { color: var(--croem-muted); font-size: 1.12rem; margin-bottom: 0; }

/* Botones — enterprise (sin pill, sin sombra roja) */
.btn {
  font-family: var(--ff-head); font-weight: 600; font-size: .875rem;
  border-radius: 10px; padding: .65rem 1.1rem; border: 1.5px solid transparent;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; line-height: 1.2; min-height: 40px;
}
.btn:focus-visible { outline: 2px solid var(--croem-red); outline-offset: 2px; }
.btn i { font-size: 1.05em; }
.btn-primary {
  background: var(--croem-red); color: #fff; border-color: var(--croem-red);
  box-shadow: none;
}
.btn-primary:hover { color: #fff; background: var(--croem-red-dark); border-color: var(--croem-red-dark); }
.btn-outline { background: transparent; color: var(--croem-ink); border-color: var(--croem-line); }
.btn-outline:hover { border-color: var(--croem-ink); color: var(--croem-ink); background: var(--croem-bg-alt); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { padding: .75rem 1.35rem; font-size: .9375rem; min-height: 44px; }
.btn-sm { padding: .5rem .85rem; font-size: .8125rem; min-height: 34px; }

/* ==========================================================================
   Top bar + Navbar
   ========================================================================== */
:root { --topbar-h: 32px; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: var(--croem-surface-top);
  color: #454e4c;
  font-size: .78rem;
  transform: translateY(0); opacity: 1;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
  border-bottom: 1px solid var(--croem-border-subtle);
}
body.header-scrolled .topbar {
  transform: translateY(-100%); opacity: 0; pointer-events: none;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 32px; flex-wrap: wrap; }
.topbar a { color: #454e4c; font-weight: 500; transition: color var(--ease-ui); }
.topbar a:hover { color: var(--croem-ink); }
.topbar .tb-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar .tb-info span { color: #3d4543; }
.topbar .tb-info span i { color: rgba(61, 69, 67, .58); margin-right: .45rem; font-size: .88em; font-weight: 400; }
.topbar .tb-right { display: flex; gap: .9rem; align-items: center; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 500; font-size: .75rem;
  letter-spacing: .04em;
}
.lang-switch a {
  color: #454e4c; padding: .15rem .5rem; border-radius: 999px; line-height: 1.2;
  transition: color var(--ease-ui), background-color var(--ease-ui);
}
.lang-switch a:hover { color: var(--croem-ink); background: transparent; }
.lang-switch a.active,
.lang-switch a[aria-current="true"] {
  color: var(--croem-ink);
  background: rgba(61, 69, 67, .1);
  font-weight: 600;
}
.lang-sep { display: none; }
.topbar .tb-info .lang-pci { /* alias */ }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--croem-line);
  transition: box-shadow .22s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { position: relative; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 1.5rem; }
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--ff-head); font-weight: 500; font-size: .875rem; color: var(--croem-ink);
  padding: .375rem .75rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .25rem;
  line-height: 1.2; transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a,
.nav-menu > li.has-mega:hover > a,
.nav-menu > li.has-mega.is-mega-open > a,
.nav-menu > li.has-mega:focus-within > a { color: var(--croem-red); }
.nav-menu .caret { font-size: .65rem; opacity: .7; transition: transform .2s var(--ease); }
.nav-menu li:hover .caret,
.nav-menu li.open > a .caret,
.nav-menu li:focus-within > a .caret { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; margin-left: .5rem; }
.nav-aux {
  display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0;
  max-width: 0; opacity: 0; overflow: hidden;
  pointer-events: none;
  transition: max-width .22s var(--ease), opacity .22s var(--ease);
}
body.header-scrolled .nav-aux {
  max-width: 280px; opacity: 1; pointer-events: auto;
}
.nav-aux .lang-switch--nav {
  font-size: .72rem; gap: .45rem; font-weight: 500; letter-spacing: .04em;
}
.nav-aux .lang-switch--nav a {
  color: #5b6360; padding: .15rem .45rem; line-height: 1.2; border-radius: 999px;
  min-width: auto; text-align: center;
  transition: color var(--ease-ui), background-color var(--ease-ui);
}
.nav-aux .lang-switch--nav a:hover { color: var(--croem-ink); }
.nav-aux .lang-switch--nav a.active,
.nav-aux .lang-switch--nav a[aria-current="true"] {
  color: var(--croem-ink); font-weight: 600;
  background: rgba(61, 69, 67, .08);
}
.nav-aux .lang-switch--nav .lang-sep { display: none; }
.nav-advisor {
  font-family: var(--ff-head); font-weight: 500; font-size: .8125rem;
  color: var(--croem-muted); white-space: nowrap;
  transition: color .18s var(--ease); line-height: 1.2;
}
.nav-advisor:hover { color: var(--croem-ink); }
.nav-cta .btn-primary {
  padding: .5rem 1.05rem; font-size: .8125rem; min-height: 36px; font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(16,24,32,.10);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--croem-ink); cursor: pointer; padding: .25rem; }

/* ---- Mega menú unificado (plataforma enterprise) ---- */
.nav-menu > li.has-mega { position: static; }
.nav-menu > li.has-mega--end .mega { left: auto; right: 0; transform: translate(0, 6px); }
.nav-menu > li.has-mega--end:hover > .mega,
.nav-menu > li.has-mega--end.is-mega-open > .mega,
.nav-menu > li.has-mega--end:focus-within > .mega,
.nav-menu > li.has-mega--end.open > .mega { transform: translate(0, 0); }

.mega {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px);
  width: min(1000px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--croem-line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,32,.09);
  padding: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 1200;
}
/* Puente invisible entre navbar item y panel — evita cierre al cruzar el gap */
.mega::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.mega--compact { width: min(460px, calc(100vw - 40px)); }
.mega--compact .mega-col { padding: 14px 18px; }
.mega--compact .mega-col-label--spaced { margin-top: 10px; }
.mega--compact .mega-links--compact { gap: 0; }
.mega--compact .mega-links--compact a {
  min-height: 34px; padding: 5px 8px;
}
.nav-menu > li.has-mega:hover > .mega,
.nav-menu > li.has-mega.is-mega-open > .mega,
.nav-menu > li.has-mega:focus-within > .mega,
.nav-menu > li.has-mega.open > .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}

.mega-inner { display: grid; gap: 0; }
.mega-inner--4 { grid-template-columns: 1.1fr 1fr 1fr 1.12fr; }
.mega-inner--3 { grid-template-columns: repeat(3, 1fr); }
.mega-inner--2 { grid-template-columns: repeat(2, 1fr); }
.mega-inner--1 { grid-template-columns: 1fr; }

.mega-col { padding: 20px; border-right: 1px solid var(--croem-line); }
.mega-col:last-child { border-right: none; }
/* Sin divisor antes del panel Featured — el gris queda continuo */
.mega-inner--4 > .mega-col:nth-child(3) { border-right: none; }
.mega-col-label {
  display: block; font-family: var(--ff-head); font-size: .6875rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--croem-muted); margin-bottom: 6px;
}
.mega-col-label--spaced { margin-top: 12px; }

/* Plataforma padre — jerarquía dominante */
.mega-platform { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--croem-line); }
.mega-platform__link { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; }
.mega-platform__icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  font-size: 17px; line-height: 1; border-radius: 8px; color: var(--croem-ink);
  background: var(--croem-bg-alt); border: 1px solid var(--croem-line);
  transition: color var(--ease-ui), border-color var(--ease-ui);
}
a.mega-platform__link:hover .mega-platform__icon { color: var(--croem-red); border-color: rgba(214,31,38,.24); }
.mega-platform__body { min-width: 0; }
.mega-platform__name {
  display: block; font-family: var(--ff-head); font-size: 1.0625rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 2px;
}
a.mega-platform__link:hover .mega-platform__name { color: var(--croem-red); }
.mega-platform__desc {
  display: block; margin: 0; font-size: .75rem; font-weight: 400; line-height: 1.4; color: #6d7572; font-family: var(--ff-body);
}

/* Capacidades — segundo nivel (fila clicable estilo Stripe) */
.mega-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mega-caps--tight { gap: 1px; }
.mega-cap { display: block; }
.mega-cap__link {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px;
  text-decoration: none; transition: background-color var(--ease-ui);
}
.mega-cap__link:hover { background: var(--croem-bg-alt); }
.mega-cap__icon {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  font-size: 17px; line-height: 1; color: rgba(91,99,96,.66); transition: color var(--ease-ui);
}
.mega-cap__link:hover .mega-cap__icon { color: var(--croem-red); }
.mega-cap__text { flex: 1; min-width: 0; display: block; }
.mega-cap__name {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ff-head); font-size: .8125rem; font-weight: 500; color: var(--croem-ink);
  line-height: 1.3; transition: color var(--ease-ui);
}
.mega-cap__link:hover .mega-cap__name { color: var(--croem-red); }
.mega-cap__desc {
  display: block; margin: 0; font-size: .75rem; font-weight: 400; line-height: 1.35; color: #727a77; font-family: var(--ff-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-cap__arrow {
  flex: none; font-size: 15px; line-height: 1; color: var(--croem-muted);
  opacity: 0; transform: translateX(-3px);
  transition: opacity var(--ease-ui), transform var(--ease-ui), color var(--ease-ui);
}
.mega-cap__link:hover .mega-cap__arrow { opacity: 1; transform: translateX(0); color: var(--croem-red); }

/* Badge "Coming soon" — muted, alineado a la derecha */
.mega-badge {
  margin-left: auto; flex: none;
  font-family: var(--ff-head); font-size: .5625rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--croem-muted);
  background: rgba(91,99,96,.08); border: 1px solid var(--croem-line);
  padding: 1px 6px; border-radius: 999px; line-height: 1.5; white-space: nowrap;
}
.mega-badge::after { content: "Pronto"; }
html[lang="en"] .mega-badge::after { content: "Soon"; }
.mega-subs .mega-badge { font-size: .5rem; padding: 0 5px; }
/* Filas Developers con badge — título a la izquierda, badge a la derecha, desc abajo */
.mega-links a > span:has(.mega-badge),
.mega-links__disabled > span:has(.mega-badge) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
}
.mega-links a > span:has(.mega-badge) > small,
.mega-links__disabled > span:has(.mega-badge) > small {
  grid-column: 1 / -1;
}
.mega-badge--inline,
.mega-links .mega-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  flex: none;
  width: auto;
  max-width: none;
  font-size: .5rem;
  padding: 1px 6px;
  line-height: 1.4;
}

.mega-cap.is-soon .mega-cap__icon { color: rgba(91,99,96,.5); }
/* Sin texto "Coming soon" en descripciones — solo .mega-badge en el título */
.mega-cap.is-soon .mega-cap__desc::after,
.mega-subs a::after,
.mega-links__soon span small::after,
a.mega-links__soon span small::after,
.mega-links__disabled span small::after,
a.mega-links__disabled span small::after {
  content: none !important;
}

/* Estados deshabilitados (columnas de enlaces) */
.mega-links__disabled,
a.mega-links__disabled {
  opacity: .45; pointer-events: none; user-select: none; cursor: default;
}

/* Foco visible por item (accesibilidad) */
.mega a:focus-visible,
.mega-cap__link:focus-visible,
.mega-platform__link:focus-visible,
.mega-foot a:focus-visible {
  outline: 2px solid var(--croem-red); outline-offset: 2px; border-radius: 8px;
}

/* Coming-soon landing */
.coming-soon-hero .coming-soon-category {
  color: var(--croem-red-light); font-family: var(--ff-head); font-weight: 600;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: .5rem 0 0;
}
.coming-soon-hero h1 { max-width: 900px; }
.coming-soon-hero .hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 12px; }

/* Sub-productos — tercer nivel */
.mega-subs { list-style: none; margin: 0 0 2px 35px; padding: 2px 0 2px 12px; display: grid; gap: 0; border-left: 1px solid var(--croem-line); }
.mega-subs a {
  display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: .75rem; font-weight: 400; color: #727a77;
  font-family: var(--ff-body); transition: color var(--ease-ui); line-height: 1.35;
}
.mega-subs a:hover { color: var(--croem-red); }
a.mega-subs__disabled,
.mega-subs a.mega-subs__disabled {
  display: block; padding: 2px 0; font-size: .75rem; font-weight: 500; color: var(--croem-muted);
  font-family: var(--ff-head); line-height: 1.35; text-decoration: none;
}

/* Enlaces — Soluciones / Developers / Empresa */
.mega-icon {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  font-size: 18px; line-height: 1; color: rgba(91, 99, 96, .72); margin-top: 0;
}
.mega-links--compact .mega-icon { margin-top: 0; }
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mega-links a,
.mega-links__disabled,
a.mega-links__disabled {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  font-family: var(--ff-head); transition: background var(--ease-ui), color var(--ease-ui);
  text-decoration: none;
}
.mega-links a { color: var(--croem-ink); font-weight: 500; font-size: .8125rem; cursor: pointer; }
.mega-links a:hover { background: var(--croem-bg-alt); color: var(--croem-ink); }
.mega-links a:hover .mega-icon { color: var(--croem-red); }
.mega-links a span,
.mega-links__disabled span,
a.mega-links__disabled span { display: block; line-height: 1.3; flex: 1; min-width: 0; padding-top: 0; }
.mega-links a span small,
.mega-links__disabled span small,
a.mega-links__disabled span small {
  display: block; font-weight: 400; color: #727a77; font-size: .75rem;
  margin-top: 2px; font-family: var(--ff-body); line-height: 1.35;
}
.mega-links--compact { gap: 0; }
.mega-links--compact a,
.mega-links--compact .mega-links__disabled,
.mega-links--compact a.mega-links__disabled {
  align-items: center; min-height: 34px; padding: 5px 8px;
}
.mega-links--compact a span,
.mega-links--compact .mega-links__disabled span,
.mega-links--compact a.mega-links__disabled span { padding-top: 0; }
.mega-links__disabled,
a.mega-links__disabled { color: var(--croem-muted); font-weight: 500; font-size: .8125rem; }

.mega-featured {
  background: var(--croem-bg-alt); padding: 20px; border-radius: 0 12px 12px 0;
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-start;
}
.mega-featured h4 { font-size: .875rem; margin: 0; font-family: var(--ff-head); font-weight: 600; }
.mega-featured p { margin: 0; font-size: .75rem; color: #727a77; line-height: 1.5; }
.mega-featured .btn { align-self: flex-start; margin-top: 4px; }

.mega-foot {
  border-top: 1px solid var(--croem-line); padding: 10px 20px; min-height: 38px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .75rem; color: var(--croem-muted);
}
.mega-foot--cta { justify-content: flex-end; }
.mega-foot a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--croem-ink); font-weight: 500; font-family: var(--ff-head); font-size: .8125rem;
  padding: 5px 10px; margin: -5px -10px; border-radius: 6px;
  transition: color var(--ease-ui), background-color var(--ease-ui);
}
.mega-foot a:hover { color: var(--croem-red); background: var(--croem-bg-alt); }
.mega-foot a i { font-size: 1rem; line-height: 1; transition: transform var(--ease-ui); }
.mega-foot a:hover i { transform: translateX(2px); }

@media (max-width: 1199px) and (min-width: 992px) {
  .mega { width: min(820px, calc(100vw - 32px)); }
  .mega-inner--4 { grid-template-columns: 1fr 1fr; }
  .mega-inner--4 .mega-col:nth-child(2) { border-right: none; }
  .mega-featured { border-radius: 0 0 12px 12px; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .mega-featured p { flex: 1 1 200px; margin: 0; }
  body.header-scrolled .nav-aux { gap: 1rem; }
}

/* Mega menú — overlay de enfoque (desktop, estilo Stripe) */
.mega-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(16, 24, 32, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .mega-overlay {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}
.mega-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 992px) {
  .mega-overlay { display: block; }
}

/* Menú móvil — oculto por defecto en desktop */
.mobile-nav,
.nav-backdrop {
  display: none;
}

@media (max-width: 991px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .mega { display: none !important; }
  body.header-scrolled .nav-aux { max-width: 140px; gap: .75rem; }
  .nav-advisor { display: none; }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(16,24,32,.45); z-index: 1090;
    opacity: 0; visibility: hidden; transition: .25s; pointer-events: none;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

  .mobile-nav {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: #fff; z-index: 1100; transform: translateX(100%); transition: transform .3s var(--ease);
    padding: 20px 20px 32px; box-shadow: -20px 0 60px rgba(0,0,0,.15); overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav .close-btn { background: none; border: none; font-size: 1.6rem; color: var(--croem-ink); float: right; cursor: pointer; padding: .25rem; }
  .mobile-nav > ul { list-style: none; padding: 0; margin: 2.25rem 0 0; clear: both; }
  .mobile-nav > ul > li { border-bottom: 1px solid var(--croem-line); }
  .mobile-nav > ul > li > a {
    display: block; padding: .9rem 0; font-family: var(--ff-head); font-weight: 600; color: var(--croem-ink);
  }
  .mobile-nav .sub {
    display: grid; gap: .15rem; padding: 0 0 .85rem .75rem;
  }
  .mobile-nav .sub a {
    display: block; padding: .4rem 0; font-weight: 500; color: var(--croem-muted); font-size: .9rem;
  }
  .mobile-nav .sub .group-label {
    font-family: var(--ff-head); font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--croem-muted); margin: .65rem 0 .25rem;
  }
  .mobile-nav .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(32px, 4.6vw, 52px) 0 clamp(52px, 6.2vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle at center, rgba(249,53,73,.10), transparent 62%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-col-gap); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
.hero h1 span { background: var(--croem-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--croem-muted); max-width: 52ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 0; }
.hero-visual { position: relative; background: transparent; padding: 0; border: none; box-shadow: none; }
@media (min-width: 992px) {
  .hero-visual {
    align-self: start;
    margin-top: 2.35rem;
    margin-left: 0;
  }
}
.hero-visual img,
.ov-media img {
  display: block; max-width: 100%; height: auto;
  border: none; box-shadow: none; background: transparent;
  border-radius: var(--radius-lg);
}

/* Gateway Panel — Hero (CROEM Gateway live preview) */
.gateway-panel {
  --gw-row-h: 2.75rem;
  width: 100%; max-width: 620px; margin-inline: auto;
}
.gateway-panel__card {
  background: #fff;
  border: 1px solid rgba(226, 230, 229, .95);
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(43, 48, 47, .07), 0 2px 8px rgba(43, 48, 47, .04);
  padding: 28px 30px 26px;
  height: auto; min-height: 0; max-height: none;
  display: flex; flex-direction: column; box-sizing: border-box;
  overflow: hidden;
}
.gateway-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex: none; margin-bottom: 26px;
}
.gateway-panel__head-main {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.gateway-panel__title {
  font-family: var(--ff-head); font-size: 1.0625rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.02em;
}
.gateway-panel__meta {
  font-family: var(--ff-head); font-size: .625rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: #929896;
}
.gateway-panel__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-size: .6875rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #4a524f;
}
.gateway-panel__live-dot {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  flex: none;
}
.gateway-panel__live-dot::before,
.gateway-panel__live-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--croem-success);
  transform: translateZ(0);
}
.gateway-panel__live-dot::before {
  /* Núcleo sólido — nunca se anima */
  z-index: 1;
}
.gateway-panel__live-dot::after {
  z-index: 0;
  opacity: 0;
  animation: gateway-live-ripple 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
@keyframes gateway-live-ripple {
  0% {
    transform: translateZ(0) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 0.3;
  }
  36% {
    transform: translateZ(0) scale(2.5);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) scale(2.5);
    opacity: 0;
  }
}
.gateway-panel__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  flex: none; margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--croem-line);
}
.gateway-panel__metric {
  min-width: 0; padding: 0 18px;
  border-left: 1px solid rgba(223, 227, 226, .85);
}
.gateway-panel__metric:first-child { padding-left: 0; border-left: none; }
.gateway-panel__metric:last-child { padding-right: 0; }
.gateway-panel__metric-head {
  display: flex; align-items: baseline; gap: 6px; min-width: 0;
}
.gateway-panel__metric-value {
  display: block; font-family: var(--ff-head); font-size: 1.375rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.025em; line-height: 1.15;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity 280ms var(--ease);
}
.gateway-panel__metric-value.is-updating { opacity: .45; }
.gateway-panel__metric-trend {
  display: inline-flex; align-items: center; gap: 1px; flex: none;
  font-family: var(--ff-head); font-size: .625rem; font-weight: 600;
  color: #4a7a5f; letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.gateway-panel__metric-trend i { font-size: .7rem; line-height: 1; }
.gateway-panel__metric-label {
  display: block; margin-top: 6px; font-size: .625rem; font-weight: 600;
  color: #727a77; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase;
}
.gateway-panel__feed {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
}
.gateway-panel__row {
  display: grid;
  grid-template-columns: minmax(4.25rem, 1.15fr) minmax(2.25rem, .7fr) minmax(2rem, .65fr) minmax(4.5rem, 1fr) minmax(2.75rem, .7fr);
  align-items: center; gap: 14px;
  height: var(--gw-row-h); min-height: var(--gw-row-h); max-height: var(--gw-row-h);
  padding: 3px 4px; box-sizing: border-box;
  font-size: .8125rem; line-height: 1.2;
}
.gateway-panel__row--head {
  height: 2rem; min-height: 2rem; max-height: 2rem;
  margin-bottom: 4px; flex: none;
}
.gateway-panel__row--head .gateway-panel__cell {
  font-family: var(--ff-head); font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #727a77;
}
.gateway-panel__body {
  position: relative; overflow: hidden; flex: none;
  height: calc(var(--gw-row-h) * 5);
  min-height: calc(var(--gw-row-h) * 5);
  max-height: calc(var(--gw-row-h) * 5);
}
.gateway-panel__row:not(.gateway-panel__row--head) {
  border-top: 1px solid rgba(231, 233, 233, .85);
}
.gateway-panel__body .gateway-panel__row:first-child { border-top: none; }
.gateway-panel__cell {
  min-width: 0; display: flex; align-items: center;
}
.gateway-panel__cell--right { justify-content: flex-end; text-align: right; }
.gateway-panel__status-badge {
  display: inline-flex; align-items: center;
  padding: .18rem .45rem; border-radius: 999px;
  background: rgba(45, 138, 95, .08); color: #4a7a5f;
  font-family: var(--ff-head); font-size: .5625rem; font-weight: 600;
  letter-spacing: .05em; line-height: 1.2; white-space: nowrap;
}
.gateway-panel__status-badge--declined {
  background: rgba(213, 0, 55, .08); color: var(--croem-red);
}
.gateway-panel__brand {
  justify-content: flex-start;
  font-family: var(--ff-head); font-size: .8125rem; font-weight: 600;
  letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
}
.gateway-panel__brand--visa { color: var(--croem-ink); }
.gateway-panel__brand--mc { color: var(--croem-ink); }
.gateway-panel__brand--amex { color: var(--croem-ink); }
.gateway-panel__channel {
  color: #4a524f; font-family: var(--ff-head); font-size: .6875rem;
  font-weight: 500; letter-spacing: .03em; line-height: 1.2; white-space: nowrap;
}
.gateway-panel__amount {
  font-family: var(--ff-head); font-weight: 600; color: var(--croem-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.gateway-panel__latency {
  font-family: var(--ff-head); font-weight: 500; color: #727a77;
  font-variant-numeric: tabular-nums;
}
.gateway-panel__row--new {
  background-color: #fff;
  border-left: 3px solid var(--croem-red);
  padding-left: 8px; margin-left: -3px;
  box-shadow: 0 2px 12px rgba(43, 48, 47, .07);
  transition: box-shadow 2.4s ease, border-left-color 2.4s ease;
}
.gateway-panel__row--exit { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .gateway-panel__live-dot::after { animation: none !important; opacity: 0 !important; }
  .gateway-panel__row--new { box-shadow: none !important; border-left-color: transparent !important; }
}

.ov-media {
  position: relative; background: transparent; padding: 0;
  border: none; box-shadow: none;
}
.hero-badge {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem; font-family: var(--ff-head);
}
.hero-badge i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--croem-gradient); color: #fff; font-size: 1.2rem; }
.hero-badge b { display: block; font-size: 1.1rem; color: var(--croem-ink); line-height: 1; }
.hero-badge small { color: var(--croem-muted); font-weight: 600; font-size: .78rem; }
.hero-badge.b1 { top: 9%; left: -2.5%; }
.hero-badge.b2 { bottom: 14%; right: -2%; }

/* Trust Bar — transición Hero → landing */
.trustbar {
  position: relative;
  width: 100%;
  min-height: 52px;
  max-height: 56px;
  background: #f8f9f9;
  border-top: 1px solid rgba(210, 214, 212, .75);
  border-bottom: 1px solid rgba(210, 214, 212, .75);
}
.trustbar .container {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  max-height: 56px;
  padding-block: 0;
}
.trustbar__rule { display: none; }
.trustbar__list {
  list-style: none; margin: 0; padding: 0;
  width: 100%;
  display: flex; align-items: center; justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: 0;
}
.trustbar__item {
  position: relative;
  display: inline-flex; align-items: center;
  gap: .45rem; flex: 0 0 auto;
  font-family: var(--ff-head); font-size: .75rem; font-weight: 500;
  color: #4a524f; line-height: 1.2; text-align: left;
  white-space: nowrap;
  opacity: .86;
  transition: opacity 180ms var(--ease-ui), color 180ms var(--ease-ui);
}
.trustbar__item:not(:last-child)::after {
  content: none;
}
.trustbar__item:hover { opacity: 1; color: var(--croem-ink); }
.trustbar__icon {
  flex: none; width: 1rem; text-align: center;
  font-size: .9rem; line-height: 1;
  color: var(--croem-red); opacity: .72;
  transition: opacity 180ms var(--ease-ui);
}
.trustbar__item:hover .trustbar__icon { opacity: .9; }

@media (max-width: 991px) {
  .trustbar .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trustbar .container::-webkit-scrollbar { display: none; }
  .trustbar__list {
    flex-wrap: nowrap; justify-content: flex-start;
    gap: 1.25rem 1.75rem;
    width: max-content; min-width: 100%;
    padding-inline: 2px;
  }
  .trustbar__item {
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .trustbar__item::after { display: none; }
}
@media (max-width: 640px) {
  .trustbar__item { font-size: .6875rem; gap: .4rem; }
  .trustbar__icon { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .trustbar__item, .trustbar__icon { transition: none !important; }
}

/* ==========================================================================
   Cards de valor / features
   ========================================================================== */
.grid { display: grid; gap: var(--space-grid-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.value-card {
  background: #fff; border: 1px solid #dfe3e2; border-radius: var(--radius);
  padding: 2.35rem 1.75rem 2rem; transition: transform var(--ease-ui), box-shadow var(--ease-ui), border-color var(--ease-ui);
  height: 100%; min-height: 100%; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(43, 48, 47, .04);
}
.value-card p { flex: 1; }
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 48, 47, .07);
  border-color: #cfd5d3;
}
.value-card .vc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(213,0,55,.08); color: var(--croem-red); font-size: 1.7rem; margin-bottom: 1.25rem;
  transition: background var(--ease-ui), color var(--ease-ui);
}
.value-card:hover .vc-icon { background: var(--croem-gradient); color: #fff; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.value-card p { color: var(--croem-muted); margin: 0; font-size: .98rem; }

/* Landing — propuesta de valor: iconos con mayor presencia (credibilidad técnica) */
body:has(.hero + .trustbar) #nosotros .value-card {
  padding-top: 2.55rem;
}
body:has(.hero + .trustbar) #nosotros .value-card .vc-icon {
  width: 82px; height: 82px; font-size: 2.4rem; margin-bottom: 1.5rem;
}

/* Landing — ritmo vertical uniforme (solo home con hero + trustbar) */
body:has(.hero + .trustbar) .section {
  padding-block: var(--space-section-y-landing);
}
body:has(.hero + .trustbar) #nosotros.section {
  padding-top: var(--space-section-y-landing-first);
}
body:has(.hero + .trustbar) .section-title {
  margin-bottom: var(--space-title-bottom);
}
body:has(.hero + .trustbar) .section--ink {
  padding-block: var(--space-section-y-landing-emphasis);
}
body:has(.hero + .trustbar) .section--cta {
  padding-block: clamp(44px, 5.5vw, 68px);
  background: var(--croem-bg-subtle);
}
body:has(.hero + .trustbar) .grid { gap: var(--space-grid-gap); }
body:has(.hero + .trustbar) .grid-2 { gap: var(--space-grid-gap-lg) var(--space-col-gap); }

/* Overview alterno imagen + texto */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-col-gap); align-items: center; }
.ov-capabilities {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.25rem;
}
.ov-capabilities li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-family: var(--ff-head); font-weight: 500; font-size: .875rem;
  color: var(--croem-ink); line-height: 1.35;
}
.ov-capabilities li i {
  flex: none; color: var(--croem-red); font-size: 1rem; margin-top: 2px; opacity: .88;
}
@media (max-width: 640px) {
  .ov-capabilities { grid-template-columns: 1fr; }
}
.overview + .overview { margin-top: clamp(48px, 6vw, 90px); }
.overview.reverse .ov-media { order: 2; }
.ov-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.ov-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--croem-ink); }
.ov-list li i { color: var(--croem-red); font-size: 1.2rem; margin-top: 2px; }

/* Solutions tabs */
.tabs-nav { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.tabs-nav button {
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem; padding: .7rem 1.4rem; border-radius: 50px;
  border: 2px solid var(--croem-line); background: #fff; color: var(--croem-ink); cursor: pointer; transition: .25s var(--ease);
}
.tabs-nav button.active { background: var(--croem-ink); color: #fff; border-color: var(--croem-ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }

/* Ecosystem — Product Universe */
.section--gateway {
  border-bottom: 1px solid var(--croem-border-subtle);
}
.section--ecosystem {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f3f4f6 0%, var(--croem-bg-subtle) 50%, #f5f6f8 100%);
  border-top: 1px solid var(--croem-border-subtle);
  border-bottom: 1px solid var(--croem-border-subtle);
}
.section--ecosystem::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 68% 52% at 12% 18%, rgba(249, 53, 73, .045), transparent 68%),
    radial-gradient(ellipse 58% 48% at 90% 78%, rgba(213, 0, 55, .038), transparent 70%);
}
.section--ecosystem > .container { position: relative; z-index: 1; }
.ecosystem {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.ecosystem__header {
  width: 100%; max-width: 42rem; margin: 0 auto; text-align: center;
}
.ecosystem__header .eyebrow { justify-content: center; }
.ecosystem__header h2 { margin-bottom: .65rem; }
.ecosystem__header .lead-muted {
  margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--croem-muted);
}
.ecosystem__card {
  width: min(90%, 100%); max-width: 46rem; margin: 0 auto; margin-top: calc(clamp(1.5rem, 3vw, 2.25rem) + 20px);
  background: #fff; border: 1px solid var(--croem-line); border-radius: var(--radius);
  padding: 1rem 1.5rem .95rem; box-shadow: var(--shadow-sm);
  transition: opacity 320ms var(--ease);
}
.ecosystem__card.is-updating { opacity: 0; }
.ecosystem__card-body {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem 1.5rem;
}
.ecosystem__card-main {
  flex: 1 1 72%; min-width: 0;
}
.ecosystem__card-heading {
  margin: 0 0 .35rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .8125rem; line-height: 1.35;
  letter-spacing: -.01em;
}
.ecosystem__card-cat {
  font-size: inherit; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--croem-red);
}
.ecosystem__card-heading-sep {
  font-size: inherit; font-weight: 500; color: #b8bfbd;
  letter-spacing: 0;
}
.ecosystem__card-title {
  font-size: inherit; font-weight: 600; color: var(--croem-ink);
  letter-spacing: -.01em;
}
.ecosystem__card-desc {
  margin: 0; color: var(--croem-muted); font-size: .9rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ecosystem__card-actions {
  flex: 0 0 auto; margin: 0; align-self: flex-start;
}
.ecosystem__visual {
  position: relative; width: 100%; min-width: 0;
  display: flex; justify-content: center; align-items: center;
  margin-top: clamp(.65rem, 1.5vw, 1.15rem);
}

/* Ecosystem — Financial Flow (spine + branches) */
.ecosystem-flow {
  --flow-col-gap: 1.35rem;
  --flow-branch-gap: 2.15rem;
  --flow-branch-line: 1.85rem;
  --flow-icon-size: 1.125rem;
  position: relative;
  display: flex; justify-content: center; align-items: center;
  width: min(90%, 100%); min-height: 360px;
  padding: .85rem 0 2rem;
  overflow: visible;
}
.ecosystem-flow__bg {
  position: absolute; left: 50%; top: 50%;
  width: min(92%, 36rem); height: 72%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(213, 0, 55, .045), rgba(240, 242, 241, .35) 42%, transparent 72%);
}
.ecosystem-flow__svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: visible;
}
.ecosystem-flow__path--ambient {
  stroke: rgba(213, 0, 55, .18); stroke-width: 2; stroke-linecap: round;
  stroke-opacity: .9;
  transition: d 500ms var(--ease);
}
.ecosystem-flow__path--active {
  stroke: var(--croem-red); stroke-width: 2.5; stroke-linecap: round;
  stroke-opacity: .38; transition: stroke-opacity 650ms var(--ease), stroke-dashoffset 700ms var(--ease), d 500ms var(--ease);
  filter: drop-shadow(0 0 5px rgba(213, 0, 55, .22));
}
.ecosystem-flow.is-path-emphasis .ecosystem-flow__path--active { stroke-opacity: .72; }
.ecosystem-flow__spine {
  position: relative; z-index: 2;
  list-style: none; margin: 0 auto; padding: 6.75rem 0 2.25rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  width: 88%; max-width: 100%;
  gap: var(--flow-col-gap);
}
.ecosystem-flow__col {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 1;
  transition: opacity 420ms var(--ease);
}
.ecosystem-flow.is-dimmed .ecosystem-flow__col.is-dimmed { opacity: .5; }
.ecosystem-flow.is-dimmed .ecosystem-flow__col.is-in-path { opacity: .82; }
.ecosystem-flow.is-dimmed .ecosystem-flow__col.is-stage-active { opacity: 1; }
.ecosystem-flow__lane {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.ecosystem-flow__branches {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: .35rem; z-index: 3; width: max-content;
}
.ecosystem-flow__branches--top {
  bottom: calc(100% + var(--flow-branch-gap));
  flex-direction: column-reverse;
}
.ecosystem-flow__branches--bottom {
  top: calc(100% + var(--flow-branch-gap));
}
.ecosystem-flow__branch-item {
  display: flex; flex-direction: column; align-items: center;
}
.ecosystem-flow__branches--top .ecosystem-flow__branch-item { flex-direction: column-reverse; }
.ecosystem-flow__branch-line {
  display: block; width: 0; height: var(--flow-branch-line);
  border-left: 1px dotted rgba(213, 0, 55, .34);
  margin: 0 auto;
  transition: border-color 320ms var(--ease);
}
.ecosystem-flow__branch-item:has(.ecosystem-flow__chip.is-active) .ecosystem-flow__branch-line {
  border-left-style: solid;
  border-left-color: rgba(213, 0, 55, .55);
}
.ecosystem-flow__ring {
  position: relative;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #fff; border: 1.5px solid #e0e3e2;
  box-shadow: 0 2px 14px rgba(43, 48, 47, .06);
  cursor: pointer;
  transition: border-color 450ms var(--ease), box-shadow 450ms var(--ease), transform 450ms var(--ease);
}
.ecosystem-flow__ring:focus-visible {
  outline: 2px solid var(--croem-red); outline-offset: 3px;
}
.ecosystem-flow__col.is-in-path .ecosystem-flow__ring {
  border-color: rgba(213, 0, 55, .22);
  box-shadow: 0 0 0 6px rgba(213, 0, 55, .05), 0 4px 16px rgba(213, 0, 55, .08);
}
.ecosystem-flow__col.is-stage-active .ecosystem-flow__ring {
  border-color: rgba(213, 0, 55, .38);
  box-shadow: 0 0 0 8px rgba(213, 0, 55, .07), 0 6px 22px rgba(213, 0, 55, .11);
  animation: ecosystem-flow-node-pulse 2.8s ease-in-out infinite;
}
@keyframes ecosystem-flow-node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.ecosystem-flow__icon-wrap {
  display: grid; place-items: center;
  width: var(--flow-icon-size); height: var(--flow-icon-size);
  font-size: var(--flow-icon-size); line-height: 1; color: #6e7572;
  transition: color 450ms var(--ease);
}
.ecosystem-flow__col.is-in-path .ecosystem-flow__icon-wrap { color: var(--croem-red); }
.ecosystem-flow__label {
  margin-top: .55rem;
  font-family: var(--ff-head); font-size: .625rem; font-weight: 600;
  letter-spacing: .03em; color: #4a524f;
  text-align: center; line-height: 1.2;
  white-space: nowrap;
}
.ecosystem-flow__chip {
  position: relative;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .5rem;
  background: #fff; border: 1px solid #eceeee; border-radius: 8px;
  box-shadow: 0 1px 6px rgba(43, 48, 47, .03);
  cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(3px);
  animation: ecosystem-flow-chip-in 420ms var(--ease) forwards;
  transition: opacity 320ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
@keyframes ecosystem-flow-chip-in {
  to { opacity: 1; transform: translateY(0); }
}
.ecosystem-flow__chip:hover:not(.is-overflow) {
  box-shadow: 0 3px 10px rgba(43, 48, 47, .06);
}
.ecosystem-flow.is-dimmed .ecosystem-flow__chip.is-dimmed:not(.is-overflow) { opacity: .5 !important; }
.ecosystem-flow__chip.is-active {
  opacity: 1 !important;
  border-color: var(--croem-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 55, .06), 0 4px 14px rgba(213, 0, 55, .1);
}
.ecosystem-flow__chip.is-active::before {
  content: ""; position: absolute; inset: -5px; border-radius: 11px; z-index: -1;
  background: radial-gradient(circle, rgba(213, 0, 55, .06), transparent 70%);
}
.ecosystem-flow__chip.is-overflow {
  cursor: default; padding: .32rem .55rem;
  opacity: .62 !important;
}
.ecosystem-flow.is-dimmed .ecosystem-flow__chip.is-overflow.is-dimmed { opacity: .5 !important; }
.ecosystem-flow__chip-icon {
  flex: none;
  display: grid; place-items: center;
  width: var(--flow-icon-size); height: var(--flow-icon-size);
  font-size: var(--flow-icon-size); line-height: 1; color: #8d9491;
  transition: color 300ms var(--ease);
}
.ecosystem-flow__chip.is-active .ecosystem-flow__chip-icon { color: var(--croem-red); }
.ecosystem-flow__chip-text {
  display: flex; flex-direction: column; gap: .05rem; min-width: 0;
}
.ecosystem-flow__chip-text strong {
  font-family: var(--ff-head); font-size: .625rem; font-weight: 600;
  color: #4a524f; line-height: 1.2; white-space: nowrap;
  transition: color 300ms var(--ease);
}
.ecosystem-flow__chip.is-active .ecosystem-flow__chip-text strong { color: var(--croem-red); }
.ecosystem-flow__chip-text small {
  font-family: var(--ff-head); font-size: .5rem; font-weight: 500;
  color: #969d9b; line-height: 1.2; white-space: nowrap;
}
.ecosystem-flow__chip.is-overflow strong {
  font-size: .625rem; color: #8a9290;
}
.ecosystem-flow__chip:focus-visible {
  outline: 2px solid var(--croem-red); outline-offset: 2px;
}

@media (max-width: 1199px) {
  .ecosystem-flow { --flow-col-gap: 1.1rem; --flow-branch-gap: 1.9rem; width: min(92%, 100%); }
  .ecosystem-flow__spine { width: 90%; }
}
@media (max-width: 991px) {
  .ecosystem__visual { margin-top: clamp(.75rem, 1.75vw, 1.25rem); }
  .ecosystem__card { margin-top: clamp(2.25rem, 4.5vw, 3.5rem); }
  .ecosystem-flow { min-height: 320px; --flow-col-gap: .85rem; --flow-branch-gap: 1.65rem; width: min(94%, 100%); }
  .ecosystem-flow__spine { width: 92%; padding-top: 6rem; }
  .ecosystem-flow__ring { width: 3.15rem; height: 3.15rem; }
  .ecosystem-flow__label { font-size: .5625rem; }
}
@media (max-width: 767px) {
  .ecosystem__card-body {
    flex-direction: column; align-items: flex-start;
  }
  .ecosystem__card-actions { margin-top: .85rem; }
  .ecosystem-flow {
    min-height: auto; padding: 1rem 0; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .ecosystem-flow::-webkit-scrollbar { display: none; }
  .ecosystem-flow__spine {
    flex-direction: column; align-items: flex-start;
    width: max-content; min-width: 100%; padding: 0 0 0 1.25rem;
    gap: 0;
  }
  .ecosystem-flow__col {
    align-items: flex-start; flex: none;
    padding: 0 0 2.25rem 1.75rem;
  }
  .ecosystem-flow__col:last-child { padding-bottom: 0; }
  .ecosystem-flow__col:not(:last-child) .ecosystem-flow__lane::before {
    content: ""; position: absolute; z-index: 0;
    left: 1.75rem; top: 3.5rem;
    width: 1px; height: calc(100% + 2.25rem);
    border-left: 1px dotted rgba(213, 0, 55, .28);
  }
  .ecosystem-flow__branches--top,
  .ecosystem-flow__branches--bottom {
    position: static; transform: none;
    flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: .35rem;
    margin: .45rem 0 .45rem 4.5rem;
  }
  .ecosystem-flow__branches--top { order: -1; margin-bottom: .3rem; }
  .ecosystem-flow__branch-line { display: none; }
  .ecosystem-flow__label { margin-top: .4rem; text-align: left; }
  .ecosystem-flow { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem-flow__path--active,
  .ecosystem-flow__path--ambient { transition: none !important; }
  .ecosystem-flow__col, .ecosystem-flow__ring, .ecosystem-flow__chip,
  .ecosystem-flow__icon-wrap { transition: none !important; animation: none !important; }
  .ecosystem-flow__chip { opacity: 1; transform: none; }
  .ecosystem__card { transition: none !important; }
}

/* Stats / funfacts */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat .num .suffix { color: var(--croem-red-light); }
.stat p { color: #b9bbba; margin: .6rem 0 0; font-weight: 600; font-size: .95rem; }

/* Diferenciadores / por qué */
.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-item .wi-icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(213, 0, 55, .08); color: var(--croem-red);
  display: grid; place-items: center; font-size: 1.35rem;
  transition: background var(--ease-ui), color var(--ease-ui);
}
.why-item:hover .wi-icon { background: var(--croem-gradient); color: #fff; }
.why-item h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.why-item p { color: var(--croem-muted); margin: 0; font-size: .95rem; }

/* Testimonios */
.testi-card {
  background: #fff; border: 1px solid #dfe3e2; border-radius: var(--radius);
  padding: 2rem; height: 100%; min-height: 100%;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(43, 48, 47, .04);
  transition: transform var(--ease-ui), box-shadow var(--ease-ui), border-color var(--ease-ui);
}
.testi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 48, 47, .07);
  border-color: #cfd5d3;
}
.testi-card .quote { flex: 1; }
.testi-card .quote { font-size: 1.05rem; color: var(--croem-ink); font-weight: 600; margin-bottom: 1.5rem; }
.testi-card .stars { color: #f5a623; margin-bottom: 1rem; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-author .ta-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--croem-gradient); color: #fff; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; }
.testi-author b { display: block; color: var(--croem-ink); font-family: var(--ff-head); }
.testi-author small { color: var(--croem-muted); }

/* CTA band */
.cta-band {
  position: relative; border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: var(--croem-gradient-ink); text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
}
.cta-band::after { content: ""; position: absolute; top: -40%; right: -10%; width: 50%; height: 180%; background: radial-gradient(circle, rgba(249,53,73,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cbca; max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.12rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--croem-line); border-radius: var(--radius); }
.step .step-num { font-family: var(--ff-head); font-weight: 700; font-size: 2.5rem; background: var(--croem-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: .5rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--croem-muted); margin: 0; font-size: .95rem; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--croem-line); border-radius: var(--radius-sm); margin-bottom: 1rem; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 1.4rem; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; color: var(--croem-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q i { color: var(--croem-red); transition: transform .3s var(--ease); flex: none; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--croem-muted); margin: 0; }

/* Page hero (interior) */
.page-hero { background: var(--croem-gradient-ink); color: #fff; padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: -30%; right: -5%; width: 45%; height: 160%; background: radial-gradient(circle, rgba(249,53,73,.22), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: #c9cbca; font-size: 1.2rem; max-width: 620px; }
.breadcrumb-c { display: flex; gap: .5rem; align-items: center; color: #a9abaa; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.breadcrumb-c a { color: #d8dad9; }
.breadcrumb-c a:hover { color: #fff; }

/* Contacto */
.contact-form { background: #fff; border: 1px solid var(--croem-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--croem-ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--croem-line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 1rem; color: var(--croem-text); background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--croem-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 55, .08);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--croem-muted); }
.form-msg { padding: 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: rgba(46,160,67,.1); color: #1a7f37; }

.office-card { background: #fff; border: 1px solid var(--croem-line); border-radius: var(--radius); padding: 1.6rem; height: 100%; transition: .3s var(--ease); }
.office-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.office-card .flag { font-family: var(--ff-head); font-weight: 800; color: var(--croem-red); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.office-card address { font-style: normal; color: var(--croem-muted); font-size: .95rem; line-height: 1.7; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-item i { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--croem-gradient); color: #fff; display: grid; place-items: center; font-size: 1.25rem; }
.contact-info-item b { display: block; font-family: var(--ff-head); color: var(--croem-ink); }
.contact-info-item a, .contact-info-item span { color: var(--croem-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--croem-bg-ink); color: #a9abaa; padding: clamp(56px, 7vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .7rem; }
.site-footer a { color: #a9abaa; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: #a9abaa; font-size: .95rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.footer-social a:hover { background: var(--croem-gradient); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom a { font-weight: 400; }
.site-version {
  color: rgba(255, 255, 255, .42);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ==========================================================================
   Animaciones scroll
   ========================================================================== */
[data-animate] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-animate].in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Timeline (trayectoria) */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--croem-red), var(--croem-line)); }
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--croem-gradient); box-shadow: 0 0 0 5px rgba(213,0,55,.12); }
.timeline-item .tl-year { font-family: var(--ff-head); font-weight: 700; color: var(--croem-red); font-size: 1.05rem; }
.timeline-item h3 { font-size: 1.15rem; margin: .15rem 0 .4rem; }
.timeline-item p { color: var(--croem-muted); margin: 0; }

/* Lista de check en columnas */
.check-cols { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
.check-cols li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--croem-ink); }
.check-cols li i { color: var(--croem-red); font-size: 1.2rem; margin-top: 2px; flex: none; }
@media (max-width: 640px) { .check-cols { grid-template-columns: 1fr; } }

/* Callout / cita destacada */
.callout { border-left: 4px solid var(--croem-red); background: var(--croem-bg-alt); padding: 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; color: var(--croem-ink); font-weight: 600; }

/* Go top */
.go-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--croem-gradient); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-red); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); z-index: 900; border: none; cursor: pointer; font-size: 1.2rem; }
.go-top.show { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid, .overview, .overview.reverse .ov-media { grid-template-columns: 1fr; }
  .overview.reverse .ov-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-visual,
  .ov-media { max-width: 600px; margin-inline: auto; }
  .hero-visual { margin-top: 0; margin-left: 0; align-self: center; }
  .gateway-panel { max-width: 100%; }
  .gateway-panel__metric-value { font-size: 1.2rem; }
  .gateway-panel__row { gap: 8px; font-size: .75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .stats, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .topbar .tb-info { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gateway-panel__card { height: auto; min-height: 0; max-height: none; padding: 24px 22px 22px; }
  .gateway-panel__metric-value { font-size: 1.1rem; }
  .gateway-panel__metric-label { font-size: .6875rem; }
  .gateway-panel__row {
    grid-template-columns: minmax(3.75rem, 1fr) minmax(2rem, .65fr) minmax(1.75rem, .55fr) minmax(3.75rem, .95fr) minmax(2.5rem, .65fr);
    gap: 6px; font-size: .6875rem;
  }
  .gateway-panel__channel { font-size: .5625rem; letter-spacing: .04em; }
  body:has(.hero + .trustbar) .section--cta {
    padding-block: clamp(32px, 7vw, 44px);
  }
  .section--cta .cta-band {
    padding: clamp(32px, 7vw, 40px) clamp(20px, 5vw, 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1; transform: none; }
}

@media (scripting: none) {
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   NeoGateway — Process Flow (Core Product · "cómo funciona")
   Composición de widgets UI reales: tarjeta central + procesos + conexiones.
   3 niveles de profundidad: 1) core card · 2) widgets · 3) conexiones.
   ========================================================================== */
.ngw { background: transparent; border: none; box-shadow: none; }
.ngw-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.02;
}

/* Nivel 3 — conexiones (1px, gris muy claro, elegantes) */
.ngw-links {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: visible;
}
.ngw-link {
  stroke: #e3e6e5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.ngw-link--pulse {
  stroke: var(--croem-red);
  stroke-width: 1.5;
  stroke-dasharray: 14 86;
  stroke-dashoffset: 100;
  opacity: 0;
}
.ngw-link--pulse.is-active {
  opacity: .9;
  animation: ngw-pulse-travel 1100ms cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes ngw-pulse-travel {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  12%  { opacity: .85; }
  100% { stroke-dashoffset: -14; opacity: 0; }
}

/* Nivel 1 — tarjeta central (mismo lenguaje visual del Hero gateway-panel) */
.ngw-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(44%, 168px);
  background: #fff;
  border: 1px solid rgba(226, 230, 229, .95);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(43, 48, 47, .07), 0 2px 8px rgba(43, 48, 47, .04);
  padding: 11px 14px 10px;
  box-sizing: border-box;
}
.ngw-core__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin-bottom: 10px;
}
.ngw-core__title {
  font-family: var(--ff-head); font-size: .8125rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.02em; line-height: 1.2;
}
.ngw-core__live {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-head); font-size: .5rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #4a524f;
}
.ngw-core__live-dot {
  position: relative; display: block; width: 6px; height: 6px; flex: none;
}
.ngw-core__live-dot::before,
.ngw-core__live-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--croem-success);
}
.ngw-core__live-dot::after {
  opacity: 0;
  animation: gateway-live-ripple 2.8s cubic-bezier(0, 0, .2, 1) infinite;
  will-change: transform, opacity;
}
.ngw-core__metrics { display: grid; gap: 8px; }
.ngw-core__metric { min-width: 0; }
.ngw-core__metric-value {
  display: block; font-family: var(--ff-head); font-size: 1.125rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.025em; line-height: 1.1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity 280ms var(--ease);
}
.ngw-core__metric-value.is-updating { opacity: .45; }
.ngw-core__metric-label {
  display: block; margin-top: 1px; font-size: .5625rem; font-weight: 600;
  color: #727a77; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase;
}

/* Nivel 2 — widgets de proceso */
.ngw-node {
  position: absolute; z-index: 2;
  transform: translate(-50%, -50%);
  width: 176px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  row-gap: 2px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(226, 230, 229, .95);
  border-radius: 13px;
  box-shadow: 0 3px 14px rgba(43, 48, 47, .05), 0 1px 3px rgba(43, 48, 47, .035);
  padding: 10px 12px 9px;
  box-sizing: border-box;
  transition: box-shadow 420ms var(--ease), border-color 420ms var(--ease), transform 420ms var(--ease);
}
.ngw-node__ico {
  grid-row: 1 / -1;
  align-self: center;
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f4f5f5; color: #6b736f; font-size: .95rem;
  transition: background 420ms var(--ease), color 420ms var(--ease);
}
.ngw-node__body { display: contents; }
.ngw-node__title {
  grid-column: 2; grid-row: 1;
  font-family: var(--ff-head); font-size: .75rem; font-weight: 600;
  color: var(--croem-ink); letter-spacing: -.01em; line-height: 1.2;
}
.ngw-node__meta {
  grid-column: 2; grid-row: 2;
  font-size: .625rem; font-weight: 500; color: #8a918e; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ngw-node__code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .625rem; color: #6b736f;
}
.ngw-node__state {
  grid-column: 2; grid-row: 3;
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 1px;
}
.ngw-node__dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--croem-success);
  transition: background 420ms var(--ease), box-shadow 420ms var(--ease);
}
.ngw-node__status {
  font-family: var(--ff-head); font-size: .5625rem; font-weight: 600;
  letter-spacing: .02em; color: var(--croem-success-ink);
  white-space: nowrap;
  transition: color 420ms var(--ease);
}

/* Posiciones orgánicas (no grid) — más separadas del núcleo */
.ngw-node--api        { top: 20%; left: 14%; }
.ngw-node--fraud      { top: 10%; left: 72%; }
.ngw-node--auth       { top: 38%; left: 90%; }
.ngw-node--settlement { top: 82%; left: 84%; }
.ngw-node--webhook    { top: 88%; left: 24%; }
.ngw-node--token      { top: 54%; left: 8%; }

/* Estado: procesando (glow rojo sutil + borde iluminado) */
.ngw-node.is-processing {
  border-color: rgba(213, 0, 55, .38);
  box-shadow: 0 0 0 3px rgba(213, 0, 55, .06), 0 6px 22px rgba(213, 0, 55, .14);
}
.ngw-node.is-processing .ngw-node__ico {
  background: rgba(213, 0, 55, .09); color: var(--croem-red);
}
.ngw-node.is-processing .ngw-node__dot {
  background: var(--croem-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 55, .12);
}
.ngw-node.is-processing .ngw-node__status { color: var(--croem-red); }

/* Estado: completado (punto verde con leve pulso) */
.ngw-node.is-done {
  border-color: rgba(45, 138, 95, .34);
  box-shadow: 0 0 0 3px rgba(45, 138, 95, .05), 0 6px 20px rgba(45, 138, 95, .1);
}
.ngw-node.is-done .ngw-node__dot {
  background: var(--croem-success);
  box-shadow: 0 0 0 3px rgba(45, 138, 95, .16);
  animation: ngw-dot-done 900ms var(--ease);
}
@keyframes ngw-dot-done {
  0%   { box-shadow: 0 0 0 0 rgba(45, 138, 95, .3); }
  100% { box-shadow: 0 0 0 3px rgba(45, 138, 95, .16); }
}

@media (max-width: 991px) {
  .ngw-stage { max-width: 480px; }
  .ngw-node { width: 168px; }
}

/* Mobile — solo Gateway + 2-3 widgets activos, apilado y legible */
@media (max-width: 640px) {
  .ngw-stage {
    aspect-ratio: auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; max-width: 340px;
  }
  .ngw-links { display: none; }
  .ngw-core {
    position: static; transform: none;
    width: 100%; order: 0;
  }
  .ngw-node {
    position: static; transform: none;
    width: 100%; max-width: 300px;
  }
  .ngw-node--auth   { order: 1; }
  .ngw-node--fraud  { order: 2; }
  .ngw-node--webhook{ order: 3; }
  .ngw-node--api,
  .ngw-node--settlement,
  .ngw-node--token { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ngw-core__live-dot::after { animation: none !important; opacity: 0 !important; }
  .ngw-link--pulse { display: none !important; }
  .ngw-node, .ngw-node__ico, .ngw-node__dot, .ngw-node__status { transition: none !important; }
}

/* Keyboard focus — interactive controls */
.nav-menu > li > a:focus-visible,
.lang-switch a:focus-visible,
.nav-toggle:focus-visible,
.mobile-nav .close-btn:focus-visible,
.tabs-nav button:focus-visible,
.faq-q:focus-visible,
.go-top:focus-visible,
.mega-links a:focus-visible,
.footer-social a:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--croem-red);
  outline-offset: 2px;
}
