/* ==========================================================================
   M&F HERRAMIENTAS — main.css
   ========================================================================== */

:root {
  --c-blue: #036fd3;
  --c-blue-dim: #0459a8;
  --c-blue-glow: rgba(3, 111, 211, 0.35);
  --c-black: #000000;
  --c-ink: #0a0b0d;
  --c-steel-900: #101215;
  --c-steel-800: #17191d;
  --c-steel-700: #202329;
  --c-steel-600: #34383f;
  --c-steel-400: #6b7078;
  --c-paper: #f4f5f7;
  --c-white: #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-ui: 'Barlow', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  /* Linterna: imagen natural 900x630 (dos linternas verticales) */
  /* Se muestra SIN rotación, escalada responsivamente */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::selection { background: var(--c-blue); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 1.5rem;
}

.section-eyebrow--light { color: var(--c-blue); }

.nav-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s, color 0.35s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-white); color: var(--c-black); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--c-white); transform: translateY(-2px); }

.btn-nav {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--c-blue);
  color: var(--c-white);
}
.btn-nav:hover { background: var(--c-blue); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.4s var(--ease-in-out), padding 0.4s var(--ease-in-out), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 30px; width: auto; }

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--c-white); }
.main-nav .nav-index { font-size: 0.65rem; color: var(--c-blue); border-color: rgba(3,111,211,0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--c-white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease-in-out), visibility 0.6s;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-gauge { width: 96px; height: 96px; color: var(--c-blue); }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 4; }
.gauge-fill {
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: gaugeFill 1.6s var(--ease-in-out) forwards;
}
.gauge-needle {
  stroke: var(--c-white);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  animation: needleSweep 1.6s var(--ease-in-out) forwards;
}
.gauge-hub { fill: var(--c-white); }

.preloader-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  animation: fadeIn 0.6s 0.4s var(--ease-out) both;
}

/* ==========================================================================
   HERO — Nueva portada estilo inspiración
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vh, 2rem);
  padding: 4rem 0 0 0;
  overflow-x: hidden; /* prevent horizontal scroll from rotated image */
  overflow-y: visible;
  background: radial-gradient(ellipse at 50% 20%, #0d1520 0%, #050609 50%, #000000 100%);
}

/* Spotlight que sigue el mouse */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 40%),
    rgba(3, 111, 211, 0.08) 0%,
    rgba(3, 80, 160, 0.04) 30%,
    transparent 65%
  );
  transition: background 0.1s;
}

/* Título PRECI SIÓN masivo */
.hero-word-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.hero-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--c-white);
  display: block;
  /* Separar la linterna con un gap visual */
  text-shadow: none;
  opacity: 0;
  animation: wordReveal 1s 0.8s var(--ease-out) forwards;
}

