/* ==========================================================================
   ResIT · Ecosistema de productos
   --------------------------------------------------------------------------
   Capa compartida por todas las landings de producto (GRP Municipal,
   RematePro y las que vengan). Replica los tokens y componentes del tema
   WordPress (public/css/design-system.css, layout/header.css, footer.php,
   widgets section-producto-* y section-home-faq) para que cada producto se
   lea como parte de la misma familia, al estilo de Atlassian.

   Regla de oro: lo que es "de ResIT" (barra global, header, botones,
   eyebrow, breadcrumb, stats, FAQ, logos de clientes, cross-sell, footer,
   animaciones) vive aquí. Cada landing sólo define lo propio del producto
   (mockups, módulos, comparativas, calculadoras).
   ========================================================================== */

:root {
  /* Marca (mismos valores que --resit-* del Customizer) */
  --rs-primary: #1F50FF;
  --rs-primary-deep: #173ABA;
  --rs-accent: #FF9900;
  --rs-ink: #021344;
  --rs-text: #4A5568;
  --rs-muted: #6B7A99;
  --rs-line: #E2E5EC;
  --rs-bg: #FFFFFF;
  --rs-bg-alt: #F8F9FC;
  --rs-bg-mute: #F0F2F8;
  --rs-tint: #F2F5FF;
  --rs-tint-2: #DBE3FF;
  --rs-dark-2: #0A1B4A;
  --rs-dark-3: #112C8C;
  --rs-dark-line: #1A2236;
  --rs-on-dark: #CBD0DB;
  --rs-on-dark-muted: #9AA3B5;
  --rs-success: #16A34A;
  --rs-mint: #60FFAB;

  /* Tipografía (mismos stacks que resit_font_*()) */
  --rs-display: "Schibsted Grotesk", system-ui, sans-serif;
  --rs-body: "Schibsted Grotesk", system-ui, sans-serif;
  --rs-mono: "JetBrains Mono", ui-monospace, monospace;
  --rs-serif: var(--rs-display); /* sin serif: el acento es de color, no de letra */

  /* Escala de títulos del sitio: h1 de producto 88px, h2 de sección 56px */
  --rs-h1: clamp(46px, 6.2vw, 88px);
  --rs-h2: clamp(34px, 4.4vw, 56px);
  --rs-h3: clamp(20px, 1.7vw, 24px);

  /* Retícula del sitio: contenido de hasta 1328px, gutters 48/20/16 */
  --rs-wrap: 1328px;
  --rs-gutter: 48px;
  --rs-section-y: 120px;

  --rs-ease: cubic-bezier(.2, .7, .3, 1);
  --rs-shadow-card: 0 22px 60px -34px rgba(2, 19, 68, .30);
  --rs-shadow-float: 0 30px 80px -30px rgba(10, 20, 30, .25);
  --rs-shadow-primary: 0 1px 0 rgba(0, 0, 0, .08), 0 4px 16px -4px rgba(31, 80, 255, .45);

  --rs-ecobar-h: 40px;
  --rs-header-h: 76px;

  /* Alias para el CSS propio de cada landing: así sus módulos heredan
     exactamente la paleta del sitio sin reescribir cada regla. */
  --blue: var(--rs-primary);
  --blue-deep: var(--rs-primary-deep);
  --blue-2: var(--rs-primary-deep);
  --orange: var(--rs-accent);
  --navy: var(--rs-ink);
  --navy-2: var(--rs-dark-2);
  --ink-2: #25345F;
  --text: var(--rs-ink);
  --muted: var(--rs-muted);
  --line: var(--rs-line);
  --surface: var(--rs-bg-alt);
  --surface-2: var(--rs-bg-mute);
  --ice: var(--rs-tint);
  --mint: var(--rs-mint);
  --white: #fff;
  --display: var(--rs-display);
  --body: var(--rs-body);
  --mono: var(--rs-mono);
  --serif: var(--rs-serif);
  --ease: var(--rs-ease);
  --wrap: var(--rs-wrap);
  --shadow: var(--rs-shadow-card);
  --shadow-card: var(--rs-shadow-card);
  --shadow-float: 0 42px 100px -46px rgba(2, 19, 68, .46);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rs-header-h) + 16px);
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--rs-ink);
  background: var(--rs-bg);
  font-family: var(--rs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: inherit;
  font-family: var(--rs-display);
  font-weight: 700;
  letter-spacing: -.035em;
}
h3, h4 { font-weight: 600; letter-spacing: -.02em; }
p { color: var(--rs-muted); line-height: 1.6; }
::selection { color: #fff; background: var(--rs-primary); }
:focus-visible { outline: 2px solid var(--rs-primary); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 14px; border-radius: 8px;
  color: #fff; background: var(--rs-ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(calc(100% - var(--rs-gutter) * 2), var(--rs-wrap));
  margin-inline: auto;
}

/* Secciones: misma cadencia y fondos que los widgets del tema */
.section { position: relative; padding: var(--rs-section-y) 0; border-top: 1px solid var(--rs-line); }
.section--soft { background: var(--rs-bg-alt); }
.section--mute { background: var(--rs-bg-mute); }
.section--ice { background: var(--rs-tint); }
.section--navy { color: #fff; background: var(--rs-ink); border-top-color: var(--rs-ink); }
.section--navy p { color: var(--rs-on-dark-muted); }
.section--flush { border-top: 0; }

/* ── Eyebrow (fx.jsx <Eyebrow>) ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rs-primary);
  font-family: var(--rs-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: rsStatPulse 2s ease-in-out infinite;
}
.eyebrow--light,
.section--navy .eyebrow { color: #8FA9FF; }
.eyebrow--on-brand { color: rgba(255, 255, 255, .85); }

/* Títulos de sección (section-home-* / section-producto-*) */
.rs-h2,
.section-head h2 {
  font-size: var(--rs-h2);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head > .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin: 14px 0 0; }
.section-head p { max-width: 680px; margin: 14px 0 0; font-size: 18px; line-height: 1.55; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head em,
.rs-h2 em,
h1 em, h2 em {
  color: var(--rs-primary);
  font-style: normal;
}
.section--navy h2 em { color: #8FA9FF; }

/* ── Botones (fx.jsx <Button>) ───────────────────────────────────────── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--rs-primary);
  box-shadow: var(--rs-shadow-primary);
  font-family: var(--rs-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .3) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 12px 32px -8px rgba(31, 80, 255, .55);
}
.button:hover::after { animation: rsBtnSheen .8s ease; }
.button svg { flex-shrink: 0; transition: transform .3s ease; }
.button:hover svg { transform: translateX(3px); }

.button--sm { padding: 8px 14px; font-size: 13px; }
.button--lg { padding: 14px 26px; font-size: 15px; }

/* ghost (tertiary) */
.button--ghost {
  color: var(--rs-ink);
  background: transparent;
  border-color: var(--rs-line);
  box-shadow: none;
}
.button--ghost::after { display: none; }
.button--ghost:hover { color: var(--rs-ink); background: var(--rs-bg-mute); box-shadow: none; transform: none; }
/* secondary sobre fondo oscuro */
.button--white { color: var(--rs-ink); background: #fff; box-shadow: 0 10px 30px -14px rgba(2, 19, 68, .5); }
.button--white:hover { color: var(--rs-ink); background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); }
/* ghost sobre fondo oscuro */
.button--dark {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  box-shadow: none;
}
.button--dark::after { display: none; }
.button--dark:hover { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; transform: none; }
/* secondary claro (navy) */
.button--ink { background: var(--rs-ink); box-shadow: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
[data-magnetic] { display: inline-block; transition: transform .3s var(--rs-ease); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rs-primary);
  font-size: 14px;
  font-weight: 600;
}
.link-arrow svg { transition: transform .3s ease; }
.link-arrow:hover svg,
a:hover .link-arrow svg { transform: translateX(4px); }

/* ==========================================================================
   BARRA GLOBAL DEL ECOSISTEMA
   La franja navy superior es el hilo común entre productos (como la barra
   de Atlassian): siempre muestra ResIT, el selector de productos y el
   producto actual resaltado.
   ========================================================================== */
.rs-ecobar {
  position: relative;
  z-index: 85;
  height: var(--rs-ecobar-h);
  color: var(--rs-on-dark);
  background: var(--rs-ink);
  font-family: var(--rs-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.rs-ecobar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}
.rs-ecobar__left,
.rs-ecobar__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rs-ecobar__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.rs-ecobar__brand img { width: auto; height: 22px; }
.rs-ecobar__sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .16); }
.rs-ecobar__label { color: var(--rs-on-dark-muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; white-space: nowrap; }
.rs-ecobar__products { display: flex; align-items: center; gap: 2px; }
.rs-ecobar__products a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--rs-on-dark-muted);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.rs-ecobar__products a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rs-ecobar__products a[aria-current="page"] { color: #fff; background: rgba(31, 80, 255, .28); }
.rs-ecobar__products a[aria-current="page"]::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--rs-mint);
}
.rs-ecobar__link { display: inline-flex; align-items: center; gap: 5px; color: var(--rs-on-dark-muted); white-space: nowrap; }
.rs-ecobar__link:hover { color: #fff; }
.rs-ecobar__status { display: inline-flex; align-items: center; gap: 7px; color: var(--rs-on-dark-muted); white-space: nowrap; }

/* Selector de productos (app switcher) */
.rs-switcher { position: relative; }
.rs-switcher__btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.rs-switcher__btn:hover,
.rs-switcher__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.rs-switcher__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--rs-line);
  border-radius: 16px;
  color: var(--rs-ink);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(2, 19, 68, .35), 0 4px 12px rgba(2, 19, 68, .08);
  font-family: var(--rs-body);
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top left;
  transition: opacity .2s ease, transform .25s var(--rs-ease), visibility .2s;
}
.rs-switcher[data-open="true"] .rs-switcher__panel { opacity: 1; visibility: visible; transform: none; }
.rs-switcher__title {
  padding: 10px 12px 8px;
  color: var(--rs-muted);
  font: 500 10px/1.2 var(--rs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rs-switcher__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease;
}
.rs-switcher__item:hover { background: var(--rs-tint); }
.rs-switcher__item[aria-current="page"] { background: var(--rs-bg-alt); }
.rs-switcher__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: var(--rs-primary);
}
.rs-switcher__icon img { width: 100%; height: 100%; object-fit: cover; }
.rs-switcher__icon--light { background: #fff; border: 1px solid var(--rs-line); }
.rs-switcher__icon--light img { width: 80%; height: auto; object-fit: contain; }
.rs-switcher__item b { display: block; font: 600 14px/1.2 var(--rs-display); letter-spacing: -.01em; }
.rs-switcher__item small { display: block; margin-top: 3px; color: var(--rs-muted); font-size: 12px; line-height: 1.35; }
.rs-switcher__here {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--rs-primary);
  background: var(--rs-tint);
  font: 600 9px/1 var(--rs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rs-switcher__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid var(--rs-line);
}
.rs-switcher__foot span { color: var(--rs-muted); font-size: 12px; }

/* ==========================================================================
   HEADER DE PRODUCTO (layout/header.css · <Nav/>)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--rs-line);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--rs-header-h);
}
.header-left { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-width: 0; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; height: 44px; }
.brand img { display: block; width: auto; height: 40px; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a {
  position: relative;
  z-index: 0;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--rs-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: var(--rs-tint);
  opacity: 0;
  transition: opacity .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rs-muted);
  font: 400 12px/1 var(--rs-mono);
  white-space: nowrap;
}
.status i,
.rs-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--rs-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .15);
  animation: rsStatPulse 2s ease-in-out infinite;
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  color: var(--rs-ink);
  background: #fff;
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 19, 68, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(360px, 90vw);
  padding: 24px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px -20px rgba(2, 19, 68, .3);
  transform: translateX(100%);
  transition: transform .35s var(--rs-ease);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-menu-top .brand img { height: 34px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  font: 500 18px/1.2 var(--rs-display);
  letter-spacing: -.015em;
}
.mobile-menu nav a:hover { color: var(--rs-primary); background: var(--rs-tint); }
.mobile-menu-eco {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--rs-line);
  border-radius: 14px;
  background: var(--rs-bg-alt);
}
.mobile-menu-eco .rs-switcher__title { padding: 0 0 10px; }
.mobile-menu-eco a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 500; }
.mobile-menu-eco a img { width: 24px; height: 24px; padding: 1px; border: 1px solid var(--rs-line); border-radius: 6px; background: #fff; object-fit: contain; }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu-actions .button { width: 100%; }
.mobile-menu-actions .status { justify-content: center; margin-top: 8px; font-size: 11px; }

/* ── Breadcrumb (section-producto-hero) ─────────────────────────────── */
.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--rs-muted);
  font: 400 12px/1.4 var(--rs-mono);
}
.breadcrumbs a { color: var(--rs-muted); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--rs-primary); }
.breadcrumbs b { color: var(--rs-ink); font-weight: 500; }
.breadcrumbs .sep { opacity: .7; }

