/* ==========================================================================
   🐱 LOGICAT BESPOKE ENHANCEMENTS — JN BIKERS ECOSISTEMA AUTÓNOMO
   Autor: MOE (Diseño UX/UI & Frontend)
   Propósito: Mantener el 100% del look & feel de base.css (Claude) agregando:
   1. Atmósferas Estacionales (Normal, Black Friday, Navidad, Lluvias)
   2. Buscador Predictivo de Compatibilidad por Moto (100% Motocicletas)
   3. Simulador Interactivo de Haz de Luz Nocturno (6000K / 3000K / Dual)
   4. Constructor de Combos & Kits de Luces con Ahorro
   5. Simulador en Vivo del Bot WhatsApp Meta Cloud API (Texto, Audio Whisper, Foto)
   ========================================================================== */

/* --- 1. ATMÓSFERAS ESTACIONALES DINÁMICAS (EDICIÓN PREMIUM EJECUTIVA) --- */
body[data-atmosphere="black_friday"] {
  --color-primary: #FFB300;
  --color-primary-rgb: 255, 179, 0;
  --color-on-primary: #08090c;
  --color-sale: #FF1744;
  --atm-glow: rgba(255, 179, 0, 0.28);
}
body[data-atmosphere="navidad"] {
  --color-primary: #00E676;
  --color-primary-rgb: 0, 230, 118;
  --color-sale: #FF1744;
  --color-on-primary: #04140c;
  --atm-glow: rgba(0, 230, 118, 0.25);
}
body[data-atmosphere="temporada_lluvias"] {
  --color-primary: #FFD600;
  --color-primary-rgb: 255, 214, 0;
  --color-on-primary: #08090c;
  --atm-glow: rgba(255, 214, 0, 0.25);
}
body[data-atmosphere="halloween"] {
  --color-primary: #FF6D00;
  --color-primary-rgb: 255, 109, 0;
  --color-on-primary: #09040e;
  --color-sale: #B388FF;
  --atm-glow: rgba(255, 109, 0, 0.34);
}
body[data-atmosphere="f2r"] {
  --color-primary: #57FF6A;
  --color-primary-rgb: 87, 255, 106;
  --color-on-primary: #041206;
  --color-sale: #FF1744;
  --atm-glow: rgba(87, 255, 106, 0.35);
}