@keyframes wordReveal {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Linterna interactiva — más grande, rotada en diagonal, glow direccional */
.hero-flashlight-wrap {
  position: relative;
  width: clamp(400px, 85vw, 1100px);
  margin-top: -1rem;
  margin-bottom: -1rem;
  /* No aspect-ratio fijo: la imagen dicta su propia altura al 100% de ancho */
  z-index: 4;
  flex-shrink: 0;
  display: block; /* Fixed mobile squish bug */
  text-align: center;
  overflow: visible;
  will-change: transform;
  /* Eliminada rotación diagonal, mantener horizontal según solicitud */
  transform: none;
  transition: transform 0.15s cubic-bezier(.2,.8,.4,1);
  pointer-events: none;
}

/* Sombra de contacto: elipse oscura difuminada debajo del objeto horizontal */
.hero-flashlight-wrap::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(12px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Glow DIRECCIONAL horizontal intenso detrás de la linterna */
.hero-flashlight-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  background: radial-gradient(
    ellipse 65% 35% at 50% 50%,
    rgba(3, 150, 255, 0.65) 0%,
    rgba(3, 111, 211, 0.45) 25%,
    rgba(3, 80, 160, 0.2) 50%,
    rgba(3, 60, 120, 0.05) 75%,
    transparent 100%
  );
  filter: blur(20px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}



/* Rayo de luz cónico que sale de la linterna hacia arriba */
.flashlight-beam {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 180px solid transparent;
  border-right: 180px solid transparent;
  border-bottom: 400px solid rgba(200, 230, 255, 0.09);
  z-index: 3;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.6s;
  margin-bottom: -20px;
  display: none;
}

.hero-flashlight-wrap.is-lit .flashlight-beam {
  opacity: 1;
}

/* Halo en la punta LED */
.flashlight-halo {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(220,240,255,0.95) 0%, rgba(3,111,211,0.6) 40%, transparent 72%);
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  display: none;
}

.hero-flashlight-wrap.is-lit .flashlight-halo {
  opacity: 1;
  animation: haloBreath 2.5s ease-in-out infinite;
}

@keyframes haloBreath {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

/* Contenido inferior (tagline + botones) */
.hero-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  pointer-events: all;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

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

/* Stats en la base */
.hero-specs {
  position: relative; /* Eliminado absolute para que no colisione */
  width: 100%;
  margin-top: auto; /* Se empuja hacia abajo en el flex column */
  z-index: 5;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  flex-wrap: wrap;
}

.spec { display: flex; flex-direction: column; gap: 0.2rem; align-items: center; }
.spec-row { display: flex; align-items: baseline; gap: 0.1rem; }
.spec-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--c-white);
  display: inline;
  line-height: 1;
}
.spec-plus { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--c-blue); }
.spec-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  max-width: 140px;
  text-align: center;
}
.spec-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* Scroll cue — esquina inferior */
.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  right: var(--gutter);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue-track {
  width: 2px;
  height: 46px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.scroll-cue-needle {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--c-blue);
  animation: scrollNeedle 1.8s var(--ease-in-out) infinite;
}
.scroll-cue-label {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   TRUST BAR — ficha de certificación (checklist)
   ========================================================================== */
.trust-bar {
  background: #ffffff;
  color: var(--c-ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.4rem var(--gutter);
}
.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-bar-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  padding-right: 2rem;
  white-space: nowrap;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(10, 11, 13, 0.8);
  font-weight: 500;
  white-space: nowrap;
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
  color: var(--c-blue);
  border: 1px solid var(--c-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   ASSEMBLY (Acto 2 — pin scroll)
   ========================================================================== */
.assembly {
  position: relative;
  height: 300vh;
  background: var(--c-paper);
}
.assembly-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  overflow: hidden;
  padding: 2rem var(--gutter);
}

.assembly-mark {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assembly-ring { position: absolute; inset: 0; color: var(--c-blue); opacity: 0.6; }
.assembly-ring circle:first-child { animation: spinSlow 40s linear infinite; transform-origin: 50% 50%; }
.assembly-ring circle:last-child { animation: spinSlow 30s linear infinite reverse; transform-origin: 50% 50%; }
.assembly-wrench {
  width: 62px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

.assembly-fragments {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.fragment {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: rgba(10, 11, 13, 0.4);
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  opacity: 0.35;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.5s, box-shadow 0.5s;
}
.fragment strong { color: var(--c-blue); }
.fragment.is-active {
  opacity: 1;
  transform: translateY(0);
  color: var(--c-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(3, 111, 211, 0.4);
}

/* ==========================================================================
   ABOUT (Sobre nosotros)
   ========================================================================== */
.about {
  background: var(--c-paper);
  color: var(--c-black);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  position: relative;
}
.about-inner { max-width: var(--container); margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-panel {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 2px;
  position: relative;
}
.about-panel--dark { background: var(--c-black); color: var(--c-white); }
.about-panel--light { background: var(--c-white); color: var(--c-black); border: 1px solid rgba(0,0,0,0.08); }

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--c-blue);
}
.panel-placeholder {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.72;
  margin: 0;
  border-left: 2px solid var(--c-blue);
  padding-left: 1rem;
}

.panel-copy {
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.85;
  margin: 0;
  border-left: 2px solid var(--c-blue);
  padding-left: 1rem;
}

.about-story {
  padding: clamp(2rem, 4vw, 3rem);
  background: repeating-linear-gradient(135deg, rgba(3,111,211,0.04) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
}
.about-story-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 0 0 1.25rem;
}
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.story-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.8;
}
.story-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--c-blue);
  transform: rotate(45deg);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.services-inner { max-width: var(--container); margin: 0 auto; }
.services-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 0 3.5rem;
  color: var(--c-ink);
}

.services-list { 
  display: flex; 
  flex-direction: column;
  gap: 1.25rem;
}
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 2rem;
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.service-row:hover { 
  transform: translateY(-2px);
  border-color: rgba(3, 111, 211, 0.35);
  box-shadow: 0 8px 24px rgba(3, 111, 211, 0.08);
}

.service-body { flex: 1 1 auto; width: 100%; }
.service-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: var(--c-ink);
}
.service-body p {
  margin: 0;
  color: rgba(10, 11, 13, 0.78);
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.65;
}
.service-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(3, 111, 211, 0.08);
  border: 1px solid rgba(3,111,211,0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

/* ==========================================================================
   PRODUCTS / BRANDS
   ========================================================================== */
.products {
  background: var(--c-paper);
  color: var(--c-black);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}
.products-inner { max-width: var(--container); margin: 0 auto; }
.products-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 780px;
}
.products-sub {
  max-width: 560px;
  color: rgba(0,0,0,0.6);
  margin: 0 0 3.5rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4.5rem;
}
.brands-grid--five {
  grid-template-columns: repeat(6, 1fr);
}
.brands-grid--five .brand-plate {
  grid-column: span 2;
}
.brands-grid--five .brand-plate:nth-child(4) { grid-column: 2 / span 2; }
.brands-grid--five .brand-plate:nth-child(5) { grid-column: 4 / span 2; }

.brands-grid--ten {
  grid-template-columns: repeat(5, 1fr);
}

.brand-plate {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.brand-plate::before, .brand-plate::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.3);
}
.brand-plate::before { top: 10px; left: 10px; }
.brand-plate::after { bottom: 10px; right: 10px; }
.brand-plate:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 1rem;
}
.brand-plate--pending {
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 12px);
  flex-direction: column;
  gap: 0.4rem;
}
.brand-plate--pending .brand-name { color: rgba(0,0,0,0.4); }
.brand-pending-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  border: 1px solid var(--c-blue);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.categories-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 1.5rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.category-card p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.category-thumb {
  aspect-ratio: 4/3;
  background: var(--c-steel-800);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.category-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 10px);
}
.category-thumb span {
  position: relative;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
}
.categories-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(0,0,0,0.45);
  font-style: italic;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) 5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.contact-inner { max-width: var(--container); margin: 0 auto; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 3.5rem;
  max-width: 700px;
  color: var(--c-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-channels { display: flex; flex-direction: column; gap: 1rem; }
.channel-switch {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.4rem;
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.channel-switch:hover {
  border-color: var(--c-blue);
  background: rgba(3,111,211,0.04);
  transform: translateX(4px);
}
.channel-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(3,111,211,0.1);
  color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
}
.channel-icon svg { width: 20px; height: 20px; }
.channel-text { display: flex; flex-direction: column; gap: 0.15rem; }
.channel-text strong { font-size: 1rem; color: var(--c-ink); }
.channel-text span { font-size: 0.85rem; color: rgba(10, 11, 13, 0.65); }
.channel-arrow { margin-left: auto; color: var(--c-blue); font-size: 1.1rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border-radius: 6px;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 11, 13, 0.75);
}
.form-row .optional { text-transform: none; letter-spacing: 0; opacity: 0.6; }
.form-row input, .form-row textarea {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  color: var(--c-ink);
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(3, 111, 211, 0.15);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.btn-form { margin-top: 0.5rem; width: 100%; }
.form-status { font-size: 0.85rem; min-height: 1.2em; margin: 0; }
.form-status.is-success { color: #3ddc84; }
.form-status.is-error { color: #ff6161; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-black);
  padding: 3rem var(--gutter) 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-logo { height: 28px; opacity: 0.85; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 0; }
.footer-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* ==========================================================================
   FLASHLIGHT — Imagen real del producto
   ========================================================================== */
.flashlight-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Sin drop-shadow uniforme — el glow lo maneja el ::after del contenedor */
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.85));
  transition: filter 0.35s;
  pointer-events: none;
  user-select: none;
}

.hero-flashlight-wrap.is-lit .flashlight-img {
  /* Al activarse el "is-lit", la linterna brilla un poco en el LED */
  filter:
    drop-shadow(0 0 14px rgba(220,240,255,0.35))
    drop-shadow(0 10px 24px rgba(0,0,0,0.9));
}

/* ==========================================================================
   BRAND PLATES — clickeables con señal visual
   ========================================================================== */
.brand-plate {
  cursor: pointer;
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  font-family: inherit;
  padding: 0;
  text-align: center;
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, outline 0.2s;
}

.brand-plate .brand-cta {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-blue);
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}

