/* ============================================================
   RaptorCX — chrome global (header, footer, nav, páginas, blog)
   Markup propio del tema. Sin !important, sin pelear con Divi.
   ============================================================ */

:root {
  --rx-purple:    #532BCC;   /* primario de marca */
  --rx-purple-2:  #6835FE;   /* secundario */
  --rx-purple-lt: #A182FF;
  --rx-purple-dk: #3f1fa3;
  --rx-ink:       #162431;   /* navy de marca */
  --rx-ink-70:    rgba(22,36,49,0.70);
  --rx-ink-55:    rgba(22,36,49,0.55);
  --rx-ink-40:    rgba(22,36,49,0.42);
  --rx-gray:      #747C8C;
  --rx-bg:        #ffffff;
  --rx-bg-soft:   #F9FAFC;
  --rx-bg-soft-2: #f1edff;
  --rx-border:    rgba(22,36,49,0.10);
  --rx-radius:    14px;
  --rx-radius-sm: 9px;
  --rx-font: 'Instrument Sans', system-ui, sans-serif;
  --rx-wrap: 1140px;
  --rx-header-h: 76px;
}

/* ---- Reset / base (no-home) ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }   /* anclas suaves bajo el header fijo */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--rx-font);
  color: var(--rx-ink);
  background: var(--rx-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.rx-nav-locked { overflow: hidden; }
a { color: var(--rx-purple); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.rx-wrap { max-width: var(--rx-wrap); margin: 0 auto; padding: 0 24px; }
.rx-wrap--narrow { max-width: 760px; }

.rx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--rx-purple); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.rx-skip:focus { left: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
/* Contenedor FIJO y transparente: flota sobre el hero (el fondo del
   hero llega hasta arriba, sin bloque blanco encima). */
.rx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  padding: 18px 22px;
  transition: padding .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
/* Smart header: se oculta al bajar, reaparece al subir */
body.rx-header-hidden .rx-header { transform: translateY(-130%); }
@media (prefers-reduced-motion: reduce) { .rx-header { transition: padding .25s ease; } }
/* Píldora blanca tipo cápsula (estilo AiFusionX) */
.rx-header__pill {
  position: relative;   /* ancla del mega menú */
  max-width: 1280px; margin: 0 auto;
  height: 66px; padding: 0 16px 0 24px;
  display: flex; align-items: center; gap: 24px;
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(22,36,49,0.10), 0 2px 8px rgba(22,36,49,0.05);
  transition: box-shadow .25s ease, height .25s ease;
}
body.rx-scrolled .rx-header { padding-top: 12px; padding-bottom: 12px; }
body.rx-scrolled .rx-header__pill { box-shadow: 0 12px 44px rgba(22,36,49,0.18); }

/* Logo a la izquierda */
.rx-header__brand { flex: 1; display: flex; min-width: 0; }
.rx-logo--img { display: inline-flex; align-items: center; }
.rx-logo--img img { height: 34px; width: auto; display: block; }
.rx-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 700; letter-spacing: -0.5px; color: var(--rx-ink);
}
.rx-logo__cx { color: var(--rx-purple); }

/* Navegación CENTRADA (como el referente) */
.rx-nav { display: flex; justify-content: center; }
.rx-nav__menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.rx-nav__menu > li { position: relative; }
.rx-nav__menu > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--rx-ink);
  transition: color .18s ease, background .18s ease;
}
.rx-nav__menu > li > a:hover { color: var(--rx-purple); }
.rx-nav__menu > li.current-menu-item > a { color: var(--rx-purple); }

/* Caret en ítems con submenú */
.rx-nav__menu > li.menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
  transition: transform .2s ease;
}

/* Dropdown */
.rx-nav__menu .sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
  box-shadow: 0 18px 50px rgba(17,24,39,0.13);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.rx-nav__menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rx-nav__menu .sub-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--rx-ink-70);
  transition: background .15s ease, color .15s ease;
}
.rx-nav__menu .sub-menu a:hover { background: rgba(105,4,242,0.06); color: var(--rx-purple); }

