/* ============================================================
   RaptorCX — Contratos · sistema de diseño del portal
   Look raptorcx (tokens --rx-*), light, tipo app. Markup propio (sin Divi).
   ============================================================ */

:root {
  --rx-purple:    #532BCC;
  --rx-purple-2:  #6835FE;
  --rx-purple-lt: #A182FF;
  --rx-purple-dk: #3f1fa3;
  --rx-ink:       #162431;
  --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:        #F9FAFC;
  --rx-surface:   #ffffff;
  --rx-bg-soft-2: #f1edff;
  --rx-border:    rgba(22,36,49,0.10);
  --rx-ok:        #1f9d63;
  --rx-warn:      #c47d1a;
  --rx-radius:    14px;
  --rx-radius-sm: 9px;
  --rx-font: 'Instrument Sans', system-ui, sans-serif;
  --rx-wrap: 1140px;
  --rx-header-h: 96px;
  --rx-shadow:    0 2px 14px rgba(22,36,49,0.06);
  --rx-shadow-lg: 0 10px 40px rgba(22,36,49,0.10), 0 2px 8px rgba(22,36,49,0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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.ctr-nav-locked { overflow: hidden; }
a { color: var(--rx-purple); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4 { font-family: var(--rx-font); color: var(--rx-ink); letter-spacing: -0.4px; }

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

.ctr-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; }
.ctr-skip:focus { left: 0; }

/* ---- Logo ---- */
.ctr-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ctr-logo__img { display: block; height: 34px; width: auto; }
img.ctr-logo--sm { height: 28px; }
/* footer: logo sobre fondo oscuro → todo blanco */
.ctr-footer .ctr-logo__img { filter: brightness(0) invert(1); }

/* ============================================================
   HEADER (píldora flotante)
   ============================================================ */
.ctr-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; padding: 18px 22px; }
.ctr-header__pill {
  max-width: 1180px; margin: 0 auto; min-height: 60px; padding: 8px 12px 8px 24px;
  display: flex; align-items: center; gap: 24px;
  background: var(--rx-surface); border-radius: 100px; box-shadow: var(--rx-shadow-lg);
}
.ctr-header__brand, .ctr-logo { flex-shrink: 0; }
.ctr-header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.ctr-nav { margin-left: auto; display: flex; align-items: center; }
.ctr-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.ctr-nav__link {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--rx-ink);
  transition: color .18s ease, background .18s ease;
}
.ctr-nav__link:hover { color: var(--rx-purple); background: rgba(105,4,242,0.06); }
.ctr-nav__link.is-current { color: var(--rx-purple); background: var(--rx-bg-soft-2); }
.ctr-nav__cta { margin-left: 8px; }
.ctr-nav__toggle { display: none; }

/* ============================================================
   BOTONES
   ============================================================ */
.ctr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; border: 1px solid transparent;
  font-family: var(--rx-font); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.ctr-btn--sm { padding: 9px 18px; font-size: 14px; }
.ctr-btn--primary { background: var(--rx-purple); color: #fff; box-shadow: 0 6px 20px rgba(83,43,204,0.28); }
.ctr-btn--primary:hover { background: var(--rx-purple-dk); transform: translateY(-1px); color: #fff; }
.ctr-btn--ghost { background: transparent; color: var(--rx-ink-70); border-color: var(--rx-border); }
.ctr-btn--ghost:hover { background: rgba(83,43,204,0.06); color: var(--rx-purple); border-color: rgba(83,43,204,0.28); }

/* ============================================================
   PÁGINA
   ============================================================ */
.ctr-main { min-height: 60vh; padding-top: var(--rx-header-h); }
.ctr-page { padding: 32px 0 72px; }
.ctr-page__head { margin-bottom: 24px; }
.ctr-page__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin: 0; }
.ctr-page__body { }

/* Tarjeta contenedora estándar del portal (envuelve los shortcodes) */
.ctr-card {
  background: var(--rx-surface); border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius); padding: 28px; box-shadow: var(--rx-shadow);
}

/* ============================================================
   PROSE — estiliza el output de the_content / shortcodes
   ============================================================ */
.ctr-prose { color: var(--rx-ink-70); font-size: 16px; }
.ctr-prose h2 { font-size: 24px; margin: 32px 0 12px; color: var(--rx-ink); }
.ctr-prose h3 { font-size: 19px; margin: 24px 0 10px; color: var(--rx-ink); }
.ctr-prose p { margin: 0 0 14px; }
.ctr-prose a { color: var(--rx-purple); text-decoration: underline; text-underline-offset: 2px; }
.ctr-prose ul, .ctr-prose ol { margin: 0 0 16px; padding-left: 22px; }
.ctr-prose li { margin: 4px 0; }

/* Tablas (listados de contratos/documentos que pintan los shortcodes) */
.ctr-prose table { width: 100%; border-collapse: collapse; background: var(--rx-surface);
  border: 1px solid var(--rx-border); border-radius: var(--rx-radius); overflow: hidden; margin: 0 0 20px; }
.ctr-prose th, .ctr-prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rx-border); font-size: 14.5px; }
.ctr-prose th { background: var(--rx-bg); font-weight: 600; color: var(--rx-ink); }
.ctr-prose tr:last-child td { border-bottom: none; }