/* Lockup "Producto de ResIT" junto al eyebrow del hero */
.rs-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--rs-tint-2);
  border-radius: 999px;
  color: var(--rs-primary-deep);
  background: #fff;
  font: 500 11px/1 var(--rs-mono);
  letter-spacing: .04em;
}
.rs-by img { width: auto; height: 17px; }

/* ── Stat grid del hero (section-producto-hero) ─────────────────────── */
.rs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-radius: 14px;
  background: var(--rs-line);
}
.rs-stat { padding: 18px 20px; background: #fff; }
.rs-stat strong { display: block; color: var(--rs-ink); font: 600 20px/1.15 var(--rs-display); letter-spacing: -.02em; }
.rs-stat span { display: block; margin-top: 6px; color: var(--rs-text); font-size: 13px; font-weight: 500; line-height: 1.35; }
.rs-stat small { display: block; margin-top: 2px; color: var(--rs-muted); font: 400 10px/1.4 var(--rs-mono); letter-spacing: .04em; }

/* Fondo de hero de producto (degradé #F2F5FF → blanco + grilla tenue) */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
  background: linear-gradient(180deg, var(--rs-tint) 0%, #fff 100%);
}
.rs-hero::before {
  content: "";
  position: absolute;
  top: -360px;
  right: -280px;
  width: 850px;
  height: 850px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 80, 255, .14), transparent 68%);
  pointer-events: none;
}
.rs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: linear-gradient(rgba(31, 80, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 80, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.rs-hero > .container { position: relative; z-index: 2; }
.rs-hero h1 {
  margin: 16px 0 0;
  font-size: var(--rs-h1);
  line-height: .95;
  letter-spacing: -.035em;
}
.rs-hero__lead {
  max-width: 580px;
  margin: 22px 0 32px;
  color: var(--rs-text);
  font-size: 21px;
  line-height: 1.45;
}
.rs-hero .rs-stats { margin-top: 32px; }

/* ── Tarjetas (lift + spotlight del sitio) ──────────────────────────── */
.lift { transition: transform .35s var(--rs-ease), box-shadow .35s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow-card); }
.card-sweep { position: relative; overflow: hidden; }
.card-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--rs-tint) 0%, transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.card-sweep:hover::before { opacity: 1; }
.card-sweep > * { position: relative; z-index: 1; }

