/*
Theme Name: VallèsMotor Theme
Theme URI:
Author: VallèsMotor
Description: Tema personalizado para VallèsMotor — Taller y Compraventa de Motos en L'Hospitalet
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: vallesmotor
*/

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --negro: #0f0f0f;
  --gris-oscuro: #1c1c1c;
  --gris-medio: #2e2e2e;
  --gris-suave: #888;
  --gris-borde: #2a2a2a;
  --blanco: #f5f4f0;
  --rojo: #e02a1a;
  --rojo-hover: #c5221c;
  --amarillo: #f5c400;
  --fuente-display: 'Barlow Condensed', sans-serif;
  --fuente-body: 'Inter', sans-serif;
  --radio: 4px;
  --radio-lg: 8px;
}

html {
  scroll-behavior: smooth;
  background: var(--negro);
}

/* !important necesario: WooCommerce y algunos plugins inyectan body{background:#fff} */
body {
  background: var(--negro) !important;
  color: var(--blanco);
  font-family: var(--fuente-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 66px; /* espacio para la barra fija de logos */
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
a:visited { color: inherit; }

/* ── NAV ── */
/* Clase especifica (no la etiqueta <nav> a secas) — WooCommerce envuelve su
   propia paginacion en un <nav class="woocommerce-pagination">, y un selector
   de etiqueta aqui le aplicaria por error el mismo position:fixed del header,
   tapando el menu real con la paginacion. */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 74px;
  background: #000;
  backdrop-filter: none;
  border-bottom: 1px solid var(--gris-borde);
}

/* ── SUBMENÚ DE CATEGORÍAS (vm_render_subnav() en functions.php) ──
 * Fixed igual que el nav (pegado justo debajo, top:74px, 52px de alto).
 * El banner rojo, que va detrás en el HTML, despeja ambos con
 * margin-top:126px (74+52) — ver .top-banner más abajo.
 * Desplegables: reutiliza .menu-item-has-children/.nav-submenu (mismo
 * aspecto y JS que ya tenía "Productos"), vía la clase compartida
 * .vm-menu-container. */
.subnav {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 90;
  height: 52px;
  background: var(--gris-oscuro);
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
}
.subnav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0 2rem;
  width: 100%;
}
.subnav-links > li { flex-shrink: 0; }
.subnav-links > li > a {
  display: block;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blanco);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.subnav-links > li > a:hover,
.subnav-links > li.menu-item-has-children:hover > a,
.subnav-links > li.menu-item-has-children.abierto > a {
  color: var(--rojo);
}

@media (max-width: 768px) {
  /* En mobile el desplegable ya es "position: static" (ver regla de
     .nav-submenu más abajo), así que el overflow-x aquí no le afecta —
     en escritorio SÍ lo haría (el desplegable es absolute y necesita
     salirse de esta fila), por eso no se pone arriba. */
  .subnav-links {
    gap: 1.25rem;
    padding: 0 1.25rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .subnav-links::-webkit-scrollbar { display: none; }

  /* Degradado a la derecha — sin esto "Accesorios"/"Reprogramación" se
     cortaban en el borde sin ninguna pista de que se puede deslizar. */
  .subnav::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, var(--gris-oscuro));
    pointer-events: none;
  }
}

/* ── BANNER SUPERIOR ── */
.top-banner {
  margin-top: 126px; /* 74px nav + 52px submenú, ambos fixed */
  background: var(--rojo);
  text-align: center;
  padding: 10px 20px;
}
.top-banner p {
  margin: 0;
  font-family: var(--fuente-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blanco);
}
@media (max-width: 768px) {
  .top-banner p { font-size: 11px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  /* Fallback texto */
  font-family: var(--fuente-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--blanco);
  text-decoration: none;
}

.nav-logo span { color: var(--rojo); }

/* Logo imagen */
.site-nav .nav-logo .nav-logo-img {
  height: 68px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanco);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--rojo); }

/* ── SUBMENU DESPLEGABLE PRODUCTOS ── */
.vm-menu-container .menu-item-has-children {
  position: relative;
}

/* Chevron */
.vm-menu-container .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.2s;
}

.vm-menu-container .menu-item-has-children:hover > a::after,
.vm-menu-container .menu-item-has-children.abierto > a::after {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;           /* pegado al borde inferior del <li>, sin hueco */
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  min-width: 180px;
  padding-top: 12px;   /* separación visual sin romper el área de hover */
  z-index: 200;
}

/* El panel visible con fondo y borde */
.nav-submenu-inner {
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  /* Con muchas categorías el listado se salía de la pantalla por abajo sin
     forma de llegar a las últimas — se limita a la altura visible bajo el
     nav (74px) y se hace scrolleable dentro del propio desplegable. */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* Flecha decorativa hacia arriba */
.nav-submenu-inner::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--gris-borde);
}
.nav-submenu-inner::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--gris-oscuro);
}

.vm-menu-container .menu-item-has-children:hover .nav-submenu,
.vm-menu-container .menu-item-has-children.abierto .nav-submenu {
  display: block;
}

.nav-submenu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gris-suave);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-submenu li:first-child a { border-radius: var(--radio-lg) var(--radio-lg) 0 0; }
.nav-submenu li:last-child  a { border-radius: 0 0 var(--radio-lg) var(--radio-lg); }

.nav-submenu li a:hover {
  color: var(--blanco);
  background: var(--gris-medio);
}

/* Mobile: submenu inline (dentro del menú hamburguesa) */
@media (max-width: 768px) {
  .vm-menu-container .menu-item-has-children {
    position: static;
  }
  .nav-submenu {
    position: static;
    transform: none;
    padding-top: 0;
    display: none;
  }
  .nav-submenu-inner {
    background: transparent;
    border: none;
    border-left: 2px solid var(--gris-borde);
    border-radius: 0;
    box-shadow: none;
    margin-left: 1rem;
    padding: 0.25rem 0;
  }
  .nav-submenu-inner::before,
  .nav-submenu-inner::after { display: none; }
  .vm-menu-container .menu-item-has-children.abierto .nav-submenu {
    display: block;
  }
  /* En mobile el hover no aplica, solo clase .abierto */
  .vm-menu-container .menu-item-has-children:hover .nav-submenu {
    display: none;
  }
  .vm-menu-container .menu-item-has-children.abierto .nav-submenu {
    display: block;
  }
}

.nav-cta {
  background: var(--rojo);
  color: var(--blanco) !important;
  padding: 8px 18px;
  border-radius: var(--radio);
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--rojo-hover) !important; color: var(--blanco) !important; }

