:root {
  --background: 240 20% 98%;
  --foreground: 221 39% 11%;
  --card: 0 0% 100%;
  --card-foreground: 221 39% 11%;
  --primary: 221 45% 16%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 27% 96%;
  --secondary-foreground: 221 39% 11%;
  --muted: 220 20% 96%;
  --muted-foreground: 220 9% 43%;
  --accent: 28 78% 39%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 16% 90%;
  --logo: 28 78% 39%;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

h1, h2, h3, h4 { letter-spacing: -0.025em; }

.technical {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}

.glass {
  background-color: hsl(0 0% 100% / 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.blueprint {
  background-image:
    linear-gradient(to right, hsl(221 39% 11% / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(221 39% 11% / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

.shadow-card {
  box-shadow: 0 1px 2px hsl(221 39% 11% / 0.04), 0 16px 40px -20px hsl(221 39% 11% / 0.18);
}

.shadow-float {
  box-shadow: 0 24px 60px -28px hsl(221 39% 11% / 0.35);
}

.hero-foto {
  object-position: 68% center;
}

.hero-velo {
  background: linear-gradient(105deg, hsl(221 39% 11% / 0.94) 0%, hsl(221 39% 11% / 0.84) 36%, hsl(210 42% 16% / 0.58) 68%, hsl(198 35% 18% / 0.42) 100%);
}

.molecula {
  color: hsl(188 72% 78%);
  animation: molecula-deriva 16s ease-in-out infinite;
}

.molecula-b {
  animation-duration: 22s;
  animation-delay: -6s;
}

.molecula-linea {
  stroke-dasharray: 7 9;
  animation: molecula-enlace 7s linear infinite;
}

@keyframes molecula-deriva {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -18px, 0); }
}

@keyframes molecula-enlace {
  to { stroke-dashoffset: -32; }
}

.hero-derecha {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 50%;
  pointer-events: none;
}

.hero-microscopio {
  position: absolute;
  right: 2%;
  bottom: 1%;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 90%;
  filter: drop-shadow(0 18px 22px rgb(8 14 24 / 0.4));
}

.microbio {
  position: absolute;
  opacity: 0.9;
  filter: blur(5px);
  animation: microbio-deriva 18s ease-in-out infinite;
}

.microbio-a { top: 10%; left: 0; width: 11rem; color: hsl(188 48% 70%); filter: blur(4px); }
.microbio-b { top: 34%; left: 12%; width: 8rem; color: hsl(188 32% 74%); animation-duration: 24s; animation-delay: -7s; filter: blur(6px); }
.microbio-c { bottom: 14%; left: 0; width: 7.5rem; color: hsl(28 52% 62%); opacity: 0.75; animation-name: microbio-deriva-b; animation-duration: 21s; animation-delay: -4s; filter: blur(5px); }
.microbio-d { top: 4%; left: 26%; width: 5rem; color: hsl(210 16% 80%); opacity: 0.7; animation-name: microbio-deriva-b; animation-duration: 26s; animation-delay: -11s; filter: blur(7px); }

@keyframes microbio-deriva {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -22px, 0); }
}

@keyframes microbio-deriva-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-14px, 16px, 0); }
}

@media (max-width: 1023px) {
  .hero-velo {
    background: linear-gradient(180deg, hsl(221 39% 11% / 0.92) 0%, hsl(221 39% 11% / 0.84) 58%, hsl(210 40% 14% / 0.55) 100%);
  }

  .molecula-a {
    top: auto;
    right: 6%;
    bottom: 1.5rem;
    width: 7rem;
    opacity: 0.45;
  }

  .molecula-b { display: none; }

  .hero-panorama { min-height: 0; }

  .hero-derecha,
  .hero-cuerpo { display: none; }

  .hero-movil { display: block; }

  .microbio-b,
  .microbio-d { display: none; }
}

.destacados {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.destacados-ventana {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.destacados-pista {
  display: flex;
  width: max-content;
  transition: transform 0.45s ease;
}

.destacados-pista.sin-transicion { transition: none; }

.destacados-pista > article { flex: 0 0 auto; }

.destacados-flecha {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.destacados-flecha:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.marcas-cinta { overflow: hidden; }

.marcas-pista {
  display: flex;
  width: max-content;
  animation: marcas-corre 42s linear infinite;
}

.marcas-grupo {
  display: flex;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.marcas-logo {
  width: 9.5rem;
  flex-shrink: 0;
}

@keyframes marcas-corre {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .molecula,
  .molecula-linea,
  .microbio,
  .marcas-pista { animation: none; }

  .marcas-cinta { overflow-x: auto; }
}

.flotar {
  animation: flotar 6s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.js-panel.abierto { transform: translateX(0); }

svg.fill-logo { fill: hsl(var(--logo)); color: hsl(var(--logo)); }
svg.fill-logo * { fill: hsl(var(--logo)); stroke: hsl(var(--logo)); }

.caja-1 { aspect-ratio: 1 / 1; }
.caja-43 { aspect-ratio: 4 / 3; }

.foto-producto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.buscar-lista {
  scrollbar-width: thin;
  scrollbar-color: hsl(220 8% 62%) transparent;
}

.buscar-lista::-webkit-scrollbar {
  width: 14px;
}

.buscar-lista::-webkit-scrollbar-track {
  margin-block: 14px;
  background: transparent;
}

.buscar-lista::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 999px;
  background-color: hsl(220 8% 62%);
  background-clip: padding-box;
}