/* Formularios (firma, crear contrato, feedback) */
.ctr-prose label { display: block; font-size: 14px; font-weight: 600; color: var(--rx-ink); margin: 0 0 6px; }
.ctr-prose input[type="text"], .ctr-prose input[type="email"], .ctr-prose input[type="tel"],
.ctr-prose input[type="password"], .ctr-prose input[type="number"], .ctr-prose input[type="date"],
.ctr-prose select, .ctr-prose textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius-sm);
  font-family: var(--rx-font); font-size: 15px; color: var(--rx-ink); background: var(--rx-surface);
  transition: border-color .15s ease, box-shadow .15s ease; margin-bottom: 14px;
}
.ctr-prose input:focus, .ctr-prose select:focus, .ctr-prose textarea:focus {
  outline: none; border-color: var(--rx-purple); box-shadow: 0 0 0 3px rgba(83,43,204,0.12);
}
.ctr-prose input[type="submit"], .ctr-prose button[type="submit"], .ctr-prose .button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 100px;
  background: var(--rx-purple); color: #fff; border: none; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s ease; width: auto;
}
.ctr-prose input[type="submit"]:hover, .ctr-prose button[type="submit"]:hover, .ctr-prose .button:hover {
  background: var(--rx-purple-dk);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ctr-footer { background: var(--rx-ink); color: #fff; margin-top: 40px; }
.ctr-footer__wrap {
  max-width: var(--rx-wrap); margin: 0 auto; padding: 40px 24px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.ctr-footer .ctr-logo { color: #fff; }
.ctr-footer__tag { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.ctr-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.ctr-footer__links a { color: rgba(255,255,255,0.72); font-size: 14px; }
.ctr-footer__links a:hover { color: #fff; }
.ctr-footer__bottom { border-top: 1px solid rgba(255,255,255,0.10); }
.ctr-footer__bottom p { max-width: var(--rx-wrap); margin: 0 auto; padding: 16px 24px; font-size: 12.5px; color: rgba(255,255,255,0.4); }

/* ============================================================
   DASHBOARD (portada del portal)
   ============================================================ */
.ctr-dash { padding: 40px 0 72px; }
.ctr-dash__head { margin-bottom: 28px; }
.ctr-dash__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin: 0 0 6px; }
.ctr-dash__sub { margin: 0; color: var(--rx-ink-55); font-size: 16px; }
.ctr-dash__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ctr-dash__card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--rx-surface); border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
  padding: 26px 28px; box-shadow: var(--rx-shadow); transition: all .2s ease; color: var(--rx-ink);
}
.ctr-dash__card:hover { border-color: rgba(83,43,204,0.28); box-shadow: 0 8px 28px rgba(83,43,204,0.10); transform: translateY(-2px); }
.ctr-dash__card-title { font-size: 18px; font-weight: 600; color: var(--rx-ink); }
.ctr-dash__card-desc { font-size: 14px; color: var(--rx-ink-55); line-height: 1.55; }
.ctr-dash__card-go { position: absolute; top: 22px; right: 24px; color: var(--rx-purple); font-size: 20px; transition: transform .2s ease; }
.ctr-dash__card:hover .ctr-dash__card-go { transform: translateX(4px); }
@media (max-width: 700px) { .ctr-dash__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FEEDBACK (comentarios del cliente)
   ============================================================ */
.ctr-feedback { margin: 28px 0; }
.ctr-feedback__title { margin: 0 0 6px; font-size: 19px; }
.ctr-feedback__sub { margin: 0 0 16px; color: var(--rx-ink-55); font-size: 14.5px; }
.ctr-feedback__ok {
  background: #e9f7ef; border: 1px solid #b7e1c6; color: #1f7a4d;
  padding: 12px 16px; border-radius: var(--rx-radius-sm); font-size: 14.5px; margin: 0;
}
.ctr-feedback textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius-sm);
  font-family: var(--rx-font); font-size: 15px; color: var(--rx-ink); resize: vertical; margin-bottom: 14px;
}
.ctr-feedback textarea:focus { outline: none; border-color: var(--rx-purple); box-shadow: 0 0 0 3px rgba(83,43,204,0.12); }
.ctr-feedback label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

/* ============================================================
   LANDING DE REGISTRO (2 columnas)
   ============================================================ */
.ctr-reg-landing { padding: 48px 0 72px; }
.ctr-reg-landing__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.ctr-reg-landing__title { font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin: 0 0 14px; letter-spacing: -0.5px; }
.ctr-reg-landing__title span { color: var(--rx-purple); }
.ctr-reg-landing__lead { font-size: 16.5px; color: var(--rx-ink-70); line-height: 1.6; margin: 0 0 26px; max-width: 46ch; }
.ctr-reg-landing__plans { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ctr-reg-landing__plans li {
  background: var(--rx-surface); border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
  padding: 16px 18px; box-shadow: var(--rx-shadow);
}
.ctr-reg-landing__plan-name { display: block; font-weight: 600; color: var(--rx-ink); font-size: 15.5px; }
.ctr-reg-landing__plan-name em { color: var(--rx-purple); font-style: normal; font-weight: 600; }
.ctr-reg-landing__plan-desc { display: block; font-size: 13.5px; color: var(--rx-ink-55); margin-top: 3px; line-height: 1.5; }
.ctr-reg-landing__note { font-size: 13px; color: var(--rx-ink-55); line-height: 1.55; margin: 0; }
.ctr-reg-landing__form .ctr-auth__card { box-shadow: var(--rx-shadow-lg); }
@media (max-width: 860px) {
  .ctr-reg-landing__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   AUTH (login)
   ============================================================ */
.ctr-auth { padding: 56px 0 80px; }
.ctr-wrap--auth { max-width: 460px; }
.ctr-auth__card {
  background: var(--rx-surface); border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius); padding: 36px 32px; box-shadow: var(--rx-shadow-lg);
}
.ctr-auth__title { font-size: 26px; font-weight: 600; margin: 0 0 6px; text-align: center; color: var(--rx-purple-2); }
.ctr-auth__sub { margin: 0 0 24px; text-align: center; color: var(--rx-ink-55); font-size: 15px; }
.ctr-auth__error {
  background: #fdecec; border: 1px solid #f5c2c2; color: #b02a2a;
  padding: 10px 14px; border-radius: var(--rx-radius-sm); font-size: 14px; margin: 0 0 18px;
}
.ctr-auth #loginform p { margin: 0 0 14px; }
.ctr-auth #loginform label { display: block; font-size: 14px; font-weight: 600; color: var(--rx-ink); margin-bottom: 6px; }
.ctr-auth #loginform input.input,
.ctr-auth #loginform input[type="text"],
.ctr-auth #loginform input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius-sm);
  font-family: var(--rx-font); font-size: 15px; color: var(--rx-ink); background: var(--rx-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ctr-auth #loginform input.input:focus,
.ctr-auth #loginform input[type="text"]:focus,
.ctr-auth #loginform input[type="password"]:focus {
  outline: none; border-color: var(--rx-purple); box-shadow: 0 0 0 3px rgba(83,43,204,0.12);
}
.ctr-auth #loginform .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--rx-ink-70); }
.ctr-auth #loginform .login-remember input { width: auto; }
.ctr-auth #loginform .login-submit input[type="submit"] {
  width: 100%; padding: 13px 24px; border: none; border-radius: 100px; cursor: pointer;
  background: var(--rx-purple); color: #fff; font-family: var(--rx-font); font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(83,43,204,0.28); transition: background .2s ease;
}
.ctr-auth #loginform .login-submit input[type="submit"]:hover { background: var(--rx-purple-dk); }
.ctr-auth__links { text-align: center; margin: 18px 0 0; font-size: 14.5px; }
.ctr-auth__foot { text-align: center; margin: 20px 0 0; font-size: 13.5px; color: var(--rx-ink-55); }

/* ============================================================
   MEGA MENÚ (Recursos / Contratos / Documentos)
   ============================================================ */
.ctr-nav__item { position: relative; }
.ctr-nav__trigger {
  background: transparent; border: 0; cursor: pointer; font-family: var(--rx-font);
  display: inline-flex; align-items: center; gap: 6px;
}
.ctr-nav__caret {
  width: 7px; height: 7px; margin-left: 1px; display: inline-block;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5; transition: transform .2s ease;
}
.ctr-nav__item--mega:hover .ctr-nav__caret,
.ctr-nav__item--mega.is-open .ctr-nav__caret { transform: rotate(-135deg) translateY(-1px); opacity: .8; }

.ctr-mega {
  position: absolute; top: calc(100% + 16px);
  background: #fff; border: 1px solid var(--rx-border); border-radius: 22px;
  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;
}
.ctr-mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.ctr-mega--left   { left: 0; }
.ctr-mega--center { left: 50%; transform: translate(-50%, 10px); }
.ctr-mega--right  { right: 0; }
.ctr-nav__item--mega:hover > .ctr-mega,
.ctr-nav__item--mega:focus-within > .ctr-mega,
.ctr-nav__item--mega.is-open > .ctr-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.ctr-mega--center.ctr-mega { /* mantener centrado al abrir */ }
.ctr-nav__item--mega:hover > .ctr-mega--center,
.ctr-nav__item--mega.is-open > .ctr-mega--center { transform: translate(-50%, 0); }

.ctr-mega__inner { padding: 24px 24px 20px; }
.ctr-mega__eyebrow {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rx-purple); margin: 2px 0 16px 10px;
}
.ctr-mega__grid { display: grid; gap: 4px 12px; }
.ctr-mega__grid--wide   { grid-template-columns: repeat(2, minmax(230px, 260px)); }
.ctr-mega__grid--narrow { grid-template-columns: repeat(2, minmax(220px, 250px)); }
.ctr-mega__item {
  display: flex; align-items: flex-start; gap: 13px; padding: 12px; border-radius: 14px;
  transition: background .15s ease; color: var(--rx-ink);
}
.ctr-mega__item:hover { background: var(--rx-bg-soft-2); }
.ctr-mega__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(105,4,242,0.10); color: var(--rx-purple);
}
.ctr-mega__icon svg { width: 21px; height: 21px; }
.ctr-mega__text { display: flex; flex-direction: column; min-width: 0; }
.ctr-mega__title { font-size: 14.5px; font-weight: 600; color: var(--rx-ink); letter-spacing: -0.2px; }
.ctr-mega__desc  { font-size: 12.5px; color: var(--rx-ink-55); line-height: 1.4; margin-top: 2px; }