/* Ribbons Estacionales: Campaña de Lujo y Alta Visibilidad */
.atmosphere-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #050a12 0%, #0d1a2d 40%, #122540 50%, #0d1a2d 60%, #050a12 100%);
  color: #80D8FF;
  border-bottom: 1px solid rgba(0, 177, 221, 0.25);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 50;
}
body[data-atmosphere="black_friday"] .atmosphere-ribbon {
  display: flex;
  background: linear-gradient(90deg, #0a0600 0%, #1f1200 40%, #2b1700 50%, #1f1200 60%, #0a0600 100%);
  color: #FFB300;
  border-bottom: 1px solid rgba(255, 179, 0, 0.35);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  position: relative;
}
body[data-atmosphere="black_friday"] .atmosphere-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(45deg, #FF9100 0px, #FF9100 10px, #000000 10px, #000000 20px);
  opacity: 0.9;
}
body[data-atmosphere="navidad"] .atmosphere-ribbon {
  display: flex;
  background: linear-gradient(90deg, #040907 0%, #0a1b13 40%, #0f261b 50%, #0a1b13 60%, #040907 100%);
  color: #e8f5e9;
  border-bottom: 1px solid rgba(0, 230, 118, 0.28);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
body[data-atmosphere="navidad"] .atmosphere-ribbon #AtmosphereLabel {
  color: #a7f3d0;
  font-weight: 700;
}
body[data-atmosphere="temporada_lluvias"] .atmosphere-ribbon {
  display: flex;
  background: linear-gradient(90deg, #090b0d 0%, #171c10 40%, #212613 50%, #171c10 60%, #090b0d 100%);
  color: #FFF9C4;
  border-bottom: 1px solid rgba(255, 214, 0, 0.32);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
body[data-atmosphere="temporada_lluvias"] .atmosphere-ribbon #AtmosphereLabel {
  color: #FFE082;
}
body[data-atmosphere="halloween"] .atmosphere-ribbon {
  display: flex;
  background: linear-gradient(90deg, #09040e 0%, #1d0b29 35%, #2b1105 55%, #1d0b29 75%, #09040e 100%);
  color: #FFAB40;
  border-bottom: 1px solid rgba(255, 109, 0, 0.55);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.75), 0 0 20px rgba(179, 136, 255, 0.16);
  position: relative;
}
body[data-atmosphere="halloween"] .atmosphere-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(45deg, #FF6D00 0px, #FF6D00 12px, #12051c 12px, #12051c 24px, #B388FF 24px, #B388FF 28px);
  opacity: 0.95;
}
body[data-atmosphere="halloween"] .atmosphere-ribbon #AtmosphereLabel {
  color: #FFD180;
  font-weight: 800;
}
body[data-atmosphere="halloween"] .countdown-pill {
  border-color: rgba(255, 109, 0, 0.6);
  background: rgba(16, 6, 26, 0.9);
  color: #FFAB40;
}
body[data-atmosphere="halloween"] .motocard-card:hover {
  border-color: rgba(255, 109, 0, 0.5) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(179, 136, 255, 0.28) !important;
}
body[data-atmosphere="f2r"] .atmosphere-ribbon {
  display: flex;
  background: linear-gradient(90deg, #050d07 0%, #0d2412 40%, #14381b 50%, #0d2412 60%, #050d07 100%);
  color: #57FF6A;
  border-bottom: 1px solid rgba(87, 255, 106, 0.5);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 0 18px rgba(87, 255, 106, 0.15);
  position: relative;
}
body[data-atmosphere="f2r"] .atmosphere-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #57FF6A 0px, #57FF6A 12px, #111111 12px, #111111 24px);
  opacity: 0.95;
}
body[data-atmosphere="f2r"] .atmosphere-ribbon #AtmosphereLabel {
  color: #BFFFC6;
  font-weight: 800;
}

.countdown-pills {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.countdown-pill {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid currentColor;
  padding: 2px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 800;
}
body[data-atmosphere="navidad"] .countdown-pill {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(2, 18, 12, 0.85);
  color: #69F0AE;
}
body[data-atmosphere="f2r"] .countdown-pill {
  border-color: rgba(87, 255, 106, 0.55);
  background: rgba(5, 20, 8, 0.9);
  color: #57FF6A;
}

/* Conmutador Rápido de Atmósferas en Ribbon Superior */
.atmosphere-quick-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 14px;
}
.atm-quick-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CFD8DC;
  font-family: var(--font-body-family);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.atm-quick-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #00B1DD;
  color: #fff;
  transform: translateY(-1px);
}
.atm-quick-pill.is-active {
  background: #00B1DD;
  color: #080c14;
  border-color: #00B1DD;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 177, 221, 0.6);
}
@media (max-width: 900px) {
  .atmosphere-quick-switcher {
    display: none;
  }
}

/* Resplandores y Realces Sutiles en Tarjetas */
body[data-atmosphere="navidad"] .motocard-card:hover {
  border-color: rgba(0, 230, 118, 0.38) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 230, 118, 0.22) !important;
}
body[data-atmosphere="black_friday"] .motocard-card:hover {
  border-color: rgba(255, 179, 0, 0.38) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 179, 0, 0.22) !important;
}
body[data-atmosphere="temporada_lluvias"] .motocard-card:hover {
  border-color: rgba(255, 214, 0, 0.38) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 214, 0, 0.22) !important;
}
body[data-atmosphere="f2r"] .motocard-card:hover {
  border-color: rgba(87, 255, 106, 0.5) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(87, 255, 106, 0.3) !important;
}

/* --- 2. BARRA FLOTANTE DE FILTRO POR MOTO (100% MOTOCICLETAS) --- */
.moto-finder-wrap {
  margin-top: -34px;
  position: relative;
  z-index: 15;
}
.moto-finder {
  background: linear-gradient(145deg, rgba(15, 18, 22, 0.96), rgba(8, 11, 15, 0.98));
  border: 1px solid rgba(var(--color-primary-rgb), 0.38);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 28px rgba(var(--color-primary-rgb), 0.14);
  backdrop-filter: blur(14px);
}
.moto-finder__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.moto-finder__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.12rem;
}
.moto-finder__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--color-primary-rgb), 0.14);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.35);
  font-weight: 600;
}
.moto-finder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px) {
  .moto-finder__grid {
    grid-template-columns: 1.1fr 1.4fr 1fr auto;
  }
}
.moto-finder__result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(var(--color-primary-rgb), 0.08);
  border-left: 3px solid var(--color-primary);
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}
.moto-finder__result.is-visible {
  display: flex;
}

