/* =========================================================
   VXL Shell — Header + Hero (cargado DESPUÉS de Saasox)
   Evita que `img { max-width:100%; height:auto }` infle el logo
   ========================================================= */

:root {
  --vxl-green: #14c864;
  --vxl-graphite: #121814;
  --vxl-graphite-raised: #1e1e21;
  --vxl-hero-bg: #0c1410;
  --vxl-header-h: 64px;
  --vxl-logo-h: 48px; /* 42px + 15% */
  /* Disuelve las capas del hero para que el fondo de la página quede al descubierto */
  --vxl-hero-mask: linear-gradient(
    to bottom,
    #000 0%,
    #000 46%,
    rgb(0 0 0 / 0.82) 62%,
    rgb(0 0 0 / 0.5) 78%,
    rgb(0 0 0 / 0.2) 90%,
    transparent 99%
  );
}

/* ----- Top shell ----- */
.vxl-top {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  color: #f4f4f5;
  /* Anula Urbanist/heading-font de Saasox dentro del shell */
  --heading-font: var(--font-poppins), "Poppins", system-ui, sans-serif;
  --body-font: var(--font-poppins), "Poppins", system-ui, sans-serif;
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vxl-top a {
  text-decoration: none !important;
  color: inherit;
}

.vxl-top h1,
.vxl-top p,
.vxl-top em {
  margin: 0;
}

/* Reset agresivo de imágenes SOLO dentro del shell */
.vxl-top img {
  max-width: none;
  height: auto;
}

/* ----- Header compacto (~64px), full-bleed al marco ----- */
.vxl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Por encima de módulos Saasox (z-index hasta ~9999) */
  z-index: 10000;
  height: var(--vxl-header-h);
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0
    max(20px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  background: transparent;
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.vxl-header a {
  text-decoration: none !important;
  color: inherit;
}

@media (min-width: 640px) {
  .vxl-header {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1024px) {
  .vxl-header {
    padding-left: max(56px, env(safe-area-inset-left, 0px));
    padding-right: max(56px, env(safe-area-inset-right, 0px));
  }
}

.vxl-header.is-solid {
  /* Mismo tono del Hero (no franja graphite aparte) */
  background: rgb(12 20 16 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vxl-header.is-open {
  height: auto;
  min-height: var(--vxl-header-h);
  background: rgb(12 20 16 / 0.96);
}

.vxl-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: var(--vxl-header-h);
  max-width: 1600px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .vxl-header-inner {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* Brand: logo1 (ícono) + logo2 (wordmark) */
.vxl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  line-height: 1;
  min-width: 0;
}

.vxl-brand img {
  display: block;
  object-fit: contain;
}

.vxl-brand-mark {
  width: var(--vxl-logo-h) !important;
  height: var(--vxl-logo-h) !important;
  max-width: var(--vxl-logo-h) !important;
  max-height: var(--vxl-logo-h) !important;
  flex: 0 0 var(--vxl-logo-h);
}

.vxl-brand-wordmark {
  width: auto !important;
  height: 32px !important; /* 28px + 15% */
  max-width: none !important;
  max-height: 37px !important;
  flex: 0 1 auto;
  /* logo2 es oscuro; en header granito lo pasamos a claro sin tocar logo1 */
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

@media (min-width: 640px) {
  .vxl-brand-wordmark {
    height: 35px !important; /* 30px + 15% */
  }
}

/* Nav */
.vxl-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .vxl-nav {
    display: flex;
  }
}

.vxl-nav a {
  font-size: 14px;
  font-weight: 400;
  color: #f4f4f5;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.vxl-nav a:hover {
  opacity: 0.7;
}

/* Actions */
.vxl-header-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 20px;
}

@media (min-width: 1024px) {
  .vxl-header-actions {
    display: flex;
  }
}

.vxl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  background: var(--vxl-green);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.vxl-btn-primary:hover {
  opacity: 0.9;
  color: #fff !important;
}

.vxl-btn-primary.large {
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.vxl-btn-ghost {
  background: rgb(255 255 255 / 0.08);
  border: 1.5px solid rgb(255 255 255 / 0.42);
}

.vxl-btn-ghost:hover {
  opacity: 1;
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.62);
  color: #fff !important;
}

.vxl-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #f4f4f5;
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .vxl-menu-btn {
    display: none;
  }
}

.vxl-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

@media (min-width: 1024px) {
  .vxl-mobile-nav {
    display: none !important;
  }
}

.vxl-mobile-nav a:not(.vxl-btn-primary) {
  display: block;
  padding: 10px 8px;
  font-size: 14px;
  color: #f4f4f5;
}

.vxl-mobile-nav .vxl-btn-primary {
  width: 100%;
  margin-top: 8px;
}

/* ----- Selector de idioma ----- */
.vxl-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
}

.vxl-header-actions .vxl-lang {
  flex-shrink: 0;
}

/* En móvil el selector va al final del panel desplegable */
.vxl-mobile-nav .vxl-lang {
  align-self: flex-start;
  margin-top: 14px;
}

.vxl-lang a,
.vxl-mobile-nav .vxl-lang a:not(.vxl-btn-primary) {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgb(255 255 255 / 0.55);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.vxl-lang a:hover {
  color: #f4f4f5;
}

.vxl-lang a.is-active {
  background: rgb(20 200 100 / 0.16);
  color: var(--vxl-green);
}

/* ----- Hero ----- */
.vxl-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  /* Sin color propio: hereda el fondo continuo de la página */
  background: transparent;
}

.vxl-hero-canvas {
  position: absolute;
  inset: -2px; /* evita micro-gaps en los extremos del marco */
  width: auto;
  height: auto;
  cursor: crosshair;
  z-index: 0;
  mask-image: var(--vxl-hero-mask);
  -webkit-mask-image: var(--vxl-hero-mask);
}

.vxl-hero-canvas > div,
.vxl-hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Scrim full-bleed: oscuro a la izquierda → transparente a la derecha */
.vxl-hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgb(8 14 11 / 0.94) 0%,
    rgb(10 18 14 / 0.82) 18%,
    rgb(12 20 16 / 0.58) 38%,
    rgb(12 20 16 / 0.28) 58%,
    rgb(12 20 16 / 0.08) 78%,
    transparent 100%
  );
  mask-image: var(--vxl-hero-mask);
  -webkit-mask-image: var(--vxl-hero-mask);
}