/* ============================================================
   WIZARD (crear contrato / solicitud implementación)
   ============================================================ */
.ctr-wizard { margin: 8px 0 0; }
.ctr-wizard__done { text-align: center; padding: 40px 32px; }
.ctr-wizard__done h2 { margin: 0 0 8px; color: var(--rx-purple-2); }

/* Barra de pasos */
.ctr-wizard__steps {
  display: flex; gap: 4px; list-style: none; margin: 0 0 28px; padding: 0;
  counter-reset: step; overflow-x: auto;
}
.ctr-wizard__step {
  flex: 1 1 0; min-width: 92px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; position: relative; text-align: center; padding-top: 6px;
}
.ctr-wizard__step::before {
  content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px;
  background: var(--rx-border); z-index: 0;
}
.ctr-wizard__step:first-child::before { display: none; }
.ctr-wizard__step.is-done::before, .ctr-wizard__step.is-active::before { background: var(--rx-purple); }
.ctr-wizard__bullet {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: #fff; border: 2px solid var(--rx-border); color: var(--rx-ink-55);
}
.ctr-wizard__step.is-active .ctr-wizard__bullet { border-color: var(--rx-purple); color: var(--rx-purple); }
.ctr-wizard__step.is-done .ctr-wizard__bullet { background: var(--rx-purple); border-color: var(--rx-purple); color: #fff; }
.ctr-wizard__pct { font-size: 11px; color: var(--rx-ink-40); }
.ctr-wizard__steptitle { font-size: 12.5px; color: var(--rx-ink-55); line-height: 1.2; }
.ctr-wizard__step.is-active .ctr-wizard__steptitle { color: var(--rx-purple); font-weight: 600; }

/* Paneles */
.ctr-wizard__panel { border: 0; padding: 0; margin: 0; }
.ctr-wizard__panel:not(.is-active) { display: none; }
.ctr-wizard__panel-title { font-size: 20px; font-weight: 600; color: var(--rx-ink); margin: 0 0 18px; padding: 0; }
.ctr-wizard__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.ctr-wizard__note {
  grid-column: 1 / -1; margin: 0; padding: 12px 14px; font-size: 14px; color: var(--rx-ink-55);
  background: var(--rx-bg-soft-2); border-radius: var(--rx-radius-sm);
}

/* Campos */
.ctr-field { display: flex; flex-direction: column; gap: 6px; }
.ctr-field--wide { grid-column: 1 / -1; }
.ctr-field__label { font-size: 14px; font-weight: 600; color: var(--rx-ink); }
.ctr-req { color: #c0392b; }
.ctr-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius-sm);
  font-family: var(--rx-font); font-size: 15px; color: var(--rx-ink); background: #fff; box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ctr-input:focus { outline: none; border-color: var(--rx-purple); box-shadow: 0 0 0 3px rgba(83,43,204,0.12); }
.ctr-input--file { padding: 9px 12px; font-size: 14px; }
.ctr-choices { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.ctr-choice { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--rx-ink-70); cursor: pointer; }
.ctr-choice input { margin-top: 3px; }
.has-error .ctr-field__label, .ctr-field.has-error .ctr-field__label { color: #c0392b; }
.has-error .ctr-input, .ctr-input.has-error { border-color: #c0392b; }
.ctr-field.has-error { outline: 1px dashed rgba(192,57,43,0.4); outline-offset: 6px; border-radius: 4px; }

/* Mensaje de error inline por campo */
.ctr-field__error { font-size: 12.5px; color: #c0392b; min-height: 0; line-height: 1.35; }
.ctr-field__error:empty { display: none; }
.ctr-field.has-error .ctr-input:focus { box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
/* Pista (formatos/limite de archivos) */
.ctr-field__hint { font-size: 12px; color: var(--rx-ink-55, rgba(22,36,49,0.55)); }
/* Resumen de errores tras rechazo del servidor */
.ctr-wizard__alert {
  background: #fde8e8; color: #9b1c1c; border: 1px solid rgba(192,57,43,0.25);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px;
}

/* Borrador: barra superior (recuperado) */
.ctr-wizard__draftbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--rx-bg-soft-2, #f1edff); color: var(--rx-purple-dk, #3f1fa3);
  border: 1px solid rgba(83,43,204,0.18); border-radius: 10px;
  padding: 11px 16px; margin: 0 0 18px; font-size: 14px;
}
.ctr-wizard__draftdiscard {
  background: none; border: none; color: var(--rx-purple, #532BCC);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0;
}
.ctr-wizard__draftdiscard:hover { color: var(--rx-purple-dk, #3f1fa3); }

/* Botón suave para "Guardar borrador" */
.ctr-btn--soft {
  background: var(--rx-bg-soft-2, #f1edff); color: var(--rx-purple-dk, #3f1fa3); border-color: transparent;
}
.ctr-btn--soft:hover { background: #e7dffb; color: var(--rx-purple-dk, #3f1fa3); }

/* Aviso de guardado junto al botón */
.ctr-wizard__draftmsg { font-size: 13px; color: var(--rx-ink-55, rgba(22,36,49,0.55)); align-self: center; }
.ctr-wizard__draftmsg.is-ok { color: var(--rx-ok, #1f9d63); font-weight: 600; }
.ctr-wizard__draftmsg.is-err { color: #c0392b; font-weight: 600; }

@media (max-width: 640px) {
  .ctr-wizard__nav { flex-wrap: wrap; }
  .ctr-wizard__nav [data-wiz="draft"] { order: 3; width: 100%; }
  .ctr-wizard__draftmsg { order: 4; width: 100%; }
}

/* Navegación */
.ctr-wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.ctr-wizard__nav [data-wiz="next"], .ctr-wizard__nav [data-wiz="submit"] { margin-left: auto; }

@media (max-width: 640px) {
  .ctr-wizard__grid { grid-template-columns: 1fr; }
  .ctr-wizard__steptitle { display: none; }
}

/* ============================================================
   RESPONSIVE — nav móvil
   ============================================================ */
@media (max-width: 860px) {
  .ctr-nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; background: none; border: none; cursor: pointer; margin-left: auto;
  }
  .ctr-nav__toggle span { display: block; height: 2px; width: 22px; background: var(--rx-ink); border-radius: 2px; transition: .2s; }
  .ctr-nav { margin-left: auto; }
  .ctr-nav__menu {
    position: fixed; top: 88px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--rx-surface); border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
    box-shadow: var(--rx-shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .ctr-nav.is-open .ctr-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .ctr-nav__menu { max-height: calc(100vh - 110px); overflow-y: auto; }
  .ctr-nav__link { padding: 12px 14px; }
  .ctr-nav__trigger { width: 100%; justify-content: space-between; }
  .ctr-nav__cta { margin: 6px 0 0; }
  .ctr-nav__cta .ctr-btn { width: 100%; }
  .ctr-footer__wrap { flex-direction: column; align-items: flex-start; }

  /* Mega-menús como acordeón en móvil */
  .ctr-nav__item--mega { display: flex; flex-direction: column; }
  .ctr-mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; background: transparent;
    display: none; max-height: 0; overflow: hidden;
  }
  .ctr-mega--center { left: auto; transform: none; }
  .ctr-nav__item--mega.is-open > .ctr-mega { display: block; max-height: none; }
  .ctr-nav__item--mega:hover > .ctr-mega { opacity: 1; } /* el hover no abre en móvil */
  .ctr-mega__inner { padding: 4px 6px 10px; }
  .ctr-mega__eyebrow { display: none; }
  .ctr-mega__grid--wide, .ctr-mega__grid--narrow { grid-template-columns: 1fr; }
  .ctr-mega__item { padding: 10px 8px; }
}

/* ============================================================
   RAPTOR ACADEMY
   ============================================================ */

/* Hero — full-bleed gradient (igual que .com-hero) */
.acad-hero {
  background: linear-gradient(135deg, var(--rx-ink) 0%, #2a1f5f 60%, var(--rx-purple) 100%);
  color: #fff;
  padding: calc(var(--rx-header-h) + 52px) 0 48px;
  position: relative;
  overflow: hidden;
}
.acad-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(104,53,254,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.acad-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.acad-hero__copy { flex: 1; min-width: 260px; }
.acad-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-purple-lt);
  margin-bottom: 14px;
}
.acad-hero__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.acad-hero__sub {
  margin: 0 0 20px;
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
  line-height: 1.6;
}
.acad-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.acad-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.acad-hero__stat {
  min-width: 240px;
  max-width: 300px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--rx-radius);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}
.acad-prog-wrap { display: flex; flex-direction: column; gap: 8px; }
.acad-prog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acad-prog-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.acad-prog-pct {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.acad-prog-track {
  height: 7px;
  background: rgba(255,255,255,0.14);
  border-radius: 100px;
  overflow: hidden;
}
.acad-prog-fill {
  height: 100%;
  background: var(--rx-purple-2);
  border-radius: 100px;
  transition: width .5s ease;
}
.acad-prog-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.acad-prog-label strong { color: #fff; }
.acad-pct-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(104,53,254,0.35);
  color: var(--rx-purple-lt);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.acad-pct-badge--new {
  background: rgba(31,157,99,0.25);
  color: #6effc0;
}
.acad-congrats {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

/* Continúa donde lo dejaste */
.acad-continue {
  background: var(--rx-bg-soft-2);
  border-bottom: 1px solid rgba(83,43,204,0.18);
}
.acad-continue__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.acad-continue__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--rx-purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.acad-continue__copy { flex: 1; min-width: 0; }
.acad-continue__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rx-purple);
  margin: 0;
}
.acad-continue__lesson {
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Módulos del programa (carrusel) */
.acad-modules {
  padding: 56px 0 48px;
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
}
.acad-modules__hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.acad-modules__title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--rx-ink);
}
.acad-modules__sub {
  font-size: 14px;
  color: var(--rx-ink-55);
  margin: 0;
}
.acad-modules__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.acad-modules__arrow {
  width: 36px; height: 36px;
  border: 1.5px solid var(--rx-border);
  border-radius: 50%;
  background: var(--rx-surface);
  color: var(--rx-ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.acad-modules__arrow:hover {
  border-color: var(--rx-purple);
  color: var(--rx-purple);
  background: var(--rx-bg-soft-2);
}
.acad-modules__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.acad-modules__track::-webkit-scrollbar { display: none; }
.acad-mod-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  overflow: hidden;
  box-shadow: var(--rx-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.acad-mod-card:hover {
  box-shadow: 0 8px 32px rgba(83,43,204,0.13);
  transform: translateY(-3px);
}
.acad-mod-card__cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acad-mod-card__cover--0 { background: linear-gradient(135deg, #2a1f5f 0%, var(--rx-purple) 100%); }
.acad-mod-card__cover--1 { background: linear-gradient(135deg, #0d4a35 0%, #1f9d63 100%); }
.acad-mod-card__cover--2 { background: linear-gradient(135deg, #0d2231 0%, #1565a0 100%); }
.acad-mod-card__deco {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  color: #fff;
  pointer-events: none;
  user-select: none;
}
.acad-mod-card__mod-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.acad-mod-card__mod-label svg { flex-shrink: 0; }
.acad-mod-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.acad-mod-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.acad-mod-card__count {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rx-purple);
}
.acad-mod-card__prog {
  font-size: 11.5px;
  color: var(--rx-ok);
  font-weight: 600;
  background: #e2f6ec;
  padding: 2px 8px;
  border-radius: 100px;
}
.acad-mod-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--rx-ink);
  line-height: 1.25;
}
.acad-mod-card__desc {
  font-size: 13.5px;
  color: var(--rx-ink-55);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.acad-modules__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.acad-modules__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: var(--rx-border);
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.acad-modules__dot.is-active {
  background: var(--rx-purple);
  transform: scale(1.4);
}

/* Studio layout */
.acad-studio {
  padding: 40px 0;
  background: var(--rx-surface);
}
.acad-studio__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Player */
.acad-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a0a0f;
  border-radius: var(--rx-radius);
  overflow: hidden;
  box-shadow: var(--rx-shadow-lg);
}
.acad-player-wrap video,
.acad-player-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Lesson meta (below player) */
.acad-lesson-meta { padding: 20px 0 0; }
.acad-lesson-meta__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.acad-lesson-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  margin: 0;
  flex: 1;
}
.acad-done-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}
.acad-done-badge.is-done {
  background: #e2f6ec;
  color: #1a7a4a;
  opacity: 1;
}
.acad-lesson-desc {
  font-size: 15px;
  color: var(--rx-ink-70);
  line-height: 1.65;
  margin: 0 0 16px;
}
.acad-mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--rx-border);
  background: transparent;
  font-family: var(--rx-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-ink);
  cursor: pointer;
  transition: all .18s ease;
}
.acad-mark-btn:hover {
  border-color: var(--rx-purple);
  color: var(--rx-purple);
  background: rgba(83,43,204,0.06);
}
.acad-mark-btn.is-done {
  border-color: #1a7a4a;
  color: #1a7a4a;
  background: #e2f6ec;
  cursor: default;
}

/* Sidebar */
.acad-sidebar {
  background: var(--rx-bg);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--rx-header-h) + 16px);
  max-height: calc(100vh - var(--rx-header-h) - 32px);
  display: flex;
  flex-direction: column;
}
.acad-sidebar__head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--rx-border);
  background: var(--rx-surface);
  flex-shrink: 0;
}
.acad-sidebar__label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rx-ink-55);
  margin: 0 0 8px;
}
.acad-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius-sm);
  font-family: var(--rx-font);
  font-size: 14px;
  color: var(--rx-ink);
  background: var(--rx-surface);
  transition: border-color .15s, box-shadow .15s;
}
.acad-search:focus {
  outline: none;
  border-color: var(--rx-purple);
  box-shadow: 0 0 0 3px rgba(83,43,204,0.1);
}
.acad-playlist {
  overflow-y: auto;
  flex: 1;
}

/* Module */
.acad-module {}
.acad-module__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--rx-bg);
  border-bottom: 1px solid var(--rx-border);
  cursor: default;
  user-select: none;
}
.acad-module__icon {
  width: 15px; height: 15px;
  color: var(--rx-purple);
  flex-shrink: 0;
}
.acad-module__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rx-ink);
  flex: 1;
}
.acad-module__count {
  font-size: 11.5px;
  color: var(--rx-ink-55);
  font-weight: 500;
}
.acad-module__caret {
  width: 14px; height: 14px;
  color: var(--rx-ink-40);
  flex-shrink: 0;
  display: none;
  transition: transform .2s;
}
.acad-module__list {}