.brand-plate:hover .brand-cta,
.brand-plate:focus-visible .brand-cta {
  opacity: 1;
  transform: translateY(0);
}

.brand-plate:hover,
.brand-plate:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

.brand-plate::before, .brand-plate::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.3);
}
.brand-plate::before { top: 10px; left: 10px; }
.brand-plate::after  { bottom: 10px; right: 10px; }

/* Brand logo images inside grid cards */
.brand-logo {
  display: block;
  max-width: 70%;
  max-height: 55%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out);
}
.brand-plate:hover .brand-logo,
.brand-plate:focus-visible .brand-logo {
  transform: scale(1.06);
}

/* Brand logo inside modals (detail view) */
.modal-brand-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Translucent/transparent background style specifically for Racing Tools modal logo */
#modal-racing-tools .modal-brand-logo {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   BRAND MODALS
   ========================================================================== */
body.modal-open { overflow: hidden; }

.brand-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-in-out);
}
.brand-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.brand-modal {
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  width: min(680px, 100vw);
  z-index: 900;
  background: var(--c-steel-900);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease-out);
  overflow: hidden;
  pointer-events: none;
}
.brand-modal.is-visible {
  transform: translateX(0);
  pointer-events: all;
}

.brand-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem) 2.5rem;
  gap: 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.modal-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-white);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.3s;
  flex-shrink: 0;
  z-index: 10;
  margin-bottom: -0.5rem;
}
.modal-close:hover {
  background: rgba(255,255,255,0.14);
  transform: rotate(90deg);
}

