:root{
  --primary:#137fec;
  --bg-dark:#101922;
  --bg-light:#f6f7f8;
}
html {
  scroll-behavior: smooth;
}

body{
  font-family: 'Space Grotesk', sans-serif;
  scroll-behavior:smooth;
}

[data-modal]{
  -webkit-overflow-scrolling: touch;
}

[data-modal] > .relative{
  -webkit-overflow-scrolling: touch;
}

.glass-header{
  background: rgba(16, 25, 34, 0.80);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 127, 236, 0.10);
}

.hero-gradient{
  background: linear-gradient(to bottom, rgba(16, 25, 34, 0.35), rgba(16, 25, 34, 1));
}

.product-card{
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary);
}

.hide-scrollbar::-webkit-scrollbar{ display:none; }
.hide-scrollbar{ -ms-overflow-style:none; scrollbar-width:none; }

/* Parallax */
.parallax-hero{
  will-change: transform;
}
.parallax-hero img{
  will-change: transform;
  transform: translate3d(0,0,0) scale(1.06);
}

/* Accesibility focus */
a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(19,127,236,0.9);
  outline-offset: 3px;
}
/* --- Sección interna (detalle / parallax) --- */
.text-glow{
  text-shadow: 0 0 20px rgba(19, 127, 236, 0.40);
}

.card-blur{
  backdrop-filter: blur(12px);
  background: rgba(16, 25, 34, 0.70);
}

/* Parallax background (suave y consistente) */
.parallax-bg{
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* En mobile, fixed suele “tironear”: lo desactivamos */
@media (max-width: 768px){
  .parallax-bg{ background-attachment: scroll; }
}

.purchase-card img{
  transition: transform .35s ease;
}

.purchase-card:hover img{
  transform: scale(1.03);
}

.variant-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-radius: 999px;
  transition: all .2s ease;
}

.variant-btn:hover{
  border-color: rgba(19,127,236,0.45);
  color: #fff;
}

.variant-btn.is-active{
  background: rgba(19,127,236,0.16);
  border-color: rgba(19,127,236,0.65);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(19,127,236,0.12);
}

.qty-step{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.qty-step:hover{
  background: rgba(19,127,236,0.14);
  border-color: rgba(19,127,236,0.45);
}

.purchase-card [data-card-carousel-track] img {
  transition: transform .35s ease;
}

.purchase-card:hover [data-card-carousel-track] img {
  transform: scale(1.02);
}

.gallery-modal-panel{
  max-height: calc(100dvh - 1rem);
}

.gallery-modal-stage{
  min-height: min(62dvh, 720px);
  background:
    radial-gradient(circle at top, rgba(19,127,236,0.14), transparent 38%),
    rgba(255,255,255,0.03);
}

.gallery-modal-image{
  max-height: min(58dvh, 720px);
}

.gallery-modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16,25,34,0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.gallery-modal-nav:hover{
  background: rgba(19,127,236,0.85);
  border-color: rgba(19,127,236,0.95);
}

.gallery-modal-nav.is-hidden{
  opacity: 0;
  pointer-events: none;
}

.gallery-thumb{
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}

.gallery-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover{
  transform: translateY(-2px);
  border-color: rgba(19,127,236,0.5);
}

.gallery-thumb.is-active{
  border-color: rgba(19,127,236,0.9);
  box-shadow: 0 0 0 3px rgba(19,127,236,0.16);
}

@media (max-width: 640px){
  .gallery-modal-panel{
    max-height: calc(100dvh - .5rem);
    border-radius: 24px;
  }

  .gallery-modal-stage{
    min-height: 46dvh;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gallery-modal-image{
    max-height: 44dvh;
  }

  .gallery-modal-nav{
    width: 40px;
    height: 40px;
  }

  .gallery-thumb{
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .variant-btn{
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