/* Lesson card */
.acad-lcard {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--rx-border);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
  font-family: var(--rx-font);
}
.acad-lcard:hover { background: rgba(83,43,204,0.05); }
.acad-lcard.is-active {
  background: var(--rx-bg-soft-2);
  border-left: 3px solid var(--rx-purple);
  padding-left: 11px;
}
.acad-lcard__num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rx-bg);
  border: 1px solid var(--rx-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--rx-ink-55);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.acad-lcard.is-active .acad-lcard__num {
  background: var(--rx-purple);
  border-color: var(--rx-purple);
  color: #fff;
}
.acad-lcard.is-done .acad-lcard__num {
  background: #e2f6ec;
  border-color: #9fdfbf;
  color: #1a7a4a;
}
.acad-lcard__info { flex: 1; min-width: 0; }
.acad-lcard__name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.acad-lcard.is-active .acad-lcard__name { color: var(--rx-purple); font-weight: 600; }
.acad-lcard__dur {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--rx-ink-55);
  margin-top: 2px;
}
.acad-lcard__check {
  flex-shrink: 0;
  font-size: 12px;
  color: #1a7a4a;
  opacity: 0;
  transition: opacity .15s;
  font-weight: 700;
}
.acad-lcard.is-done .acad-lcard__check { opacity: 1; }