/* ============================================================
   MEGA MENÚ DE SERVICIOS (estilo AiFusionX)
   ============================================================ */
.rx-nav__menu > li.rx-mega-trigger { position: static; }   /* el panel se ancla al pill */
.rx-mega {
  position: absolute; top: calc(100% + 16px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--rx-border); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(22,36,49,0.18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 40;
}
.rx-mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.rx-nav__menu > li.rx-mega-trigger:hover > .rx-mega { opacity: 1; visibility: visible; transform: translateY(0); }

.rx-mega__inner { padding: 26px 26px 22px; }
.rx-mega__eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rx-purple); margin: 4px 0 18px 12px;
}
.rx-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; }
.rx-mega__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 16px;
  transition: background .15s ease;
}
.rx-mega__item:hover { background: var(--rx-bg-soft-2); }
.rx-mega__icon { flex-shrink: 0; }
.rx-mega__icon img { width: 46px; height: 46px; display: block; }
.rx-mega__text { display: flex; flex-direction: column; min-width: 0; }
.rx-mega__title { font-size: 15px; font-weight: 600; color: var(--rx-ink); letter-spacing: -0.2px; }
.rx-mega__desc  { font-size: 12.5px; color: var(--rx-ink-55); line-height: 1.4; margin-top: 2px; }

.rx-mega__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 16px; padding: 18px 12px 4px; border-top: 1px solid var(--rx-border);
}
.rx-mega__cta-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--rx-ink); }
.rx-mega__cta-sub   { margin: 3px 0 0; font-size: 13.5px; color: var(--rx-ink-55); }
.rx-mega__cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Mega de Clientes: íconos de línea en insignia + alineación superior */
.rx-mega--clientes .rx-mega__item { align-items: flex-start; }
.rx-mega__icon--line {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(104,53,254,0.10); color: var(--rx-purple);
}
.rx-mega__icon--line svg { width: 22px; height: 22px; }

.rx-header__actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rx-header__cta { white-space: nowrap; }
.rx-nav .rx-nav__cta { display: none; }   /* solo visible dentro del menú móvil (especificidad > .rx-btn) */

