/* ============================================================
   Wyron Street — Landing
   Sistema de diseño: tinta azul #0A0E14, ámbar #FF9E00 (señal),
   cian #00E5FF (datos en vivo), Chakra Petch + IBM Plex Sans
   + JetBrains Mono.
   ============================================================ */

:root {
  /* Color */
  --night: #0a0e14;
  --night-deep: #070a0f;
  --graphite: #10151d;
  --graphite-2: #161d28;
  --line: #1f2937;
  --line-soft: rgba(31, 41, 55, 0.55);

  --amber: #ff9e00;
  --amber-hi: #ffb52e;
  --amber-soft: rgba(255, 158, 0, 0.12);
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.1);

  --paper: #e8edf3;
  --muted: #8b96a5;
  --muted-2: #5b6675;

  --bid: #00e676;
  --ask: #ff1744;

  /* Tipografía */
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

::selection {
  background: var(--amber);
  color: var(--night);
}

/* ------------------------------------------------------------
   Utilidades
   ------------------------------------------------------------ */
.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--night);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--amber);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-lede {
  margin-top: 1.1rem;
  max-width: 640px;
  font-size: 1.125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Botones
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--night);
}

.btn--primary:hover {
  background: var(--amber-hi);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn--small {
  padding: 0.6rem 1rem;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------
   Navegación
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  background: var(--night-deep);
  border-bottom: 1px solid var(--line);
}

.site-nav.scrolled {
  background: var(--night-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-mark {
  width: 10px;
  height: 10px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--amber-soft);
}

.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-menu-cta {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--paper);
}

.lang-btn.is-active {
  background: var(--amber);
  color: var(--night);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px 500px at 18% -12%,
    rgba(255, 158, 0, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--amber);
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-status li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.led--on {
  background: var(--bid);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

/* ------------------------------------------------------------
   Escalera DOM (firma visual)
   ------------------------------------------------------------ */
.hero-ladder {
  display: flex;
  justify-content: flex-end;
}

.ladder {
  width: min(380px, 100%);
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.ladder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--graphite-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.ladder-sym {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.ladder-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ladder-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.35rem 0.5rem 0.6rem;
}

.ladder-row {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  gap: 0.5rem;
  height: 20px;
  font-size: 11px;
}

.ladder-side {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ladder-side--bid {
  justify-content: flex-end;
}

.ladder-side--ask {
  justify-content: flex-start;
}

.ladder-bar {
  position: absolute;
  top: 0;
  bottom: 0;
}

.ladder-side--bid .ladder-bar {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.26));
}

.ladder-side--ask .ladder-bar {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(255, 23, 68, 0.26));
}

.ladder-size {
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
  color: var(--muted);
}

.ladder-price {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ladder-row--bid .ladder-price {
  color: var(--bid);
}

.ladder-row--ask .ladder-price {
  color: var(--ask);
}

.ladder-row--spread {
  height: auto;
  margin: 3px 0;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--graphite-2);
}

.ladder-row--spread .ladder-price {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ladder-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ladder-foot em {
  font-style: normal;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   Ticker tape
   ------------------------------------------------------------ */
.ticker {
  overflow: hidden;
  background: var(--night-deep);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.5rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.ticker-sym {
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.ticker-price {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.ticker-chg {
  font-variant-numeric: tabular-nums;
}

.ticker-chg.up {
  color: var(--bid);
}

.ticker-chg.down {
  color: var(--ask);
}

/* ------------------------------------------------------------
   La firma
   ------------------------------------------------------------ */
.section--firma {
  border-bottom: 1px solid var(--line);
}

.firma-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.firma-lede p {
  max-width: 620px;
  font-size: 1.125rem;
  color: var(--muted);
}

.firma-lede p:first-child {
  color: var(--paper);
}

.firma-lede p + p {
  margin-top: 1rem;
}

.firma-facts {
  border-top: 1px solid var(--line);
}

.firma-fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.firma-fact h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.firma-fact p {
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Qué operamos
   ------------------------------------------------------------ */
.section--markets {
  border-bottom: 1px solid var(--line);
}

.markets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.market-card {
  background: var(--night);
  padding: 2rem;
}

.market-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.market-card h3 {
  margin: 0.85rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.market-card p {
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Producto — Wyron Index Intelligence
   ------------------------------------------------------------ */
.section--product {
  border-bottom: 1px solid var(--line);
}

.terminal-shot {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.terminal-shot img {
  width: 100%;
  height: auto;
}

.terminal-shot figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.terminal-shot--wide {
  margin-bottom: 1rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.feature {
  background: var(--night);
  padding: 1.5rem;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.feature h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.feature p {
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--muted);
}

.product-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.product-cta p {
  font-size: 14px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   Planes
   ------------------------------------------------------------ */
.section--plans {
  border-bottom: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2rem;
  align-items: start;
}

.plan-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
}

.plan-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.plan-price {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 15px;
  color: var(--muted);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.plan-note {
  border-left: 2px solid var(--amber);
  padding: 1.5rem 2rem;
}

.plan-note h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.plan-note p {
  max-width: 520px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.section--faq {
  border-bottom: 1px solid var(--line);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  max-width: 640px;
  padding-bottom: 1.25rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--night-deep);
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 360px;
  font-size: 15px;
  color: var(--muted);
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  padding-top: 2rem;
}

.disclaimer {
  max-width: 900px;
  font-size: 13px;
  color: var(--muted);
}

.copyright {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   Reveals
   ------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-ladder {
    justify-content: center;
  }

  .ladder {
    width: min(440px, 100%);
  }

  .firma-grid {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 6.5rem var(--gutter) 3rem;
    background: var(--night);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 1.4rem;
  }

  .nav-open .nav-links {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease;
  }

  .nav-toggle {
    display: flex;
    z-index: 60;
  }

  .nav-actions {
    position: relative;
    z-index: 60;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-links .nav-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 3px;
    background: var(--amber);
    color: var(--night);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .nav-links .nav-menu-cta:hover {
    background: var(--amber-hi);
    color: var(--night);
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .markets {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.6rem;
  }

  .nav-word {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-status {
    gap: 0.9rem;
  }

  .firma-fact {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Movimiento reducido
   ------------------------------------------------------------ */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }
}