/* Resources / PDFs */
.acad-resources {
  padding: 56px 0 72px;
  background: var(--rx-bg);
  border-top: 1px solid var(--rx-border);
}
.acad-resources__hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.acad-resources__title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  margin: 0 0 6px;
}
.acad-resources__sub {
  margin: 0;
  color: var(--rx-ink-55);
  font-size: 15.5px;
}
.acad-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.acad-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 16px 18px;
  box-shadow: var(--rx-shadow);
  color: var(--rx-ink);
  text-decoration: none;
  transition: all .18s ease;
}
.acad-doc-card:hover {
  border-color: rgba(83,43,204,0.3);
  box-shadow: 0 6px 24px rgba(83,43,204,0.10);
  transform: translateY(-2px);
  color: var(--rx-ink);
}
.acad-doc-card__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--rx-bg-soft-2);
  border-radius: var(--rx-radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.acad-doc-card__icon svg { width: 18px; height: 18px; color: var(--rx-purple); }
.acad-doc-card__body { flex: 1; min-width: 0; }
.acad-doc-card__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acad-doc-card__desc {
  display: block;
  font-size: 12.5px;
  color: var(--rx-ink-55);
  line-height: 1.45;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.acad-doc-card__arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--rx-purple);
  opacity: 0.5;
  transition: opacity .15s, transform .15s;
}
.acad-doc-card:hover .acad-doc-card__arrow { opacity: 1; transform: translate(2px,-2px); }

/* Academy responsive */
@media (max-width: 1000px) {
  .acad-studio__layout { grid-template-columns: 1fr 300px; }
  .acad-mod-card { flex: 0 0 280px; }
}
@media (max-width: 900px) {
  .acad-hero__inner { flex-direction: column; align-items: flex-start; }
  .acad-hero__stat { width: 100%; max-width: 100%; }
  .acad-studio__layout { grid-template-columns: 1fr; }
  .acad-sidebar {
    position: static;
    max-height: none;
    margin-top: 24px;
  }
  .acad-module__hd { cursor: pointer; }
  .acad-module__caret { display: block; }
  .acad-module__list {
    overflow: hidden;
    max-height: none;
    transition: max-height .3s ease;
  }
  .acad-module__hd.is-open .acad-module__caret { transform: rotate(180deg); }
  .acad-modules__nav { display: none; }
  .acad-mod-card { flex: 0 0 76vw; }
  .acad-continue__inner { gap: 12px; }
  .acad-continue .ctr-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   COMUNICADOS
   ============================================================ */

/* Hero */
/* Páginas con hero a full-bleed (novedades, comunicados): sin padding-top en main ni gap en footer */
.page-hero-fullbleed .ctr-main { padding-top: 0; }
.page-hero-fullbleed .ctr-footer { margin-top: 0; }
.page-leg .ctr-footer { margin-top: 0; }
.page-acad .ctr-main { padding-top: 0; }

.com-hero {
  background: linear-gradient(135deg, var(--rx-ink) 0%, #2a1f5f 100%);
  padding: calc(var(--rx-header-h) + 52px) 0 44px;
  color: #fff;
}
.com-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.com-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rx-purple-lt);
  margin-bottom: 10px;
}
.com-hero__title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.6px;
}
.com-hero__sub {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 48ch;
  line-height: 1.6;
}
.com-hero__stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.com-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.com-hero__stat-num {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.com-hero__stat--nuevo .com-hero__stat-num { color: #86efac; }
.com-hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Filter bar */
.com-filters-bar {
  position: sticky;
  top: var(--rx-header-h);
  z-index: 100;
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
  transition: box-shadow .2s;
}
.com-filters-bar.is-stuck { box-shadow: 0 2px 16px rgba(22,36,49,0.10); }
.com-filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.com-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.com-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--rx-border);
  background: transparent;
  font-family: var(--rx-font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rx-ink-70);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.com-filter:hover {
  border-color: var(--cat-bar, var(--rx-purple));
  color: var(--cat-bar, var(--rx-purple));
}
.com-filter.is-active {
  background: var(--rx-ink);
  border-color: var(--rx-ink);
  color: #fff;
  font-weight: 600;
}
.com-filter__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.com-filter__cnt {
  background: rgba(22,36,49,0.08);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 20px;
  text-align: center;
}
.com-filter.is-active .com-filter__cnt { background: rgba(255,255,255,0.18); }
.com-filters__visible {
  font-size: 13px;
  color: var(--rx-ink-55);
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

/* Main grid */
.com-main { padding: 36px 0 64px; background: var(--rx-bg); }
.com-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Card */
.com-card {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.com-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(22,36,49,0.10), 0 2px 8px rgba(22,36,49,0.06);
  border-color: color-mix(in srgb, var(--cat-bar) 30%, transparent);
}
.com-card.is-hidden {
  display: none;
}

/* Barra de color superior */
.com-card__bar {
  height: 4px;
  background: var(--cat-bar);
  flex-shrink: 0;
}
.com-card__body {
  padding: 20px 22px 0;
  flex: 1;
}
.com-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.com-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}
.com-card__nuevo {
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: com-pulse 2s ease-in-out infinite;
}
@keyframes com-pulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.75; }
}
.com-card__num {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--rx-ink-40);
  letter-spacing: 0.05em;
}
.com-card__date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--rx-ink-55);
  margin-bottom: 10px;
}
.com-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--rx-ink);
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.com-card__desc {
  font-size: 13.5px;
  color: var(--rx-ink-70);
  line-height: 1.6;
  margin: 0;
}

/* Footer de la card */
.com-card__footer {
  padding: 16px 22px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--rx-border);
}
.com-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--cat-bar);
  color: #fff;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .18s, transform .18s;
  flex: 1;
  justify-content: center;
}
.com-card__cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}
.com-card__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rx-border);
  color: var(--rx-ink-55);
  text-decoration: none;
  transition: all .18s;
  flex-shrink: 0;
}
.com-card__dl:hover {
  border-color: var(--cat-bar);
  color: var(--cat-bar);
  background: var(--cat-bg);
}

/* Empty state */
.com-empty {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 0;
  text-align: center;
  color: var(--rx-ink-55);
}
.com-empty p { margin: 0; font-size: 15px; }

/* CTA inferior */
.com-cta {
  background: var(--rx-ink);
  padding: 52px 0;
}
.com-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.com-cta__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.com-cta__sub {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
  .com-hero__inner { flex-direction: column; align-items: flex-start; }
  .com-hero__stats { gap: 20px; }
  .com-filters-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .com-cta__inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .com-grid { grid-template-columns: 1fr; }
  .com-filters { gap: 6px; }
  .com-filter { font-size: 12.5px; padding: 6px 11px; }
}

/* ============================================================
   NOVEDADES — What's New / Product Changelog
   ============================================================ */