/* --- 3. SIMULADOR INTERACTIVO DE HAZ DE LUZ EN CARRETERA NOCTURNA --- */
.beam-sim {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 960px) {
  .beam-sim {
    grid-template-columns: 1.25fr 1fr;
  }
}
.beam-sim__viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #040609;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}
.beam-sim__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.15);
  transition: filter 0.4s ease;
}
.beam-sim__cone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.35s ease;
  mix-blend-mode: screen;
}
/* Modos de haz de luz sobre la carretera */
.beam-sim[data-beam-mode="halogeno"] .beam-sim__img {
  filter: brightness(0.42) sepia(0.25);
}
.beam-sim[data-beam-mode="halogeno"] .beam-sim__cone {
  background: radial-gradient(ellipse 45% 38% at 50% 72%, rgba(255, 195, 100, 0.32), transparent 75%);
}
.beam-sim[data-beam-mode="blanco_6000k"] .beam-sim__img {
  filter: brightness(0.92) contrast(1.18);
}
.beam-sim[data-beam-mode="blanco_6000k"] .beam-sim__cone {
  background:
    radial-gradient(polygon, transparent, transparent),
    radial-gradient(ellipse 82% 58% at 50% 62%, rgba(205, 245, 255, 0.78), rgba(0, 177, 221, 0.32) 52%, transparent 82%);
}
.beam-sim[data-beam-mode="ambar_3000k"] .beam-sim__img {
  filter: brightness(0.88) contrast(1.22);
}
.beam-sim[data-beam-mode="ambar_3000k"] .beam-sim__cone {
  background:
    radial-gradient(ellipse 84% 58% at 50% 64%, rgba(255, 208, 0, 0.82), rgba(255, 145, 0, 0.38) 54%, transparent 84%);
}
.beam-sim[data-beam-mode="dual_bicolor"] .beam-sim__img {
  filter: brightness(1.02) contrast(1.22);
}
.beam-sim[data-beam-mode="dual_bicolor"] .beam-sim__cone {
  background:
    radial-gradient(ellipse 85% 42% at 50% 50%, rgba(215, 248, 255, 0.78), rgba(0, 177, 221, 0.25) 55%, transparent 80%),
    radial-gradient(ellipse 88% 45% at 50% 78%, rgba(255, 208, 0, 0.76), rgba(255, 140, 0, 0.28) 55%, transparent 82%);
}
.beam-sim__cutoff {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38%;
  border-top: 1px dashed rgba(0, 229, 255, 0.65);
  font-size: 0.7rem;
  color: #00E5FF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 4px;
  text-shadow: 0 1px 4px #000;
}
.beam-sim__hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 8, 12, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}
.beam-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.beam-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  text-align: left;
  transition: all 0.2s ease;
}
.beam-btn strong {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.beam-btn span {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.beam-btn.is-active {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--color-primary-rgb), 0.22);
}