@media (max-width: 480px) {
  .site-nav .nav-logo .nav-logo-img { height: 44px !important; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
}

/* ── BUSCADOR NAV ── */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-toggle { display: none; }

.nav-search-form {
  display: flex;
  align-items: center;
  width: 280px;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
}

.nav-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--blanco);
  font-family: var(--fuente-body);
  font-size: 14px;
  padding: 8px 10px 8px 14px;
}
.nav-search-input::placeholder { color: #555; }

.nav-search-submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gris-suave);
  display: flex;
  align-items: center;
  padding: 6px 10px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.nav-search-submit:hover { color: var(--rojo); }
.nav-search-submit svg { width: 16px; height: 16px; }

@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    padding: 6px;
    transition: color 0.15s;
  }
  .nav-search-toggle svg { width: 20px; height: 20px; }
  .nav-search-toggle:hover,
  .nav-search.activo .nav-search-toggle { color: var(--rojo); }

  .nav-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    max-width: calc(100vw - 40px);
    z-index: 101;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  }

  .nav-search.activo .nav-search-form {
    display: flex;
  }
}

/* Carrito nav */
.nav-carrito-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--gris-suave) !important;
  transition: color 0.15s !important;
}

.nav-carrito-link:hover { color: var(--blanco) !important; }

.nav-carrito-link svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--rojo);
  color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-body);
  line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}

.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--blanco); border-radius: 2px;
}

/* ── HERO ── */
#inicio {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Degradado: negro sólido a la izquierda, transparente a la derecha */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    #0a0a0a 0%,
    #0a0a0a 30%,
    rgba(10,10,10,0.85) 50%,
    rgba(10,10,10,0.3) 70%,
    rgba(10,10,10,0.1) 100%
  );
}

.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.04;
  background-image:
    linear-gradient(var(--gris-borde) 1px, transparent 1px),
    linear-gradient(90deg, var(--gris-borde) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-accent {
  display: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--rojo);
}

.hero-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-titulo em {
  font-style: normal;
  color: var(--rojo);
}

.hero-sub {
  font-size: 18px;
  color: var(--gris-suave);
  max-width: 860px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.google-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.google-badge--footer {
  margin-bottom: 0;
  margin-top: 1.25rem;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: border-color 0.2s;
}
.google-badge:hover { border-color: #444; }

.google-badge-logo svg {
  width: 36px;
  height: 36px;
  display: block;
}

.google-badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.google-badge-titulo {
  font-size: 13px;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}

.google-badge-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.google-badge-rating svg { width: 14px; height: 14px; }

.google-badge-nota {
  font-size: 13px;
  font-weight: 700;
  color: var(--blanco);
}

.google-badge-verificado {
  font-size: 10px;
  color: var(--gris-suave);
}

/* ── BUSCADOR MOTO (hero) ── */
.buscador-hero-wrap {
  position: relative; z-index: 1;
  margin-top: 54px;
  margin-bottom: 54px;
}

.buscador-hero {
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  max-width: 860px;
}

.buscador-hero .form-grupo {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.buscador-hero .form-grupo label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris-suave);
  margin-bottom: 6px;
}

.buscador-hero select {
  width: 100%;
  background: var(--negro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--fuente-body);
  color: var(--blanco);
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.buscador-hero select:focus { border-color: var(--rojo); }

.buscador-hero select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.buscador-hero select option { background: var(--gris-oscuro); }

.buscador-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rojo);
  color: var(--blanco);
  font-weight: 600; font-size: 15px;
  padding: 12px 24px;
  border: none; cursor: pointer;
  border-radius: var(--radio);
  font-family: var(--fuente-body);
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  flex-grow: 1;
  justify-content: center;
}

.buscador-submit:hover:not(:disabled) { background: var(--rojo-hover); transform: translateY(-1px); }

.buscador-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.buscador-submit svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.hero-marcas {
  position: relative; z-index: 1;
  margin-top: 3.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}

.hero-marcas-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-suave);
  white-space: nowrap;
}

.marcas-lista { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.marca-badge {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #555;
  padding: 5px 12px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radio);
  transition: color 0.15s, border-color 0.15s;
}

.marca-badge:hover { color: var(--blanco); border-color: #444; }

/* ── CARRUSEL MARCAS ── */
.marcas-carrusel-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
}

.marcas-carrusel-wrap {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gris-borde);
  overflow: hidden;
  padding: 14px 0;
  /* Máscaras de desvanecimiento en los bordes */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marcas-carrusel-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: carrusel-scroll 30s linear infinite;
}

.marcas-carrusel-wrap:hover .marcas-carrusel-track {
  animation-play-state: paused;
}

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

.marcas-carrusel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.marcas-carrusel-item img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transition: filter 0.2s, opacity 0.2s;
}

.marcas-carrusel-item img:hover {
  filter: grayscale(1) brightness(1.5);
  opacity: 0.5;
}

/* ── PÁGINAS LEGALES ── */
.legal-content h2 {
  font-family: var(--fuente-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blanco);
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-borde);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p { color: var(--gris-suave); font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }
.legal-content strong { color: var(--blanco); }

/* ── STATS ── */
.stats-bar {
  background: var(--gris-oscuro);
  border-top: 1px solid var(--gris-borde);
  border-bottom: 1px solid var(--gris-borde);
  padding: 2.5rem 2rem;
  display: flex; justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  max-width: 900px; width: 100%;
}

.stat {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid var(--gris-borde);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--fuente-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--blanco);
}

.stat-num em { font-style: normal; color: var(--rojo); }

.stat-label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gris-suave);
  margin-top: 4px;
}

/* ── SECCIONES ── */
section { padding: 6rem 2rem; }

.seccion-inner { max-width: 1100px; margin: 0 auto; }

/* Variante más ancha, solo para la sección de productos (tienda) — así
   aprovecha más ancho de pantalla para mostrar las imágenes más grandes,
   sin afectar al resto de secciones del sitio que siguen a 1100px. */
.seccion-inner--ancho { max-width: 1600px; }

.seccion-header { margin-bottom: 3.5rem; }

.seccion-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 1rem;
}

.seccion-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

.seccion-desc {
  font-size: 17px; color: var(--gris-suave);
  max-width: 560px; margin-top: 1rem;
  line-height: 1.7;
}

/* ── SERVICIOS ── */
/* Estilo legacy por si se usa en otro lugar */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--gris-borde);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
}
.servicio-card { background: var(--negro); padding: 2.5rem; transition: background 0.2s; }
.servicio-card:hover { background: var(--gris-oscuro); }

/* ── SERVICIOS GRID V2 (estética tiles oscuros) ── */
.servicios-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--gris-borde);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.servicio-tile {
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 240px;
}