/* Velo inferior: apaga el canvas sin pintar un color propio en la costura */
.vxl-hero-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(18 24 20 / 0.94) 0%,
    rgb(18 24 20 / 0.8) 14%,
    rgb(18 24 20 / 0.56) 28%,
    rgb(18 24 20 / 0.32) 42%,
    rgb(18 24 20 / 0.14) 56%,
    rgb(18 24 20 / 0.04) 68%,
    transparent 78%
  );
  mask-image: var(--vxl-hero-mask);
  -webkit-mask-image: var(--vxl-hero-mask);
}

.vxl-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--vxl-header-h) + 48px) 28px 72px;
  pointer-events: none;
  box-sizing: border-box;
}

.vxl-hero-content > * {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .vxl-hero-content {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1024px) {
  .vxl-hero-content {
    padding: calc(var(--vxl-header-h) + 56px) 72px 80px;
  }
}

/* Layout: copy a la izquierda, simulación a la derecha desde lg */
.vxl-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
}

@media (min-width: 1100px) {
  .vxl-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 48px;
  }
}

@media (min-width: 1280px) {
  .vxl-hero-layout {
    gap: 64px;
  }
}

/* Bloque de copy — sin scrim local (usa .vxl-hero-overlay full-bleed) */
.vxl-hero-copy {
  position: relative;
  max-width: min(100%, 1100px);
}

@media (min-width: 1100px) {
  .vxl-hero-copy {
    max-width: none;
  }

  /* Con el panel a la derecha el titular no puede comerse todo el ancho */
  .vxl-hero-title .hero-display {
    font-size: clamp(2.75rem, 5.6vw, 5.75rem);
  }

  .vxl-hero-title .hero-display-wide {
    font-size: clamp(1.85rem, 3.8vw, 4rem);
  }
}

/* Tipografía Hero = Vyrex (Poppins + Style Script) */
.vxl-hero-title {
  max-width: 1000px;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  clear: none;
  color: #fafafa !important;
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif !important;
  font-size: unset !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: -0.045em;
  font-synthesis: none;
}

@media (min-width: 640px) {
  .vxl-hero-title {
    margin-bottom: 2.5rem !important;
  }
}

@media (min-width: 768px) {
  .vxl-hero-title {
    margin-bottom: 3rem !important;
  }
}