/* Hero */
.nov-hero {
  background: linear-gradient(135deg, var(--rx-ink) 0%, #1e1050 55%, #0e0a2e 100%);
  padding: calc(var(--rx-header-h) + 72px) 0 60px;
  overflow: hidden;
  position: relative;
}
.nov-hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nov-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-purple-lt);
  margin-bottom: 18px;
}
.nov-hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rx-purple-lt);
  border-radius: 2px;
}
.nov-hero__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.6px;
}
.nov-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.7;
}
.nov-hero__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nov-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 14px;
  border: 1px solid;
}
.nov-stat div { display: flex; align-items: center; gap: 6px; }
.nov-stat strong { font-weight: 700; font-size: 16px; }
.nov-stat span   { opacity: 0.85; }
.nov-stat--ok {
  background: rgba(31,157,99,0.12);
  border-color: rgba(31,157,99,0.35);
  color: #5ee8a4;
}
.nov-stat--soon {
  background: rgba(161,130,255,0.10);
  border-color: rgba(161,130,255,0.30);
  color: var(--rx-purple-lt);
}
.nov-stat__icon { display: flex; }
.nov-stat__icon svg { width: 18px; height: 18px; }

/* Visual flotante decorativo */
.nov-hero__visual {
  position: relative;
  height: 220px;
}
.nov-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.nov-hero__orb--1 {
  width: 260px; height: 260px;
  background: rgba(104,53,254,0.30);
  top: -40px; right: -20px;
}
.nov-hero__orb--2 {
  width: 180px; height: 180px;
  background: rgba(31,157,99,0.18);
  bottom: 0; left: 20px;
}
.nov-hero__badge-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: nov-float 4s ease-in-out infinite;
}
.nov-hero__badge-float--1 { top: 10px;  left: 20px;  animation-delay: 0s;   }
.nov-hero__badge-float--2 { top: 80px;  right: 10px; animation-delay: 1.4s; }
.nov-hero__badge-float--3 { bottom: 10px; left: 50px; animation-delay: 2.7s; }
@keyframes nov-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Filtro bar */
.nov-filters-bar {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
  position: sticky;
  top: var(--rx-header-h);
  z-index: 90;
  transition: box-shadow 0.2s;
}
.nov-filters-bar.is-stuck { box-shadow: 0 4px 18px rgba(22,36,49,0.10); }
.nov-filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.nov-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nov-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1.5px solid var(--rx-border);
  background: transparent;
  color: var(--rx-ink-70);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--rx-font);
}
.nov-filter:hover { border-color: var(--rx-purple-lt); color: var(--rx-purple); }
.nov-filter.is-active {
  background: var(--rx-purple);
  border-color: var(--rx-purple);
  color: #fff;
}
.nov-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  line-height: 1;
}
.nov-filter:not(.is-active) .nov-filter__count {
  background: var(--rx-bg);
  color: var(--rx-ink-55);
}
.nov-filter__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.nov-filter__dot--ok   { background: var(--rx-ok); }
.nov-filter__dot--soon { background: var(--rx-purple-lt); }
.nov-visible-count {
  font-size: 13px;
  color: var(--rx-ink-55);
  margin: 0;
  white-space: nowrap;
}

/* Badges de estado */
.nov-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1;
}
.nov-badge--disponible {
  background: rgba(31,157,99,0.12);
  color: #1a7a4f;
  border: 1px solid rgba(31,157,99,0.30);
}
.nov-badge--proximamente {
  background: rgba(104,53,254,0.09);
  color: var(--rx-purple);
  border: 1px solid rgba(104,53,254,0.22);
}

/* Categoría tag */
.nov-cat-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--rx-ink-55);
  letter-spacing: 0.03em;
}

/* Sección principal */
.nov-section { padding: 52px 0 64px; }

/* Tarjeta featured (hero card) */
.nov-featured {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  background: var(--rx-surface);
  border-radius: var(--rx-radius);
  overflow: hidden;
  box-shadow: var(--rx-shadow-lg);
  border: 1px solid var(--rx-border);
  margin-bottom: 36px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.nov-featured:hover {
  box-shadow: 0 16px 48px rgba(22,36,49,0.13), 0 3px 10px rgba(22,36,49,0.07);
  transform: translateY(-2px);
}
.nov-featured__img-wrap {
  position: relative;
  overflow: hidden;
}
.nov-featured__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nov-featured:hover .nov-featured__img-wrap img { transform: scale(1.03); }
.nov-featured__body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.nov-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nov-featured__title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--rx-ink);
}
.nov-featured__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rx-ink-70);
  margin: 0;
}
.nov-featured__date {
  font-size: 12.5px;
  color: var(--rx-ink-40);
  margin-top: 4px;
}

/* Grid de cards */
.nov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nov-card {
  background: var(--rx-surface);
  border-radius: var(--rx-radius);
  overflow: hidden;
  border: 1px solid var(--rx-border);
  box-shadow: var(--rx-shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.nov-card:hover {
  box-shadow: 0 12px 36px rgba(22,36,49,0.12), 0 2px 8px rgba(22,36,49,0.06);
  transform: translateY(-3px);
}
.nov-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rx-bg);
}
.nov-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nov-card:hover .nov-card__img-wrap img { transform: scale(1.05); }
.nov-card__badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  backdrop-filter: blur(6px);
}
.nov-badge--disponible.nov-card__badge { background: rgba(241,253,248,0.92); }
.nov-badge--proximamente.nov-card__badge { background: rgba(248,245,255,0.92); }
.nov-card__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nov-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--rx-ink);
}
.nov-card__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--rx-ink-70);
  margin: 0;
  flex: 1;
}

/* Link "Más información" */
.nov-link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rx-purple);
  margin-top: 6px;
  transition: gap 0.18s;
}
.nov-link-more:hover { gap: 9px; }

/* Estado vacío */
.nov-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 0;
  text-align: center;
  color: var(--rx-ink-55);
  grid-column: 1 / -1;
}
.nov-empty p { margin: 0; font-size: 15px; }
.nov-empty svg { opacity: 0.4; }

/* CTA inferior */
.nov-cta {
  background: linear-gradient(135deg, var(--rx-purple-dk) 0%, var(--rx-purple) 100%);
  padding: 56px 0;
}
.nov-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nov-cta__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.3px;
}
.nov-cta__sub {
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 500px;
}
.ctr-btn--white {
  background: #fff;
  color: var(--rx-purple);
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--rx-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ctr-btn--white:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(-1px);
  color: var(--rx-purple-dk);
}

/* Responsive */
@media (max-width: 1000px) {
  .nov-featured { grid-template-columns: 1fr; }
  .nov-featured__img-wrap { aspect-ratio: 16 / 7; }
  .nov-featured__body { padding: 28px 24px; }
  .nov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nov-hero__inner { grid-template-columns: 1fr; }
  .nov-hero__visual { display: none; }
  .nov-hero { padding: 52px 0 44px; }
  .nov-hero__sub { max-width: 100%; }
  .nov-filters-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nov-grid { grid-template-columns: 1fr; }
  .nov-cta__inner { flex-direction: column; }
}
}

/* ============================================================
   POLÍTICAS — Política de Privacidad + Términos de Uso
   ============================================================ */

/* Page header (simple, sin hero) */
.leg-page-header {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
  padding: 32px 0 26px;
}
.leg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rx-ink-40);
  margin-bottom: 10px;
}
.leg-breadcrumb a {
  color: var(--rx-purple);
  font-weight: 500;
}
.leg-breadcrumb a:hover { text-decoration: underline; }
.leg-breadcrumb span[aria-hidden] { color: var(--rx-border); }
.leg-page-header__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--rx-ink);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.leg-page-header__sub {
  font-size: 14px;
  color: var(--rx-ink-55);
  margin: 0;
  line-height: 1.6;
}

/* Tabs bar */
.leg-tabs-bar {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
  position: sticky;
  top: var(--rx-header-h);
  z-index: 90;
  transition: box-shadow 0.2s;
}
.leg-tabs-bar.is-stuck { box-shadow: 0 4px 18px rgba(22,36,49,0.10); }
.leg-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 0;
}
.leg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--rx-radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--rx-ink-70);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--rx-font);
}
.leg-tab:hover { color: var(--rx-purple); background: var(--rx-bg-soft-2); }
.leg-tab.is-active {
  background: var(--rx-purple);
  color: #fff;
  border-color: var(--rx-purple);
}