/* --- 4. TARJETAS DE PRODUCTO ENRIQUECIDAS CON FICHAS ELÉCTRICAS & EFFI STOCK --- */
.card__specs-Row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d0d7e2;
}
.effi-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}
.effi-pill--ok { color: #00E676; }
.effi-pill--low { color: #FFB300; }
.effi-pill--out { color: #FF5252; }

/* --- 5. SECCIÓN DE COMBOS / KITS MOTEROS --- */
.combos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 860px) {
  .combos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.combo-card {
  background: linear-gradient(165deg, #11161d 0%, #090c10 100%);
  border: 1px solid rgba(var(--color-primary-rgb), 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.combo-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.combo-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05070a;
}
.combo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.combo-card__save {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-sale);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.combo-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 8, 12, 0.85);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.combo-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.combo-card__items {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  font-size: 0.85rem;
  color: #cfd6e0;
}
.combo-card__items li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

/* --- 6. SIMULADOR EN VIVO DEL BOT WHATSAPP META CLOUD API (24/7 + WHISPER + VISIÓN) --- */
.wa-bot-widget {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: min(390px, calc(100vw - 32px));
  max-height: 560px;
  background: #0b141a;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 95;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.wa-bot-widget.is-open {
  display: flex;
}
.wa-bot__head {
  background: #1f2c34;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-bot__head strong {
  color: #ffffff !important;
}
.wa-bot__status {
  font-size: 0.72rem;
  color: #25d366 !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-bot__direct-banner {
  padding: 8px 12px;
  background: rgba(37, 211, 102, 0.12);
  border-bottom: 1px solid rgba(37, 211, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wa-bot__direct-banner span {
  font-size: 0.74rem;
  color: #69F0AE;
  font-weight: 600;
}
.wa-bot__messages {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  background: radial-gradient(circle at center, #111b21 0%, #0b141a 100%);
}
.wa-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.45;
}
.wa-msg--user {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 3px;
}
.wa-msg--user strong {
  color: #ffffff !important;
}
.wa-msg--bot {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(0, 177, 221, 0.25);
}
.wa-msg--bot strong {
  color: #00E5FF !important;
}
.wa-quick-actions {
  padding: 8px 12px;
  background: #111b21;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.wa-chip {
  font-size: 0.72rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wa-chip:hover {
  background: rgba(37, 211, 102, 0.24);
}
.wa-bot__form {
  display: flex;
  padding: 10px;
  background: #1f2c34;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#WaBotInput {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.84rem;
  background: #111b21;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
}
#WaBotInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   WHATSAPP BOT WIDGET - MODO CLARO (LIGHT THEME)
   ========================================================================== */
[data-theme="light"] .wa-bot-widget {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16) !important;
}
[data-theme="light"] .wa-bot__head {
  background: #008069 !important;
  border-bottom: 1px solid #006b56 !important;
}
[data-theme="light"] .wa-bot__head strong {
  color: #ffffff !important;
}
[data-theme="light"] .wa-bot__head .wa-bot__status {
  color: #d1fae5 !important;
}
[data-theme="light"] .wa-bot__head .icon-btn {
  color: #ffffff !important;
}
[data-theme="light"] .wa-bot__direct-banner {
  background: #f0fdf4 !important;
  border-bottom: 1px solid #bbf7d0 !important;
}
[data-theme="light"] .wa-bot__direct-banner span {
  color: #166534 !important;
}
[data-theme="light"] .wa-bot__messages {
  background: #efeae2 !important; /* WhatsApp Web Light Canvas */
}
[data-theme="light"] .wa-msg--bot {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .wa-msg--bot strong {
  color: #008069 !important;
}
[data-theme="light"] .wa-msg--bot em {
  color: #475569 !important;
}
[data-theme="light"] .wa-msg--user {
  background: #d9fdd3 !important;
  color: #111827 !important;
  border: 1px solid #bbf7d0 !important;
}
[data-theme="light"] .wa-msg--user strong {
  color: #065f46 !important;
}
[data-theme="light"] .wa-quick-actions {
  background: #f0f2f5 !important;
  border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .wa-chip {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f766e !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .wa-chip:hover {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}
[data-theme="light"] .wa-bot__form {
  background: #f0f2f5 !important;
  border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] #WaBotInput {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] #WaBotInput::placeholder {
  color: #94a3b8 !important;
}

/* ==========================================================================
   7. BESPOKE "DARK GARAGE TELEMETRY UI" (CERO LOOK IA - 100% AUTORÍA LOGICAT)
   Elevación visual industrial motera sobre el template base de Jorge Negrete
   ========================================================================== */

/* Conmutador Interactivo de Atmósferas en Vivo (Superior) */
.atmosphere-dock {
  background: linear-gradient(90deg, #05080c 0%, #0b131c 50%, #05080c 100%);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.28);
  padding: 7px 0;
  font-size: 0.76rem;
  position: relative;
  z-index: 40;
}
.atmosphere-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.atmosphere-dock__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9c4d4;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.atmosphere-dock__pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.atm-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.22s ease;
}
.atm-pill-btn svg {
  width: 15px;
  height: 15px;
}
.atm-pill-btn:hover {
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.atm-pill-btn.is-active {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 14px rgba(var(--color-primary-rgb), 0.35);
}

/* Header Sólido & Blindado Anti-Fugas */
.header-wrapper {
  background: #080c14 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* HUD de Telemetría Motera en el Hero Slider */
.hero__telemetry-hud {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 560px;
  background: rgba(8, 12, 17, 0.78);
  border: 1px solid rgba(var(--color-primary-rgb), 0.35);
  border-left: 3px solid var(--color-primary);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
@media (min-width: 640px) {
  .hero__telemetry-hud {
    grid-template-columns: repeat(4, 1fr);
  }
}
.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.telemetry-item__val {
  font-family: var(--font-heading-family);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.telemetry-item__lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(242, 244, 247, 0.72);
}

/* Banner Publicitario / Promocional Dinámico de Temporada (Mandato #3 de Jorge Negrete) */
.seasonal-promo-wrap {
  margin-top: 26px;
}
.seasonal-promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: clamp(20px, 3.2vw, 30px);
  background:
    radial-gradient(circle at 88% 20%, rgba(var(--color-primary-rgb), 0.24), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255, 214, 0, 0.14), transparent 50%),
    linear-gradient(135deg, #0b1017 0%, #121a24 55%, #090d12 100%);
  border: 1px solid rgba(var(--color-primary-rgb), 0.42);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 900px) {
  .seasonal-promo-banner {
    grid-template-columns: 1.55fr auto;
  }
}
.seasonal-promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #FFD600, var(--color-primary));
}
.seasonal-promo__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--color-primary-rgb), 0.16);
  border: 1px solid rgba(var(--color-primary-rgb), 0.45);
  color: var(--color-primary);
  margin-bottom: 10px;
}
.seasonal-promo__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.2;
}
.seasonal-promo__sub {
  margin: 0;
  color: #c6d0df;
  font-size: 0.94rem;
  max-width: 68ch;
}
.seasonal-promo__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 900px) {
  .seasonal-promo__cta {
    align-items: flex-end;
  }
}

/* Mejora Bespoke en Tarjetas de Producto (Anodized Carbon & Effi Stock Bar) */
.product-grid .card {
  background: linear-gradient(170deg, #12171f 0%, #0a0d12 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.product-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), #FFD600, transparent);
  opacity: 0.35;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.product-grid .card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(var(--color-primary-rgb), 0.55) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.75), 0 0 24px rgba(var(--color-primary-rgb), 0.16) !important;
}
.product-grid .card:hover::before {
  opacity: 1;
}
.effi-stock-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.effi-stock-meter__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.icon-bespoke {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
   8. ANIMACIONES AVANZADAS, 3D SPOTLIGHT, MARQUEE INTERACTIVO, FAQ & TOASTS
   ========================================================================== */

/* Lienzo de Partículas Atmosféricas en Fondo Cinematográfico */
#AtmosphericCanvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

/* En todas las atmósferas (Navidad, F2R, Black Friday, Lluvias y Normal):
   Partículas, nevada, rayos y efectos estrictamente en el fondo (detrás de tarjetas, fotos y videos) */
#AtmosphericCanvas,
body[data-atmosphere="navidad"] #AtmosphericCanvas,
body[data-atmosphere="halloween"] #AtmosphericCanvas,
body[data-atmosphere="f2r"] #AtmosphericCanvas,
body[data-atmosphere="black_friday"] #AtmosphericCanvas,
body[data-atmosphere="temporada_lluvias"] #AtmosphericCanvas,
body[data-atmosphere="normal"] #AtmosphericCanvas {
  z-index: 0 !important;
}

/* Elevación y blindaje de tarjetas de productos, fotos, videos, sidebar y widgets
   para que la información y medios se lean nítidamente mientras la nieve fluye en el fondo */
main.main,
#MainContent,
.motocard-shop-section,
.motocard-shop-layout,
.motocard-shop-sidebar,
.motocard-products-main,
.motocard-card,
.motocard-card__top,
.motocard-card__body,
.combo-card,
.combo-card__media,
.combo-card__body,
.works,
.works__card,
.works__media,
.works-modal-video,
.motocard-filters,
.f2r-paddock-gauge,
.bf-advert-box,
.hw-biker-box,
.adn-jnbikers__visual,
.adn-jnbikers__content {
  position: relative;
  z-index: 5;
}

.motocard-card {
  background: #0d121c !important;
}

.combo-card {
  background: #0f1216 !important;
}

.works__card {
  background: #000000 !important;
}

/* Animación Scroll-Reveal de Secciones */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto Spotlight Radial que sigue el Mouse en Tarjetas */
.card, .combo-card, .cat-card, .moto-finder, .seasonal-promo-banner {
  --mouse-x: 50%;
  --mouse-y: 50%;
}
.product-grid .card::after,
.combo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mouse-x) var(--mouse-y), rgba(var(--color-primary-rgb), 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.product-grid .card:hover::after,
.combo-card:hover::after {
  opacity: 1;
}
.product-grid .card > *,
.combo-card > * {
  position: relative;
  z-index: 2;
}

/* Micro-interacciones en Botones */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease !important;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--color-primary-rgb), 0.32);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Carrusel Infinito Interactivo de Marcas de Motos (Marquee) */
.brands-marquee-section {
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 177, 221, 0.2);
  border-bottom: 1px solid rgba(0, 177, 221, 0.2);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.brands-marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: jnMarqueeScroll 34s linear infinite;
}
.brands-marquee__track:hover {
  animation-play-state: paused;
}
@keyframes jnMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe4f0;
  font-family: var(--font-heading-family);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}