.servicio-tile:hover { background: #1a1a1a; }

.servicio-tile-icono {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.servicio-tile-icono svg {
  width: 130px;
  height: 130px;
}

.servicio-tile-titulo {
  font-family: var(--fuente-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanco);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .servicios-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .servicios-grid-v2 { grid-template-columns: 1fr; }
  .servicio-tile { min-height: 180px; padding: 2rem 1.5rem; }
}

/* Legacy */
.servicio-icono {
  width: 48px; height: 48px;
  border-radius: var(--radio);
  background: rgba(224,42,26,0.12);
  border: 1px solid rgba(224,42,26,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.servicio-icono svg { width: 22px; height: 22px; stroke: var(--rojo); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.servicio-card h3 { font-family: var(--fuente-display); font-size: 22px; font-weight: 700; margin-bottom: 0.75rem; }
.servicio-card p { font-size: 14px; color: var(--gris-suave); line-height: 1.7; }
.servicio-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--rojo); text-decoration: none;
  margin-top: 1.5rem; letter-spacing: 0.03em;
}
.servicio-link svg {
  width: 14px; height: 14px;
  stroke: var(--rojo); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s;
}

.servicio-link:hover svg { transform: translateX(3px); }

/* ── MOTOS / COMPRAVENTA ── */
.motos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.moto-card {
  background: var(--negro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.moto-card:hover { border-color: #444; transform: translateY(-2px); }

.moto-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--gris-medio);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

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

.moto-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.moto-img-placeholder svg {
  width: 56px; height: 56px;
  stroke: #3a3a3a; fill: none;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}

.moto-img-placeholder span { font-size: 12px; color: #444; letter-spacing: 0.06em; text-transform: uppercase; }

.moto-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radio);
}

.badge-nuevo { background: var(--rojo); color: var(--blanco); }
.badge-ocasion { background: var(--amarillo); color: #1a1500; }

.moto-info { padding: 1.5rem; }

.moto-marca { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-suave); margin-bottom: 4px; }

.moto-nombre { font-family: var(--fuente-display); font-size: 22px; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.01em; }

.moto-specs { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

.moto-spec { font-size: 12px; color: var(--gris-suave); display: flex; align-items: center; gap: 4px; }

.moto-spec svg { width: 12px; height: 12px; stroke: var(--gris-suave); fill: none; stroke-width: 2; stroke-linecap: round; }

.moto-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gris-borde);
}

.moto-precio { font-family: var(--fuente-display); font-size: 24px; font-weight: 700; color: var(--blanco); }

.moto-precio small { font-size: 13px; font-weight: 400; color: var(--gris-suave); font-family: var(--fuente-body); }

.motos-cta { text-align: center; padding-top: 1rem; }

/* ── NOSOTROS ── */
.nosotros-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.nosotros-foto {
  aspect-ratio: 4/5;
  background: var(--gris-medio);
  border-radius: var(--radio-lg);
  border: 1px solid var(--gris-borde);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

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

.nosotros-foto-placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.nosotros-foto-placeholder svg { width: 80px; height: 80px; stroke: #3a3a3a; fill: none; stroke-width: 1; stroke-linecap: round; }

.nosotros-foto-placeholder p { font-size: 13px; color: #3a3a3a; }

.nosotros-acento {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.nosotros-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amarillo);
  background: rgba(245,196,0,0.12);
  border: 1px solid rgba(245,196,0,0.3);
  padding: 5px 12px; border-radius: var(--radio);
}

.nosotros-p { color: var(--gris-suave); font-size: 15px; line-height: 1.8; margin-bottom: 1.5rem; }

.equipo-lista { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }

.miembro { display: flex; align-items: center; gap: 1rem; }

.miembro-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gris-medio); border: 1px solid var(--gris-borde);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-display); font-size: 16px; font-weight: 700;
  color: var(--gris-suave); flex-shrink: 0;
}

.miembro-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.miembro-info span { font-size: 12px; color: var(--gris-suave); }

/* ── MARCAS ── */
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--gris-borde);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.marca-cell {
  background: var(--negro); padding: 2rem 1.5rem;
  text-align: center; transition: background 0.2s; cursor: default;
}

.marca-cell:hover { background: var(--gris-oscuro); }

.marca-cell-nombre {
  font-family: var(--fuente-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.05em; color: var(--blanco); transition: color 0.2s; text-transform: uppercase;
}

.marca-cell:hover .marca-cell-nombre { color: #555; }

.marca-cell-tipo {
  font-size: 10px; color: var(--gris-suave);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px;
  transition: color 0.2s;
}

.marca-cell:hover .marca-cell-tipo { color: #3a3a3a; }

/* ── PRODUCTOS ── */
.productos-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none; cursor: pointer;
  font-family: var(--fuente-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gris-suave);
  padding: 14px 32px;
  border-right: 1px solid var(--gris-borde);
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 10px;
}

.tab-btn:last-child { border-right: none; }

.tab-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tab-btn.activo { background: var(--rojo); color: var(--blanco); }

.tab-btn:not(.activo):hover { background: var(--gris-oscuro); color: var(--blanco); }

.tab-contenido { display: none; }
.tab-contenido.activo { display: block; }

.productos-intro {
  font-size: 15px; color: var(--gris-suave);
  max-width: 600px; line-height: 1.7; margin-bottom: 2.5rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ── Selector de nº de columnas ── */
.productos-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.productos-toolbar-label {
  font-size: 13px;
  color: var(--gris-suave);
}
.productos-cols-selector {
  display: flex;
  gap: 0.4rem;
}
.productos-cols-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radio);
  border: 1px solid var(--gris-borde);
  background: transparent;
  color: var(--gris-suave);
  font-size: 13px;
  text-decoration: none;
}
.productos-cols-btn:hover { border-color: var(--rojo); color: var(--rojo); }
.productos-cols-btn.activo {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--blanco);
  font-weight: 700;
}

@media (max-width: 768px) {
  .productos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .productos-toolbar { display: none; }
}

.producto-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.producto-card:hover { border-color: #bbb; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

.producto-img {
  width: 100%; aspect-ratio: 4/3;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #eee;
  position: relative; overflow: hidden;
}

.producto-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.producto-img svg { width: 64px; height: 64px; stroke: #333; fill: none; stroke-width: 1; stroke-linecap: round; }

/* ── PLACEHOLDER SIN IMAGEN ── */
.producto-sin-imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
}

.producto-sin-imagen--grande {
  aspect-ratio: 1 / 1;
  padding: 3rem 2rem;
}

.producto-sin-imagen-logo {
  width: 55% !important;
  max-width: 240px !important;
  height: auto !important;
  object-fit: contain;
  opacity: 0.45;
}

.producto-sin-imagen--grande .producto-sin-imagen-logo {
  max-width: 200px !important;
}

/* ── GALERÍA VERTICAL SINGLE PRODUCT ── */
.producto-galeria {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.producto-galeria-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 72px;
}

.producto-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radio);
  border: 2px solid var(--gris-borde);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.producto-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.producto-thumb.activo,
.producto-thumb:hover {
  border-color: var(--rojo);
}

.producto-galeria-main {
  flex: 1;
  position: relative;
  border-radius: var(--radio-lg);
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.producto-galeria-slide {
  display: none;
  width: 100%; height: 100%;
}
.producto-galeria-slide.activo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.producto-galeria-slide img {
  max-height: 100%;
  object-fit: contain;
}

/* Flechas de navegación */
.galeria-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.45);
  border: none; border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.galeria-nav:hover { background: rgba(0,0,0,0.75); }
.galeria-nav svg { width: 18px; height: 18px; }
.galeria-nav--prev { left: 10px; }
.galeria-nav--next { right: 10px; }

/* Botón pantalla completa */
.galeria-fullscreen {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.45);
  border: none; border-radius: var(--radio);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.galeria-fullscreen:hover { background: rgba(0,0,0,0.75); }
.galeria-fullscreen svg { width: 16px; height: 16px; }

/* Lightbox */
.galeria-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.galeria-lightbox.abierto {
  display: flex;
}
.galeria-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radio);
}
.galeria-lightbox-cerrar {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: #fff;
  border: none; border-radius: 50%;
  color: #111;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.galeria-lightbox-cerrar:hover { background: #f0f0f0; transform: scale(1.08); }
.galeria-lightbox-cerrar svg { width: 22px; height: 22px; stroke-width: 2.5; }
.galeria-lightbox .galeria-nav--prev { left: 1.5rem; }
.galeria-lightbox .galeria-nav--next { right: 1.5rem; }

.producto-sin-imagen-texto {
  font-size: 11px;
  color: var(--gris-suave);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
}

.producto-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radio);
  background: rgba(224,42,26,0.15); color: var(--rojo);
  border: 1px solid rgba(224,42,26,0.3);
}

