/* ==========================================================================
   XLex · Sistema de diseño monocromo (estilo Apple)
   Blancos, negros y grises. El dorado queda reservado EXCLUSIVAMENTE al logo de XLex.
   Tipografía: fuente del sistema de Apple (SF Pro) vía -apple-system;
   en Windows/Android cae a Inter, la alternativa más próxima.
   ========================================================================== */

:root {
  /* Neutros (paleta Apple) */
  --black: #000000;
  --ink: #1d1d1f;          /* texto principal sobre claro · 16.8:1 */
  --ink-2: #424245;        /* texto secundario fuerte · 10:1 */
  --gray: #6e6e73;         /* texto secundario · 5.1:1 (AA) */
  --gray-dk: #86868b;      /* secundario sobre negro · 6:1 */
  --line: #d2d2d7;
  --line-dk: #424245;
  --surface: #f5f5f7;      /* gris Apple */
  --surface-2: #fbfbfd;
  --white: #ffffff;
  --dark-card: #1d1d1f;
  --dark-card-2: #161617;

  /* Tokens semánticos (se invierten en secciones oscuras) */
  --bg: var(--white);
  --fg: var(--ink);
  --fg-soft: var(--ink-2);
  --fg-muted: var(--gray);
  --card: var(--surface);
  --hair: var(--line);
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --text-soft: var(--fg-soft);

  /* Logo: único elemento dorado de la web */
  --logo-filter: drop-shadow(0 6px 18px rgba(201, 168, 76, 0.28));

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro Icons", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1024px;
  --container-wide: 1200px;
  --header-h: 48px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* Secciones oscuras: invierten los tokens */
.section--dark, .cta-band, .vault {
  --bg: var(--black);
  --fg: #f5f5f7;
  --fg-soft: #d2d2d7;
  --fg-muted: var(--gray-dk);
  --card: var(--dark-card);
  --hair: var(--line-dk);
  --btn-bg: #f5f5f7;
  --btn-fg: var(--ink);
  --text-soft: var(--fg-soft);
  color: var(--fg);
}
.section--gray { --card: var(--white); background: var(--surface); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; margin: 0 0 .5em; color: var(--fg); }
h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.005em; }
h3 { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.17; letter-spacing: .009em; }
p { margin: 0 0 1em; }
/* Énfasis bicolor estilo Apple: el remate del titular en gris */
em.gold, .gold { font-style: normal; color: var(--fg-muted); }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
section { position: relative; padding: clamp(72px, 10vw, 140px) 0; background: transparent; color: var(--fg); }
.section--dark { background: var(--black); }
.page { position: relative; z-index: 1; }

/* ==========================================================================
   Logo 3D de fondo (dorado)
   ========================================================================== */