.brand-pill-btn:hover,
.brand-pill-btn.is-active {
  background: rgba(var(--color-primary-rgb), 0.18);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 18px rgba(var(--color-primary-rgb), 0.35);
  transform: translateY(-2px);
}

/* Simulador de Haz de Luz 2.0: Cono Direccional Interactivo con el Mouse + Lluvia */
.beam-sim__viewport {
  cursor: crosshair;
   --beam-x: 50%;
  --beam-y: 62%;
}
.beam-sim[data-beam-mode="blanco_6000k"] .beam-sim__cone {
  background: radial-gradient(ellipse 80% 58% at var(--beam-x) var(--beam-y), rgba(215, 248, 255, 0.85), rgba(0, 177, 221, 0.36) 52%, transparent 82%);
}
.beam-sim[data-beam-mode="ambar_3000k"] .beam-sim__cone {
  background: radial-gradient(ellipse 84% 58% at var(--beam-x) var(--beam-y), rgba(255, 214, 0, 0.86), rgba(255, 145, 0, 0.42) 54%, transparent 84%);
}
.beam-sim[data-beam-mode="dual_bicolor"] .beam-sim__cone {
  background:
    radial-gradient(ellipse 84% 44% at var(--beam-x) calc(var(--beam-y) - 10%), rgba(215, 248, 255, 0.82), rgba(0, 177, 221, 0.28) 55%, transparent 80%),
    radial-gradient(ellipse 88% 46% at var(--beam-x) calc(var(--beam-y) + 14%), rgba(255, 214, 0, 0.8), rgba(255, 140, 0, 0.32) 55%, transparent 82%);
}
.beam-sim__weather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0px,
    transparent 18px,
    rgba(200, 230, 255, 0.24) 19px,
    transparent 20px
  );
  background-size: 120px 120px;
  animation: jnRainFall 0.45s linear infinite;
}
.beam-sim.has-rain .beam-sim__weather,
.beam-sim[data-beam-mode="ambar_3000k"] .beam-sim__weather {
  opacity: 0.75;
}
@keyframes jnRainFall {
  0% { background-position: 0 0; }
  100% { background-position: -30px 120px; }
}
.beam-sim__pointer-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 8, 12, 0.82);
  border: 1px solid rgba(var(--color-primary-rgb), 0.45);
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Acordeón Interactivo de Preguntas Frecuentes (FAQ) */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.is-open {
  border-color: var(--color-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text);
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading-family);
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}
.faq-trigger__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.14);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.28s ease, background 0.28s ease;
}
.faq-item.is-open .faq-trigger__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #03141c;
}
.faq-content {
  display: none;
  padding: 0 20px 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-item.is-open .faq-content {
  display: block;
  animation: jnFadeDown 0.25s ease;
}
@keyframes jnFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Notificación Flotante Cyber-Toast */
.jn-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.jn-toast {
  background: rgba(8, 13, 20, 0.96);
  border: 1px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--color-primary-rgb), 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  animation: jnToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes jnToastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jnCartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.26); }
  100% { transform: scale(1); }
}
.cart-pulse {
  animation: jnCartPulse 0.4s ease;
}