/* Hamburguesa (líneas limpias, sin caja) */
.rx-nav__burger {
  display: none; width: 34px; height: 34px; padding: 0;
  background: transparent; border: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.rx-nav__burger span { width: 22px; height: 2.5px; background: var(--rx-ink); border-radius: 2px; transition: .25s; }

/* ============================================================
   BOTONES
   ============================================================ */
.rx-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  font-family: var(--rx-font); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.rx-btn__arrow { width: 17px; height: 17px; flex-shrink: 0; transition: transform .2s ease; }
.rx-btn:hover .rx-btn__arrow { transform: translateX(3px); }

/* Negro (CTA principal estilo AiFusionX) */
.rx-btn--dark { background: var(--rx-ink); color: #fff; box-shadow: 0 4px 16px rgba(17,24,39,0.22); }
.rx-btn--dark:hover { background: #000; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(17,24,39,0.32); }

/* Morado (acento de marca para CTAs de cuerpo) */
.rx-btn--primary { background: var(--rx-purple); color: #fff; box-shadow: 0 4px 16px rgba(105,4,242,0.28); }
.rx-btn--primary:hover { background: var(--rx-purple-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(105,4,242,0.4); }

/* Ghost claro */
.rx-btn--ghost { background: #fff; color: var(--rx-ink); border-color: var(--rx-border); }
.rx-btn--ghost:hover { border-color: var(--rx-purple); color: var(--rx-purple); }

/* Para footer oscuro */
.rx-btn--light { background: #fff; color: var(--rx-ink); }
.rx-btn--light:hover { background: var(--rx-bg-soft); transform: translateY(-1px); }
.rx-btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.rx-btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ============================================================
   PAGE HERO (páginas / blog / 404)
   ============================================================ */
.rx-pagehero {
  background: linear-gradient(180deg, #ece5ff 0%, #f7f4ff 50%, #fff 100%);
  padding: 124px 0 52px; border-bottom: 1px solid var(--rx-border);
}
.rx-pagehero--center { text-align: center; }
.rx-pagehero--post { padding-bottom: 36px; }
.rx-pagehero__title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--rx-ink); margin: 0;
}
.rx-pagehero__desc { margin: 14px 0 0; font-size: 18px; color: var(--rx-ink-55); max-width: 640px; }
.rx-pagehero--center .rx-pagehero__desc { margin-left: auto; margin-right: auto; }
/* Página 404 */
.rx-404__img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto 28px; }
.rx-404 .rx-pagehero__title { margin-top: 0; }
.rx-404__cta { margin: 30px 0 0; }
@media (max-width: 600px) { .rx-404__img { max-width: 320px; margin-bottom: 20px; } }
.rx-eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rx-purple); margin-bottom: 14px;
}
.rx-eyebrow-link { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rx-purple); }

/* ============================================================
   SECCIONES + PROSA
   ============================================================ */
.rx-section { padding: 72px 0; }
.rx-section--tight { padding: 48px 0; }
.rx-prose { font-size: 17px; line-height: 1.6; color: var(--rx-ink-70); }
.rx-prose > * + * { margin-top: 1.05em; }
.rx-prose h2 {
  font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; color: var(--rx-ink);
  letter-spacing: -0.4px; line-height: 1.2; margin-top: 1.6em; margin-bottom: -0.2em;
}
.rx-prose h3 {
  font-size: 20px; font-weight: 600; color: var(--rx-ink);
  line-height: 1.25; margin-top: 1.4em; margin-bottom: -0.2em;
}
.rx-prose h2 + *, .rx-prose h3 + * { margin-top: 0.7em; }
.rx-prose a { color: var(--rx-purple); text-decoration: underline; text-underline-offset: 2px; }
.rx-prose img, .rx-prose figure { border-radius: var(--rx-radius); margin: 1.6em 0; }
/* Cita destacada → tarjeta oscura (estilo AiFusionX) */
.rx-prose blockquote {
  margin: 2.2em 0; padding: 40px 44px; border-radius: 22px;
  background: #162431; color: #fff; text-align: center;
  font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; line-height: 1.5;
  letter-spacing: -0.3px; position: relative;
}
.rx-prose blockquote p { margin: 0; }
.rx-prose blockquote cite,
.rx-prose blockquote footer { display: block; margin-top: 18px; font-size: 14px; font-weight: 500; font-style: normal; color: var(--rx-purple-lt); }
.rx-prose ul, .rx-prose ol { padding-left: 1.3em; }
.rx-prose li { margin: .4em 0; }
.rx-prose code { background: var(--rx-bg-soft-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* Post meta / cover / tags / nav */
.rx-post__meta { margin: 12px 0 0; font-size: 14px; color: var(--rx-ink-40); }
.rx-post__cover { margin: 36px auto 0; border-radius: var(--rx-radius); overflow: hidden; }
.rx-post__cover img { width: 100%; }
.rx-post__tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-post__tags a { font-size: 13px; padding: 5px 12px; border-radius: 100px; background: var(--rx-bg-soft-2); color: var(--rx-purple-dk); }
.rx-postnav__row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rx-border); padding-top: 28px; }
.rx-postnav a { font-weight: 600; color: var(--rx-ink); }
.rx-postnav a:hover { color: var(--rx-purple); }
.rx-postnav__next { text-align: right; margin-left: auto; }

/* ============================================================
   ARTÍCULO (single) — estructura tipo AiFusionX
   ============================================================ */
.rx-article__head { text-align: center; padding: 124px 0 0; }
.rx-article__cat {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rx-purple);
}
.rx-article__title {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.08;
  letter-spacing: -1px; color: var(--rx-ink); margin: 0;
}
.rx-article__meta { margin: 18px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--rx-ink-40); }
.rx-article__coverwrap { margin: 44px auto 0; max-width: 960px; }
.rx-article__cover { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 16/9; }
.rx-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-article__body { padding-top: 44px; }
/* Primer párrafo como entradilla (bold, interlineado ajustado) */
.rx-article__body > p:first-of-type { font-size: 21px; line-height: 1.32; color: var(--rx-ink); font-weight: 600; letter-spacing: -0.3px; margin-bottom: 0.4em; }
/* Tags */
.rx-article__tags { margin: 40px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rx-article__tags-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rx-ink-40); margin-right: 4px; }
.rx-article__tags a { font-size: 13px; padding: 6px 14px; border-radius: 100px; background: var(--rx-bg-soft-2); color: var(--rx-purple-dk); transition: background .15s ease; }
.rx-article__tags a:hover { background: rgba(105,4,242,0.14); }