.bg-3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 1400px; perspective-origin: 50% 40%; }
.bg-3d__stage {
  position: absolute; left: 50%; top: 50%;
  width: min(92vw, 1100px); aspect-ratio: 676 / 400;
  transform-style: preserve-3d;
  transform: translate3d(-50%, -50%, 0) rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)) translateY(var(--py, 0px));
  transition: transform 1.2s var(--ease);
  opacity: 0.07;
  will-change: transform;
}
.bg-3d__layer { position: absolute; inset: 0; background: url("../xlex-logo-oro.png") center / contain no-repeat; transform: translateZ(calc(var(--i) * -2.2px)); filter: brightness(calc(0.7 + var(--i) * -0.015)); }
.bg-3d__layer--front { transform: translateZ(1px); filter: drop-shadow(0 0 1px #f3dc95) drop-shadow(0 0 12px rgba(232, 201, 109, 0.8)); }
.bg-3d__sheen {
  position: absolute; inset: 0; transform: translateZ(2px);
  -webkit-mask: url("../xlex-logo-oro.png") center / contain no-repeat; mask: url("../xlex-logo-oro.png") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, 0.9) 48%, transparent 62%);
  background-size: 250% 100%; animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.bg-grain { display: none; }

/* ==========================================================================
   Cabecera (barra global translúcida)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }
.site-header .container { width: min(100% - 44px, var(--container-wide)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand span { font-size: 12px; color: var(--gray); letter-spacing: -0.01em; display: none; }
@media (min-width: 1100px) { .brand span { display: inline; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 12px; letter-spacing: -0.01em; color: rgba(0, 0, 0, 0.8); padding: 0 10px; line-height: var(--header-h); transition: color .2s; }
.nav a:hover { color: var(--black); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--black); font-weight: 600; }
.nav .nav-cta { margin-left: 8px; line-height: 1; }
.nav a.btn--gold { color: var(--white); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100vh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 44px 32px; background: rgba(251, 251, 253, 0.98);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 28px; font-weight: 600; line-height: 1.2; padding: 10px 0; color: var(--ink); }
  .nav .nav-cta { margin: 20px 0 0; font-size: 17px; }
}

/* ==========================================================================
   Botones (píldora Apple, en blanco y negro)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 1px solid transparent;
  font-family: var(--font-text); font-size: 17px; font-weight: 400; letter-spacing: -0.022em; line-height: 1.2; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--gold { background: var(--btn-bg); color: var(--btn-fg); }
.btn--gold:hover { color: var(--btn-fg); opacity: .86; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--sm { min-height: 28px; padding: 5px 13px; font-size: 12px; }
.btn--lg { min-height: 50px; padding: 14px 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ==========================================================================
   Componentes
   ========================================================================== */
.eyebrow { display: block; margin-bottom: 12px; font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: var(--fg-muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot--live { background: var(--fg); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-family: var(--font); font-size: clamp(19px, 2vw, 24px); line-height: 1.38; letter-spacing: .009em; color: var(--fg-muted); font-weight: 400; }

/* Superficies: tarjetas planas grises, sin bordes ni brillos */
.glass { background: var(--card); border-radius: var(--radius-lg); }
.card { position: relative; padding: clamp(28px, 4vw, 44px); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: scale(1.012); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.section--dark .card:hover, .cta-band .card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }

.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--fg-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-badge { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 20px; color: var(--fg); }
.icon-badge svg { width: 36px; height: 36px; stroke-width: 1.5; }

.divider { display: none; }

/* Entrada al hacer scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 64px 0 80px; text-align: center; }
.hero__inner { max-width: 880px; margin-inline: auto; }
.hero__logo { width: clamp(140px, 18vw, 200px); margin: 0 auto 28px; animation: float 7s ease-in-out infinite; filter: var(--logo-filter); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 { margin: 16px 0 20px; }
.hero .lead { max-width: 680px; margin: 0 auto 36px; }
.hero .btn-row { justify-content: center; }
.hero__scroll { margin-top: 56px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray); font-size: 12px; }
.hero__scroll:hover { text-decoration: none; color: var(--ink); }
.hero__scroll i { width: 20px; height: 32px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 3px; background: currentColor; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.stats { padding-top: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 32px 20px; text-align: center; border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--font); font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink); }
.stat span { font-size: 14px; color: var(--gray); line-height: 1.4; display: block; }
.stats__note { text-align: center; color: var(--gray); font-size: 17px; max-width: 620px; margin: 40px auto 0; }

.solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product { display: flex; flex-direction: column; }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.product__name { font-size: clamp(32px, 3.4vw, 40px); margin: 0; letter-spacing: -0.003em; }
.product__kicker { font-size: 14px; color: var(--fg-muted); margin-bottom: 18px; display: block; }
.product p { color: var(--fg-soft); }
.product .btn-row { margin-top: auto; }
.status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-soft); padding: 5px 11px; border-radius: 980px; border: 1px solid var(--hair); }
.product__ribbon { position: absolute; top: 20px; right: 24px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.product--featured .product__top { margin-top: 8px; }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .55)); }
.about__photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: #fff; }
.about__photo figcaption strong { display: block; font-family: var(--font); font-size: 21px; font-weight: 600; }
.about__photo figcaption span { font-size: 14px; color: rgba(255,255,255,.8); }
.about__photo .ph { position: absolute; inset: 0; display: none; place-items: center; }
.about__photo.is-empty .ph { display: grid; }
.about__photo.is-empty::after { background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .12)); }
.about__photo.is-empty figcaption { color: var(--ink); }
.about__photo.is-empty figcaption span { color: var(--gray); }
.about__photo .ph img { width: 50%; height: auto; object-fit: contain; filter: none; opacity: .6; }
.about__badge { position: absolute; right: -16px; top: 32px; padding: 20px 22px; max-width: 220px; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.about__badge strong { display: block; font-family: var(--font); font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1; }
.about__badge span { font-size: 13px; color: var(--gray); line-height: 1.4; display: block; margin-top: 6px; }
.about__credential { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); }
.about__credential .icon-badge { margin: 0; flex: none; }
.about__credential p { margin: 0; color: var(--gray); font-size: 15px; }
.about__credential strong { color: var(--ink); }

.mentor__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: stretch; }
.mentor__features { display: grid; gap: 12px; margin-top: 32px; }
.feature { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); }
.feature .icon-badge { margin: 0; flex: none; width: 32px; height: 32px; }
.feature .icon-badge svg { width: 28px; height: 28px; }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--gray); font-size: 15px; }
.price-card { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.price-card__tag { font-size: 12px; font-weight: 600; color: var(--gray); margin-bottom: 14px; text-transform: none; }
.price-card__price { font-family: var(--font); font-size: clamp(48px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.price-card__vat { color: var(--ink-2); font-size: 15px; margin: 10px 0 2px; }
.price-card__break { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.price-card .check-list { margin-bottom: 28px; font-size: 15px; }
.price-card .btn { width: 100%; margin-top: auto; }
.price-card__foot { font-size: 12px; color: var(--gray); margin: 14px 0 0; text-align: center; }
.price-card__foot a { text-decoration: underline; }

.cta-band { padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); text-align: center; border-radius: var(--radius-lg); background: var(--black); }
.cta-band h2 { max-width: 820px; margin-inline: auto; }
.cta-band .lead { max-width: 640px; margin: 0 auto 36px; }
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   Pie (estilo Apple: gris claro, letra pequeña)
   ========================================================================== */
.site-footer { position: relative; z-index: 1; padding: 40px 0 24px; background: var(--surface); color: var(--gray); font-size: 12px; line-height: 1.33; }
.site-footer .container { width: min(100% - 44px, var(--container-wide)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 320px; margin-bottom: 8px; }
.footer__brand a { color: var(--ink); }
.site-footer h4 { font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); }
.footer__bottom { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0; }
.footer__bottom nav a { color: var(--ink-2); padding: 0 10px; border-left: 1px solid var(--line); }
.footer__bottom nav a:first-child { border-left: 0; padding-left: 0; }

.fab-mail {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 980px; background: rgba(29, 29, 31, 0.88); color: var(--white); font-size: 14px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transform: translateY(120px); transition: transform .5s var(--ease);
}
.fab-mail.is-visible { transform: none; }
.fab-mail:hover { text-decoration: none; color: var(--white); }
.fab-mail svg { width: 16px; height: 16px; }

/* ==========================================================================
   REDACTALEX
   ========================================================================== */
.rl-hero { padding: clamp(64px, 9vw, 120px) 0; min-height: calc(92svh - var(--header-h)); display: flex; align-items: center; }
.rl-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.rl-hero .container { width: min(100% - 44px, var(--container-wide)); }
.rl-hero h1 { font-size: clamp(40px, 5.4vw, 72px); }
.rl-hero .lead { margin-bottom: 32px; }
.rl-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--gray); font-size: 14px; }
.rl-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.rl-hero__trust svg { width: 16px; height: 16px; }

.vault { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--black); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.vault__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.vault__bar i { width: 10px; height: 10px; border-radius: 50%; background: #424245; }
.vault__bar b { margin-left: auto; font-size: 12px; font-weight: 600; color: #f5f5f7; display: inline-flex; align-items: center; gap: 6px; }
.vault__doc { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.85; color: #d2d2d7; letter-spacing: 0; }
.vault__doc p { margin: 0 0 12px; }
.vault__lock { position: absolute; right: -16px; bottom: -16px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--white); color: var(--black); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.vault__lock svg { width: 28px; height: 28px; }

.risk__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.risk { padding: 36px; }
.risk__num { font-size: 14px; font-weight: 600; color: var(--fg-muted); margin-bottom: 12px; display: block; }
.risk h3 { font-size: 24px; }
.risk p { color: var(--fg-soft); margin-bottom: 12px; }
.risk cite { display: block; font-style: normal; font-size: 12px; color: var(--fg-muted); border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 18px; }
.quote-band { margin-top: 40px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.quote-band svg { width: 40px; height: 40px; color: var(--fg); }
.quote-band p { margin: 0; font-family: var(--font); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; font-weight: 600; color: var(--fg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 36px 32px; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-weight: 600; color: var(--btn-fg); background: var(--btn-bg); margin-bottom: 20px; }
.step p { color: var(--fg-soft); margin: 0; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.benefit { padding: 32px; }
.benefit h3 { font-size: 21px; }
.benefit p { color: var(--fg-soft); margin: 0; font-size: 15px; }

/* Comparativa antes / después */
.compare { padding: clamp(20px, 3vw, 32px); }
.compare__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.seg { display: inline-flex; padding: 3px; border-radius: 980px; background: #e8e8ed; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: 8px 18px; border-radius: 980px; font-size: 14px; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s; }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-weight: 600; }
.compare__legend { display: flex; flex-wrap: wrap; gap: 8px; }
.compare__panes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pane { border-radius: var(--radius); background: var(--white); overflow: hidden; border: 1px solid var(--line); }
.pane--after { background: var(--black); border-color: var(--black); }
.pane__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.pane--after .pane__head { color: #f5f5f7; border-bottom-color: #2d2d2f; }
.pane__body { padding: 22px 24px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.95; color: var(--ink-2); letter-spacing: 0; }
.pane--after .pane__body { color: #d2d2d7; }
.pane__body p { margin: 0 0 14px; }
.pane__body p:last-child { margin: 0; }
.pane__body h4 { font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--gray); margin: 0 0 14px; letter-spacing: -0.01em; }
.pane--after .pane__body h4 { color: var(--gray-dk); }

.pii { border-radius: 4px; padding: .05em .25em; white-space: nowrap; background: #e8e8ed; color: var(--black); box-shadow: inset 0 -2px 0 var(--black); }
.tag { display: inline-block; font-family: var(--font-text); font-size: .78em; font-weight: 600; letter-spacing: 0; padding: .12em .5em; border-radius: 6px; white-space: nowrap; vertical-align: .05em; background: var(--white); color: var(--black); border: 1px solid var(--white); }
.tag.t-id { background: transparent; color: #f5f5f7; border: 1px solid #f5f5f7; }
.tag.t-loc { background: transparent; color: #f5f5f7; border: 1px dashed #f5f5f7; }
.tag.t-fin { background: #424245; color: #f5f5f7; border: 1px solid #424245; }
/* Leyenda y pasos sobre fondo claro: etiquetas invertidas */
.compare__legend .tag, .step .tag { background: var(--ink); color: var(--white); border-color: var(--ink); }
.compare__legend .tag.t-id, .step .tag.t-id { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.compare__legend .tag.t-loc { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.compare__legend .tag.t-fin, .step .tag.t-fin { background: #d2d2d7; color: var(--ink); border-color: #d2d2d7; }

.pane--after .tag { opacity: 0; transform: scale(.85); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.compare.is-processed .pane--after .tag { opacity: 1; transform: none; }
.compare__scanline { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), transparent); }
.pane--after { position: relative; }
.compare.is-scanning .compare__scanline { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-60px); } 100% { opacity: 0; transform: translateY(420px); } }
.compare__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--gray); }
.compare__foot strong { color: var(--ink); }
.compare__foot .btn { color: var(--ink); border-color: var(--ink); }
.compare__foot .btn:hover { color: var(--white); background: var(--ink); }

@media (max-width: 860px) {
  .compare__panes { grid-template-columns: 1fr; }
  .compare[data-view="before"] .pane--after, .compare[data-view="after"] .pane--before { display: none; }
}

.legal-note { margin-top: 28px; padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); background: var(--white); }
.legal-note svg { flex: none; width: 20px; height: 20px; color: var(--ink); margin-top: 2px; }
.legal-note p { margin: 0; font-size: 14px; color: var(--ink-2); }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--font); font-weight: 600; color: var(--ink); font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; color: var(--ink); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .rl-hero__grid, .about__grid, .mentor__grid { grid-template-columns: 1fr; }
  .about__badge { right: 16px; }
  .vault { max-width: 600px; }
}
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .solutions__grid, .risk__grid, .steps, .benefits { grid-template-columns: 1fr; }
  .quote-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .stat { padding: 24px 14px; }
  .fab-mail span { display: none; }
  .fab-mail { padding: 12px; }
  .vault__lock { right: 12px; bottom: -20px; width: 56px; height: 56px; }
  .risk, .step, .benefit { padding: 28px 24px; }
}
@media (max-width: 860px), (hover: none) {
  .bg-3d__layer:not(.bg-3d__layer--front) { display: none; }
  .bg-3d__sheen { display: none; }
  .bg-3d__stage { width: 130vw; transition: none; opacity: 0.06; }
  .card:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