/* ==========================================================================
   V5 · DISEÑO PREMIUM — Galería de Trabajos, Navegación, Entradas, Progreso
   (Patrones adaptados de glow-features / interactive-discovery / dot-hero)
   ========================================================================== */

/* --- Barra de progreso de lectura --- */
#JnScrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #00B1DD, #00E5FF 55%, #FFD600);
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
  z-index: 9999; pointer-events: none; will-change: transform;
}

/* --- Navegación: sin saltos de línea + subrayado animado + sección activa --- */
.nav { flex-wrap: nowrap; gap: 2px; }
.nav__link { white-space: nowrap; position: relative; font-size: .88rem; padding: 10px 11px; }
.nav__link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, #00B1DD, #00E5FF);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  border-radius: 2px; box-shadow: 0 0 8px rgba(0, 229, 255, .7);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: #fff; }
.header-wrapper.is-scrolled .header { min-height: 60px; }
.header { transition: min-height .3s ease; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* --- Títulos de sección: trazo luminoso al entrar --- */
.section-head__title { position: relative; display: inline-block; }
.section-head__title::after {
  content: ""; display: block; height: 3px; width: 0; margin-top: 10px; border-radius: 3px;
  background: linear-gradient(90deg, #00B1DD, #FFD600);
  box-shadow: 0 0 14px rgba(0, 177, 221, .6);
  transition: width .9s cubic-bezier(.16, 1, .3, 1) .25s;
}
.is-revealed .section-head__title::after { width: 72px; }

/* --- Entrada escalonada de tarjetas --- */
.jn-stagger { opacity: 0; transform: translateY(26px) scale(.98); }
.jn-stagger.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* --- Entrada del contenido del hero --- */
@keyframes jnRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__slide.is-active .hero__content > * { animation: jnRise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__slide.is-active .hero__content > *:nth-child(5) { animation-delay: .32s; }
.hero__title em { background: linear-gradient(90deg, #00B1DD, #00E5FF, #00B1DD); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: jnShine 4s linear infinite; }
@keyframes jnShine { to { background-position: 200% 0; } }

/* --- Marquesina de marcas con bordes difuminados --- */
.brands-marquee-section {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* --- Galería "Nuestros Trabajos": mosaico interactivo --- */
.works__track {
  display: grid !important; gap: 16px;
  grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 270px;
}
.works__item { min-width: 0; }
.works__item:nth-child(1) { grid-row: span 2; }
.works__item:nth-child(4) { grid-column: span 2; }
.works__card {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden;
  background: #0b1017; cursor: pointer; color: #fff; text-align: left;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .4s ease;
  transform-style: preserve-3d; will-change: transform;
}
.works__card img { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .5s ease; filter: saturate(1.05) brightness(.92); }
.works__card:hover, .works__card:focus-visible {
  border-color: rgba(0, 229, 255, .65);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55), 0 0 36px rgba(0, 177, 221, .28);
}
.works__card:hover img, .works__card:focus-visible img { transform: scale(1.08); filter: saturate(1.2) brightness(1.02); }
.works__card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(3, 6, 10, .92) 100%);
}
.works__card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, .22), transparent 62%);
}
.works__card:hover::after { opacity: 1; }
.works__play {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(0, 177, 221, .28); border: 1px solid rgba(0, 229, 255, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s ease;
}
.works__play::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(0, 229, 255, .7);
  animation: jnPulseRing 2.4s ease-out infinite;
}
@keyframes jnPulseRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.works__card:hover .works__play { transform: scale(1.12); background: #00B1DD; }
.works__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 20px 18px; transform: translateY(8px); transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.works__info strong { font-family: var(--font-heading-family); font-size: 1.02rem; line-height: 1.25; }
.works__info span { font-size: .82rem; color: #bcd0e0; line-height: 1.4; }
.works__info::after {
  content: "Ver ficha del montaje →"; margin-top: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #00E5FF; opacity: 0; transform: translateX(-8px);
  transition: opacity .35s ease, transform .35s ease;
}
.works__card:hover .works__info, .works__card:focus-visible .works__info { transform: none; }
.works__card:hover .works__info::after, .works__card:focus-visible .works__info::after { opacity: 1; transform: none; }

@media (max-width: 989px) {
  .works__track { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .works__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .works__item:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 599px) {
  .works__track { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .works__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .works__info::after { opacity: 1; transform: none; }
}

/* --- Botón "volver arriba" --- */
#JnBackTop {
  position: fixed; left: 18px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #00E5FF; cursor: pointer;
  background: rgba(8, 12, 18, .82); border: 1px solid rgba(0, 229, 255, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
#JnBackTop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
#JnBackTop:hover { box-shadow: 0 0 22px rgba(0, 229, 255, .55); transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .jn-stagger { opacity: 1; transform: none; }
  .hero__slide.is-active .hero__content > *, .works__play::after, .hero__title em { animation: none; }
  html { scroll-behavior: auto; }
}
/* --- Correcciones V5.1: títulos en bloque + fotos de producto a sangre --- */
.section-head__title { display: block; width: fit-content; }
.card__media { background: radial-gradient(circle at 50% 55%, rgba(var(--color-primary-rgb), .22), transparent 70%), #0b1017; }
.card__media img { object-fit: cover; padding: 0; }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 14, .55) 100%);
}
.card__badges { z-index: 2; }
/* ==========================================================================
   V5.2 · VIDEOS EN "NUESTROS TRABAJOS" + MOVIMIENTO EN HERO
   ========================================================================== */
.works__card .works__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease; z-index: 0; pointer-events: none;
}
.works__card .works__video.is-ready { opacity: 1; }
.works__card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.works__card.has-video .works__play { background: rgba(0, 0, 0, .45); }
.works__live {
  position: absolute; top: 16px; left: 16px; z-index: 3; display: none; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.works__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: jnBlink 1.4s ease-in-out infinite; }
.works__card.has-video .works__live { display: inline-flex; }
@keyframes jnBlink { 50% { opacity: .25; } }
.works-modal-video { width: 100%; border-radius: 10px; margin-bottom: 14px; background: #000; max-height: 60vh; object-fit: cover; }

/* Hero: empuje cinematográfico lento */
@keyframes jnKenBurns { from { transform: scale(1.0); } to { transform: scale(1.09); } }
.hero__slide.is-active .hero__media img { animation: jnKenBurns 9s ease-out both; transform-origin: 62% 50%; }

/* Línea de luz que recorre las secciones al entrar */
.section::before {
  content: ""; display: block; height: 1px; margin-bottom: -1px; position: relative; top: calc(-1 * clamp(48px, 7vw, 96px));
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .65), transparent);
  transform: scaleX(0); transition: transform 1.3s cubic-bezier(.16, 1, .3, 1);
}
.section.is-revealed::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active .hero__media img, .works__live::before { animation: none; }
  .works__card .works__video { display: none; }
}