.modal-header { display: flex; flex-direction: column; gap: 0.85rem; }

.modal-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.modal-desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  margin: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.modal-tag {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-blue);
  border: 1px solid rgba(3,111,211,0.4);
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  background: rgba(3,111,211,0.06);
}

.modal-header::after {
  content: '';
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 0.25rem;
}

.modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--c-steel-800);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  border-color: rgba(3,111,211,0.35);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 1rem;
  background: var(--c-white);
}
.product-card .product-caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.product-card--placeholder {
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,rgba(255,255,255,0.02) 0 2px,transparent 2px 10px);
}
.product-card--placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  border: 1px dashed rgba(255,255,255,0.12);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  position: relative;
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: auto;
  padding-bottom: 0.5rem;
}
.modal-contact-btn {
  width: 100%;
  justify-content: center;
}

/* Modal en móvil — se abre desde abajo */
@media (max-width: 720px) {
  .brand-modal {
    width: 100vw;
    height: 92svh;
    top: auto;
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
  }
  .brand-modal.is-visible { transform: translateY(0); }
  .modal-products-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-title { font-size: 2.2rem; }
}

/* ==========================================================================
   FOOTER NAV
   ========================================================================== */
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}
.footer-nav a:hover {
  color: var(--c-blue);
}