.producto-info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.producto-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rojo); margin-bottom: 6px; }

.producto-nombre {
  font-family: var(--fuente-display); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 6px; color: #111;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  line-height: 1.25; min-height: calc(1.25em * 2);
}

.producto-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 1rem; }

.producto-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.producto-sku {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}

.producto-compat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
  border-radius: 20px;
  padding: 3px 10px 3px 8px;
  font-size: 11px;
  font-family: var(--fuente-body);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.producto-compat-btn svg { width: 12px; height: 12px; }
.producto-compat-btn:hover,
.producto-compat-btn[aria-expanded="true"] {
  border-color: var(--rojo);
  color: var(--rojo);
}

.producto-compat-count {
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 10px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

.producto-compat-panel {
  display: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 0.5rem;
}
.producto-compat-panel.abierto { display: block; }

.producto-compat-marca-grupo {
  margin-bottom: 0.4rem;
}
.producto-compat-marca-grupo:last-child { margin-bottom: 0; }

.producto-compat-marca {
  font-size: 12px;
  font-weight: 700;
  color: var(--rojo);
  margin-bottom: 2px;
}

.producto-compat-modelo {
  font-size: 11px;
  color: #666;
  padding-left: 8px;
  line-height: 1.6;
}

.producto-compat-anios {
  color: #666;
  font-size: 11px;
}

.producto-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.producto-precio { font-family: var(--fuente-display); font-size: 22px; font-weight: 700; color: #111; }

.producto-precio small { font-size: 12px; font-weight: 400; color: #888; font-family: var(--fuente-body); }

.productos-aviso {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radio-lg);
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  color: #111;
}

.productos-aviso svg { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--amarillo); fill: none; stroke-width: 1.8; stroke-linecap: round; }

.productos-aviso p { font-size: 14px; color: #555; flex: 1; }

.productos-aviso strong { color: #111; }

/* ── CARRITO (woocommerce/cart/*.php override) ──
 * Plantilla propia, no la de WooCommerce Core — así el texto sale en
 * español fijo (nada depende de traducciones) y con el mismo estilo de
 * tarjeta blanca sobre fondo oscuro que el resto de la tienda. */
.vm-cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.vm-cart-items {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.vm-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto 40px;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #eee;
}
.vm-cart-item:last-child { border-bottom: none; }

.vm-cart-item-img { width: 80px; height: 80px; border-radius: var(--radio); overflow: hidden; background: #fff; border: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.vm-cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.vm-cart-item-info { min-width: 0; }
.vm-cart-item-nombre { font-family: var(--fuente-display); font-size: 17px; font-weight: 700; color: #111; text-decoration: none; }
a.vm-cart-item-nombre:hover { color: var(--rojo); }
.vm-cart-item-precio-movil { display: none; font-size: 14px; color: #666; margin-top: 4px; }

.vm-cart-item-precio,
.vm-cart-item-subtotal { font-size: 14px; color: #333; white-space: nowrap; }
.vm-cart-item-subtotal { font-weight: 700; color: #111; }

.vm-cart-item-cantidad input[type="number"] {
  width: 60px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: var(--radio);
  font-size: 14px;
  text-align: center;
}

.vm-cart-item-quitar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #999;
  font-size: 18px; line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.vm-cart-item-quitar-btn:hover { background: rgba(224,42,26,0.1); color: var(--rojo); }

.vm-cart-item-backorder { font-size: 12px; color: var(--rojo); margin-top: 4px; }

.vm-cart-acciones {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #ddd; border-top: none;
  border-radius: 0 0 var(--radio-lg) var(--radio-lg);
  margin-top: -1px;
}
.vm-cart-cupon { display: flex; gap: 0.5rem; }
.vm-cart-cupon-input {
  padding: 8px 12px;
  border: 1px solid #ddd; border-radius: var(--radio);
  font-size: 13px;
  min-width: 180px;
}

/* .btn-secundario es texto blanco para fondo oscuro — aquí la tarjeta es
   blanca, se le da color propio en vez de tocar la clase compartida. */
.vm-cart-seguir-comprando {
  color: #333 !important;
  border-color: #ddd !important;
}
.vm-cart-seguir-comprando:hover {
  border-color: #333 !important;
  background: #f5f5f5 !important;
}

.vm-cart-totales-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radio-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.vm-cart-totales-titulo { font-family: var(--fuente-display); font-size: 22px; color: #111; margin: 0 0 1rem; }
.vm-cart-totales-linea {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 14px; color: #444;
}
.vm-cart-totales-descuento { color: var(--rojo); }
.vm-cart-totales-final {
  border-bottom: none;
  font-family: var(--fuente-display);
  font-size: 20px; font-weight: 700; color: #111;
  padding-top: 1rem;
}
.vm-cart-checkout-btn { margin-top: 1.25rem; }
.vm-cart-checkout-link {
  display: block; text-align: center;
  background: var(--rojo); color: var(--blanco);
  font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: var(--radio);
  text-decoration: none;
  transition: background 0.15s;
}
.vm-cart-checkout-link:hover { background: var(--rojo-hover); }

.vm-cart-vacio {
  background: #fff;
  border: 1px solid #ddd; border-radius: var(--radio-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.vm-cart-vacio-texto { font-size: 16px; color: #444; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .vm-cart-layout { grid-template-columns: 1fr; }
  .vm-cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      "img info quitar"
      "img cantidad subtotal";
  }
  .vm-cart-item-img { grid-area: img; width: 60px; height: 60px; }
  .vm-cart-item-info { grid-area: info; }
  .vm-cart-item-quitar { grid-area: quitar; }
  .vm-cart-item-cantidad { grid-area: cantidad; }
  .vm-cart-item-subtotal { grid-area: subtotal; text-align: right; }
  .vm-cart-item-precio { display: none; }
  .vm-cart-item-precio-movil { display: block; }
}

/* ── SHOP HERO / PAGE HERO ── */
.shop-hero {
  position: relative;
  background: var(--negro);
  overflow: hidden;
  padding: 7rem 0 2.5rem;
}

.shop-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.3;
}

.shop-hero-inner {
  position: relative; z-index: 1;
}

.shop-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--fuente-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gris-suave);
  margin-bottom: 0.6rem;
}

.shop-breadcrumb a { color: var(--gris-suave); text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--blanco); }
.shop-breadcrumb span:last-child { color: var(--rojo); }

.shop-hero-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; font-style: italic;
  line-height: 1; letter-spacing: -0.01em;
  color: var(--blanco);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.shop-hero-desc {
  font-size: 15px; color: var(--gris-suave);
  max-width: 420px; line-height: 1.7;
}

.shop-hero-moto {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.shop-hero-moto-nombre {
  font-family: var(--fuente-display);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--gris-suave);
}
.shop-hero-moto-sep {
  color: var(--rojo);
  font-style: normal;
}
.shop-hero-moto-cambiar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fuente-display);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-suave);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-sm);
  padding: 5px 12px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.shop-hero-moto-cambiar svg {
  width: 12px; height: 12px;
  stroke: currentColor;
}
.shop-hero-moto-cambiar:hover {
  color: var(--blanco);
  border-color: var(--blanco);
}

.shop-hero-line {
  position: relative; z-index: 1;
  height: 3px; width: 48px;
  background: var(--rojo);
  margin: 1.5rem 0 0 calc((100% - 1400px) / 2 + 2rem);
}

/* ── TRUST BAR ── */
.shop-trust-bar {
  background: var(--negro);
  border-top: 1px solid var(--gris-borde);
  padding: 2.5rem 0;
}

.shop-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.shop-trust-item {
  display: flex; align-items: flex-start; gap: 1rem;
}

.shop-trust-item svg {
  width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px;
}

.shop-trust-item strong {
  display: block; color: var(--blanco);
  font-family: var(--fuente-display); font-size: 14px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.shop-trust-item p {
  color: var(--gris-suave); font-size: 13px; line-height: 1.5; margin: 0;
}

/* ── CONTACTO ── */
.contacto-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.contacto-info h3 { font-family: var(--fuente-display); font-size: 36px; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }

.contacto-dato { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }

.contacto-icono {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  display: flex; align-items: center; justify-content: center;
}

.contacto-icono svg { width: 18px; height: 18px; stroke: var(--rojo); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contacto-dato-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-suave); margin-bottom: 4px; }

.contacto-dato-valor { font-size: 16px; font-weight: 500; color: var(--blanco); }

.contacto-dato-valor a { color: var(--blanco); text-decoration: none; transition: color 0.15s; }

.contacto-dato-valor a:hover { color: var(--rojo); }

.horarios {
  margin-top: 2.5rem;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.horarios-titulo {
  background: var(--gris-oscuro);
  padding: 0.75rem 1.25rem;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gris-suave);
  border-bottom: 1px solid var(--gris-borde);
}

.horario-fila {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--gris-borde);
  font-size: 14px;
}