/* Ícono en caja (fx.jsx <Icn>) */
.rs-icn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--rs-primary);
  background: var(--rs-tint);
}
.rs-icn svg { width: 22px; height: 22px; }

/* ── Franja de marcas (section-home-marquee) ────────────────────────── */
.rs-marquee {
  overflow: hidden;
  border-block: 1px solid var(--rs-line);
  background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rs-marquee__track { display: flex; width: max-content; animation: rsMarquee 40s linear infinite; }
.rs-marquee:hover .rs-marquee__track { animation-play-state: paused; }
.rs-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  color: #25345F;
  font: 500 11px/1 var(--rs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rs-marquee__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--rs-primary);
}

/* ── Logos de clientes ───────────────────────────────────────────────── */
.rs-logos {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-radius: 16px;
  background: var(--rs-line);
}
.rs-logo {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 28px;
  background: #fff;
}
.rs-logo img {
  width: auto;
  max-width: 160px;
  max-height: var(--logo-h, 52px);
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s ease, opacity .3s ease, transform .3s var(--rs-ease);
}
.rs-logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.rs-logos__note { margin: 18px 0 0; color: var(--rs-muted); font: 400 11px/1.5 var(--rs-mono); letter-spacing: .04em; text-align: center; }

/* ── FAQ (section-home-faq) ─────────────────────────────────────────── */
.rs-faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.rs-faq-intro { position: sticky; top: calc(var(--rs-header-h) + 32px); }
.rs-faq-intro h2 { margin: 14px 0 20px; font-size: var(--rs-h2); line-height: 1; letter-spacing: -.03em; }
.rs-faq-intro p { margin-bottom: 28px; color: var(--rs-text); font-size: 17px; line-height: 1.6; }
.rs-faq { overflow: hidden; border: 1px solid var(--rs-line); border-radius: 20px; background: var(--rs-bg-alt); }
.rs-faq__item + .rs-faq__item { border-top: 1px solid var(--rs-line); }
.rs-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 28px;
  border: 0;
  color: var(--rs-ink);
  background: transparent;
  font: 500 18px/1.35 var(--rs-display);
  letter-spacing: -.015em;
  text-align: left;
  cursor: pointer;
}
.rs-faq__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  color: var(--rs-ink);
  background: #fff;
  transition: all .2s ease;
}
.rs-faq__icon svg { transition: transform .2s ease; }
.rs-faq__item[data-open="true"] .rs-faq__icon { color: #fff; background: var(--rs-primary); border-color: var(--rs-primary); }
.rs-faq__item[data-open="true"] .rs-faq__icon svg { transform: rotate(45deg); }
.rs-faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--rs-ease); }
.rs-faq__a p { margin: 0; padding: 0 28px 22px; color: var(--rs-text); font-size: 15px; line-height: 1.6; }