.vxl-hero-title .hero-display {
  display: block;
  overflow: visible;
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif !important;
  font-weight: 600;
  font-size: clamp(2.5rem, 12.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

/* Misma Poppins que “Invertir en”, en verde de marca */
.vxl-hero-title .hero-display-accent {
  color: var(--vxl-green) !important;
  -webkit-text-fill-color: var(--vxl-green);
}

.vxl-hero-title .hero-display-wide {
  display: block;
  overflow: visible;
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif !important;
  font-weight: 600;
  font-size: clamp(1.85rem, 7.2vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.vxl-hero-sub {
  margin-top: 0 !important;
  max-width: 36em; /* ~50–70 caracteres por línea */
  color: rgb(255 255 255 / 0.8);
  font-family: var(--font-poppins), "Poppins", system-ui, sans-serif !important;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .vxl-hero-sub {
    max-width: 34em;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .vxl-hero-sub {
    max-width: 32em;
    font-size: 1.125rem;
  }
}

/* Los tres pilares del modelo de negocio, sin cifras ni lenguaje de venta */
.vxl-hero-model {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  max-width: 44em;
}

@media (min-width: 768px) {
  .vxl-hero-model {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
  }
}

.vxl-hero-model-item {
  padding-top: 13px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.vxl-hero-model-label {
  display: block;
  margin-bottom: 5px;
  color: #fafafa;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vxl-hero-model-text {
  display: block;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.vxl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ----- Simulación de tokenización (hero derecha) ----- */
.vxl-sim {
  width: 100%;
  max-width: 420px;
  justify-self: start;
}

@media (min-width: 1100px) {
  .vxl-sim {
    justify-self: end;
    max-width: 440px;
    transform: translateX(20%);
  }
}

/* Misma familia visual que el panel de Transparencia: borde fino, fondo
   plano, sin vidrio ni glow. */
.vxl-sim-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  background: #0d120f;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
  padding: 20px 20px 16px;
}

.vxl-sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vxl-sim-zone,
.vxl-sim-trust,
.vxl-sim-stake-label,
.vxl-sim-meta-label,
.vxl-sim-disclaimer,
.vxl-sim-horizon,
.vxl-sim-range-ends {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f8479;
}

.vxl-sim-trust {
  color: #8fa89a;
}

.vxl-sim-project {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.vxl-sim-project-name {
  display: block;
  margin-bottom: 6px;
  color: #fafafa;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vxl-sim-stake {
  color: #14c864;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.vxl-sim-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vxl-sim-control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.vxl-sim-control-value {
  color: #fafafa;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vxl-sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  outline: none;
  cursor: pointer;
}

.vxl-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #14c864;
  border: 2px solid #0d120f;
  box-shadow: 0 0 0 1px rgb(20 200 100 / 0.45);
  cursor: pointer;
}

.vxl-sim-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #14c864;
  border: 2px solid #0d120f;
  box-shadow: 0 0 0 1px rgb(20 200 100 / 0.45);
  cursor: pointer;
}

.vxl-sim-range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.vxl-sim-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.08);
}

.vxl-sim-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: #0d120f;
}

.vxl-sim-metric.is-accent .vxl-sim-metric-value {
  color: #14c864;
}

.vxl-sim-metric-value {
  color: #fafafa;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vxl-sim-horizon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: #74897d;
}

.vxl-sim-cta,
.vxl-sim-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.vxl-sim-cta {
  background: #14c864;
  color: #06120b;
}

.vxl-sim-cta:hover {
  background: #12b45a;
}

.vxl-sim-reset {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.12);
  color: #f4f4f5;
}

.vxl-sim-reset:hover {
  border-color: rgb(20 200 100 / 0.4);
  color: #14c864;
}

.vxl-sim-panel-minting {
  min-height: 168px;
  justify-content: center;
  text-align: center;
}

.vxl-sim-mint-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vxl-sim-panel-minting .vxl-sim-mint-summary {
  align-items: center;
}

.vxl-sim-hash-type {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #8fa89a;
  word-break: break-all;
  max-height: 2.8em;
  overflow: hidden;
}

.vxl-sim-minting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}

.vxl-sim-mint-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #14c864;
  animation: vxl-sim-pulse 1.1s ease-in-out infinite;
}

.vxl-sim-status-dot {
  animation: vxl-sim-pulse 1.6s ease-in-out infinite;
}

@keyframes vxl-sim-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vxl-sim-mint-pulse,
  .vxl-sim-status-dot {
    animation: none;
  }
}

.vxl-sim-done-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.vxl-sim-done-title {
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
}

.vxl-sim-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14c864;
}

.vxl-sim-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #14c864;
}

.vxl-sim-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

@media (max-width: 380px) {
  .vxl-sim-result-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .vxl-sim-meta {
    width: 100%;
  }
}

.vxl-sim-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vxl-sim-meta-value {
  display: block;
  margin-bottom: 10px;
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

.vxl-sim-meta-value.is-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #cfe8d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vxl-sim-meta-value.is-accent {
  color: #14c864;
}

.vxl-sim-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vxl-sim-qr-frame {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #0d120f;
  border: 1px solid rgb(255 255 255 / 0.1);
}

.vxl-sim-qr-caption {
  text-align: center;
  max-width: 9rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f8479;
  line-height: 1.4;
}

.vxl-sim-disclaimer {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55665c;
}