.horario-fila:last-child { border-bottom: none; }
.horario-dia { color: var(--gris-suave); }
.horario-hora { font-weight: 500; }
.horario-cerrado { color: #555; }

/* ── FORMULARIO ── */
.formulario {
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: 2.5rem;
}

.formulario h3 { font-family: var(--fuente-display); font-size: 24px; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 0.01em; }

.form-grupo { margin-bottom: 1.25rem; }

.form-grupo label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gris-suave); margin-bottom: 6px;
}

.form-grupo input,
.form-grupo textarea,
.form-grupo select {
  width: 100%;
  background: var(--negro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--fuente-body);
  color: var(--blanco);
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
}

.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus { border-color: var(--rojo); }

.form-grupo textarea { resize: vertical; min-height: 100px; }

.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
  width: 100%;
  background: var(--rojo); color: var(--blanco);
  border: none; cursor: pointer;
  font-size: 15px; font-weight: 600;
  font-family: var(--fuente-body);
  padding: 14px; border-radius: var(--radio);
  margin-top: 0.5rem;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.form-submit:hover { background: var(--rojo-hover); }

/* ── MAPA ── */
.mapa-wrapper {
  margin-top: 4rem;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  height: 380px;
}

.mapa-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.mapa-placeholder svg { width: 40px; height: 40px; stroke: var(--gris-suave); fill: none; stroke-width: 1.5; stroke-linecap: round; }

.mapa-placeholder p { font-size: 14px; color: var(--gris-suave); }

.mapa-placeholder a {
  font-size: 13px; font-weight: 600;
  color: var(--rojo); text-decoration: none;
  border: 1px solid rgba(224,42,26,0.3);
  padding: 8px 16px; border-radius: var(--radio);
  transition: background 0.15s;
}

.mapa-placeholder a:hover { background: rgba(224,42,26,0.1); }

/* ── BOTONES GENERALES ── */
.btn-primario {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rojo); color: var(--blanco);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radio);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primario:hover { background: var(--rojo-hover); transform: translateY(-1px); }