/* ── Cross-sell: "Más del ecosistema ResIT" (section-home-productos) ── */
.rs-eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rs-eco-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px;
  border: 1px solid var(--rs-line);
  border-radius: 20px;
  color: inherit;
  background: #fff;
}
.rs-eco-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 80, 255, .19) 0%, transparent 70%);
  pointer-events: none;
}
.rs-eco-card:hover { border-color: rgba(31, 80, 255, .3); }
.rs-eco-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.rs-eco-card__logo { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--rs-primary); color: #fff; }
.rs-eco-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.rs-eco-card__logo--light { background: #fff; border: 1px solid var(--rs-line); }
.rs-eco-card__logo--light img { width: 82%; height: auto; object-fit: contain; }
.rs-eco-card h3 { margin: 12px 0 10px; font-size: 32px; line-height: 1.02; letter-spacing: -.025em; }
.rs-eco-card p { margin: 0 0 24px; color: var(--rs-text); font-size: 15px; line-height: 1.5; }
.rs-eco-card .link-arrow { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rs-line); }

/* ==========================================================================
   FOOTER (footer.php · <Footer/>) — idéntico al sitio padre
   ========================================================================== */
.site-footer { padding: 72px 0 28px; color: var(--rs-on-dark); background: var(--rs-ink); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  padding: 48px 44px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rs-primary), var(--rs-primary-deep));
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 48px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta .eyebrow { color: rgba(255, 255, 255, .85); }
.footer-cta h2 {
  max-width: 760px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: .98;
  letter-spacing: -.03em;
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px 32px;
  margin-bottom: 40px;
  align-items: start;
}
.footer-brand .footer-logo { display: inline-flex; align-items: center; height: 52px; }
.footer-brand .footer-logo img { width: auto; height: 44px; }
.footer-brand p { max-width: 290px; margin: 16px 0 0; color: var(--rs-on-dark-muted); font-size: 14px; line-height: 1.5; }
.footer-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--rs-dark-line);
  border-radius: 999px;
  color: var(--rs-on-dark-muted);
  font: 400 10px/1 var(--rs-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.footer-by img { width: auto; height: 16px; }
.footer-by:hover { color: #fff; border-color: #425784; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a {
  padding: 6px 12px;
  border: 1px solid var(--rs-dark-line);
  border-radius: 999px;
  color: var(--rs-on-dark);
  font: 400 11px/1.2 var(--rs-mono);
  letter-spacing: .04em;
  transition: background .2s ease, border-color .2s ease;
}
.socials a:hover { border-color: #425784; background: rgba(255, 255, 255, .04); }
.footer-contact { margin-top: 28px; }
.footer-contact nav { display: flex; flex-direction: column; gap: 6px; }
.footer-title {
  margin: 0 0 14px;
  color: var(--rs-on-dark-muted);
  font: 400 11px/1.2 var(--rs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-col nav { display: flex; flex-direction: column; gap: 8px; }
.footer-col a,
.footer-contact a,
.footer-contact span { width: fit-content; color: var(--rs-on-dark); font-size: 13px; line-height: 1.4; transition: color .2s ease; }
.footer-col a:hover,
.footer-contact a:hover { color: #fff; }
.footer-col a[aria-current="page"] { color: #fff; }
.footer-col a[aria-current="page"]::after { content: " ●"; color: var(--rs-mint); font-size: 8px; vertical-align: middle; }

.footer-trust { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; border-top: 1px solid var(--rs-dark-line); }
.footer-trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-trust__label { flex-shrink: 0; width: 190px; color: var(--rs-on-dark-muted); font: 400 11px/1.3 var(--rs-mono); letter-spacing: .1em; }
.footer-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(2, 19, 68, .18), 0 6px 18px -10px rgba(2, 19, 68, .5);
}
.footer-chip img { flex-shrink: 0; }

.footer-chip small {
  padding-left: 12px;
  border-left: 1px solid var(--rs-line);
  color: var(--rs-muted);
  font: 400 8.5px/1 var(--rs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-chip--cert {
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(31, 80, 255, .32);
  background: rgba(31, 80, 255, .12);
  box-shadow: none;
}
.footer-chip--cert b { display: block; color: #fff; font: 700 13px/1.1 var(--rs-display); letter-spacing: -.01em; }
.footer-chip--cert span { display: block; margin-top: 1px; color: var(--rs-on-dark-muted); font: 400 8.5px/1.2 var(--rs-mono); letter-spacing: .05em; text-transform: uppercase; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rs-dark-line);
  color: var(--rs-on-dark-muted);
  font: 400 11px/1.4 var(--rs-mono);
}
.footer-bottom__right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom img { width: auto; height: 18px; }

/* ── Burbuja de contacto (mismo lenguaje que el chat del sitio) ─────── */
.rs-chat {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  color: #fff;
  background: var(--rs-primary);
  box-shadow: 0 12px 28px -6px rgba(31, 80, 255, .55), 0 4px 12px rgba(2, 19, 68, .15);
  transition: transform .25s var(--rs-ease);
}
.rs-chat:hover { transform: translateY(-2px) scale(1.04); }
.rs-chat::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--rs-primary);
  border-radius: 999px;
  background: var(--rs-accent);
}
.rs-chat__tip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 12px;
  border: 1px solid var(--rs-line);
  border-radius: 10px;
  color: var(--rs-ink);
  background: #fff;
  box-shadow: var(--rs-shadow-card);
  font: 500 12px/1 var(--rs-body);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.rs-chat:hover .rs-chat__tip { opacity: 1; transform: none; }

/* ── Reveal on scroll (design.js) ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--rs-ease), transform .8s var(--rs-ease);
  transition-delay: var(--reveal-delay, var(--delay, 0ms));
}
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="fade"] { transform: none; }
[data-reveal][data-revealed] { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ── Keyframes compartidos ──────────────────────────────────────────── */
@keyframes rsStatPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes rsBtnSheen { to { transform: translateX(100%); } }
@keyframes rsMarquee { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ==========================================================================
   RESPONSIVE (mismos cortes que el tema: 1024 / 820 / 640)
   ========================================================================== */
@media (max-width: 1180px) {
  .rs-ecobar__products { display: none; }
}
@media (max-width: 1024px) {
  .desktop-nav,
  .header-actions .status,
  .header-actions .button--ghost { display: none !important; }
  .menu-toggle { display: inline-grid; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .rs-eco-grid { grid-template-columns: 1fr 1fr; }
  .rs-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .rs-faq-intro { position: static; }
}
@media (max-width: 820px) {
  :root { --rs-gutter: 20px; --rs-section-y: 88px; }
  .rs-ecobar__label,
  .rs-ecobar__status,
  .rs-ecobar__sep--hide-sm { display: none; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-trust__label { width: 100%; }
  .rs-logos { --cols: 2; }
}
@media (max-width: 640px) {
  :root { --rs-gutter: 16px; --rs-section-y: 72px; --rs-header-h: 68px; }
  .brand img { height: 34px; }
  .header-actions .button__label { display: none; }
  .header-actions .button { width: 40px; height: 40px; padding: 0; }
  .header-actions .button:hover svg { transform: none; }
  .rs-ecobar__link--hide-xs { display: none; }
  .rs-hero { padding: 28px 0 72px; }
  .rs-hero__lead { font-size: 17px; }
  .rs-stats { grid-template-columns: 1fr; }
  .rs-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .rs-stat span { margin: 0; text-align: right; }
  .rs-stat small { display: none; }
  .button-row { flex-direction: column; }
  .button-row > .button,
  .button-row > [data-magnetic],
  .button-row > [data-magnetic] .button { width: 100%; }
  .rs-eco-grid { grid-template-columns: 1fr; }
  .rs-faq__q { padding: 18px 20px; font-size: 16px; }
  .rs-faq__a p { padding: 0 20px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-actions { width: 100%; flex-direction: column; }
  .footer-cta-actions .button,
  .footer-cta-actions [data-magnetic] { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rs-chat { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .rs-chat__tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Ícono compacto en el panel móvil */
.mobile-menu-eco .rs-switcher__icon { width: 24px; height: 24px; border-radius: 6px; }
.mobile-menu-eco .rs-switcher__icon svg { width: 14px; height: 14px; }