/* Botón Vaciar Carrito Minimalista & Motorsport */
.cart-clear-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  font-family: var(--font-heading) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cart-clear-link:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}
.cart-clear-link svg {
  stroke: currentColor !important;
}

[data-theme="light"] .cart-clear-link {
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
}
[data-theme="light"] .cart-clear-link:hover {
  background: #fecaca !important;
  border-color: #f87171 !important;
  color: #991b1b !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15) !important;
}

/* ==========================================================================
   MODO HALLOWEEN MOTERO — WIDGET LATERAL DE CARAVANA NOCTURNA
   ========================================================================== */
.motocard-halloween-slot {
  display: none;
  margin: 14px auto 0 auto;
  position: relative;
  z-index: 5;
}
body[data-atmosphere="halloween"] .motocard-halloween-slot {
  display: block;
  animation: hwSlotEnter 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hwSlotEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hw-biker-box {
  background: radial-gradient(circle at 50% 24%, rgba(179, 136, 255, 0.16), transparent 62%),
              linear-gradient(165deg, rgba(20, 8, 30, 0.97) 0%, rgba(10, 5, 14, 0.99) 100%);
  border: 1.5px solid rgba(255, 109, 0, 0.72);
  border-radius: 16px;
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 109, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.hw-biker-kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 109, 0, 0.16);
  color: #FFAB40;
  border: 1px solid rgba(255, 109, 0, 0.45);
  margin-bottom: 10px;
}
.hw-visor-pulse {
  animation: hwVisorGlow 2.4s ease-in-out infinite alternate;
}
@keyframes hwVisorGlow {
  from { filter: drop-shadow(0 0 6px rgba(255, 109, 0, 0.55)); }
  to { filter: drop-shadow(0 0 16px rgba(255, 171, 64, 0.95)); }
}
.hw-biker-title {
  font-family: var(--font-heading-family), sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 8px 0 5px;
  letter-spacing: 0.02em;
}
.hw-biker-sub {
  font-size: 0.78rem;
  color: #D1C4E9;
  line-height: 1.45;
  margin: 0 0 12px;
}
.hw-chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.hw-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(179, 136, 255, 0.14);
  color: #E1BEE7;
  border: 1px solid rgba(179, 136, 255, 0.35);
}
.hw-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6D00, #FF9100);
  color: #09040e;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hw-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 109, 0, 0.45);
}