.btn-secundario {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blanco);
  font-weight: 500; font-size: 15px;
  padding: 14px 28px;
  border: 1px solid var(--gris-borde); border-radius: var(--radio);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secundario:hover { border-color: var(--gris-suave); background: rgba(255,255,255,0.04); }

.btn-mini {
  font-size: 13px; font-weight: 600;
  color: var(--blanco); background: var(--rojo);
  padding: 8px 16px; border-radius: var(--radio);
  text-decoration: none; transition: background 0.15s;
  white-space: nowrap;
}

.btn-mini:hover { background: var(--rojo-hover); }

/* ── STOCK INDICATOR ── */
.producto-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.producto-stock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.producto-stock.en-stock { color: #4ade80; }
.producto-stock.en-stock .producto-stock-dot { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6); }
.producto-stock.sin-stock { color: #f87171; }
.producto-stock.sin-stock .producto-stock-dot { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.6); }

/* ── BANNER CONSULTAR DISPONIBILIDAD (sin stock) ── */
.vm-consultar-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--radio-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.vm-consultar-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vm-consultar-texto strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 0.02em;
}
.vm-consultar-texto span {
  font-size: 12px;
  color: var(--gris-suave);
}
.vm-consultar-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radio);
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.vm-consultar-wa:hover { background: #1ebe5d; }
@media (max-width: 480px) {
  .vm-consultar-banner { flex-direction: column; align-items: flex-start; }
}

/* ── AÑADIR AL CARRITO CUSTOM ── */
.vm-cart-form { margin-bottom: 1.5rem; }

.vm-cart-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.vm-qty {
  display: flex;
  align-items: center;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  overflow: hidden;
}
.vm-qty-btn {
  width: 40px; height: 48px;
  background: transparent;
  border: none;
  color: var(--blanco);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.vm-qty-btn:hover { background: rgba(255,255,255,0.08); }
.vm-qty-input {
  width: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--gris-borde);
  border-right: 1px solid var(--gris-borde);
  color: var(--blanco);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  height: 48px;
  -moz-appearance: textfield;
}
.vm-qty-input::-webkit-outer-spin-button,
.vm-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.vm-add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: var(--radio);
  font-family: var(--fuente-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 1.5rem;
  height: 48px;
  cursor: pointer;
  transition: background 0.15s;
}
.vm-add-to-cart svg { width: 18px; height: 18px; flex-shrink: 0; }
.vm-add-to-cart:hover { background: #b91c1c; }

/* ── SOLICITAR PRESUPUESTO (producto sin precio) ── */
.presupuesto-cta {
  margin-top: 0.5rem;
}

.presupuesto-aviso {
  font-size: 13px;
  color: var(--gris-suave);
  margin-bottom: 1rem;
}

.btn-presupuesto {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-family: var(--fuente-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radio);
  transition: background 0.15s, transform 0.15s;
}

.btn-presupuesto:hover {
  background: #1fb558;
  transform: translateY(-1px);
}

.btn-presupuesto svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--negro);
  border-top: 1px solid var(--gris-borde);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gris-borde);
}

.footer-logo { font-family: var(--fuente-display); font-size: 24px; font-weight: 800; margin-bottom: 1rem; }
.footer-logo-img { height: 90px; width: auto; display: block; margin-bottom: 1rem; mix-blend-mode: screen; }

.footer-logo span { color: var(--rojo); }

.footer-desc { font-size: 14px; color: var(--gris-suave); line-height: 1.7; }

.footer-col h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-suave); margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a { font-size: 14px; color: #555; text-decoration: none; transition: color 0.15s; }

.footer-col ul li a:hover { color: var(--blanco); }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-size: 13px; color: #444;
  flex-wrap: wrap; gap: 1rem;
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 80px; right: 24px; z-index: 1000;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s; text-decoration: none;
}

.whatsapp-fab:hover { transform: scale(1.08); }

.whatsapp-fab svg { width: 28px; height: 28px; fill: white; }

.whatsapp-burbuja {
  position: fixed; bottom: 96px; right: 88px; z-index: 999;
  background: #fff; color: #111;
  font-family: var(--fuente-body); font-size: 13px; font-weight: 600;
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s;
}
.whatsapp-burbuja:hover { transform: translateY(-2px); }
.whatsapp-burbuja::after {
  content: "";
  position: absolute; bottom: -6px; right: 20px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  .whatsapp-burbuja { display: none; }
}

/* ── BREADCRUMB TAXONOMÍA ── */
.taxonomia-breadcrumb {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}

.breadcrumb-ruta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--fuente-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.02em;
}

.breadcrumb-ruta span { color: var(--gris-suave); font-weight: 400; font-size: 16px; }

.breadcrumb-ruta strong { color: var(--blanco); }

.breadcrumb-sep { color: #444; font-size: 18px; font-weight: 300; }

.btn-cambiar-moto {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--gris-suave);
  text-decoration: none;
  border: 1px solid var(--gris-borde);
  padding: 8px 16px; border-radius: var(--radio);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-cambiar-moto:hover { color: var(--blanco); border-color: #444; }

.btn-cambiar-moto svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── COMPATIBLE CON (single product) ── */
.compatibles-seccion { margin-top: 2.5rem; }

.compatibles-seccion h4 {
  font-family: var(--fuente-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--blanco);
}

.compatibles-marca { margin-bottom: 1rem; }

.compatibles-marca-nombre {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-suave); margin-bottom: 0.5rem;
}

.compatibles-modelos { display: flex; flex-direction: column; gap: 0.4rem; }

.compatibles-modelo-nombre {
  font-size: 13px; font-weight: 500; color: var(--blanco);
  margin-bottom: 0.3rem;
}

.compatibles-anios { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.anio-chip {
  font-size: 11px; font-weight: 600;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 3px 8px;
  color: var(--gris-suave);
}
.anio-chip:hover { color: var(--blanco); border-color: var(--blanco); }

/* ── FILA INFERIOR SINGLE PRODUCT: TABS + RELACIONADOS ── */
.sp-bottom-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gris-borde);
  align-items: start;
}

/* TABS */
.sp-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--gris-borde);
  margin-bottom: 1.5rem;
  gap: 0;
}
.sp-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gris-suave);
  font-family: var(--fuente-display);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sp-tab-btn:hover { color: var(--blanco); }
.sp-tab-btn.activo { color: var(--rojo); border-bottom-color: var(--rojo); }

.sp-tab-content { display: none; }
.sp-tab-content.activo { display: block; }

.sp-tab-body {
  color: var(--gris-suave);
  font-size: 14px;
  line-height: 1.8;
}
.sp-tab-body p { margin-bottom: 0.5rem; }
.sp-tab-body strong { color: var(--blanco); }

