html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 0%, rgba(63, 134, 250, 0.14), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(11, 218, 192, 0.06), transparent 24%),
    linear-gradient(rgba(254, 255, 254, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 255, 254, 0.012) 1px, transparent 1px),
    #010101;
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 96px 96px, 96px 96px, auto;
}

header {
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

header.landing-header-scrolled {
  border-color: rgba(63, 134, 250, 0.2);
  /* background: rgba(1, 1, 1, 0.92); removed for backdrop-blur */
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.landing-reveal {
  opacity: 0;
  translate: 0 34px;
  scale: 0.985;
  filter: blur(10px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 760ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--landing-reveal-delay, 0ms);
  will-change: opacity, translate, scale, filter;
}

.landing-reveal-visible {
  opacity: 1 !important;
  translate: 0 0 !important;
  scale: 1 !important;
  filter: blur(0) !important;
}

#inicio .pointer-events-none.absolute {
  transform: translateY(calc(var(--landing-hero-drift, 0px) * -0.32));
  opacity: calc(0.035 * var(--landing-hero-fade, 1));
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}

#inicio .hero-orb {
  animation: landing-orb-spin 18s linear infinite;
  will-change: transform;
}



.landing-faq-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 260ms ease, opacity 220ms ease;
}

#faq article.landing-faq-open {
  border-color: rgba(63, 134, 250, 0.38);
  box-shadow: 0 18px 60px rgba(63, 134, 250, 0.08);
}

#faq article.landing-faq-open svg {
  transform: rotate(180deg);
}

@keyframes landing-orb-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal,
  .landing-reveal-visible,
  #inicio .hero-orb,
  .landing-faq-panel,
  header {
    animation: none !important;
    transition: none !important;
  }

  .landing-reveal {
    opacity: 1;
    translate: none;
      scale: none;
    filter: none;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  /* body background removed */

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: #10151c;
    pointer-events: none;
    z-index: 90;
  }
}

#landing-mobile-menu[hidden] {
  display: none !important;
}

#landing-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.landing-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 1, 1, 0.72);
}

.landing-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  min-height: 100%;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: #10151c;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-mobile-menu__top img {
  width: 160px;
  height: auto;
}

.landing-mobile-menu__top button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  font-size: 28px;
  line-height: 1;
}

.landing-mobile-menu__panel nav {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.landing-mobile-menu__panel nav a {
  display: flex;
  min-height: 52px;
  align-items: center;
  border-radius: 4px;
  padding: 0 14px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing-mobile-menu__panel nav a:hover,
.landing-mobile-menu__panel nav a:focus {
  background: rgba(50, 95, 235, 0.18);
  outline: none;
}

body.landing-mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 1024px) {
  #landing-mobile-menu {
    display: none !important;
  }
}


#inicio .relative.z-10 > *, #inicio [aria-hidden="true"] {
  animation: hero-fade-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

#inicio .relative.z-10 > *:nth-child(1) { animation-delay: 0.1s; }
#inicio .relative.z-10 > *:nth-child(2) { animation-delay: 0.2s; }
#inicio .relative.z-10 > *:nth-child(3) { animation-delay: 0.3s; }
#inicio .relative.z-10 > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes hero-fade-in {
  from {
    opacity: 0;
    translate: 0 24px;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #inicio .relative.z-10 > *, #inicio [aria-hidden="true"] {
    animation: none !important;
    opacity: 1;
    translate: none;
    filter: none;
  }
}
