/* ================================================================
   NOD242 — Web Index  |  styles.css
   Paleta: #FFC200 (yellow) · #000 (black) · #181818 (dark)
   Fuente: Inter (Google Fonts)
   Secciones: HERO_SLIDE · NAV_MAIN · SECT_YELLOW_1 · SECT_BLACK_1
              SECT_DARK_1 · SECT_YELLOW_2 · SECT_BLACK_2 · FOOTER
================================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --yellow:       #FFC200;
  --yellow-dim:   #E6AF00;
  --yellow-deep:  #CC9B00;
  --black:        #000000;
  --dark:         #181818;
  --darker:       #0D0D0D;
  --white:        #FFFFFF;
  --red:          #E63030;
  --code-art:     #212121;   /* texto arte-código sobre negro */
  --nav-h:        64px;
  --font:         'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --ease-io:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ================================================================
   HERO_SLIDE — Slideshow pantalla completa
   id: #hero-slide
================================================================ */
/* ── HERO_SLIDE — barra de slides 1905×125 px ─────────────── */
#hero-slide {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  background: #1E1E12;
  user-select: none;
}

/* cada slide — posición y animación manejadas 100% por JS (transforms) */
.hs-slide {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translateX(100%);   /* off-screen por defecto antes de que JS arranque */
}
/* primer slide visible de inmediato sin esperar JS */
#hero-slide .hs-slide:first-child {
  transform: translateX(0);
}

/* imagen — cubre el ancho completo */
.hs-img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* placeholder visible cuando la imagen del slide no existe aún */
.hs-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hs-slide3-ph {
  background: #0E0E0E;
}
.hs-metamask-ph {
  background: #1B1816;   /* fondo oscuro con tono cálido — paleta MetaMask */
}
.hs-ph-icon { font-size: 32px; line-height: 1; }
.hs-ph-text {
  font-size: 15px;
  font-weight: 700;
  color: #F6851B;        /* naranja MetaMask */
  letter-spacing: 1px;
}
.hs-ph-sub {
  font-size: 11px;
  color: rgba(246,133,27,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* flechas compactas para la barra de 125 px */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 28px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28);
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hs-arrow:hover { background: rgba(0,0,0,0.55); color: var(--white); }
.hs-arrow.prev { left: 0; }
.hs-arrow.next { right: 0; }

/* puntos indicadores */
.hs-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: transparent;
  transition: all 0.25s ease;
}
.hs-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.3);
}

/* ================================================================
   NAV_MAIN — Barra de navegación
   id: #nav-main
   Comportamiento: sticky al pasar el hero (JS)
================================================================ */
#nav-main {
  position: relative;
  width: 100%;
  height: var(--nav-h);
  background: var(--black);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.35s ease;
}

/* clase aplicada por JS cuando se vuelve sticky */
#nav-main.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.85);
  animation: nav-slide-in 0.45s var(--ease-io) both;
}
@keyframes nav-slide-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* espaciador que evita el salto cuando nav pasa a fixed */
#nav-spacer { display: none; height: var(--nav-h); }
#nav-spacer.visible { display: block; }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
  gap: 16px;
}

/* hamburguesa */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* logo imagen (330×80 px original — mostrado a 40 px de alto en nav) */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-hex { width: 34px; height: 38px; flex-shrink: 0; }
.logo-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--white);
}
.logo-name strong { font-weight: 800; }
.logo-tagline {
  font-size: 7px;
  letter-spacing: 3.5px;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-top: 2px;
}

/* links desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }
.nav-chevron {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}
.has-sub:hover .nav-chevron { transform: rotate(90deg); }

/* sub-menú */
.nav-sub {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #0A0A0A;
  border: 1px solid rgba(255,194,0,0.15);
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s var(--ease-io);
  z-index: 200;
}
.has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub li a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-sub li:last-child a { border-bottom: none; }
.nav-sub li a:hover { color: var(--yellow); background: rgba(255,194,0,0.06); }

/* menú móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-io);
  position: absolute;
  left: 0; right: 0;
  top: var(--nav-h);
  z-index: 999;
}
.nav-mobile.open { max-height: 500px; }
.nav-mobile a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--yellow); }

/* ================================================================
   CODE ART — decoración en todas las secciones
================================================================ */
.code-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 1.75;
}
.code-art code {
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.9vw, 11px);
  white-space: pre;
  display: block;
}
/* sobre negro/oscuro */
.sect-black .code-art code,
.sect-dark  .code-art code { color: var(--code-art); }
/* sobre amarillo */
.sect-yellow .code-art code { color: rgba(0,0,0,0.14); }

