@font-face {
  font-family: "Clash";
  src: url("/fonts/ClashDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash";
  src: url("/fonts/ClashDisplay-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}



:root {
  --ink: #071a20;
  --ink-2: #0b252c;
  --ink-3: #16353c;
  --panel: #29474a;
  --cyan: #55c7ee;
  --cyan-strong: #00b8e8;
  --cyan-pale: #b8eafb;
  --paper: #f1f4f0;
  --white: #fbfdfb;
  --muted: #a8c4d1;
  --muted-dark: #536970;
  --line: rgba(168, 196, 209, 0.18);
  --line-fuerte: rgba(168, 196, 209, 0.34);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 20px 70px rgba(0, 8, 12, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 2%, rgba(85, 199, 238, 0.08), transparent 25rem),
    var(--ink);
  color: var(--white);
  font-family: "Clash", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.2;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.018) 4px);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

[data-scroll-motion] {
  --motion-x: 0px;
  --motion-y: 0px;
  --motion-rotate: 0deg;
  --motion-scale: 1;
  --motion-opacity: 1;
  --hover-x: 0px;
  --hover-y: 0px;
  --hover-rotate: 0deg;
  opacity: var(--motion-opacity);
  transform: translate3d(calc(var(--motion-x) + var(--hover-x)), calc(var(--motion-y) + var(--hover-y)), 0) rotate(calc(var(--motion-rotate) + var(--hover-rotate))) scale(var(--motion-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.motion-surface {
  transform-origin: 50% 12%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: rgba(7, 26, 32, 0.25);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mientras el hero está en pantalla el header no existe visualmente. */
.header--oculto {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .header--oculto {
    transform: none;
  }
}

/* Al dejar atrás el hero el vidrio se vuelve casi sólido. */
.header--scrolled {
  background: rgba(7, 26, 32, 0.94);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

.header.shell {
  /* Fijo: el ancho de lectura se resuelve con padding, no con width. */
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(36px, calc((100% - 1180px) / 2));
  min-height: 68px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.logo-link {
  justify-self: start;
  margin-left: 8px;
}

.brand-logo {
  display: block;
  overflow: visible;
  position: relative;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  position: absolute;
}

.header-logo,
.footer-logo {
  width: 180px;
  height: 58px;
}

.header-logo img,
.footer-logo img {
  width: 276px;
  left: -41px;
  top: -57px;
}

/* El header es una barra baja ajustada al logo: el lockup se centra en la caja. */
.header-logo {
  width: 132px;
  height: 42px;
}

.header-logo img {
  width: 202px;
  left: 0;
  top: -23px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d7e4e6;
  font-size: 15px;
  letter-spacing: 0.01em;
}


.nav a,
.footer nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::after,
.footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--cyan);
  transition: right 180ms ease;
}

.nav a:hover,
.footer nav a:hover {
  color: var(--cyan);
}

.nav a:hover::after,
.footer nav a:hover::after {
  right: 0;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.pill-button::before,
.search-button::before,
.auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.36) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.pill-button:hover::before,
.search-button:hover::before,
.auth-submit:hover::before {
  transform: translateX(130%);
}

.pill-button span:last-child,
.text-button span,
.search-button span,
.footer-entry span {
  transition: transform 180ms ease;
}

.pill-button:hover,
.text-button:hover,
.search-button:hover {
  transform: translateY(-2px);
}

.pill-button:hover span:last-child,
.text-button:hover span,
.search-button:hover span,
.footer-entry:hover span {
  transform: translate(2px, -2px);
}

.dark-button {
  color: var(--white);
  background: var(--ink-2);
}

.dark-button:hover {
  color: var(--ink);
  background: var(--white);
}

/* Hamburguesa clásica de tres líneas, con los tres colores de la marca.
   En escritorio el nav va inline: el botón solo existe en el desplegable. */
.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-button span:nth-child(1) {
  background: var(--cyan);
}

.menu-button span:nth-child(2) {
  background: var(--cyan-strong);
}

.menu-button span:nth-child(3) {
  background: var(--muted);
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .menu-button span {
    transition: none;
  }
}

/* Acceso a la sesión: último elemento del nav. Inline en escritorio, con
   separador y a ancho completo cuando el nav es desplegable. */
.nav-entrada {
  display: flex;
}

.nav-entrada .pill-button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.hero {
  min-height: 100svh;
  padding: clamp(34px, 4.2vw, 58px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(7, 26, 32, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(7, 26, 32, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 86% 5%, rgba(255, 255, 255, 0.78), transparent 20rem),
    linear-gradient(135deg, var(--cyan-pale), var(--cyan) 58%, #28b5e4);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--ink);
  overflow: visible;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero-motion-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--hero-art-opacity, 1);
  transition: opacity 80ms linear;
  z-index: -1;
}

.hero-route {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 26, 32, 0.38), transparent);
  transform: translate3d(var(--hero-line-x, 0), var(--hero-grid-y, 0), 0) rotate(-16deg);
  transform-origin: left;
  clip-path: inset(0 100% 0 0);
  animation: xb-trazo-linea 460ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

@keyframes xb-trazo-linea {
  to { clip-path: inset(0 0 0 0); }
}

.hero-route::before,
.hero-route::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: -3px;
  border: 1px solid rgba(7, 26, 32, 0.4);
  border-radius: 50%;
  background: var(--cyan-pale);
  opacity: 0;
  animation: xb-punto-linea 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes xb-punto-linea {
  to { opacity: 1; }
}

.hero-route::before { left: 22%; animation-delay: 320ms; }
.hero-route::after { right: 12%; animation-delay: 540ms; }


.hero-route-one {
  width: 72%;
  left: -9%;
  top: 42%;
}

.hero-route-two {
  width: 54%;
  right: -11%;
  top: 23%;
  transform: translate3d(calc(0px - var(--hero-line-x, 0px)), var(--hero-grid-y, 0px), 0) rotate(24deg);
}

.x-trace {
  width: 170px;
  height: 170px;
  display: block;
  pointer-events: none;
  position: absolute;
}

.x-trace i,
.x-trace b {
  height: 1px;
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  background: currentColor;
  transform-origin: center;
}

.x-trace i:first-child { transform: rotate(45deg); }
.x-trace i:nth-child(2) { transform: rotate(-45deg); }
.x-trace b:nth-child(3) { left: 0; right: 58%; transform: rotate(45deg) translateY(-22px); opacity: 0.42; }
.x-trace b:last-child { left: 58%; right: 0; transform: rotate(-45deg) translateY(22px); opacity: 0.42; }

.hero-x-trace {
  right: 5%;
  top: 7%;
  color: rgba(7, 26, 32, 0.19);
  transform: rotate(var(--hero-orbit-rotate, 0deg));
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -250px;
  border-radius: 50%;
  border: 1px solid rgba(7, 26, 32, 0.2);
  box-shadow: 0 0 0 38px rgba(7, 26, 32, 0.035), 0 0 0 78px rgba(7, 26, 32, 0.025);
  z-index: -1;
}

.hero-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  animation: brand-arrival 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes brand-arrival {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-logo {
  width: 520px;
  height: 168px;
  flex: none;
  overflow: hidden;
}

.hero-logo img {
  width: 780px;
  max-width: none;
  left: -52px;
  top: -164px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin: 0;
  color: var(--ink-3);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(34px, 3.8vw, 46px);
  letter-spacing: 0;
  line-height: 1.05;
  max-width: 12ch;
  text-align: right;
  text-transform: none;
}

.search-stage {
  max-width: 940px;
  margin: clamp(16px, 2vh, 24px) auto 0;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: transparent;
  color: var(--white);
  position: relative;
  z-index: 3;
  isolation: isolate;
  animation: search-stage-in 720ms 80ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.search-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: inherit;
  background:
    radial-gradient(circle at 86% 20%, rgba(85, 199, 238, 0.12), transparent 16rem),
    var(--ink-2);
  box-shadow: 0 28px 70px rgba(6, 24, 31, 0.25);
}

@keyframes search-stage-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-heading,
.brand-search,
.search-note {
  position: relative;
  z-index: 3;
}

.search-heading {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 18px;
}

.search-glyph {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(85, 199, 238, 0.6);
  border-radius: 15px;
  display: grid;
  place-content: center;
  color: var(--cyan);
  font-size: 30px;
  line-height: 1;
}

.search-heading h1,
.search-heading .search-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.search-heading p {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-legal-note {
  min-height: 226px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-content: start;
  gap: 18px;
  background: rgba(250, 253, 251, 0.92);
  box-shadow: 0 28px 60px rgba(6, 24, 31, 0.16);
  color: var(--ink);
  position: relative;
  align-self: start;
  overflow: visible;
  isolation: isolate;
}

.hero-legal-note::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 102px;
  height: 1px;
  background: linear-gradient(90deg, rgba(7, 26, 32, 0.2), transparent);
}

.legal-reference {
  display: grid;
  align-content: start;
  position: relative;
  z-index: 2;
}

.legal-reference strong {
  color: var(--cyan-strong);
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 62px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.legal-reference span {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-context {
  position: relative;
  z-index: 3;
}

.legal-context p {
  margin: 0;
  color: #17373f;
  font-size: 13px;
  line-height: 1.65;
}

.legal-context strong {
  color: var(--ink);
}

.legal-context small {
  display: block;
  max-width: 23ch;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.13em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-claim strong,
.sound-panel strong {
  color: var(--white);
}

.hero-support {
  margin-top: clamp(38px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: start;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.scroll-check-transition {
  --check-progress: 0;
  --check-confirmation: 0;
  --check-scale: 0.96;
  width: min(320px, 68vw);
  height: 190px;
  margin: clamp(28px, 5vw, 56px) auto clamp(8px, 2vw, 20px);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.scroll-check {
  width: 280px;
  height: 180px;
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: visible;
  filter: drop-shadow(0 12px 26px rgba(0, 184, 232, 0.2));
  transform: translate(-50%, -50%) scale(var(--check-scale));
  transform-origin: center;
}

.check-path {
  fill: none;
  stroke: var(--cyan-strong);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 248;
  stroke-dashoffset: calc(248px * (1 - var(--check-progress)));
}

.check-orbit {
  width: 220px;
  height: 220px;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(85, 199, 238, calc(0.06 + var(--check-confirmation) * 0.22));
  border-radius: 50%;
  opacity: calc(0.12 + var(--check-confirmation) * 0.88);
  transform: translate(-50%, -50%) rotate(var(--check-orbit-rotate, 0deg));
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}


.hero-claim {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(7, 26, 32, 0.16);
  border-radius: 26px;
  background: rgba(251, 253, 251, 0.45);
}

.hero-claim h2 {
  max-width: 16ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.052em;
  line-height: 0.95;
}

.hero-claim p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: #17373f;
  font-size: 14px;
}

.hero-claim p:last-child {
  padding-top: 20px;
  border-top: 1px solid rgba(7, 26, 32, 0.15);
}

.hero-claim strong {
  color: var(--ink);
}

.brand-search {
  height: 78px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(168, 196, 209, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: #122f37;
  transition: border-color 180ms ease, box-shadow 240ms ease, background 180ms ease;
}

.brand-search:focus-within {
  border-color: rgba(85, 199, 238, 0.9);
  background: #153740;
  box-shadow: 0 0 0 4px rgba(85, 199, 238, 0.1), 0 16px 32px rgba(0, 9, 13, 0.2);
}

.brand-search input {
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  transition: color 180ms ease;
}

.brand-search input::placeholder {
  color: #78939d;
}

.search-button {
  min-width: 190px;
  margin: 7px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 600;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, background 180ms ease;
}

.search-button:hover {
  background: var(--white);
}

.search-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sound-panel {
  max-width: 940px;
  margin: 18px auto 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: #0c2b33;
  border: 1px solid rgba(85, 199, 238, 0.3);
  animation: panel-in 420ms ease both;
  position: relative;
  z-index: 4;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.sound-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.sound-labels span:last-child strong {
  color: var(--cyan);
}

.wave {
  height: 74px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vw, 12px);
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.wave i {
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: var(--muted);
  animation: wave 1.1s ease-in-out infinite alternate;
}

.wave i:nth-child(3n) { height: 46px; animation-delay: -0.35s; background: var(--cyan); }
.wave i:nth-child(4n) { height: 28px; animation-delay: -0.7s; }
.wave i:nth-child(5n) { height: 60px; animation-delay: -0.15s; background: var(--cyan-strong); }

@keyframes wave {
  to { transform: scaleY(0.45); opacity: 0.65; }
}

.sound-panel p {
  max-width: 80ch;
  margin: 0;
  font-size: 13px;
}

.section {
  padding-block: clamp(96px, 11vw, 150px);
  scroll-margin-top: 24px;
  position: relative;
}

.section-connector {
  --connector-progress: 0;
  width: min(420px, 48vw);
  height: 150px;
  position: absolute;
  top: -42px;
  border-top: 1px solid rgba(85, 199, 238, 0.22);
  pointer-events: none;
  transition: clip-path 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-connector::before,
.section-connector::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: -4px;
  border: 1px solid rgba(85, 199, 238, 0.56);
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-connector::before {
  opacity: clamp(0, calc((var(--connector-progress) - 0.18) * 6), 1);
}

.section-connector::after {
  opacity: clamp(0, calc((var(--connector-progress) - 0.72) * 6), 1);
}

.connector-right {
  right: 2%;
  border-right: 1px solid rgba(85, 199, 238, 0.22);
  border-radius: 0 90px 0 0;
  clip-path: inset(0 calc((1 - var(--connector-progress)) * 100%) 0 0);
}

.connector-right::before { left: 16%; }
.connector-right::after { right: -4px; top: auto; bottom: -4px; }

.connector-left {
  left: 2%;
  border-left: 1px solid rgba(85, 199, 238, 0.22);
  border-radius: 90px 0 0;
  clip-path: inset(0 calc((1 - var(--connector-progress)) * 100%) 0 0);
}

.connector-left::before { right: 16%; }
.connector-left::after { left: -4px; top: auto; bottom: -4px; }


.section-x-trace {
  left: -54px;
  top: 18%;
  color: rgba(85, 199, 238, 0.15);
  transform: rotate(-8deg);
}

.section-x-trace-right {
  left: auto;
  right: -54px;
  top: 10%;
  transform: rotate(10deg);
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.completion h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.section-intro {
  max-width: 72ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* § 01 — Dos destinos del mismo negocio. Tabla comparativa densa, sin alturas fijas. */
.destinos {
  width: 100%;
  margin-top: 46px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(41, 71, 74, 0.42), rgba(11, 37, 44, 0.42));
  text-align: left;
  table-layout: fixed;
  position: relative;
}

.destinos::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 74%;
  top: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 360ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.destinos:hover::after {
  right: 22px;
}


.destinos thead th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: bottom;
}

.destinos .col-etiqueta {
  width: 20%;
}

.destinos thead .col-a {
  color: var(--cyan);
  background: rgba(85, 199, 238, 0.07);
  box-shadow: inset 0 2px 0 var(--cyan);
}

.destinos thead .col-b {
  color: var(--muted);
}

.destinos tbody tr + tr th,
.destinos tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.destinos tbody th {
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: top;
}

.destinos tbody td {
  padding: 13px 18px;
  font-size: 15px;
  line-height: 1.3;
  vertical-align: top;
}

.destinos tbody .cell-a {
  color: var(--white);
  background: rgba(85, 199, 238, 0.07);
}

.destinos tbody .cell-a .marca-si {
  color: var(--cyan);
  font-weight: 600;
  margin-right: 8px;
}

.destinos tbody .cell-b {
  color: var(--muted);
}

.destinos tbody .cell-b .marca-no {
  margin-right: 8px;
  font-weight: 600;
}

.destinos tbody tr {
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.destinos tbody tr:hover {
  background: rgba(85, 199, 238, 0.05);
}

.destinos tbody tr:hover th {
  color: var(--muted);
}


.fact-grid article::before,
.monitor-cards article::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 74%;
  top: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fact-grid article:hover::before,
.monitor-cards article:hover::before {
  right: 22px;
}


.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan);
  font-size: 52px;
  line-height: 1;
}

.xpress-icon {
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid rgba(85, 199, 238, 0.34);
  border-radius: 18px;
  display: block;
  background: rgba(7, 26, 32, 0.42);
  color: var(--cyan);
  position: relative;
  overflow: hidden;
}

.xpress-icon > i,
.xpress-icon > b {
  display: block;
  position: absolute;
  box-sizing: border-box;
}

.xpress-icon-priority > i:first-child {
  width: 2px;
  height: 30px;
  left: 17px;
  top: 14px;
  background: currentColor;
}

.xpress-icon-priority > i:first-child::after {
  content: "";
  width: 21px;
  height: 13px;
  position: absolute;
  left: 2px;
  top: 1px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 18%, 76% 52%, 100% 100%, 0 82%);
}

.xpress-icon-priority > i:nth-child(2) {
  width: 25px;
  height: 15px;
  right: 9px;
  bottom: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.xpress-icon-priority > b {
  width: 10px;
  height: 10px;
  right: 9px;
  top: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.xpress-icon-copy > i:first-child,
.xpress-icon-copy > i:nth-child(2) {
  width: 24px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.xpress-icon-copy > i:first-child { left: 13px; top: 13px; opacity: 0.55; }
.xpress-icon-copy > i:nth-child(2) { left: 22px; top: 19px; background: rgba(7, 26, 32, 0.76); }
.xpress-icon-copy > b { width: 13px; height: 7px; right: 10px; bottom: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

.xpress-icon-asset > i:first-child {
  width: 25px;
  height: 25px;
  left: 13px;
  top: 19px;
  border: 2px solid currentColor;
  border-radius: 7px;
  transform: rotate(45deg);
}

.xpress-icon-asset > i:nth-child(2) { width: 2px; height: 27px; right: 16px; top: 12px; background: currentColor; transform: rotate(37deg); transform-origin: bottom; }
.xpress-icon-asset > i:nth-child(2)::after { content: ""; width: 9px; height: 9px; position: absolute; left: -4px; top: 0; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(-37deg); }
.xpress-icon-asset > b { width: 6px; height: 6px; left: 22px; top: 28px; border-radius: 50%; background: currentColor; }

.xpress-icon-notice > i:first-child {
  width: 27px;
  height: 29px;
  left: 15px;
  top: 13px;
  border: 2px solid currentColor;
  border-radius: 16px 16px 8px 8px;
}

.xpress-icon-notice > i:first-child::before { content: ""; width: 8px; height: 4px; position: absolute; left: 7px; top: -7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.xpress-icon-notice > i:nth-child(2) { width: 8px; height: 4px; left: 25px; bottom: 10px; border-bottom: 2px solid currentColor; border-radius: 50%; }
.xpress-icon-notice > b { width: 9px; height: 2px; right: 6px; top: 17px; background: currentColor; box-shadow: 0 9px 0 currentColor; }

.xpress-icon-counsel > i:first-child { width: 13px; height: 13px; left: 15px; top: 11px; border: 2px solid currentColor; border-radius: 50%; }
.xpress-icon-counsel > i:nth-child(2) { width: 29px; height: 20px; left: 7px; bottom: 11px; border: 2px solid currentColor; border-bottom: 0; border-radius: 18px 18px 0 0; }
.xpress-icon-counsel > b { width: 17px; height: 20px; right: 7px; bottom: 9px; border: 2px solid currentColor; border-radius: 9px 9px 12px 12px; background: var(--ink-2); transform: rotate(8deg); }

.xpress-icon-renewal > i:first-child,
.xpress-icon-refund > i:first-child { width: 31px; height: 31px; left: 13px; top: 13px; border: 2px solid currentColor; border-bottom-color: transparent; border-radius: 50%; }
.xpress-icon-renewal > i:first-child::after,
.xpress-icon-refund > i:first-child::after { content: ""; width: 9px; height: 9px; position: absolute; right: -4px; bottom: 1px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(12deg); }
.xpress-icon-renewal > i:nth-child(2) { width: 2px; height: 10px; left: 28px; top: 21px; background: currentColor; transform-origin: bottom; }
.xpress-icon-renewal > b { width: 9px; height: 2px; left: 28px; top: 29px; background: currentColor; transform-origin: left; transform: rotate(28deg); }

.xpress-icon-refund > i:nth-child(2) { width: 2px; height: 18px; left: 28px; top: 20px; background: currentColor; }
.xpress-icon-refund > b { width: 12px; height: 2px; left: 23px; top: 25px; background: currentColor; box-shadow: 0 7px 0 currentColor; }

.xpress-icon-guided > i:first-child { width: 25px; height: 32px; left: 11px; top: 12px; border: 2px solid currentColor; border-radius: 5px; }
.xpress-icon-guided > i:first-child::after { content: ""; width: 13px; height: 2px; position: absolute; left: 5px; top: 8px; background: currentColor; box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor; opacity: 0.62; }
.xpress-icon-guided > i:nth-child(2) { width: 16px; height: 16px; right: 8px; bottom: 9px; border: 2px solid currentColor; border-radius: 50%; background: var(--ink-2); }
.xpress-icon-guided > b { width: 11px; height: 2px; right: 3px; bottom: 7px; background: currentColor; transform: rotate(45deg); }

.xpress-icon-privacy > i:first-child { width: 28px; height: 24px; left: 15px; bottom: 10px; border: 2px solid currentColor; border-radius: 6px; }
.xpress-icon-privacy > i:nth-child(2) { width: 18px; height: 17px; left: 20px; top: 9px; border: 2px solid currentColor; border-bottom: 0; border-radius: 12px 12px 0 0; }
.xpress-icon-privacy > b { width: 42px; height: 2px; left: 8px; top: 28px; background: currentColor; box-shadow: 0 0 0 3px var(--ink-2); transform: rotate(-42deg); }

.xpress-icon-alert {
  border-color: rgba(7, 26, 32, 0.34);
  background: rgba(251, 253, 251, 0.26);
  color: var(--ink);
}

.xpress-icon-alert > i:first-child { width: 38px; height: 34px; left: 9px; top: 11px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.xpress-icon-alert > i:first-child::after { content: ""; position: absolute; inset: 4px; background: var(--cyan); clip-path: inherit; }
.xpress-icon-alert > i:nth-child(2) { width: 2px; height: 12px; left: 28px; top: 23px; background: currentColor; z-index: 2; }
.xpress-icon-alert > b { width: 3px; height: 3px; left: 27px; top: 38px; border-radius: 50%; background: currentColor; z-index: 2; }

.fact-grid h3,
.monitor-cards h3 {
  margin: auto 0 14px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.fact-grid p,
.monitor-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}


.section-soft {
  width: min(1280px, calc(100% - 24px));
  margin: -28px auto -18px;
  padding-inline: 12px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 34px 80px rgba(0, 8, 12, 0.18);
  isolation: isolate;
  z-index: 4;
}

.section-soft > .shell {
  position: relative;
  z-index: 4;
}

.industry-tabs,
.class-layout,
.class-empty {
  position: relative;
  z-index: 6;
}

.industry-tabs {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-tabs button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(7, 26, 32, 0.36);
  color: #c2d5d9;
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.industry-tabs button:hover,
.industry-tabs button.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.class-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.class-list {
  display: grid;
  gap: 14px;
}

.class-card {
  width: 100%;
  min-height: 144px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(7, 26, 32, 0.55);
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.class-card:hover {
  transform: translateX(5px);
  border-color: rgba(85, 199, 238, 0.65);
}

.class-card.selected {
  border-color: var(--cyan);
  background: var(--ink-2);
}

.class-number {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.class-copy {
  display: grid;
  gap: 7px;
}

.class-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.class-copy small {
  color: var(--muted);
  font-size: 13px;
}

.class-check {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--muted);
}

.class-card.selected .class-check {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}


.investment-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 24px 45px rgba(2, 18, 24, 0.16);
}

.investment-card .eyebrow {
  color: #1a5364;
}

.price-row,
.selected-classes,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.price-row {
  padding-block: 15px;
  border-bottom: 1px solid rgba(7, 26, 32, 0.16);
  font-size: 14px;
}

.selected-classes {
  padding-top: 22px;
  font-size: 14px;
}

.selected-classes strong {
  font-size: 20px;
}

.total-row {
  margin-top: 22px;
  padding: 22px;
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--white);
}

.total-row strong {
  color: var(--cyan);
  font-size: 26px;
}

.investment-card > p:last-child {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 13px;
}

.investment-card > p:last-child strong {
  color: var(--ink);
}

.class-empty {
  min-height: 310px;
  margin-top: 32px;
  border: 1px dashed rgba(85, 199, 238, 0.5);
  border-radius: var(--radius-lg);
  display: grid;
  place-content: center;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.class-empty span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-head {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: end;
  gap: 60px;
}

.process-head aside {
  padding-left: 24px;
  border-left: 1px solid var(--cyan);
}

.process-head aside span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.process-head aside p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.process-journey {
  --motion-progress: 0;
  margin-top: 58px;
  padding-top: 52px;
  position: relative;
}

.process-progress {
  height: 2px;
  position: absolute;
  left: 10%;
  right: 10%;
  top: 24px;
  overflow: hidden;
  background: rgba(168, 196, 209, 0.18);
}

.process-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(168, 196, 209, 0.16) 12px 13px);
}

.process-progress i {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, var(--cyan-strong), var(--cyan-pale));
  box-shadow: 0 0 16px rgba(85, 199, 238, 0.55);
  transform: scaleX(var(--motion-progress));
  transform-origin: left;
}

.process-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
}

.process-grid li {
  min-height: 230px;
  padding: 58px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(41, 71, 74, 0.5), rgba(11, 37, 44, 0.2));
  opacity: 0.36;
  position: relative;
  transform: translate3d(0, 18px, 0) scale(0.975);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms ease, border-color 220ms ease;
}

.process-grid li:nth-child(even) {
  transform: translate3d(0, 32px, 0) scale(0.97);
}

.process-grid li.is-active {
  opacity: 1;
  border-color: rgba(85, 199, 238, 0.3);
  background: linear-gradient(160deg, rgba(41, 71, 74, 0.82), rgba(11, 37, 44, 0.5));
  transform: translate3d(0, 0, 0) scale(1);
}

.process-grid li:hover {
  border-color: rgba(85, 199, 238, 0.58);
  background: var(--panel);
}

.process-node {
  width: 28px;
  height: 28px;
  position: absolute;
  left: 50%;
  top: -42px;
  border: 1px solid rgba(168, 196, 209, 0.4);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--ink);
  transform: translateX(-50%);
  transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.process-node i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-dark);
  transition: background 240ms ease, transform 240ms ease;
}

.process-grid li.is-active .process-node {
  border-color: var(--cyan);
  background: var(--ink-2);
  box-shadow: 0 0 0 7px rgba(85, 199, 238, 0.08), 0 0 22px rgba(85, 199, 238, 0.3);
}

.process-grid li.is-active .process-node i {
  background: var(--cyan);
  transform: scale(1.35);
}

.step-number {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.process-grid strong {
  margin-top: auto;
  font-size: 17px;
  line-height: 1.2;
}

.process-grid small {
  margin-top: 12px;
  color: var(--muted);
}

.process-note {
  max-width: 80ch;
  margin: 26px 0 0;
  color: var(--muted);
}

.process-note strong {
  color: var(--white);
}

.monitoring {
  width: min(1280px, calc(100% - 24px));
  margin: -34px auto -24px;
  padding-inline: 12px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 34px 84px rgba(0, 8, 12, 0.2);
  isolation: isolate;
  z-index: 4;
}

.monitoring .section-heading h2 {
  max-width: 13ch;
}

.monitor-layout {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  /* Da profundidad real al rotateX de entrada del .case-panel */
  perspective: 1200px;
}

.case-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.case-toolbar {
  min-height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink-2);
  color: var(--muted);
  font-size: 13px;
}

.case-toolbar > span {
  display: flex;
  gap: 6px;
}

.case-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.42;
}

.case-toolbar i:first-child {
  opacity: 1;
}

/* Etiqueta honesta: el expediente del panel es ilustrativo, no un caso real. */
.case-ejemplo {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid rgba(168, 196, 209, 0.45);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.milestones {
  padding: 10px 24px 24px;
}

.milestone {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(7, 26, 32, 0.1);
}

.milestone-dot {
  width: 26px;
  height: 26px;
  border: 1px solid #aac2c7;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--ink);
  font-size: 12px;
}

.milestone.complete .milestone-dot {
  border-color: var(--cyan-strong);
  background: var(--cyan);
}

.milestone strong {
  font-size: 14px;
}

.milestone small {
  color: var(--ink-3);
  font-size: 13px;
}

.monitor-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.monitor-cards article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(7, 26, 32, 0.54);
  overflow: hidden;
  position: relative;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.monitor-cards article:hover {
  --hover-y: -6px;
  border-color: rgba(85, 199, 238, 0.5);
  background: rgba(7, 26, 32, 0.76);
  box-shadow: 0 24px 46px rgba(0, 8, 12, 0.18);
}

.monitor-cards article:first-child {
  grid-column: 1 / -1;
}

.system-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.system-card-top > span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.monitor-cards h3 {
  margin: 30px 0 12px;
}

.monitor-cards article:first-child h3 {
  margin-top: 20px;
}

.garantia-band {
  margin-top: 46px;
  padding: clamp(30px, 4vw, 54px);
  border-radius: var(--radius-xl);
  background: var(--cyan-pale);
  color: var(--ink);
}

.garantia-band-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 34px);
}

.garantia-cifra {
  font-family: "Clash", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(76px, 12vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.garantia-claim {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.garantia-condicion {
  max-width: 92ch;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  color: #2c545f;
  font-size: 15px;
  line-height: 1.6;
}

.fraud-alert {
  margin-top: 52px;
  padding: 30px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  background: var(--cyan);
  color: var(--ink);
}

.fraud-alert > svg {
  color: var(--ink);
}

.fraud-alert h3 {
  max-width: 34ch;
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.fraud-alert p {
  max-width: 88ch;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.fact-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fact-grid-duo {
  grid-template-columns: repeat(2, 1fr);
}

.fact-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  background: rgba(11, 37, 44, 0.62);
  overflow: hidden;
  position: relative;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.fact-grid article:hover {
  --hover-y: -7px;
  border-color: rgba(85, 199, 238, 0.48);
  background: rgba(41, 71, 74, 0.72);
  box-shadow: 0 26px 50px rgba(0, 8, 12, 0.18);
}

.fact-grid article > .xpress-icon {
  align-self: flex-end;
}

.fact-grid .fact-icon {
  align-self: flex-start;
  color: var(--cyan);
}

.fact-grid h3 {
  margin: 22px 0 14px;
}

.fact-grid p {
  font-size: 16px;
}


.completion {
  min-height: 580px;
  padding: clamp(44px, 7vw, 80px);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-pale));
  color: var(--ink);
  position: relative;
  margin-top: -26px;
  box-shadow: 0 38px 90px rgba(0, 8, 12, 0.24);
}

.completion::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -170px;
  border: 1px solid rgba(7, 26, 32, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(7, 26, 32, 0.035), 0 0 0 100px rgba(7, 26, 32, 0.025);
}

.completion .eyebrow {
  color: var(--ink);
}

.completion-copy {
  position: relative;
  z-index: 2;
}

.completion-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 26px 0 0;
  color: var(--ink);
}

.completion-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(7, 26, 32, 0.5);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease;
}

.diploma-slot {
  justify-self: end;
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
}

/* Vidrio templado claro: translucidez + desenfoque + bisel de luz. */
.diploma-vidrio {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 34px;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background:
    linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.14) 48%,
      rgba(255, 255, 255, 0.28) 100%
    );
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 30px 70px rgba(7, 26, 32, 0.18),
    0 2px 10px rgba(7, 26, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  color: var(--ink);
  text-align: center;
  position: relative;
  isolation: isolate;
}

/* Bisel de 1px con gradiente de luz, arriba-izquierda a abajo-derecha. */
.diploma-vidrio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 38%,
    rgba(255, 255, 255, 0) 72%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* El brillo del componente de tilt se recorta al radio de la card. */
.diploma-vidrio > .pointer-events-none {
  border-radius: inherit;
}

/* Logo completo de la marca como protagonista: ocupa ~72% del ancho de la card,
   centrado y sin deformarse, con el mismo parallax y sombra flotante del escudo. */
.diploma-logo {
  display: block;
  width: 72%;
  transform: translateZ(52px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 22px rgba(7, 26, 32, 0.28));
}

.diploma-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.diploma-guardianes {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  position: relative;
  transform: translateZ(12px);
}

/* Expediente en vivo: teaser flotante de `/solicitar` (reusa DiplomaVidrio). */
.xb-expediente-vivo {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: calc(clamp(12px, 3vw, 24px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  max-width: 28vw;
}

/* La card de vidrio es fluida (width:100%); la acotamos a un teaser pequeño. */
.xb-expediente-vivo-card {
  width: 160px;
}

/* Mantiene el tilt 3D del DiplomaVidrio dentro del teaser. */
.xb-expediente-vivo-card .diploma-vidrio {
  padding: 16px;
  border-radius: 1rem;
}

.xb-expediente-vivo-texto {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* En móvil el formulario ocupa todo el ancho: un fijo aquí taparía campos. */
@media (max-width: 640px) {
  .xb-expediente-vivo {
    display: none;
  }
}

.footer {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
}

.footer-entry {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 13px;
}

.auth-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(85, 199, 238, 0.14), transparent 30rem),
    var(--ink);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  width: 600px;
  height: 600px;
  position: absolute;
  left: -300px;
  bottom: -320px;
  border: 1px solid rgba(85, 199, 238, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(85, 199, 238, 0.02), 0 0 0 140px rgba(85, 199, 238, 0.016);
}

.auth-back {
  position: absolute;
  left: 34px;
  top: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-back span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--cyan);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.auth-intro {
  min-height: 660px;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--cyan-pale), var(--cyan));
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.auth-intro::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -170px;
  border: 1px solid rgba(7, 26, 32, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(7, 26, 32, 0.03), 0 0 0 90px rgba(7, 26, 32, 0.02);
}

.auth-logo {
  width: 250px;
  height: 84px;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.auth-logo img {
  width: 375px;
  left: -25px;
  top: -78px;
}

.auth-intro .eyebrow {
  margin-top: 70px;
  color: #1a5666;
}

.auth-intro h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--ink);
}

.auth-panel {
  padding: clamp(40px, 6vw, 68px);
  align-self: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  border-radius: 999px;
  background: #06191e;
}

.auth-tabs button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}

.auth-tabs button.active {
  background: var(--cyan);
  color: var(--ink);
}

.auth-form {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #d9e6e8;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(168, 196, 209, 0.22);
  border-radius: 10px;
  outline: 0;
  background: #112f37;
  color: var(--white);
}

.auth-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 199, 238, 0.1);
}

.password-field {
  position: relative;
}

.password-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-size: 12px;
  transform: translateY(-50%);
}

.password-field input {
  padding-right: 78px;
}

.auth-submit {
  min-height: 54px;
  margin-top: 6px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cyan);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.auth-submit:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.auth-security {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: flex;
  }

  .nav-entrada {
    width: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-entrada .pill-button {
    width: 100%;
    min-height: 46px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 26, 32, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-support {
    grid-template-columns: 1fr;
  }

  .hero-legal-note {
    min-height: 240px;
  }

  .fact-grid,
  .fact-grid-duo {
    grid-template-columns: 1fr;
  }


  .class-layout,
  .monitor-layout,
  .completion,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-journey {
    padding: 0 0 0 48px;
  }

  .process-progress {
    width: 2px;
    height: auto;
    left: 14px;
    right: auto;
    top: 24px;
    bottom: 24px;
  }

  .process-progress i {
    transform: scaleY(var(--motion-progress));
    transform-origin: top;
  }

  .process-grid li {
    min-height: 144px;
    padding: 24px 22px 24px 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .process-grid li:nth-child(even) {
    transform: translate3d(18px, 20px, 0) scale(0.975);
  }

  .process-grid li.is-active,
  .process-grid li:nth-child(even).is-active {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .process-grid strong {
    margin-top: 22px;
  }

  .process-node {
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
  }

  .diploma-slot {
    justify-self: center;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer nav {
    display: none;
  }

  .auth-intro {
    min-height: 540px;
  }

  .auth-panel {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header.shell {
    width: 100%;
    padding-inline: 20px;
    min-height: 58px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .logo-link {
    margin-left: 2px;
  }

  .header-logo {
    width: 118px;
    height: 38px;
  }

  .header-logo img {
    width: 181px;
    left: 0;
    top: -20px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .nav {
    top: 56px;
  }

  .hero {
    width: min(100% - 16px, 1180px);
    min-height: 0;
    padding: 22px 14px 18px;
    border-radius: 24px;
  }

  .hero-route-two {
    display: none;
  }

  .hero-x-trace {
    width: 120px;
    height: 120px;
    right: -18px;
  }

  .hero-brand {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .hero-logo {
    width: 180px;
    height: 57px;
    overflow: hidden;
  }

  .hero-logo img {
    width: 270px;
    max-width: none;
    left: -17px;
    top: -58px;
  }

  .hero-eyebrow {
    margin: 0;
    font-size: clamp(14px, 3.8vw, 17px);
    max-width: 10ch;
    text-align: right;
  }

  .search-stage {
    margin-top: 12px;
    padding: 18px;
    border-radius: 20px;
  }

  .search-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-glyph {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 24px;
  }

  .search-heading h1,
  .search-heading .search-title {
    font-size: clamp(31px, 9.2vw, 40px);
  }

  .search-heading p {
    margin-top: 10px;
    font-size: 13px;
  }

  .hero-legal-note {
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
  }

  .hero-legal-note::before {
    left: 20px;
    right: 20px;
    top: 88px;
  }

  .legal-reference {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 14px;
  }

  .legal-reference strong {
    font-size: 56px;
  }

  .legal-reference span {
    margin: 0 0 3px;
  }

  .legal-context {
    padding: 0;
  }

  .legal-context p {
    font-size: 13px;
  }

  .legal-context small {
    margin-top: 20px;
  }

  .hero-support {
    margin-top: 32px;
    gap: 14px;
  }

  .scroll-check-transition {
    width: 220px;
    height: 150px;
    margin: 28px auto 8px;
  }

  .scroll-check {
    width: 220px;
    height: 142px;
  }

  .check-path {
    stroke-width: 13;
  }

  .check-orbit {
    width: 170px;
    height: 170px;
  }


  .hero-claim {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .hero-claim h2 {
    font-size: clamp(34px, 10.4vw, 46px);
  }

  .hero-claim p {
    margin-top: 18px;
  }

  .brand-search {
    height: auto;
    margin-top: 18px;
    padding: 6px;
    grid-template-columns: 1fr;
  }

  .brand-search input {
    height: 54px;
    padding-inline: 14px;
  }

  .search-button {
    min-width: 0;
    min-height: 52px;
    margin: 0;
  }

  .sound-panel {
    padding: 20px;
  }

  .sound-labels {
    display: grid;
  }

  .section {
    padding-block: 86px;
  }

  .section-heading h2,
  .completion h2 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .section-intro {
    font-size: 14px;
  }

  /* Móvil: cada renglón se apila etiqueta → registró → solo la usó. Sin scroll lateral. */
  .destinos {
    margin-top: 34px;
    display: block;
  }

  .destinos thead {
    display: none;
  }

  .destinos tbody,
  .destinos tbody tr,
  .destinos tbody th,
  .destinos tbody td {
    display: block;
    width: 100%;
  }

  .destinos tbody tr {
    padding: 14px 0 4px;
  }

  .destinos tbody tr + tr {
    border-top: 1px solid var(--line);
  }

  .destinos tbody tr + tr th,
  .destinos tbody tr + tr td {
    border-top: 0;
  }

  .destinos tbody th {
    padding: 0 16px 8px;
    white-space: normal;
  }

  .destinos tbody td {
    padding: 8px 16px;
    font-size: 14px;
  }

  .destinos tbody td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .destinos tbody .cell-a::before {
    color: var(--cyan);
  }

  .destinos tbody .cell-b::before {
    color: var(--muted);
  }

  .destinos tbody .cell-a {
    border-left: 2px solid var(--cyan);
  }






  .xpress-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    transform: scale(0.93);
    transform-origin: top right;
  }

  .section-soft,
  .monitoring {
    width: calc(100% - 12px);
    margin-top: -14px;
    margin-bottom: -10px;
    border-radius: 24px;
  }

  .section-connector {
    width: 46vw;
    height: 92px;
    top: -18px;
    opacity: 0.7;
  }

  .section-x-trace {
    width: 110px;
    height: 110px;
    left: -38px;
  }

  .section-x-trace-right {
    left: auto;
    right: -38px;
  }

  .industry-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .industry-tabs::-webkit-scrollbar {
    display: none;
  }

  .industry-tabs button {
    flex: none;
  }

  .class-card {
    min-height: 0;
    grid-template-columns: 1fr 36px;
  }

  .class-number {
    grid-column: 1 / -1;
  }

  .class-copy {
    grid-column: 1;
  }

  .class-check {
    grid-column: 2;
  }

  .investment-card {
    padding: 22px;
  }

  .total-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-head {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-grid {
    margin-top: 0;
  }

  .process-journey {
    margin-top: 38px;
    padding-left: 42px;
  }

  .process-grid li {
    min-height: 132px;
    padding: 20px 18px 20px 34px;
  }

  .process-grid li:nth-child(even) {
    transform: translate3d(10px, 14px, 0) scale(0.98);
  }

  .process-grid li:nth-child(even).is-active {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .process-node {
    left: -29px;
  }

  .case-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .milestone {
    min-height: 84px;
    grid-template-columns: 30px 1fr;
  }

  .milestone small {
    grid-column: 2;
  }

  .monitor-cards {
    grid-template-columns: 1fr;
  }

  .monitor-cards article:first-child {
    grid-column: auto;
  }

  .fraud-alert {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .completion {
    width: calc(100% - 16px);
    padding: 42px 22px;
    gap: 48px;
    margin-top: -12px;
    border-radius: 24px;
  }

  .completion-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .diploma-slot {
    max-width: 320px;
  }

  .footer {
    min-height: 180px;
    gap: 20px;
  }

  .footer-logo {
    width: 150px;
    height: 50px;
  }

  .footer-logo img {
    width: 230px;
    left: -34px;
    top: -46px;
  }

  .auth-page {
    padding: 78px 8px 12px;
    place-items: start center;
  }

  .auth-back {
    left: 16px;
    top: 20px;
  }

  .auth-shell {
    border-radius: 24px;
  }

  .auth-intro {
    min-height: 500px;
    padding: 34px 26px;
  }

  .auth-logo {
    width: 210px;
    height: 70px;
  }

  .auth-logo img {
    width: 315px;
    left: -21px;
    top: -65px;
  }

  .auth-intro h1 {
    font-size: clamp(39px, 12vw, 52px);
  }

  .auth-panel {
    padding: 38px 22px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compatibilidad visual con la aplicación funcional existente. */
:root {
  --base: var(--ink);
  --elev: var(--ink-2);
  --elev2: var(--ink-3);
  --borde: var(--panel);
  --txt: var(--white);
  --tenue: var(--muted);
  --cian: var(--cyan);
  --electrico: var(--cyan-strong);
  --hielo: var(--paper);
  --gris: #e7ece7;
  --marino: var(--ink);
  --grafito: var(--muted-dark);
  --ambar: #e9a23b;
  --rojo: #e8654f;
  --r: var(--radius-md);
}

.xb-approved-home {
  min-height: 100vh;
  overflow: clip;
  background: var(--ink);
  color: var(--white);
}

/* El fondo del hero es de borde a borde; el contenido conserva su ancho de
   lectura de 1180px, centrado con el padding lateral. */
.xb-approved-home > .hero {
  display: block;
  color: var(--white);
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  border-radius: 0;
  box-shadow: none;
  padding-inline: max(clamp(34px, 4.2vw, 58px), calc((100vw - 1180px) / 2));
  /* El header ya no se pinta sobre el hero: no hace falta reservarle espacio. */
  padding-top: clamp(34px, 4.2vw, 58px);
}

@media (max-width: 680px) {
  .xb-approved-home > .hero {
    padding-top: 22px;
  }
}


.xb-approved-home .buscador {
  max-width: none;
  margin: 0;
}

.xb-approved-home .search-stage .search-heading {
  margin-bottom: 26px;
}

.xb-approved-home .brand-search {
  position: relative;
}

.xb-approved-home .brand-search input {
  width: 100%;
}

.xb-approved-home .estado {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.xb-approved-home .ondas,
.xb-approved-home .res {
  border-radius: 22px;
}

.xb-approved-home .res {
  background: var(--ink-2);
  color: var(--white);
}

.xb-approved-home .res__cab,
.xb-approved-home .res__pie,
.xb-approved-home .fila {
  border-color: rgba(168, 196, 209, 0.18);
}

.xb-approved-home .giros {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xb-approved-home .giro {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(168, 196, 209, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #d7e4e6;
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.xb-approved-home .giro[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.xb-approved-home .clases {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.xb-approved-home .clase {
  width: 100%;
  min-height: 94px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(168, 196, 209, 0.22);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 82px 1fr 38px;
  align-items: center;
  gap: 16px;
  background: rgba(11, 37, 44, 0.78);
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.xb-approved-home .clase[data-on="1"] {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(85, 199, 238, 0.26);
}

.xb-approved-home .clase__n {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.xb-approved-home .clase .tick {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 196, 209, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.xb-approved-home .clase[data-on="1"] .tick {
  border-color: var(--cyan);
  background: var(--cyan);
}

.xb-approved-home .cuenta {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.xb-approved-home .cuenta .micro,
.xb-approved-home .cuenta strong {
  color: var(--ink);
}

.xb-approved-home .cuenta__r,
.xb-approved-home .cuenta__t {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(7, 26, 32, 0.13);
  font-size: 13px;
}

.xb-approved-home .cuenta__t {
  margin-top: 8px;
  border-bottom: 0;
  font-size: 22px;
  font-weight: 600;
}

.xb-approved-home .cuenta .aviso {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.xb-app-shell,
.xb-request-shell {
  background:
    radial-gradient(circle at 84% 4%, rgba(85, 199, 238, 0.08), transparent 24rem),
    var(--ink);
}

/* Riel de progreso lineal de /solicitar — mismo lenguaje visual que
   .process-progress/.process-node del home, pero en riel lineal de 6 nodos. */
.xb-riel {
  position: relative;
  height: 14px;
  width: 100%;
}

.xb-riel-pista,
.xb-riel-relleno {
  position: absolute;
  top: 6px;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 999px;
}

.xb-riel-pista {
  background: rgba(168, 196, 209, 0.18);
}

.xb-riel-relleno {
  background: linear-gradient(90deg, var(--cyan-strong), var(--cyan-pale));
  box-shadow: 0 0 16px rgba(85, 199, 238, 0.55);
  transform: scaleX(var(--riel-avance, 0));
  transform-origin: left;
}

.xb-riel-nodos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.xb-riel-nodo {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(168, 196, 209, 0.4);
  transform: translateX(-50%);
  transition: border-color 240ms ease, box-shadow 240ms ease,
    background 240ms ease;
}

.xb-riel-nodo.is-done {
  border-color: var(--cyan);
  background: rgba(85, 199, 238, 0.22);
}

.xb-riel-nodo.is-active {
  border-color: var(--cyan);
  background: var(--ink-2);
  box-shadow: 0 0 0 6px rgba(85, 199, 238, 0.08),
    0 0 18px rgba(85, 199, 238, 0.3);
}

/* ── Capítulos editoriales de /solicitar ───────────────────────── */

.xb-regla {
  border: none;
  border-top: 1px solid var(--line);
  margin: clamp(16px, 2vw, 26px) 0;
  width: 100%;
}

.xb-cap-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.xb-cap-eyebrow span {
  color: var(--muted);
}

.xb-cap-cuenta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Párrafos de lectura corrida: la mono es para etiquetas, cifras y letra chica
   de una o dos líneas. Mismo tamaño y color, familia sans. */
.xb-nota-lectura {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}

.xb-nota-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--muted);
  max-width: 62ch;
}

.xb-cap-titulo {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 0.99;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0;
  color: var(--white);
}

/* ── Capítulo 01: lienzo de la marca ───────────────────────────── */

.xb-lienzo {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--cyan);
  word-break: break-word;
  min-height: clamp(70px, 10vh, 110px);
  display: flex;
  align-items: flex-end;
}

.xb-lienzo-vacio {
  font-weight: 300;
  font-size: 0.5em;
  color: var(--muted-dark);
  opacity: 0.5;
  letter-spacing: -0.01em;
}

.xb-lienzo-r {
  font-family: "Clash", system-ui, sans-serif;
  font-size: 0.3em;
  vertical-align: super;
  color: var(--muted);
  display: inline-block;
}

.xb-campo-linea {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-fuerte);
}

.xb-campo-linea::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(85, 199, 238, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.xb-campo-linea:focus-within::after {
  transform: scaleX(1);
}

.xb-campo-linea input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.32rem);
  padding: 10px 0;
}

.xb-campo-linea input::placeholder {
  color: var(--muted-dark);
}

.xb-contador {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.xb-cifra-clase {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.xb-campo-linea input[type="date"] {
  color-scheme: dark;
}

.xb-tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
}

.xb-vitrina {
  height: 54px;
  background: rgba(7, 26, 32, 0.6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
}

.xb-vitrina-texto {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 15px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xb-vitrina-cuadro {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--cyan), var(--cyan-strong));
}

.xb-vitrina-cuadro.es-grande {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.xb-vitrina-envase {
  position: relative;
  width: 26px;
  height: 34px;
  flex: none;
  border: 1.5px solid var(--cyan);
  border-radius: 4px 4px 9px 9px;
}

.xb-vitrina-envase::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 6px;
  border: 1.5px solid var(--cyan);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

/* ── Capítulo 01: letra legal del patrimonio ───────────────────── */

.xb-legal-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.xb-legal-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.xb-legal-pregunta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
}

.xb-pildoras {
  display: flex;
  gap: 8px;
  flex: none;
}

.xb-pildora {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.xb-pildora:hover {
  border-color: rgba(85, 199, 238, 0.5);
}

.xb-pildora[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(85, 199, 238, 0.12);
}

@media (max-width: 640px) {
  .xb-legal-fila {
    flex-direction: column;
    align-items: stretch;
  }

  .xb-pildoras {
    flex-direction: column;
  }

  .xb-pildora {
    width: 100%;
    text-align: center;
  }
}



.xb-app-sidebar {
  background: rgba(7, 26, 32, 0.96);
  box-shadow: 24px 0 70px rgba(0, 8, 12, 0.18);
}

.xb-app-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18rem),
    var(--ink);
}

.xb-app-heading {
  font-family: "Clash", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.app-brand-logo {
  width: 176px;
  height: 54px;
}

.app-brand-logo img {
  width: 270px;
  left: -40px;
  top: -55px;
}

.app-brand-symbol {
  width: 34px;
  height: 34px;
}

.app-brand-symbol img {
  width: 34px;
  height: 34px;
  inset: 0;
  object-fit: contain;
}

/* Logo contenido a 28px para /acceso-despacho. Recorte calculado sobre el bbox
   real del lockup (905×384 dentro del canvas 1536×1024): img a 96px de ancho
   deja el lockup a 24px de alto, centrado en una caja de 28px con 2px de holgura.
   overflow:hidden recorta el canvas oscuro para que no sangre sobre la tarjeta.
   No toca la regla global .brand-logo img. */
.acceso-logo {
  width: 62px;
  height: 28px;
  overflow: hidden;
}

.acceso-logo img {
  width: 96px;
  max-width: none;
  left: -14px;
  top: -16px;
}

.auth-tabs [data-state="active"] {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: none;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > label {
  color: #d9e6e8;
  font-size: 13px;
}

.auth-form [role="alert"],
.auth-form [role="status"] {
  margin: 0;
}

.auth-submit:disabled,
.search-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.xb-app-shell [data-slot="card"],
.xb-request-shell [data-slot="card"] {
  border-color: rgba(168, 196, 209, 0.18);
  box-shadow: 0 18px 54px rgba(0, 8, 12, 0.18);
}


@media (max-width: 900px) {
  .xb-approved-home .clases {
    grid-template-columns: 1fr;
  }

  .xb-approved-home .cuenta {
    position: relative;
    top: auto;
  }
}

@media (max-width: 680px) {
  .xb-approved-home .giros {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .xb-approved-home .giro {
    flex: none;
  }

  .xb-approved-home .clase {
    grid-template-columns: 1fr 34px;
  }

  .xb-approved-home .clase__n {
    grid-column: 1;
  }

  .xb-approved-home .clase > span:nth-child(2) {
    grid-column: 1;
  }

  .xb-approved-home .clase .tick {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Material de vidrio biselado claro, sin tilt: pantallas de captura y el
   diploma en pantalla. Mismo lenguaje que la card de §06. */
.marca-vidrio {
  width: min(100%, 320px);
  padding: 26px 24px 20px;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.28) 100%
  );
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 30px 70px rgba(7, 26, 32, 0.18),
    0 2px 10px rgba(7, 26, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  color: var(--ink);
  text-align: center;
  position: relative;
  isolation: isolate;
}

.marca-vidrio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 38%,
    rgba(255, 255, 255, 0) 72%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.marca-vidrio-logo {
  display: block;
  width: 72%;
  filter: drop-shadow(0 14px 18px rgba(7, 26, 32, 0.24));
}

.marca-vidrio-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.marca-vidrio-leyenda {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-intro .marca-vidrio {
  margin-top: 42px;
}

/* ─────────── HERO v3: muro de marcas como telón + manifiesto + regalo ─────────── */

/* Telón 3D. Decorativo: nunca captura clics. */
.muro-marcas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
  perspective-origin: 60% 40%;
  opacity: 0.72;
}

/* La matriz desborda el viewport a propósito: nunca se ve dónde termina. */
.muro-matriz {
  width: 120vw;
  height: 150vh;
  margin-left: -12vw;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  transform-style: preserve-3d;
  will-change: transform;
}

.muro-columna {
  display: grid;
  gap: clamp(18px, 2vw, 34px);
  align-content: start;
  will-change: transform;
}

/* Mismo vidrio templado biselado de la card de §06. */
.muro-tile {
  min-width: min(240px, 100%);
  width: 100%;
  min-height: max(300px, 34vh);
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.28) 100%
  );
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 24px 54px rgba(7, 26, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.muro-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 38%,
    rgba(255, 255, 255, 0) 72%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.muro-simbolo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.muro-simbolo img,
.muro-simbolo svg {
  display: block;
  height: auto;
}

/* Acabados: cada marca lleva el suyo. No unificar. */
.t-sombra {
  filter: drop-shadow(0 9px 10px rgba(7, 26, 32, 0.32));
}

.t-relieve {
  filter: drop-shadow(0 1.5px 0 rgba(255, 255, 255, 0.85));
}

.t-hundido {
  filter: drop-shadow(0 -1px 0 rgba(7, 26, 32, 0.3))
    drop-shadow(0 1.5px 0 rgba(255, 255, 255, 0.85));
}

.t-difuso {
  filter: drop-shadow(0 6px 16px rgba(94, 127, 146, 0.5));
}

.t-metal {
  filter: drop-shadow(0 5px 8px rgba(138, 74, 34, 0.45));
}

/* Resplandor cálido (Lumbre) y sombra dura tipo risografía (Vela). */
.t-brasa {
  filter: drop-shadow(0 0 12px rgba(232, 135, 59, 0.55));
}

.t-riso {
  filter: drop-shadow(4px 4px 0 rgba(10, 31, 39, 0.28));
}


/* Lockup vertical: la segunda línea se justifica a los dos lados contra el
   ancho de la primera. Eso es lo que hace que se vean diseñados. */
.muro-lock {
  display: block;
  max-width: 100%;
}

.muro-l1 {
  display: block;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.muro-l2 {
  display: flex;
  justify-content: space-between;
  line-height: 1;
  margin-top: 0.62em;
}

.muro-regla {
  display: block;
  height: 1px;
  margin: 0.6em 0 0.2em;
  background: rgba(7, 26, 32, 0.35);
}

/* Personalidad tipográfica por marca. */
.m-wizard .muro-l1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.44rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.m-wizard .muro-l2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.52rem;
}

.m-turmalina .muro-l1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
}

.m-turmalina .muro-regla {
  opacity: 0.35;
}

.m-turmalina .muro-l2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.56rem;
}

.m-trebol .muro-l1 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  text-transform: uppercase;
}

.m-trebol .muro-l2 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
}

.m-hilo .muro-l1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.28rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.m-hilo .muro-l2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.m-bruma .muro-l1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 2.02rem;
}

.m-bruma .muro-l2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.m-nube .muro-l1 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.12rem;
  text-transform: lowercase;
}

.m-nube .muro-l2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  text-transform: lowercase;
}

.m-higo .muro-l1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.72rem;
}

.m-higo .muro-l2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.m-barro .muro-l1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.34rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.m-barro .muro-l2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.m-roble .muro-l1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.m-roble .muro-regla {
  background: rgba(51, 69, 43, 0.5);
}

.m-roble .muro-l2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 0.6rem;
}

.m-cobre .muro-l1 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 500;
  font-size: 1.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.m-cobre .muro-l2 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
}

.m-lumbre .muro-l1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.m-lumbre .muro-l2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.m-zafra .muro-l1 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.m-zafra .muro-l2 {
  font-family: "Oswald", "Archivo", sans-serif;
  font-weight: 400;
  font-size: 0.64rem;
}

.m-vela .muro-l1 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-vela .muro-l2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.58rem;
}




/* Velos teñidos al fondo del hero: difuminan los bordes de la matriz. */
.muro-velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.muro-velo-v {
  background: linear-gradient(
    to bottom,
    var(--cyan-pale) 0%,
    rgba(85, 199, 238, 0.12) 26%,
    rgba(85, 199, 238, 0.12) 68%,
    var(--cyan-pale) 100%
  );
  opacity: 0.86;
}

.muro-velo-h {
  background: linear-gradient(
    to right,
    var(--cyan-pale) 0%,
    rgba(85, 199, 238, 0) 24%,
    rgba(85, 199, 238, 0) 76%,
    var(--cyan-pale) 100%
  );
  opacity: 0.78;
}

.muro-nota {
  max-width: 62ch;
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Layout: manifiesto a la izquierda, regalo a la derecha y más abajo. */
.hero-grid {
  margin-top: clamp(8px, 1.5vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: clamp(24px, 3vw, 46px);
  position: relative;
  z-index: 2;
}

.hero-manifiesto h1 {
  max-width: 17ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 1.0;
}

.hero-manifiesto h2 {
  max-width: 46ch;
  margin: clamp(18px, 2vw, 26px) 0 0;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(7, 26, 32, 0.18);
  color: #17373f;
  font-family: inherit;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.hero-manifiesto h2 strong {
  color: var(--ink);
  font-weight: 600;
}

/* El regalo: mismo peso visual que el H1, presentado como obsequio. */
.hero-regalo {
  margin-top: clamp(10px, 2vw, 30px);
  padding: 3px;
  border-radius: 30px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.28) 52%,
    rgba(255, 255, 255, 0.62)
  );
  box-shadow: 0 34px 72px rgba(6, 24, 31, 0.22);
  position: relative;
}

.regalo-eyebrow {
  margin: 0;
  padding: 14px 22px 6px;
  color: var(--ink-3);
}

.xb-approved-home .hero-regalo .search-stage {
  max-width: none;
  margin: 0;
  border-radius: 28px;
}

.hero-pie {
  margin-top: clamp(22px, 3vw, 34px);
  position: relative;
  z-index: 2;
}

.hero-pie .hero-legal-note {
  min-height: 0;
  padding: 18px 22px;
  border-radius: 20px;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 20px;
  background: rgba(250, 253, 251, 0.86);
  box-shadow: 0 18px 40px rgba(6, 24, 31, 0.12);
}

.hero-pie .hero-legal-note::before {
  display: none;
}

.hero-pie .legal-reference strong {
  font-size: 40px;
}

.hero-pie .legal-reference span {
  margin-top: 6px;
  font-size: 12px;
}

.hero-pie .legal-context p {
  font-size: 13px;
  line-height: 1.55;
}

.hero-pie .legal-context small {
  max-width: none;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* En angosto el regalo es lo primero accionable. */
  .hero-regalo {
    order: -1;
    margin-top: 0;
  }

  .muro-matriz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 150vw;
    margin-left: -25vw;
  }


  .muro-marcas {
    opacity: 0.55;
  }

  .hero-pie .hero-legal-note {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .hero-manifiesto h1 {
    font-size: clamp(32px, 9.6vw, 44px);
  }

  .muro-tile {
    min-height: max(260px, 30vh);
    border-radius: 1.5rem;
  }


  .hero-regalo {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muro-matriz,
  .muro-columna {
    transform: none !important;
  }
}

/* ─────────── /solicitar: dos columnas + telón de ambiente ─────────── */

.xb-request-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(0, 20rem);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Alineación del encabezado con el contenido: la caja del logo recorta su
   imagen 40px a la izquierda, así que se compensa aquí. */
.xb-request-marca {
  margin-left: 40px;
}

.xb-acompana {
  position: sticky;
  top: 32px;
}

.xb-acompana-movil {
  display: none;
}

/* Atmósfera: manchas radiales muy diluidas de la paleta, deriva muy lenta. */
.xb-atmosfera {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.xb-atm-mancha {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.xb-atm-1 {
  width: 72vw;
  height: 72vw;
  top: -18vw;
  left: -14vw;
  opacity: 0.30;
  background: radial-gradient(circle, #00b8e8 0%, rgba(0, 184, 232, 0) 68%);
  filter: blur(65px);
  animation: xb-atm-a1 24s ease-in-out infinite alternate;
}

.xb-atm-2 {
  width: 64vw;
  height: 64vw;
  top: 26vh;
  right: -18vw;
  opacity: 0.28;
  background: radial-gradient(circle, #2484f5 0%, rgba(36, 132, 245, 0) 66%);
  filter: blur(75px);
  animation: xb-atm-b2 28s ease-in-out infinite alternate;
}

.xb-atm-3 {
  width: 80vw;
  height: 80vw;
  bottom: -26vw;
  left: 8vw;
  opacity: 0.35;
  background: radial-gradient(circle, #0c2b37 0%, rgba(12, 43, 55, 0) 70%);
  filter: blur(70px);
  animation: xb-atm-a3 30s ease-in-out infinite alternate;
}

.xb-atm-4 {
  width: 54vw;
  height: 54vw;
  bottom: 6vh;
  right: 2vw;
  opacity: 0.25;
  background: radial-gradient(circle, #00b8e8 0%, rgba(0, 184, 232, 0) 64%);
  filter: blur(80px);
  animation: xb-atm-b4 20s ease-in-out infinite alternate;
}

/* Grano sutil: rompe los escalones del degradado sobre fondo oscuro. */
.xb-atm-grano {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@keyframes xb-atm-a1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.22;
  }
  to {
    transform: translate3d(6vw, 5vh, 0) scale(1.18);
    opacity: 0.38;
  }
}

@keyframes xb-atm-a3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.26;
  }
  to {
    transform: translate3d(6vw, 5vh, 0) scale(1.18);
    opacity: 0.44;
  }
}

@keyframes xb-atm-b2 {
  from {
    transform: translate3d(0, 0, 0) scale(1.12);
    opacity: 0.34;
  }
  to {
    transform: translate3d(-7vw, -6vh, 0) scale(1);
    opacity: 0.22;
  }
}

@keyframes xb-atm-b4 {
  from {
    transform: translate3d(0, 0, 0) scale(1.12);
    opacity: 0.31;
  }
  to {
    transform: translate3d(-7vw, -6vh, 0) scale(1);
    opacity: 0.19;
  }
}


@media (max-width: 1024px) {
  .xb-request-grid {
    grid-template-columns: minmax(0, 42rem);
    max-width: 42rem;
  }

  .xb-acompana {
    display: none;
  }

  .xb-acompana-movil {
    display: block;
  }

  .xb-request-marca {
    margin-left: 40px;
  }

  /* En móvil, menos manchas: bastan dos para leer como atmósfera. */
  .xb-atm-2,
  .xb-atm-4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xb-atm-mancha {
    animation: none !important;
  }
}


/* ── Capítulo 04: campos de dato duro (RFC, CP) ─────────────────── */

.xb-campo-dato input,
input.xb-campo-dato {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Capítulo 06: la marca vuelve, algo más contenida ───────────── */

.xb-lienzo-cierre {
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  min-height: 0;
  align-items: baseline;
}