/* Body layout */
.leg-body { padding: 48px 0 64px; }
.leg-body__layout { position: relative; }

/* Panel */
.leg-panel { display: none; }
.leg-panel.is-active {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* TOC lateral */
.leg-toc {
  position: sticky;
  top: calc(var(--rx-header-h) + 64px);
  max-height: calc(100vh - var(--rx-header-h) - 80px);
  overflow-y: auto;
  padding: 20px;
  background: var(--rx-bg);
  border-radius: var(--rx-radius);
  border: 1px solid var(--rx-border);
}
.leg-toc::-webkit-scrollbar { width: 4px; }
.leg-toc::-webkit-scrollbar-thumb { background: var(--rx-border); border-radius: 4px; }
.leg-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-ink-40);
  margin: 0 0 12px;
}
.leg-toc__link {
  display: block;
  font-size: 12.5px;
  color: var(--rx-ink-55);
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color 0.15s, border-color 0.15s;
}
.leg-toc__link:hover { color: var(--rx-purple); }
.leg-toc__link.is-active { color: var(--rx-purple); border-left-color: var(--rx-purple); font-weight: 500; }

/* Article */
.leg-article { min-width: 0; }

/* Company card */
.leg-company-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  background: var(--rx-bg-soft-2);
  border-radius: var(--rx-radius);
  padding: 24px;
  margin-bottom: 40px;
  border: 1px solid rgba(104,53,254,0.12);
}
.leg-company-card__col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.leg-company-card__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rx-purple);
}
.leg-company-card strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-ink);
}
.leg-company-card span, .leg-company-card a {
  font-size: 13px;
  color: var(--rx-ink-70);
}

/* Intro card (términos) */
.leg-intro-card {
  background: var(--rx-bg);
  border-left: 3px solid var(--rx-purple);
  border-radius: 0 var(--rx-radius-sm) var(--rx-radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.leg-intro-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--rx-ink-70); }
.leg-intro-card p:last-child { margin: 0; }
.leg-intro-card__meta { font-size: 13px; color: var(--rx-ink-55); }
.leg-intro-card__meta strong { color: var(--rx-ink); }

/* Secciones de contenido */
.leg-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rx-border);
  scroll-margin-top: calc(var(--rx-header-h) + 80px);
}
.leg-section:last-child { border-bottom: none; }
.leg-section h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--rx-ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}
.leg-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--rx-purple);
  margin: 20px 0 10px;
}
.leg-section p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--rx-ink-70);
  margin: 0 0 12px;
}
.leg-section p:last-child { margin: 0; }
.leg-section ul, .leg-section ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.leg-section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--rx-ink-70);
  margin-bottom: 5px;
}
.leg-section strong { color: var(--rx-ink); }

/* Número de cláusula */
.leg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--rx-purple);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Definiciones (dl) */
.leg-dl { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.leg-dl__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rx-border);
  align-items: baseline;
}
.leg-dl__item:last-child { border-bottom: none; }
.leg-dl dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rx-purple);
}
.leg-dl dd {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--rx-ink-70);
  margin: 0;
}

/* Tabla de control de cambios */
.leg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.leg-table th {
  background: var(--rx-bg-soft-2);
  color: var(--rx-purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid rgba(104,53,254,0.15);
}
.leg-table td {
  padding: 10px 14px;
  color: var(--rx-ink-70);
  border-bottom: 1px solid var(--rx-border);
  vertical-align: top;
}
.leg-table tbody tr:last-child td { border-bottom: none; }
.leg-table tbody tr:nth-child(even) { background: var(--rx-bg); }

/* Badges legales */
.leg-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.leg-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--rx-bg-soft-2);
  color: var(--rx-purple);
  border: 1px solid rgba(104,53,254,0.18);
}

/* Contacto row */
.leg-contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.leg-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-purple);
  padding: 10px 16px;
  border: 1.5px solid var(--rx-purple);
  border-radius: var(--rx-radius-sm);
  transition: background 0.18s, color 0.18s;
}
.leg-contact-link:hover { background: var(--rx-purple); color: #fff; }

/* Responsable del Tratamiento card */
.leg-responsible-card {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--rx-bg);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
}
.leg-responsible-card__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-purple);
  margin: 0 0 4px;
}
.leg-responsible-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--rx-ink);
  margin: 0 0 16px;
}
.leg-responsible-card__data {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leg-responsible-card__data div {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.leg-responsible-card__data dt {
  font-weight: 600;
  color: var(--rx-ink-70);
  min-width: 70px;
  flex-shrink: 0;
}
.leg-responsible-card__data dd {
  color: var(--rx-ink-55);
  margin: 0;
}
.leg-responsible-card__data a { color: var(--rx-purple); }
.leg-responsible-card__data a:hover { text-decoration: underline; }

/* CTA final */
.leg-cta {
  background: linear-gradient(135deg, var(--rx-ink) 0%, #2d1b69 55%, var(--rx-purple) 100%);
  padding: 72px 0;
}
.leg-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.leg-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-purple-lt);
  margin: 0 0 16px;
}
.leg-cta__title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 600px;
}
.leg-cta__sub {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  max-width: 480px;
  line-height: 1.65;
}
.leg-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .leg-panel.is-active { grid-template-columns: 1fr; }
  .leg-toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; }
  .leg-toc__title { margin: 0; white-space: nowrap; }
  .leg-toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .leg-toc__link { padding: 4px 10px; border-left: none; border-radius: 20px; border: 1px solid var(--rx-border); font-size: 12px; }
  .leg-toc__link.is-active { background: var(--rx-bg-soft-2); border-color: var(--rx-purple); }
  .leg-dl__item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .leg-cta__btns { flex-direction: column; align-items: center; }
  .leg-tabs { flex-direction: column; }
  .leg-company-card { grid-template-columns: 1fr; }
  .leg-responsible-card__data div { flex-direction: column; gap: 2px; }
}

/* ═══════════════════════════════════════════════════════════
   CUENTA — /cuenta/ (page-cuenta.php)
   ═══════════════════════════════════════════════════════════ */