/* ==========================================================================
   DISTRIBUTORS
   ========================================================================== */
.distributors {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.distributors-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.distributors-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 800px;
  color: var(--c-ink);
}
.distributors-lead {
  max-width: 680px;
  color: rgba(10, 11, 13, 0.78);
  font-size: 1.05rem;
  margin: 0 0 3.5rem;
  line-height: 1.7;
}

.distributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.distributor-card {
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.distributor-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-blue);
  box-shadow: 0 12px 28px rgba(3, 111, 211, 0.12);
}
.distributor-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(3, 111, 211, 0.1);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.distributor-icon svg {
  width: 24px;
  height: 24px;
}
.distributor-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--c-ink);
}
.distributor-card p {
  font-size: 0.94rem;
  color: rgba(10, 11, 13, 0.72);
  margin: 0;
  line-height: 1.6;
}

.distributor-cta-box {
  background: linear-gradient(135deg, rgba(3, 111, 211, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(3, 111, 211, 0.25);
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 8px 24px rgba(3, 111, 211, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.distributor-cta-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--c-ink);
}
.distributor-cta-content p {
  margin: 0;
  color: rgba(10, 11, 13, 0.75);
  font-size: 0.98rem;
  max-width: 600px;
}

/* ==========================================================================
   NEWS
   ========================================================================== */
.news {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.news-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.news-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--c-ink);
}
.news-sub {
  max-width: 600px;
  color: rgba(10, 11, 13, 0.7);
  margin: 0 0 3.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 111, 211, 0.4);
  box-shadow: 0 12px 28px rgba(3, 111, 211, 0.1);
}

.news-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(3, 111, 211, 0.08);
  border: 1px solid rgba(3, 111, 211, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.news-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.78rem;
  color: rgba(10, 11, 13, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.news-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 0.8rem;
  color: var(--c-ink);
}

.news-card-excerpt {
  font-size: 0.92rem;
  color: rgba(10, 11, 13, 0.72);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, transform 0.2s;
  margin-top: auto;
}
.news-link:hover {
  color: #2b8df1;
  transform: translateX(4px);
}

/* ==========================================================================
   STORE CATALOG / TIENDA DE PRODUCTOS
   ========================================================================== */
.store-catalog {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.store-main-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--c-ink);
}

.store-main-subtitle {
  margin: 0;
  color: rgba(10, 11, 13, 0.72);
  font-size: 0.95rem;
  max-width: 580px;
}

.store-search-box {
  position: relative;
  width: min(420px, 100%);
}

.store-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.3s;
}

.store-search-box input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  color: #0f172a;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.store-search-box input::placeholder {
  color: #94a3b8;
}