.ca-tl { top: 20px; left: 24px; }
.ca-tr { top: 20px; right: 24px; text-align: right; }
.ca-bl { bottom: 20px; left: 24px; }
.ca-br { bottom: 20px; right: 24px; text-align: right; }

/* arte de fondo tipo matrix (sección negra grande) */
.code-art-matrix {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.code-art-matrix pre {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 2.1;
  color: var(--code-art);
  white-space: pre;
  opacity: 0.9;
}

/* ================================================================
   SECT_YELLOW_1 — Primera sección amarilla (imagen crossfade)
   id: #sect-yellow-1
================================================================ */
#sect-yellow-1 {
  position: relative;
  background: var(--yellow);
  min-height: 100vh;
  overflow: hidden;
}

/* crossfade de imágenes */
.cf-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cf-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.cf-img.active { opacity: 1; }
/* placeholders de color hasta tener imágenes IA */
.cf-img:nth-child(1) { background-color: #FFC200; }
.cf-img:nth-child(2) { background-color: #FFB300; }
.cf-img:nth-child(3) { background-color: #E6A800; }
.cf-img:nth-child(4) { background-color: #FFD040; }
.cf-img:nth-child(5) { background-color: #FFC200; }

.sy1-content {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vh, 120px) clamp(24px, 6vw, 100px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================================================================
   SECT_BLACK_1 — Primera sección negra (code art principal)
   id: #sect-black-1
================================================================ */
#sect-black-1 {
  position: relative;
  background: var(--black);
  min-height: 65vh;
  overflow: hidden;
}
.sb1-content {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vh, 100px) clamp(24px, 6vw, 100px);
}

/* ================================================================
   SECT_DARK_1 — Sección gris oscuro
   id: #sect-dark-1
================================================================ */
#sect-dark-1 {
  position: relative;
  background: var(--dark);
  min-height: 40vh;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sd1-content {
  position: relative;
  z-index: 2;
  padding: clamp(50px, 7vh, 90px) clamp(24px, 6vw, 100px);
}

/* ================================================================
   SECT_YELLOW_2 — Segunda sección amarilla
   id: #sect-yellow-2
================================================================ */
#sect-yellow-2 {
  position: relative;
  background: var(--yellow);
  min-height: 70vh;
  overflow: hidden;
}
.sy2-content {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vh, 110px) clamp(24px, 6vw, 100px);
}

/* ================================================================
   SECT_BLACK_2 — Segunda sección negra grande
   id: #sect-black-2
   Layout: col izquierda negra + panel amarillo abajo-derecha
================================================================ */
#sect-black-2 {
  position: relative;
  background: var(--black);
  min-height: 120vh;
  overflow: hidden;
}
.sb2-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 120vh;
}
.sb2-left {
  position: relative;
  padding: clamp(60px, 8vh, 110px) clamp(24px, 4vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.sb2-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sb2-panel-yellow {
  background: var(--yellow);
  padding: clamp(40px, 6vh, 80px) clamp(24px, 4vw, 60px);
  min-height: 38vh;
  position: relative;
  overflow: hidden;
}

/* ================================================================
   PLACEHOLDER TAGS — solo para coordinación visual
================================================================ */
.ph-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 14px;
  display: inline-block;
  letter-spacing: 0.5px;
}
.sect-black .ph-tag,
.sect-dark  .ph-tag {
  color: rgba(255,255,255,0.2);
  border: 1px dashed rgba(255,255,255,0.12);
}
.sect-yellow .ph-tag,
.sb2-panel-yellow .ph-tag {
  color: rgba(0,0,0,0.3);
  border: 1px dashed rgba(0,0,0,0.18);
}

/* ================================================================
   FOOTER
   id: #footer-main
================================================================ */
#footer-main {
  background: #060606;
  border-top: 1px solid rgba(255,194,0,0.12);
  padding: clamp(28px, 4vh, 48px) clamp(24px, 6vw, 100px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 1.2px;
}
.footer-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}

/* ================================================================
   SIDEBAR — Drawer flotante izquierdo
   id: #sidebar
================================================================ */

/* Backdrop semitransparente */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-io);
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel del sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100vh;
  background: var(--yellow);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease-io);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.sidebar.open {
  transform: translateX(0);
}

/* ── Header del sidebar ───────────────────────────────────── */
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sb-logo svg {
  width: 32px;
  height: 36px;
  flex-shrink: 0;
}
.sb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sb-logo-text span {
  font-size: 18px;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.5px;
}
.sb-logo-text span strong { font-weight: 800; }
.sb-logo-text small {
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
}

