:root {
  --cbYellow: #ffca44;
  --cbBlue: #75aadb;
  --ink: #0b0f19;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: #0b0f19;
}
h1,
h2,
h3,
.font-display {
  font-family: "Poppins", sans-serif;
}

/* CTA lift */
.btn-lift {
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
  will-change: transform;
}
.btn-lift:hover {
  transform: translateY(-2px);
}
.btn-lift:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

/* Nav active underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link.is-active::after {
  transform: scaleX(1);
}

.global-circles {
  position: fixed;
  inset: -200px;
  z-index: -1;
  pointer-events: none;

  /* Opacidades subidas (ahora entre 0.20 y 0.35) */
  background-image:
    radial-gradient(
      circle at 15% 25%,
      rgba(255, 202, 68, 0.28) 70px,
      transparent 71px
    ),
    radial-gradient(
      circle at 75% 15%,
      rgba(255, 202, 68, 0.2) 45px,
      transparent 46px
    ),
    radial-gradient(
      circle at 45% 55%,
      rgba(255, 202, 68, 0.35) 90px,
      transparent 91px
    ),
    radial-gradient(
      circle at 85% 65%,
      rgba(255, 202, 68, 0.22) 55px,
      transparent 56px
    ),
    radial-gradient(
      circle at 25% 85%,
      rgba(255, 202, 68, 0.3) 75px,
      transparent 76px
    ),
    radial-gradient(
      circle at 65% 95%,
      rgba(255, 202, 68, 0.2) 50px,
      transparent 51px
    );

  background-size: 600px 600px;
}

/* Elimina las flechas del input de cantidad */
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spin {
  -moz-appearance: textfield; /* Para Firefox */
  appearance: none;
}

/* Capa de contenido */
.page {
  position: relative;
  z-index: 1;
}

/* Grain suave */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Sections */
.section {
  position: relative;
}

/* Reveal (simple y estable) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
