/* CyberCodigo — tema premium dark / light + magenta */
:root {
  --bg: #070b12;
  --bg-elevated: #0f1623;
  --bg-soft: #121a2a;
  --text: #f4f7fb;
  --text-muted: rgba(244, 247, 251, 0.62);
  --text-faint: rgba(244, 247, 251, 0.42);
  --border: rgba(0, 229, 255, 0.14);
  --accent: #00e5ff;
  --accent-strong: #22f0ff;
  --accent-ink: #001018;
  --magenta: #ff2d95;
  --magenta-soft: rgba(255, 45, 149, 0.22);
  --glow: rgba(0, 229, 255, 0.35);
  --glow-magenta: rgba(255, 45, 149, 0.35);
  --card: rgba(15, 22, 35, 0.92);
  --wa: #25d366;
  --font-display: "Outfit", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --header-bg: rgba(7, 11, 18, 0.82);
  --hero-overlay: linear-gradient(180deg, rgba(7,11,18,.5) 0%, rgba(7,11,18,.72) 45%, rgba(7,11,18,.94) 100%);
  --sphere-ground: rgba(0, 229, 255, 0.18);
}

html[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-elevated: #ffffff;
  --bg-soft: #e8eef7;
  --text: #0b1220;
  --text-muted: rgba(11, 18, 32, 0.68);
  --text-faint: rgba(11, 18, 32, 0.45);
  --border: rgba(0, 90, 120, 0.16);
  --accent: #0087a8;
  --accent-strong: #00a3c7;
  --accent-ink: #ffffff;
  --magenta: #c2185b;
  --magenta-soft: rgba(194, 24, 91, 0.14);
  --glow: rgba(0, 135, 168, 0.22);
  --glow-magenta: rgba(194, 24, 91, 0.2);
  --card: #ffffff;
  --header-bg: rgba(243, 246, 251, 0.88);
  --hero-overlay: linear-gradient(180deg, rgba(11,18,32,.35) 0%, rgba(11,18,32,.55) 50%, rgba(11,18,32,.88) 100%);
  --sphere-ground: rgba(11, 18, 32, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.cyber-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

.font-display { font-family: var(--font-display); }

.cyber-surface { background: var(--bg); color: var(--text); }
.cyber-elevated { background: var(--bg-elevated); }
.cyber-soft { background: var(--bg-soft); }
.cyber-text { color: var(--text); }
.cyber-muted { color: var(--text-muted); }
.cyber-faint { color: var(--text-faint); }
.cyber-accent { color: var(--accent); }
.cyber-magenta { color: var(--magenta); }
.cyber-border { border-color: var(--border); }
.cyber-border-magenta { border-color: var(--magenta); }
.cyber-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.cyber-card-edge {
  border-bottom: 2px solid var(--magenta);
}
.cyber-btn {
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cyber-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}
.cyber-btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.cyber-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sello {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Tech marquee spheres */
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  align-items: flex-end;
  animation: tech-scroll 38s linear infinite;
}
.tech-sphere {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.tech-sphere-ball {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 9999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  box-shadow:
    inset -10px -12px 20px rgba(0, 0, 0, 0.35),
    inset 8px 8px 16px rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease;
}
.tech-sphere-ball img {
  width: 52%;
  height: 52%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.tech-sphere-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, 0.35), transparent 55%);
  pointer-events: none;
}
.tech-sphere-ground {
  margin-top: 0.5rem;
  width: 3.5rem;
  height: 0.45rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--sphere-ground), transparent 70%);
  filter: blur(1px);
}
.tech-sphere:hover .tech-sphere-ball {
  transform: translateY(-6px) scale(1.06);
}
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* Float dock */
.cyber-float {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cyber-float a,
.cyber-float button {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cyber-float a:hover,
.cyber-float button:hover {
  transform: scale(1.08);
  color: var(--accent);
  border-color: var(--accent);
}
.cyber-float .wa {
  background: var(--wa);
  border-color: transparent;
  color: #fff;
}
.cyber-float .lang-btn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Pricing */
.price-card-popular {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px var(--glow), 0 0 40px rgba(45, 212, 168, 0.2);
  transform: translateY(-6px);
  border-bottom: 3px solid #2dd4a8 !important;
}
.price-check {
  color: var(--accent);
}
.price-monthly {
  font-family: var(--font-body), "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}
.price-regular {
  font-family: var(--font-body), "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: #2dd4a8;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
html[data-theme="light"] .price-regular {
  text-decoration-color: #0d9488;
}
.price-annual-soft {
  font-size: 0.75rem;
  color: var(--text-faint);
  border-top: 1px dashed rgba(45, 212, 168, 0.35);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.45;
}
.price-hook {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2dd4a8;
  font-weight: 700;
}
html[data-theme="light"] .price-hook {
  color: #0f766e;
}
.price-save {
  color: #2dd4a8;
  font-weight: 600;
}
html[data-theme="light"] .price-save {
  color: #0f766e;
}
.price-fav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00c2d7, #2dd4a8);
  color: #041016;
  box-shadow: 0 8px 24px rgba(45, 212, 168, 0.28);
}

/* Hero carousel + code constellation (no binary columns) */
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-code-aura {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.hero-code-chip {
  position: absolute;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: clamp(10px, 1.5vw, 12px);
  line-height: 1.2;
  padding: 0.4rem 0.7rem;
  border-radius: 0.65rem;
  color: rgba(244, 247, 251, 0.88);
  background: rgba(7, 14, 28, 0.55);
  border: 1px solid rgba(0, 229, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  animation: code-drift var(--dur, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.72;
}
.hero-code-chip .tok-key { color: #7dd3fc; }
.hero-code-chip .tok-str { color: #86efac; }
.hero-code-chip .tok-fn { color: #67e8f9; }
.hero-code-chip .tok-sym { color: #a5b4fc; }
html[data-theme="light"] .hero-code-chip {
  color: rgba(11, 18, 32, 0.85);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 135, 168, 0.28);
}
.hero-code-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  animation: node-pulse var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.7;
}
.hero-code-ring {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 9999px;
  animation: ring-breathe 10s ease-in-out infinite;
}
html[data-theme="light"] .hero-code-ring {
  border-color: rgba(0, 135, 168, 0.2);
}
@keyframes code-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  35% { transform: translate3d(var(--dx, 18px), var(--dy, -22px), 0) rotate(var(--rot, 1.5deg)); }
  70% { transform: translate3d(calc(var(--dx, 18px) * -0.6), calc(var(--dy, -22px) * 0.5), 0) rotate(calc(var(--rot, 1.5deg) * -1)); }
}
@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.55); opacity: 0.9; }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-code-chip, .hero-code-node, .hero-code-ring { animation: none; }
}
.hero-copy-layer { position: relative; z-index: 5; }
.hero-slide-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.hero-slide-copy.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 1.75rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.35);
  border: 0;
  transition: all 0.35s ease;
}
.hero-dot.is-active {
  width: 28px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--glow);
}

html[data-theme="light"] .hero-title-on-media,
html[data-theme="light"] .hero-copy-on-media {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .hero-copy-on-media {
  color: rgba(255, 255, 255, 0.92);
}

.hero-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
}
@media (max-width: 640px) {
  .hero-display {
    font-size: 1.55rem;
    line-height: 1.25;
    max-width: 17.5rem;
  }
  #hero-sub {
    font-size: 0.875rem;
    max-width: 18rem;
  }
}

/* Parallax band — “ventana entre dos paredes” */
.parallax-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(22rem, 48vh, 32rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-band-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 170%;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
.parallax-band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.parallax-band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.parallax-band-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1rem;
  text-align: center;
}
.parallax-band-rule {
  margin: 1.5rem auto 0;
  height: 4px;
  width: 6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--magenta));
}
@media (prefers-reduced-motion: reduce) {
  .parallax-band-media {
    top: 0;
    height: 100%;
    transform: none !important;
  }
}

#gracias-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#gracias-overlay.active { display: flex; }

@media (max-width: 640px) {
  .cyber-float { right: 8px; gap: 8px; }
  .cyber-float a, .cyber-float button { width: 42px; height: 42px; }
  .tech-sphere-ball { width: 4.25rem; height: 4.25rem; }
}