/* ==========================================================================
   GALERÍA MÚLTIPLE DE FOTOS, SELECTOR DE COLORES Y COMPATIBILIDAD MOTOS (MOE)
   ========================================================================== */
.motocard-card__photo-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(5, 10, 18, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #E2E8F0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.motocard-card__colors {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .motocard-card__colors {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

.motocard-card__colors-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.motocard-card__colors-label strong {
  color: var(--color-text);
  font-weight: 700;
}

.motocard-card__swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.motocard-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .motocard-swatch-btn {
  border-color: rgba(15, 23, 42, 0.35);
}

.motocard-swatch-btn:hover {
  transform: scale(1.14);
}

.motocard-swatch-btn.is-active {
  border-color: #00E5FF;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: scale(1.12);
}

/* Galería en Modal Ficha Técnica (QuickView) */
.qv-gallery-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
  background: #05070a;
}

.qv-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 10, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.18s ease;
}

.qv-nav-arrow:hover {
  background: var(--color-primary);
  color: #03141C;
  border-color: var(--color-primary);
}

.qv-nav-arrow--prev { left: 10px; }
.qv-nav-arrow--next { right: 10px; }

.qv-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}

.qv-thumb-btn {
  width: 64px;
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  background: #05070a;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.72;
  transition: all 0.18s ease;
}

.qv-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qv-thumb-btn.is-active,
.qv-thumb-btn:hover {
  border-color: var(--color-primary);
  opacity: 1;
}

.qv-color-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qv-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.qv-color-pill.is-active {
  border-color: var(--color-primary);
  background: rgba(0, 177, 221, 0.16);
  box-shadow: 0 0 12px rgba(0, 177, 221, 0.25);
}