/* ============================================================
   SECCIÓN "Desde nuestro blog" (teaser de 3 + Todos los artículos)
   ============================================================ */
.rx-blogfeature { background: var(--rx-bg-soft); border-top: 1px solid var(--rx-border); }
/* En la portada del blog la sección es lo primero → holgura para el header fijo */
body.blog .rx-blogfeature { padding-top: 140px; border-top: none; background: linear-gradient(180deg, #ece5ff 0%, #f7f4ff 30%, var(--rx-bg-soft) 100%); }
.rx-blogfeature__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.rx-blogfeature__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.8px; color: var(--rx-ink); margin: 4px 0 0; line-height: 1.1; }
.rx-blogfeature__desc { margin: 14px 0 0; font-size: 17px; color: var(--rx-ink-55); max-width: 600px; }
.rx-blogfeature__all { flex-shrink: 0; }

.rx-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.rx-feat-card { display: flex; flex-direction: column; }
.rx-feat-card__media {
  position: relative; display: block; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  background: var(--rx-bg-soft-2);
}
.rx-feat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rx-feat-card:hover .rx-feat-card__media img { transform: scale(1.05); }
.rx-feat-card__media .rx-card-post__ph { display:block; width:100%; height:100%; background: linear-gradient(135deg,#efeaff,#e7ecff); }
.rx-feat-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.25; margin: 20px 0 0; }
.rx-feat-card__title a { color: var(--rx-ink); }
.rx-feat-card__title a:hover { color: var(--rx-purple); }
.rx-feat-card__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--rx-ink-55); }
/* "Leer más" aparece en hover */
.rx-feat-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px; border-radius: 100px;
  background: var(--rx-ink); color: #fff; font-size: 14px; font-weight: 600;
  align-self: flex-start;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background .2s ease;
}
.rx-feat-card__more svg { width: 16px; height: 16px; }
.rx-feat-card:hover .rx-feat-card__more,
.rx-feat-card:focus-within .rx-feat-card__more { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rx-feat-card__more:hover { background: #000; }

/* En dispositivos táctiles, mostrar siempre el "Leer más" */
@media (hover: none) {
  .rx-feat-card__more { opacity: 1; transform: none; pointer-events: auto; }
}

/* "Todos los artículos" → resto desplegable (mismo /blog/, sin navegar) */
.rx-allposts { background: var(--rx-bg-soft); padding-top: 8px; }
.rx-allposts__title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--rx-ink); margin: 0 0 28px; }
.rx-allposts.is-open { animation: rx-allposts-in .45s cubic-bezier(.22,.61,.36,1); }
@keyframes rx-allposts-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   BLOG GRID
   ============================================================ */