.cta-page { padding: 48px 0 72px; }
.cta-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
/* Sidebar */
.cta-side {
  background: #fff;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: sticky;
  top: calc(var(--rx-header-h) + 20px);
}
.cta-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rx-purple) 0%, var(--rx-purple-2) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.cta-side__name { margin: 0; font-weight: 700; font-size: 15px; color: var(--rx-ink); }
.cta-side__email { margin: 0; font-size: 12.5px; color: #6b7280; }
.cta-side__plan {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 2px 0 6px;
}
.cta-side__meta {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--rx-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.cta-side__meta div { display: flex; flex-direction: column; gap: 1px; }
.cta-side__meta dt { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; }
.cta-side__meta dd { margin: 0; font-size: 13px; color: var(--rx-ink); font-weight: 500; }
.cta-side__nav {
  width: 100%;
  border-top: 1px solid var(--rx-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.cta-side__nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #4b5563;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cta-side__nav-link:hover { background: var(--rx-bg-soft-2); color: var(--rx-purple); }
/* Main */
.cta-main { display: flex; flex-direction: column; gap: 32px; }
.cta-section { background: #fff; border: 1px solid var(--rx-border); border-radius: var(--rx-radius); padding: 32px; }
.cta-section__head { margin-bottom: 20px; }
.cta-section__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--rx-ink); }
.cta-section__sub { margin: 0; font-size: 13.5px; color: #6b7280; }
/* Form */
.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-form__field { display: flex; flex-direction: column; gap: 6px; }
.cta-form__field label { font-size: 13px; font-weight: 600; color: var(--rx-ink); }
.cta-form__field input[type="text"],
.cta-form__field input[type="password"],
.cta-form__field input[type="email"] {
  width: 100%; box-sizing: border-box;
  padding: 9px 13px;
  border: 1.5px solid var(--rx-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--rx-ink);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}
.cta-form__field input:focus { border-color: var(--rx-purple); }
.cta-form__readonly {
  padding: 9px 13px;
  background: var(--rx-bg);
  border: 1.5px solid var(--rx-border);
  border-radius: 8px;
  font-size: 14px;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-form__readonly-note { font-size: 11.5px; color: #9ca3af; }
/* Password */
.cta-pass-wrap { position: relative; }
.cta-pass-wrap input { padding-right: 44px; }
.cta-pass-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 4px; display: flex;
  transition: color .15s;
}
.cta-pass-eye:hover { color: var(--rx-purple); }
.cta-pass-strength {
  display: flex; align-items: center; gap: 10px; margin-top: -4px;
}
.cta-pass-strength__bar {
  flex: 1; height: 5px; background: #e5e7eb; border-radius: 99px; overflow: hidden;
}
.cta-pass-strength__fill {
  height: 100%; border-radius: 99px;
  transition: width .25s, background .25s;
}
.cta-pass-strength__label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.cta-pass-match { font-size: 12.5px; font-weight: 600; margin-top: -4px; }
/* Alerts */
.cta-alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; margin-bottom: 4px;
}
.cta-alert--ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.cta-alert--err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.cta-divider { border: none; border-top: 1px solid var(--rx-border); margin: 0; }
/* Responsive cuenta */
@media (max-width: 860px) {
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-side { position: static; flex-direction: row; flex-wrap: wrap; text-align: left; align-items: flex-start; padding: 20px; gap: 14px; }
  .cta-avatar { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
  .cta-side__nav, .cta-side__meta { display: none; }
}
@media (max-width: 560px) {
  .cta-form__row { grid-template-columns: 1fr; }
  .cta-section { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — front-page.php (dash-*)
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.page-hero-fullbleed .ctr-main { padding-top: 0; }
.page-hero-fullbleed .ctr-footer { margin-top: 0; }
.dash-hero {
  background: linear-gradient(135deg, var(--rx-ink) 0%, #1e1455 55%, var(--rx-purple) 100%);
  padding: calc(var(--rx-header-h) + 48px) 0 52px;
}
.dash-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.dash-hero__copy { flex: 1; }
.dash-hero__saludo { margin: 0 0 4px; font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: .4px; }
.dash-hero__name { margin: 0 0 12px; font-size: clamp(26px,4vw,40px); font-weight: 800; color: #fff; line-height: 1.1; }
.dash-hero__sub { margin: 0; font-size: 15px; color: rgba(255,255,255,.65); max-width: 460px; line-height: 1.65; }
.dash-hero__stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.dash-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  backdrop-filter: blur(6px);
  min-width: 80px;
}
.dash-stat__num { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.dash-stat__label { display: block; font-size: 11px; color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 500; }

/* Section title */
.dash-section-title { font-size: 19px; font-weight: 700; color: var(--rx-ink); margin: 0 0 20px; }

/* Quick cards */
.dash-quick { padding: 52px 0 16px; }
.dash-quick__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }
.dash-qcard {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid var(--rx-border);
  border-radius: var(--rx-radius);
  padding: 16px 18px; text-decoration: none;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.dash-qcard:hover { box-shadow: 0 4px 20px rgba(83,43,204,.12); border-color: var(--rx-purple-lt); transform: translateY(-2px); }
.dash-qcard__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-qcard--purple .dash-qcard__icon { background: #ede9ff; color: var(--rx-purple); }
.dash-qcard--blue   .dash-qcard__icon { background: #dbeafe; color: #1d4ed8; }
.dash-qcard--green  .dash-qcard__icon { background: #d1fae5; color: #065f46; }
.dash-qcard--teal   .dash-qcard__icon { background: #ccfbf1; color: #0d9488; }
.dash-qcard--orange .dash-qcard__icon { background: #fff7ed; color: #c2410c; }
.dash-qcard__body { flex: 1; min-width: 0; }
.dash-qcard__title { display: block; font-size: 14px; font-weight: 700; color: var(--rx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-qcard__desc  { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.45; }
.dash-qcard__arrow { color: #d1d5db; flex-shrink: 0; }
.dash-qcard:hover .dash-qcard__arrow { color: var(--rx-purple); }

/* Paso a paso */
.dash-guide { padding: 60px 0; background: var(--rx-bg); }
.dash-guide--alt { background: #fff; }
.dash-guide__hd { margin-bottom: 40px; }
.dash-guide__badge {
  display: inline-block; padding: 4px 14px;
  border-radius: 20px; font-size: 12.5px; font-weight: 700;
  margin-bottom: 12px;
}
.dash-guide__badge--purple { background: #ede9ff; color: var(--rx-purple); }
.dash-guide__badge--green  { background: #d1fae5; color: #065f46; }
.dash-guide__title { margin: 0 0 8px; font-size: clamp(20px,3vw,26px); font-weight: 800; color: var(--rx-ink); }
.dash-guide__sub { margin: 0; font-size: 14.5px; color: #6b7280; }
.dash-guide__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.dash-guide__steps--green { grid-template-columns: 1fr auto 1fr auto 1fr; }
.dash-guide__connector {
  align-self: flex-start;
  margin-top: 22px;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--rx-purple-lt), var(--rx-purple));
  flex-shrink: 0;
}
.dash-guide__steps--green .dash-guide__connector {
  background: linear-gradient(90deg, #6ee7b7, #059669);
}
.dash-guide__step { display: flex; flex-direction: column; gap: 12px; }
.dash-guide__step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.dash-guide__step-num--purple { background: linear-gradient(135deg,var(--rx-purple),var(--rx-purple-2)); }
.dash-guide__step-num--green  { background: linear-gradient(135deg,#059669,#10b981); }
.dash-guide__step-body { padding-right: 16px; }
.dash-guide__step-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--rx-ink); }
.dash-guide__step-body p  { margin: 0 0 10px; font-size: 13.5px; color: #6b7280; line-height: 1.6; }
.dash-guide__step-link {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--rx-purple); text-decoration: none;
  transition: color .15s;
}
.dash-guide__step-link:hover { color: var(--rx-purple-2); }
.dash-guide__step-link--green { color: #059669; }
.dash-guide__step-link--green:hover { color: #047857; }

/* Portal overview */
.dash-portal { padding: 60px 0 72px; background: var(--rx-bg); }
.dash-portal__sub { margin: -12px 0 32px; font-size: 14.5px; color: #6b7280; }
.dash-portal__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 18px; }
.dash-portal__card {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1.5px solid var(--rx-border);
  border-radius: var(--rx-radius); padding: 20px 18px;
}
.dash-portal__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--rx-bg-soft-2); color: var(--rx-purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-portal__card-title { display: block; font-size: 14px; font-weight: 700; color: var(--rx-ink); margin-bottom: 4px; }
.dash-portal__card-desc  { display: block; font-size: 13px; color: #6b7280; line-height: 1.55; }

/* Responsive dashboard */
@media (max-width: 860px) {
  .dash-hero__inner { flex-direction: column; align-items: flex-start; }
  .dash-hero__stats { flex-wrap: wrap; }
  .dash-guide__steps,
  .dash-guide__steps--green {
    grid-template-columns: 1fr;
  }
  .dash-guide__connector { display: none; }
  .dash-guide__step { flex-direction: row; gap: 14px; }
  .dash-guide__step-body { padding-right: 0; }
}
@media (max-width: 560px) {
  .dash-quick__grid { grid-template-columns: 1fr; }
  .dash-hero { padding-bottom: 36px; }
  .dash-stat { padding: 14px 16px; }
}
