:root {
  --sb-black: #05070c;
  --sb-ink: #080b12;
  --sb-surface: #10141c;
  --sb-line: rgba(255, 255, 255, 0.09);
  --sb-blue: #1a7aef;
  --sb-blue-bright: #4ea0ff;
  --sb-blue-deep: #0d4fa8;
  --sb-grey: #7a8494;
  --sb-muted: #a7b0bf;
  --sb-text: #f4f6f8;
  --sb-silver: #c5cad3;
  --sb-font: "Outfit", sans-serif;
  --sb-display: "Sora", sans-serif;
  --sb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sb-font);
  color: var(--sb-text);
  background: var(--sb-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2000;
  background: var(--sb-blue);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

/* Nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.95), rgba(5, 7, 12, 0));
  transition: background 0.35s var(--sb-ease), backdrop-filter 0.35s var(--sb-ease), border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--sb-line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sb-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-brand img {
  width: 40px;
  height: auto;
}

.site-nav nav a:not(.btn) {
  color: var(--sb-muted);
  font-size: 0.95rem;
  font-weight: 450;
  transition: color 0.2s ease;
}

.site-nav nav a:not(.btn):hover {
  color: #fff;
}

.btn-nav-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--sb-line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.btn-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.menu-movil {
  background: #080b12;
  color: #fff;
  border-left: 1px solid var(--sb-line);
}

.menu-movil a {
  font-size: 1.15rem;
  color: var(--sb-muted);
}

.menu-movil a:hover {
  color: #fff;
}

/* Buttons */
.btn-brand {
  --bs-btn-bg: var(--sb-blue);
  --bs-btn-border-color: var(--sb-blue);
  --bs-btn-hover-bg: var(--sb-blue-bright);
  --bs-btn-hover-border-color: var(--sb-blue-bright);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--sb-blue-deep);
  --bs-btn-active-border-color: var(--sb-blue-deep);
  --bs-btn-active-color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding-inline: 1.4rem;
  box-shadow: 0 0 0 0 rgba(26, 122, 239, 0.35);
  transition: box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-brand:hover {
  box-shadow: 0 0 28px rgba(78, 160, 255, 0.35);
}

.btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.28);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  padding-inline: 1.4rem;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 6.5rem 1.25rem 4.5rem;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(95% 70% at 50% 100%, rgba(26, 122, 239, 0.22) 0%, transparent 58%),
    radial-gradient(50% 40% at 85% 8%, rgba(78, 160, 255, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #030509 0%, #060910 50%, #05070c 100%);
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 70%);
  opacity: 0.45;
  animation: gridDrift 32s linear infinite;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: min(68vw, 560px);
  height: min(68vw, 560px);
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26, 122, 239, 0.28) 0%, transparent 68%);
  filter: blur(10px);
  animation: pulseGlow 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 1.85rem;
}

.hero-mark {
  width: min(34vw, 168px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(26, 122, 239, 0.3));
}

.hero-wordmark {
  margin: 0;
  font-family: var(--sb-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 7.2vw, 4.15rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-wordmark .wm-sb {
  color: var(--sb-silver);
}

.hero-wordmark .wm-name {
  color: var(--sb-blue-bright);
}

.hero-title {
  font-family: var(--sb-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  color: #fff;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 auto 1.85rem;
  color: var(--sb-muted);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  font-weight: 350;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--sb-blue-bright);
  animation: scrollDot 1.8s var(--sb-ease) infinite;
}

/* Sections */
.section {
  padding: clamp(4.25rem, 10vw, 7.25rem) 0;
  border-top: 1px solid var(--sb-line);
}

.section-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sb-blue-bright);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--sb-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
  color: #fff;
}

.section-lead {
  max-width: 42rem;
  color: var(--sb-muted);
  font-size: 1.08rem;
  margin: 0;
}

.section-producto {
  background:
    linear-gradient(180deg, #060910 0%, #080b12 100%);
}

.producto-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--sb-line);
}

@media (min-width: 768px) {
  .producto-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.producto-item {
  padding: 1.55rem 1.4rem 1.55rem 0;
  border-bottom: 1px solid var(--sb-line);
}

.producto-item h3 {
  font-family: var(--sb-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: #fff;
}

.producto-item p {
  margin: 0;
  color: var(--sb-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.producto-closing {
  margin: 2.25rem 0 0;
  max-width: 42rem;
  color: var(--sb-silver);
  font-size: 1.02rem;
}

.section-modulos {
  background: var(--sb-ink);
}

.modulos-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--sb-line);
}

@media (min-width: 768px) {
  .modulos-list {
    grid-template-columns: 1fr 1fr;
  }
}

.modulos-list li {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.4rem 1.4rem 0;
  border-bottom: 1px solid var(--sb-line);
}

.modulos-list strong {
  font-family: var(--sb-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.modulos-list span {
  color: var(--sb-muted);
  font-size: 0.95rem;
}

.section-contacto {
  background: #060910;
}

.contacto-form {
  margin-top: 2rem;
  max-width: 40rem;
}

.contacto-form .form-label {
  color: var(--sb-muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contacto-form .form-control {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.contacto-form .form-control:focus {
  background: #151a24;
  border-color: var(--sb-blue);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(26, 122, 239, 0.22);
}

.form-hint {
  color: var(--sb-grey);
  font-size: 0.9rem;
}

.form-hint.is-ok {
  color: #7dcea0;
}

.form-hint.is-error {
  color: #f0a0a0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--sb-line);
  padding: 1.75rem 0;
  background: #030509;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--sb-display);
  font-size: 0.95rem;
}

.footer-brand span {
  display: block;
  color: var(--sb-grey);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--sb-grey);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--sb-ease), transform 0.75s var(--sb-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 80px 80px, 80px 80px; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-glow,
  .hero-plane::after,
  .hero-scroll span {
    animation: none;
  }
}