.sp-tab-empty {
  color: var(--gris-suave);
  font-size: 14px;
  font-style: italic;
}

/* PRODUCTOS RELACIONADOS */
.sp-relacionados { min-width: 0; }

.sp-relacionados-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sp-relacionados-titulo {
  font-family: var(--fuente-display);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blanco);
}
.sp-relacionados-nav {
  display: flex;
  gap: 6px;
}
.sp-rel-prev, .sp-rel-next {
  width: 28px; height: 28px;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  color: var(--gris-suave);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sp-rel-prev:hover, .sp-rel-next:hover { color: var(--blanco); border-color: var(--blanco); }
.sp-rel-prev svg, .sp-rel-next svg { width: 14px; height: 14px; }

.sp-relacionados-track-wrap {
  overflow: hidden;
  /* 3 tarjetas × 84px + 2 gaps × 10px */
  max-height: calc(3 * 84px + 2 * 10px);
}
.sp-relacionados-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease;
}

.sp-rel-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 10px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.sp-rel-card:hover { border-color: var(--rojo); }

.sp-rel-img {
  width: 64px; height: 64px;
  background: #fff;
  border-radius: var(--radio-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sp-rel-img img { width: 100%; height: 100%; object-fit: contain; }

.sp-rel-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-rel-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--rojo);
  margin-top: 3px;
}

/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce-notices-wrapper { max-width: 1100px; margin: 0 auto 1rem; padding: 0 2rem; }

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  color: var(--blanco);
  padding: 1rem 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  font-size: 14px;
}

.woocommerce-message a,
.woocommerce-info a { color: var(--rojo); }

.wc-cart-container,
.woocommerce-checkout { max-width: 1100px; margin: 0 auto; padding: 120px 2rem 4rem; }

.woocommerce .cart_item a,
.woocommerce .cart_item a:link,
.woocommerce .cart_item a:visited,
.woocommerce table.cart td a,
.woocommerce table.cart td a:link,
.woocommerce table.cart td a:visited {
  color: var(--blanco) !important;
  text-decoration: none;
}
.woocommerce .cart_item a:hover,
.woocommerce table.cart td a:hover { color: var(--rojo) !important; }

.woocommerce table.shop_table {
  width: 100%; border-collapse: collapse;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  color: var(--blanco);
}

.woocommerce table.shop_table th { background: var(--negro); padding: 1rem 1.25rem; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-suave); border-bottom: 1px solid var(--gris-borde); text-align: left; }

.woocommerce table.shop_table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gris-borde); font-size: 14px; vertical-align: middle; }

.woocommerce table.shop_table tr:last-child td { border-bottom: none; }

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  border: none !important;
  border-radius: var(--radio) !important;
  font-family: var(--fuente-body) !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  font-size: 15px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover { background: var(--rojo-hover) !important; }

/* Página WC wrapper */
.woocommerce-page-wrap {
  padding-top: 80px;
  min-height: 80vh;
  background: #f2f2f2;
  color: #111;
}

/* ── PÁGINA GENÉRICA ── */
.page-content-wrap {
  padding-top: 80px;
  min-height: 60vh;
}

/* ── PÁGINA REPROGRAMACIÓN ── */
.reprogramacion-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--blanco);
  margin-bottom: 2.5rem;
}
.reprogramacion-intro strong { color: var(--rojo); }

.reprogramacion-heading {
  font-family: var(--fuente-display);
  font-size: 30px;
  color: var(--blanco);
  margin: 0 0 1.5rem;
}

.reprogramacion-parrafo {
  color: var(--gris-suave);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.reprogramacion-servicios { margin-bottom: 3rem; }

.reprogramacion-servicio {
  border-left: 3px solid var(--rojo);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 1.75rem;
}
.reprogramacion-servicio:last-child { margin-bottom: 0; }

.reprogramacion-servicio h3 {
  font-family: var(--fuente-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0 0 6px;
}

.reprogramacion-servicio p {
  color: var(--gris-suave);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.reprogramacion-beneficios { margin-bottom: 3rem; }

.reprogramacion-beneficio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gris-borde);
}
.reprogramacion-beneficio:last-child { border-bottom: none; }

.reprogramacion-beneficio svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--rojo);
}

.reprogramacion-beneficio h3 {
  font-family: var(--fuente-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--blanco);
  margin: 0 0 4px;
}

.reprogramacion-beneficio p {
  font-style: italic;
  color: var(--gris-suave);
  font-size: 14px;
  margin: 0;
}

.reprogramacion-proceso { margin-bottom: 2.5rem; }
.reprogramacion-proceso h2 {
  font-family: var(--fuente-display);
  font-size: 28px;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}
.reprogramacion-proceso p {
  color: var(--gris-suave);
  font-size: 16px;
}

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

/* ── LAYOUT CON SIDEBAR ── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Evita que el grid blowout cuando las imágenes son más anchas que el 1fr */
.shop-main { min-width: 0; }

/* ── PAGINACIÓN (woocommerce_pagination()) — sin esto salía sin estilo,
   como lista de viñetas del navegador ── */
.woocommerce-pagination {
  margin-top: 2.5rem;
}
.woocommerce-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination .page-numbers li { display: contents; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radio);
  border: 1px solid var(--gris-borde);
  background: var(--gris-oscuro);
  color: var(--blanco);
  font-size: 14px;
  text-decoration: none;
}
.woocommerce-pagination .page-numbers a:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}
.woocommerce-pagination .page-numbers .current {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--blanco);
  font-weight: 700;
}

/* ── SIDEBAR DE FILTROS ──
 * Con los grupos (menos Compatibilidad Moto) abiertos por defecto, un
 * scroll interno con altura fija (100vh) molestaba en el caso normal —
 * se quita el max-height/overflow-y y se deja que el sidebar fluya con
 * la página. Sigue "sticky" para acompañar el scroll. */
.filtros-sidebar {
  position: sticky;
  top: 90px; /* nav height + gap */
}

.filtros-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filtros-sidebar-titulo {
  font-family: var(--fuente-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blanco);
}

.filtros-limpiar {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.filtros-limpiar:hover { color: var(--rojo); }

.filtro-grupo {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--gris-oscuro);
}