.rx-bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rx-card-post {
  background: #fff; border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.rx-card-post:hover { transform: translateY(-3px); border-color: rgba(105,4,242,0.25); box-shadow: 0 14px 40px rgba(17,24,39,0.10); }
.rx-card-post__media { position: relative; display: block; aspect-ratio: 16/10; background: var(--rx-bg-soft-2); overflow: hidden; }
.rx-card-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rx-card-post:hover .rx-card-post__media img { transform: scale(1.04); }
.rx-card-post__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #efeaff, #e7ecff); }
/* Badge de categoría sobre la imagen — pill oscuro, texto BLANCO */
.rx-card-post__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(22,36,49,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #ffffff; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}
.rx-card-post__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rx-card-post__title { font-size: 19px; font-weight: 600; line-height: 1.28; margin: 0; letter-spacing: -0.3px; }
.rx-card-post__title a { color: var(--rx-ink); }
.rx-card-post__title a:hover { color: var(--rx-purple); }
/* fecha en gris claro y peso ligero */
.rx-card-post__meta { font-size: 13px; font-weight: 400; color: var(--rx-ink-40); margin-top: 4px; }

/* Paginación */
.rx-pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rx-pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--rx-border);
  font-weight: 600; color: var(--rx-ink); transition: all .18s ease;
}
.rx-pagination .page-numbers:hover { border-color: var(--rx-purple); color: var(--rx-purple); }
.rx-pagination .page-numbers.current { background: var(--rx-purple); color: #fff; border-color: var(--rx-purple); }
.rx-empty { text-align: center; color: var(--rx-ink-55); padding: 40px 0; }

/* ============================================================
   FOOTER (oscuro, estilo AiFusionX)
   ============================================================ */
.rx-footer { background: #162431; color: rgba(255,255,255,0.72); }

/* Banda CTA superior */
.rx-footer__cta {
  background: linear-gradient(135deg, #6835FE 0%, #532BCC 100%);
  position: relative; overflow: hidden;
}
.rx-footer__cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% -20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.rx-footer__cta-inner {
  position: relative; padding: 64px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.rx-footer__cta-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.rx-footer__cta-title { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.12; letter-spacing: -0.6px; color: #fff; }
.rx-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rx-footer__top { padding: 72px 0 48px; }
.rx-footer__grid {
  max-width: var(--rx-wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.rx-logo--light { color: #fff; }
/* Logo del footer en blanco (sobre fondo navy) */
.rx-logo--footer { display: inline-flex; }
.rx-logo--footer img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.rx-footer__tagline { margin: 18px 0 0; font-size: 15px; font-weight: 500; line-height: 1.6; color: rgba(255,255,255,0.80); max-width: 320px; }
.rx-footer__sub { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.50); max-width: 340px; }
.rx-footer__contact { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; max-width: 320px; }
.rx-footer__contact li { display: flex; align-items: center; gap: 11px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.62); }
.rx-footer__contact svg { width: 17px; height: 17px; flex: none; color: var(--rx-purple-lt); }
.rx-footer__contact a { color: rgba(255,255,255,0.72); }
.rx-footer__contact a:hover { color: #fff; }
.rx-footer__social { display: flex; gap: 10px; margin-top: 24px; }
.rx-footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff; transition: all .2s ease;
}
.rx-footer__social a svg { width: 18px; height: 18px; }
.rx-footer__social a:hover { background: var(--rx-purple); color: #fff; transform: translateY(-2px); }
.rx-footer__heading {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; margin: 0 0 18px;
}
.rx-footer__menu { list-style: none; margin: 0; padding: 0; }
/* Indicador +/- (solo visible en móvil/acordeón) */
.rx-footer__toggle { display: none; position: relative; width: 14px; height: 14px; flex: none; }
.rx-footer__toggle::before, .rx-footer__toggle::after {
  content: ""; position: absolute; background: rgba(255,255,255,0.7); transition: opacity .2s, transform .2s;
}
.rx-footer__toggle::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.rx-footer__toggle::after  { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.rx-footer__col.is-open .rx-footer__toggle::after { opacity: 0; }
.rx-footer__menu li { margin: 0; }
.rx-footer__menu a { display: inline-block; padding: 6px 0; font-size: 15px; color: rgba(255,255,255,0.62); }
.rx-footer__menu a:hover { color: #fff; }
.rx-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10); padding: 22px 24px;
  max-width: var(--rx-wrap); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.rx-footer__bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.42); }
.rx-footer__legal { display: flex; gap: 20px; }
.rx-footer__legal a { font-size: 13px; color: rgba(255,255,255,0.55); }
.rx-footer__legal a:hover { color: #fff; }
.rx-footer__top-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55); }
.rx-footer__top-link:hover { color: #fff; }
.rx-footer__top-link svg { width: 15px; height: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .rx-header__cta { display: none; }
  .rx-nav__burger { display: flex; }
  /* Backdrop al abrir el menú móvil (header 9000 y nav 8500 quedan por encima) */
  body.rx-nav-locked::before {
    content: ""; position: fixed; inset: 0; z-index: 8000;
    background: rgba(22,36,49,0.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  /* CTA dentro del menú móvil */
  .rx-nav .rx-nav__cta { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
  .rx-header__pill { height: 64px; padding: 0 12px 0 20px; }
  .rx-logo--img img { height: 30px; }
  .rx-nav {
    position: fixed; inset: 96px 12px auto 12px; margin: 0; z-index: 8500;
    display: block; max-height: calc(100vh - 120px);
    background: #fff; padding: 12px; overflow-y: auto;
    border-radius: 22px; box-shadow: 0 18px 50px rgba(22,36,49,0.18);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .rx-nav--open .rx-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  /* Burger → X */
  .rx-nav--open .rx-nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .rx-nav--open .rx-nav__burger span:nth-child(2) { opacity: 0; }
  .rx-nav--open .rx-nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .rx-nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .rx-nav__menu > li { border-bottom: 1px solid var(--rx-border); }
  .rx-nav__menu > li:last-child { border-bottom: none; }
  .rx-nav__menu > li > a {
    display: flex; width: 100%; box-sizing: border-box;
    padding: 16px 14px; font-size: 17px; font-weight: 500;
    border-radius: 12px; justify-content: space-between; align-items: center;
  }
  .rx-nav__menu > li > a:hover,
  .rx-nav__menu > li > a:active,
  .rx-nav__menu > li.current-menu-item > a { background: var(--rx-bg-soft-2); color: var(--rx-purple); }
  .rx-nav__menu > li.menu-item-has-children > a::after,
  .rx-nav__menu > li.rx-mega-trigger > a::after { transform: rotate(45deg); }
  .rx-nav__menu > li.is-open > a::after { transform: rotate(-135deg); }   /* caret invertido al abrir */
  .rx-nav__menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .rx-nav__menu > li.is-open > .sub-menu { max-height: 600px; }
  /* Mega menú apilado dentro del panel móvil */
  .rx-nav__menu > li.rx-mega-trigger { position: static; }
  .rx-mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .rx-nav__menu > li.rx-mega-trigger.is-open > .rx-mega { max-height: 1600px; }
  .rx-mega::before { display: none; }
  .rx-mega__inner { padding: 10px 0 6px 10px; }
  .rx-mega__eyebrow { margin-left: 2px; }
  .rx-mega__grid { grid-template-columns: 1fr; gap: 0; }
  .rx-mega__item { padding: 10px 4px; }
  .rx-mega__icon img { width: 38px; height: 38px; }
  .rx-mega__cta { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 4px 4px; }
  .rx-bloggrid { grid-template-columns: repeat(2, 1fr); }
  .rx-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .rx-footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .rx-bloggrid { grid-template-columns: 1fr; }
  .rx-feat-grid { grid-template-columns: 1fr; gap: 24px; }
  .rx-blogfeature__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .rx-feat-card__more { opacity: 1; transform: none; pointer-events: auto; }
  .rx-footer__grid { grid-template-columns: 1fr; gap: 0; }
  .rx-section { padding: 52px 0; }
  .rx-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Footer acordeón: cada columna colapsa con su título */
  .rx-footer__col { border-top: 1px solid rgba(255,255,255,0.10); }
  .rx-footer__heading {
    margin: 0; padding: 18px 0; cursor: pointer; user-select: none;
    font-size: 13px;
  }
  .rx-footer__toggle { display: block; }
  .rx-footer__menu {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .rx-footer__col.is-open .rx-footer__menu { max-height: 360px; opacity: 1; padding-bottom: 12px; }
  .rx-footer__heading:focus-visible { outline: 2px solid var(--rx-purple-lt); outline-offset: 4px; border-radius: 4px; }
}