.store-search-box input:focus {
  outline: none;
  border-color: #e30613;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.store-search-box input:focus + .search-icon,
.store-search-box input:not(:placeholder-shown) + .search-icon {
  color: #e30613;
}

/* Category & Subcategory Filters */
.store-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.category-pills-scroll,
.subcategory-chips-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.category-pill {
  white-space: nowrap;
  background: #e2e5eb;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #242830;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
}

.category-pill:hover {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

.category-pill.is-active {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
  font-weight: 600;
  box-shadow: 0 4px 14px var(--c-blue-glow);
}

.subcategory-chips-scroll {
  padding-left: 0.2rem;
}

.subcategory-chip {
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(0, 0, 0, 0.25);
  color: #34383f;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
}

.subcategory-chip:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: rgba(3, 111, 211, 0.08);
}

.subcategory-chip.is-active {
  background: var(--c-blue);
  border: 1px solid var(--c-blue);
  color: var(--c-white);
}

.store-status-bar {
  margin-bottom: 2rem;
}

.store-results-count {
  font-size: 0.84rem;
  color: rgba(10, 11, 13, 0.65);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Products Grid & 3-Row Limit Wrapper */
.store-products-grid-wrapper {
  position: relative;
  max-height: 1120px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-products-grid-wrapper.is-expanded {
  max-height: 30000px;
}

.store-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1rem;
}

.btn-load-more-products {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff !important;
  color: #036fd3 !important;
  border: 2px solid #036fd3 !important;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(3, 111, 211, 0.15);
}

.btn-load-more-products:hover {
  background: #036fd3 !important;
  color: #ffffff !important;
  border-color: #036fd3 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(3, 111, 211, 0.3);
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-family-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-family-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-blue);
  box-shadow: 0 12px 24px rgba(3, 111, 211, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-family-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.card-badge-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-badge-variants {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.card-placeholder-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  border-bottom: 1px solid #edf2f7;
}

.card-placeholder-img .placeholder-icon {
  width: 36px;
  height: 36px;
  color: var(--c-blue);
  opacity: 0.8;
  transition: transform 0.3s;
}

.product-family-card:hover .card-placeholder-img .placeholder-icon {
  transform: scale(1.15) rotate(-5deg);
  opacity: 1;
}

.card-placeholder-img .placeholder-tag {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #94a3b8;
  font-weight: 700;
}

.product-family-card .card-body {
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.product-family-card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
  color: #0f172a;
}

.product-family-card .card-subcategory {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.card-sample-refs {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.card-sample-refs code {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.76rem;
}

.product-family-card .card-footer {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid #edf2f7;
  background: #f8fafc;
}

.btn-card-action {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--c-blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
  padding: 0;
  transition: color 0.2s, transform 0.2s;
}

.product-family-card:hover .btn-card-action {
  color: var(--c-blue-dim);
  transform: translateX(4px);
}

.store-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--c-steel-900);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.store-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.store-empty-state h3 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.store-empty-state p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL (FICHA DE PRODUCTO)
   ========================================================================== */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-in-out);
}

.product-detail-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.product-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(920px, 94vw);
  max-height: 90vh;
  z-index: 1200;
  background: var(--c-steel-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(3, 111, 211, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-detail-modal.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.modal-product-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s, transform 0.25s;
}

.modal-product-close:hover {
  background: var(--c-blue);
  transform: rotate(90deg);
}

.product-modal-inner {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.product-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.modal-product-breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 0.4rem;
}

.modal-product-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--c-white);
}

.modal-product-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-tag--sub {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

.family-image-placeholder {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, var(--c-steel-800) 0%, var(--c-ink) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.family-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--c-blue);
  margin-bottom: 0.6rem;
}

.family-image-placeholder .placeholder-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--c-white);
}

.family-image-placeholder .placeholder-subtext {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
}

/* Future Commerce Box */
.future-commerce-box {
  background: var(--c-steel-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.commerce-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.commerce-label {
  color: rgba(255, 255, 255, 0.6);
}

.commerce-value--quote {
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: 0.02em;
}

.commerce-badge--stock {
  font-size: 0.78rem;
  color: #3ddc84;
  font-weight: 600;
}

.selected-ref-code {
  background: rgba(3, 111, 211, 0.15);
  color: var(--c-white);
  border: 1px solid var(--c-blue);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: monospace;
}

.btn-modal-quote {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
}

/* Variants Table */
.variants-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--c-white);
}

.variants-section-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem;
}

.variants-table-container {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.variants-table th {
  background: var(--c-steel-800);
  color: var(--c-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.variants-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}

.variant-row {
  cursor: pointer;
  transition: background 0.2s;
}

.variant-row:hover {
  background: rgba(3, 111, 211, 0.1);
}

.variant-row.is-selected-row {
  background: rgba(3, 111, 211, 0.22);
}

.variant-code {
  color: var(--c-white);
  font-family: monospace;
  font-size: 0.9rem;
}

.variant-row input[type="radio"] {
  accent-color: var(--c-blue);
  cursor: pointer;
}

.text-center {
  text-align: center;
}