.filtro-grupo-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--gris-oscuro);
  border: none;
  cursor: pointer;
  font-family: var(--fuente-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blanco);
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.filtro-grupo-btn:hover { background: #2a2a2a; }
.filtro-grupo.abierto .filtro-grupo-btn { color: var(--rojo); }

.filtro-grupo-btn svg {
  width: 16px; height: 16px;
  stroke: var(--rojo); fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.filtro-grupo.abierto .filtro-grupo-btn svg { transform: rotate(180deg); }

.filtro-grupo-cuerpo {
  display: none;
  padding: 0.75rem 0;
  background: var(--gris-oscuro);
  border-top: 1px solid var(--gris-borde);
}

.filtro-grupo.abierto .filtro-grupo-cuerpo { display: block; }

/* ── Filtro de precio (slider de doble tirador) ── */
.filtro-precio-form {
  padding: 0.5rem 1.25rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.filtro-precio-valores {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--blanco);
  font-weight: 600;
}
.filtro-precio-track {
  position: relative;
  height: 28px;
}
.filtro-precio-track-base,
.filtro-precio-track-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
  pointer-events: none;
}
.filtro-precio-track-base { left: 0; right: 0; background: var(--gris-borde); }
.filtro-precio-track-fill { background: var(--rojo); }

/* Dos <input type=range> superpuestos ocupando todo el ancho — cada uno
   controla un tirador; se hace transparente el propio input (solo se ve
   el "thumb"), y la barra .filtro-precio-track-fill de arriba dibuja el
   tramo seleccionado entre ambos. */
.filtro-precio-range {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none; /* el track no es clicable, solo el thumb */
}
.filtro-precio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rojo);
  border: 2px solid var(--blanco);
  cursor: pointer;
}
.filtro-precio-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rojo);
  border: 2px solid var(--blanco);
  cursor: pointer;
}
.filtro-precio-range::-webkit-slider-runnable-track { background: transparent; }
.filtro-precio-range::-moz-range-track { background: transparent; }

.filtro-precio-btn { width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 0.4rem; }

/* Links de filtro */
.filtro-link,
.filtro-link:link,
.filtro-link:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.25rem;
  font-size: 14px;
  color: var(--gris-suave);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  gap: 0.5rem;
}

.filtro-link:hover {
  color: var(--blanco);
  background: rgba(255,255,255,0.05);
}

.filtro-link.activo,
.filtro-link.activo:visited {
  color: var(--rojo);
  font-weight: 600;
}

.filtro-link .filtro-count {
  font-size: 11px;
  color: #aaa;
  margin-left: auto;
  flex-shrink: 0;
}

.filtro-link.activo .filtro-count { color: rgba(224,42,26,0.5); }

.filtro-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  border: 1.5px solid var(--gris-suave);
  border-radius: 3px;
  margin-right: 7px;
  font-size: 10px;
  color: transparent;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}
.filtro-link.activo .filtro-check {
  border-color: var(--rojo);
  background: var(--rojo);
  color: #fff;
}
.filtro-stock-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.filtro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--rojo);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: auto;
  margin-right: 6px;
}

/* Árbol jerárquico de Compatibilidad Moto */
.filtro-moto-marca { }

.filtro-moto-marca-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-suave);
  text-align: left;
  transition: color 0.15s;
  gap: 0.5rem;
}

.filtro-moto-marca-btn:hover { color: var(--blanco); }

.filtro-moto-marca.expandido .filtro-moto-marca-btn { color: var(--gris-suave); }

.filtro-moto-marca-btn.activo,
.filtro-moto-marca.expandido .filtro-moto-marca-btn.activo { color: var(--rojo); font-weight: 600; }

.filtro-moto-marca-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.filtro-moto-marca.expandido .filtro-moto-marca-btn svg { transform: rotate(180deg); }

.filtro-moto-modelos {
  display: none;
  padding-left: 0.75rem;
}

.filtro-moto-marca.expandido .filtro-moto-modelos { display: block; }

.filtro-moto-modelo { }

.filtro-moto-modelo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--gris-suave);
  text-align: left;
  transition: color 0.15s;
  gap: 0.5rem;
}

.filtro-moto-modelo-btn:hover { color: var(--blanco); }

.filtro-moto-modelo.expandido .filtro-moto-modelo-btn { color: var(--gris-suave); }

.filtro-moto-modelo-btn.activo,
.filtro-moto-modelo.expandido .filtro-moto-modelo-btn.activo { color: var(--rojo); font-weight: 600; }

.filtro-moto-modelo-btn svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.filtro-moto-modelo.expandido .filtro-moto-modelo-btn svg { transform: rotate(180deg); }

.filtro-moto-anios {
  display: none;
  padding-left: 0.75rem;
}

.filtro-moto-modelo.expandido .filtro-moto-anios { display: block; }

/* Botón filtrar mobile */
.filtros-toggle-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blanco);
  cursor: pointer;
  margin-bottom: 1.5rem;
  font-family: var(--fuente-body);
}

.filtros-toggle-mobile svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* ── RESPONSIVE ── */
/* El menú de enlaces se colapsa antes (1024px) que el resto del layout mobile
   (768px) porque a partir de ~1024px de ancho ya no cabe junto al logo, CTA,
   buscador y carrito en una sola fila. Además se colapsa también hasta
   1366px en dispositivos táctiles (pointer:coarse) — tablets grandes en
   horizontal (ej. Xiaomi Pad 5) pueden reportar ese ancho, mientras que un
   PC real con ventana estrecha usa ratón (pointer:fine) y no se ve afectado
   por encima de 1024px. */
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .nav-links { display: none; }
  .nav-links.abierto {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--gris-oscuro);
    border-bottom: 1px solid var(--gris-borde);
    padding: 1rem 0; list-style: none; z-index: 99;
    /* Mismo problema que el desplegable de escritorio: con el submenu de
       categorías abierto dentro, puede superar el alto de pantalla. */
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.abierto li a { display: block; padding: 0.75rem 1.5rem; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 1.25rem; }

  #inicio { padding: 90px 1.25rem 3rem; }
  section { padding: 4rem 1.25rem; }

  .buscador-hero {
    flex-direction: column;
    padding: 1.25rem;
  }
  .buscador-hero .form-grupo { min-width: 100%; }
  .buscador-submit { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--gris-borde); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:last-child { border-bottom: none; }

  .nosotros-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .nosotros-foto { aspect-ratio: 16/9; }

  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-fila { grid-template-columns: 1fr; }

  .marcas-grid { grid-template-columns: repeat(3, 1fr); }

  .taxonomia-breadcrumb { flex-direction: column; align-items: flex-start; }

  /* Sidebar responsive */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filtros-sidebar {
    position: static;
    margin-bottom: 2rem;
    max-height: none;
    overflow-y: visible;
  }

  .filtros-toggle-mobile { display: flex; }

  .filtros-sidebar-inner {
    display: none;
  }

  .filtros-sidebar-inner.abierto {
    display: block;
  }
}