/* Botón cerrar (✕) */
.sb-close {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: transform 0.3s ease;
}
.sb-close span:first-child  { transform: rotate(45deg); }
.sb-close span:last-child   { transform: rotate(-45deg); }
.sb-close:hover span        { background: rgba(0,0,0,0.6); }

/* ── Nav mobile (solo responsivo) ────────────────────────── */
.sb-nav-mobile {
  display: none;   /* se muestra solo en ≤ 900px */
  flex-direction: column;
  padding: 8px 0;
}
.sb-nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.3px;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.sb-nav-mobile a:hover,
.sb-nav-mobile a.active {
  background: rgba(0,0,0,0.08);
  padding-left: 32px;
}

/* Separador solo en móvil */
.sb-divider {
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 4px 24px;
}
.sb-mobile-only { display: none; }

/* ── Secciones de contenido ──────────────────────────────── */
.sb-section {
  padding: 20px 24px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sb-section-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 12px;
}

.sb-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.8);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.sb-links li a:hover {
  background: rgba(0,0,0,0.1);
  color: var(--black);
  padding-left: 16px;
}
.sb-icon {
  font-size: 14px;
  opacity: 0.55;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

/* ── Node status ─────────────────────────────────────────── */
.sb-node {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-node-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(0,0,0,0.4);
}
.sb-node-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
}
.sb-online {
  color: #1a7a1a;
  font-size: 10px;
}

/* ── CTA botones ─────────────────────────────────────────── */
.sb-cta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sb-btn {
  display: block;
  text-align: center;
  padding: 11px 20px;
  background: var(--black);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.sb-btn:hover {
  background: #222;
}
.sb-btn-ghost {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border: 1.5px solid rgba(0,0,0,0.35);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
}
.sb-btn-ghost:hover {
  background: rgba(0,0,0,0.1);
}

/* ── Social links ────────────────────────────────────────── */
.sb-social {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}
.sb-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.12);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.sb-social-link svg {
  width: 16px; height: 16px;
  color: var(--black);
  fill: var(--black);
}
.sb-social-link:hover {
  background: rgba(0,0,0,0.22);
}

/* ================================================================
   PROMO POPUP — banner 400×600 px
   id: #promo-popup  /  #promo-backdrop
   Slideshow interno: #popup-slide  (3er slideshow, crossfade)
================================================================ */

/* Overlay oscuro detrás del popup */
.promo-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}
.promo-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Ventana del popup */
.promo-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 400px;
  height: 600px;
  background: var(--black);
  z-index: 3001;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease,
              transform 0.45s var(--ease-io);
}
.promo-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Botón cerrar */
.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.promo-close:hover { background: rgba(255, 255, 255, 0.15); }
.promo-close span {
  position: absolute;
  width: 16px; height: 2px;
  background: var(--white);
  border-radius: 1px;
}
.promo-close span:first-child { transform: rotate(45deg); }
.promo-close span:last-child  { transform: rotate(-45deg); }

/* ── Slideshow interno del popup (3er slideshow) ─────────── */
/* Referencia: #popup-slide                                   */
#popup-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* cada slide — crossfade (difuminado) */
.ps-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.ps-slide.active { opacity: 1; }

/* fondo del slide (reemplazar con background-image cuando haya imágenes) */
.ps-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* contenido centrado sobre el fondo */
.ps-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

/* puntos indicadores del popup */
.ps-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}
.ps-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  transition: all 0.25s ease;
}
.ps-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.3);
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .nav-links { display: none; }

  /* En tablet/móvil el sidebar muestra también los links de nav */
  .sb-nav-mobile    { display: flex; }
  .sb-mobile-only   { display: block; }

  .sb2-grid {
    grid-template-columns: 1fr;
  }
  .sb2-right { order: -1; }
  .sb2-panel-yellow { min-height: 30vh; }

  .code-art-matrix { display: none; }
  .ca-tr, .ca-br { display: none; }
}

/* Móvil (≤ 600px) */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  /* Sidebar ocupa toda la pantalla en móvil */
  .sidebar { width: 100vw; }

  .hs-arrow { width: 24px; height: 40px; font-size: 18px; }

  /* popup ocupa casi toda la pantalla en móvil */
  .promo-popup {
    width: 94vw;
    height: 82vh;
    max-height: 600px;
  }
  #popup-slide { width: 100%; height: 100%; }

  .code-art { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}
