/*
 * Madridrueda Modern 0.1
 * Capa visual no destructiva sobre el tema Classic de PrestaShop 8.2.
 */

:root {
  --mdr-navy: #0c263d;
  --mdr-navy-soft: #173b57;
  --mdr-red: #e44732;
  --mdr-red-dark: #c93423;
  --mdr-green: #20bf73;
  --mdr-ink: #14283b;
  --mdr-muted: #607287;
  --mdr-line: #dbe4ec;
  --mdr-surface: #ffffff;
  --mdr-bg: #f4f7f9;
  --mdr-radius: 18px;
  --mdr-shadow: 0 14px 40px rgba(12, 38, 61, 0.10);
  --mdr-shadow-hover: 0 20px 48px rgba(12, 38, 61, 0.16);
}

/* Cabeceras de categorías y marcas: ilustración/logo más visible y alineado
   al extremo derecho sin recortar su proporción. */
@media (min-width: 768px) {
  #category .block-category {
    padding-right: 330px !important;
  }

  #category .block-category .category-cover {
    align-items: center !important;
    display: flex !important;
    height: 132px !important;
    justify-content: flex-end !important;
    right: 18px !important;
    width: 276px !important;
  }

  #category .block-category .category-cover img {
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center right !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #category .block-category {
    min-height: 142px !important;
    padding-right: 126px !important;
  }

  #category .block-category .category-cover {
    align-items: center !important;
    display: flex !important;
    height: 92px !important;
    justify-content: flex-end !important;
    right: 12px !important;
    width: 106px !important;
  }

  #category .block-category .category-cover img {
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center right !important;
    width: 100% !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mdr-bg);
  color: var(--mdr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mdr-navy-soft);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

a:hover,
a:focus {
  color: var(--mdr-red);
  text-decoration: none;
}

.container {
  width: calc(100% - 32px);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* Bootstrap puede volver a imponer un contenedor fluido después de esta
   capa. Estos selectores concretos garantizan la misma línea de alineación
   en la barra azul y en la cabecera blanca. */
#header .header-nav > .container,
#header .header-top > .container {
  width: calc(100% - 32px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#wrapper {
  background: var(--mdr-bg);
  box-shadow: none;
  padding-top: 28px;
}

#content-wrapper,
#left-column,
#right-column {
  min-width: 0;
}

/* Cabecera */
#header {
  background: rgba(255, 255, 255, .97);
  color: var(--mdr-ink);
  box-shadow: 0 1px 0 var(--mdr-line), 0 8px 28px rgba(12, 38, 61, .06);
  position: relative;
  z-index: 20;
}

#header .header-nav {
  background: var(--mdr-navy);
  border: 0;
  color: #fff;
  margin: 0;
  min-height: 48px;
  padding: 0;
}

#header .header-nav a,
#header .header-nav .user-info a,
#header .header-nav .blockcart,
#header .header-nav .blockcart a {
  color: #fff;
}

#header .header-nav a:hover,
#header .header-nav a:focus {
  color: #fff;
  opacity: .82;
}

#header .header-top {
  background: #fff;
  padding: 12px 0;
}

#header .header-top > .container > .row {
  align-items: center;
  display: flex;
}

#header .logo {
  height: auto;
  max-height: 44px;
  max-width: 220px;
  width: auto;
}

#header .header-nav > .container > .row > .hidden-sm-down {
  align-items: center;
  min-height: 48px;
  width: 100%;
}

#header .header-nav #contact-link,
#header .header-nav #_desktop_user_info,
#header .header-nav .user-info,
#header .header-nav #_desktop_cart,
#header .header-nav .blockcart,
#header .header-nav .blockcart .header {
  align-items: center;
  display: flex;
  min-height: 48px;
}

#header .header-nav .right-nav {
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
}

#header .header-nav .user-info {
  gap: 18px;
  margin: 0;
}

#header .header-nav .blockcart {
  background: rgba(255, 255, 255, .09);
  border-radius: 0;
  margin: 0 0 0 18px;
  padding: 0 16px;
}

#header .header-nav .blockcart .header {
  gap: 5px;
  margin: 0;
}

/* La barra superior comparte exactamente el mismo contenedor centrado que
   el resto de la cabecera: contacto a la izquierda y cuenta/carrito a la
   derecha, sin quedar flotando en columnas distintas. */
@media (min-width: 768px) {
  #header .header-nav > .container > .row > .hidden-sm-down {
    align-items: center;
    display: flex !important;
    gap: 18px;
    justify-content: space-between;
    width: 100%;
  }

  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 {
    flex: 1 1 auto;
    max-width: none;
    padding-left: 0;
    width: auto;
  }

  #header .header-nav > .container > .row > .hidden-sm-down > .right-nav {
    flex: 0 0 auto;
    max-width: none;
    padding-right: 0;
    width: auto;
  }
}

/* El anuncio del SAT comparte la misma composición visual que las otras
   diapositivas: panel claro, acento rojo y CTA azul en el pie izquierdo. */
#carousel .mdr-sat-carousel-figure {
  background: #f4f8fb !important;
  position: relative !important;
}

#carousel .mdr-sat-carousel-copy {
  background: linear-gradient(90deg, rgba(247,250,252,.99) 0%, rgba(247,250,252,.97) 33%, rgba(247,250,252,.82) 45%, rgba(247,250,252,0) 64%) !important;
  bottom: 0 !important;
  box-sizing: border-box !important;
  color: var(--mdr-navy) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  left: 0 !important;
  max-width: none !important;
  padding: 44px 5.1% 42px !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
}

#carousel .mdr-sat-carousel-copy::before {
  background: var(--mdr-red) !important;
  content: '' !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: 5px !important;
  margin: 0 0 28px !important;
  width: 66px !important;
}

#carousel .mdr-sat-carousel-copy strong {
  color: var(--mdr-navy) !important;
  font-size: clamp(30px, 3vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.13 !important;
  max-width: 42% !important;
}

#carousel .mdr-sat-carousel-copy small {
  color: #5f7283 !important;
  font-size: clamp(15px, 1.5vw, 22px) !important;
  line-height: 1.35 !important;
  margin: 22px 0 0 !important;
  max-width: 42% !important;
}

#carousel .mdr-sat-carousel-copy b {
  align-items: center !important;
  align-self: flex-start !important;
  background: var(--mdr-navy) !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin-top: auto !important;
  min-height: 44px !important;
  padding: 0 20px !important;
}

@media (max-width: 767px) {
  #carousel .mdr-sat-carousel-copy {
    background: linear-gradient(90deg, rgba(247,250,252,.99) 0%, rgba(247,250,252,.94) 43%, rgba(247,250,252,.15) 68%, rgba(247,250,252,0) 100%) !important;
    padding: 12px 5% 11px !important;
  }

  #carousel .mdr-sat-carousel-copy::before {
    height: 3px !important;
    margin-bottom: 7px !important;
    width: 32px !important;
  }

  #carousel .mdr-sat-carousel-copy strong {
    font-size: clamp(15px, 4vw, 21px) !important;
    line-height: 1.08 !important;
    max-width: 52% !important;
  }

  #carousel .mdr-sat-carousel-copy small {
    font-size: clamp(8px, 2.3vw, 11px) !important;
    line-height: 1.2 !important;
    margin-top: 5px !important;
    max-width: 52% !important;
  }

  #carousel .mdr-sat-carousel-copy b {
    font-size: 9px !important;
    min-height: 24px !important;
    padding: 0 9px !important;
  }
}

/* Contención del carrusel: el panel de texto nunca puede extenderse sobre
   el catálogo ni bloquear los enlaces de las fichas. */
#carousel,
#carousel .carousel-inner,
#carousel .carousel-item,
#carousel .carousel-item > a,
#carousel .carousel-item figure {
  position: relative !important;
  overflow: hidden !important;
}
#carousel .mdr-sat-carousel-copy {
  inset: 0 !important;
  pointer-events: none !important;
}
#carousel .mdr-sat-carousel-copy b {
  pointer-events: auto !important;
}

/* Las creatividades del carrusel ya incluyen su texto dentro de la imagen.
   La caption heredada de PrestaShop añadía una capa azul posicionada fuera de
   la diapositiva y terminaba cubriendo el catálogo. Se oculta esa capa legacy
   y se mantiene únicamente la llamada a la acción del banner SAT. */
#index #carousel .carousel-item:not(.mdr-sat-slide) .caption {
  display: none !important;
}
#index #carousel,
#index #carousel .carousel-inner,
#index #carousel .carousel-item,
#index #carousel .carousel-item > a,
#index #carousel .carousel-item figure {
  isolation: isolate !important;
  overflow: hidden !important;
}
#index #carousel .carousel-item > a,
#index #carousel .carousel-item figure {
  clip-path: inset(0 round 22px) !important;
}
#index #carousel .mdr-sat-carousel-copy {
  z-index: 2 !important;
}

/* Salvaguardas finales de la publicación multidioma. Deben permanecer al
   final para prevalecer sobre las iteraciones históricas del tema. */
.mdr-home-note {
  overflow: hidden !important;
  position: relative !important;
}

@media (max-width: 767px) {
  #header .header-nav,
  #header .header-nav > .container,
  #header .header-nav > .container > .row,
  #header .header-nav .mobile {
    height: 104px !important;
    min-height: 104px !important;
  }

  #header .header-nav .mobile {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px 62px !important;
    grid-template-rows: 62px 42px !important;
    overflow: visible !important;
    padding: 0 8px !important;
  }

  #header .header-nav .mobile .mdr-mobile-language {
    align-items: center !important;
    align-self: stretch !important;
    background: #fff !important;
    border: 0 !important;
    display: flex !important;
    gap: 8px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 42px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    position: static !important;
    width: 100% !important;
  }

  #index #carousel,
  #index #carousel .carousel-inner,
  #index #carousel .carousel-item,
  #index #carousel .carousel-item > a,
  #index #carousel .carousel-item figure {
    aspect-ratio: 1110 / 340 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  #index #carousel .carousel-item img {
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Publicación 2026-08-18d: conserva la cabecera móvil validada al incorporar
   los cuatro idiomas y evita que elementos decorativos abandonen su bloque. */
.mdr-home-note {
  overflow: hidden !important;
  position: relative !important;
}

@media (max-width: 767px) {
  #header .header-nav,
  #header .header-nav > .container,
  #header .header-nav > .container > .row,
  #header .header-nav .mobile {
    height: 104px !important;
    min-height: 104px !important;
  }

  #header .header-nav .mobile {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px 62px !important;
    grid-template-rows: 62px 42px !important;
    overflow: visible !important;
    padding: 0 8px !important;
  }

  #header .header-nav .mobile .mdr-mobile-language {
    align-items: center !important;
    align-self: stretch !important;
    background: #fff !important;
    border: 0 !important;
    display: flex !important;
    gap: 8px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 42px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    position: static !important;
    width: 100% !important;
  }

  #index #carousel,
  #index #carousel .carousel-inner,
  #index #carousel .carousel-item,
  #index #carousel .carousel-item > a,
  #index #carousel .carousel-item figure {
    aspect-ratio: 1110 / 340 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  #index #carousel .carousel-item img {
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Banda diagonal comercial: override final para portada y categorías. */
.product-miniature .product-flags {
  display: block !important;
  height: 112px !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: auto !important;
  top: 0 !important;
  width: 112px !important;
  z-index: 6 !important;
}

.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  align-items: center !important;
  backdrop-filter: blur(4px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 5px 14px rgba(12,38,61,.18) !important;
  box-sizing: border-box !important;
  clip-path: none !important;
  color: #fff !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  height: 34px !important;
  justify-content: center !important;
  left: -42px !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  position: absolute !important;
  text-align: center !important;
  text-transform: uppercase !important;
  top: 29px !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  width: 166px !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: linear-gradient(90deg, rgba(255,140,51,.90), rgba(255,176,43,.86)) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: linear-gradient(90deg, rgba(9,39,63,.90), rgba(27,78,111,.86)) !important;
  grid-column: auto !important;
}

@media (max-width: 575px) {
  .product-miniature .product-flags {
    height: 96px !important;
    width: 96px !important;
  }

  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    font-size: 11px !important;
    height: 30px !important;
    left: -43px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    top: 25px !important;
    width: 158px !important;
  }
}

/* Banda diagonal comercial (regla final y autoritativa). */
.product-miniature .product-flags {
  display: block !important;
  height: 112px !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: auto !important;
  top: 0 !important;
  width: 112px !important;
  z-index: 6 !important;
}

.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  align-items: center !important;
  backdrop-filter: blur(4px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 5px 14px rgba(12,38,61,.18) !important;
  box-sizing: border-box !important;
  clip-path: none !important;
  color: #fff !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  height: 34px !important;
  justify-content: center !important;
  left: -42px !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  position: absolute !important;
  text-align: center !important;
  text-transform: uppercase !important;
  top: 29px !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  width: 166px !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: linear-gradient(90deg, rgba(255,140,51,.90), rgba(255,176,43,.86)) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: linear-gradient(90deg, rgba(9,39,63,.90), rgba(27,78,111,.86)) !important;
  grid-column: auto !important;
}

@media (max-width: 575px) {
  .product-miniature .product-flags {
    height: 96px !important;
    width: 96px !important;
  }

  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    font-size: 11px !important;
    height: 30px !important;
    left: -43px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    top: 25px !important;
    width: 158px !important;
  }
}

/* Banda diagonal definitiva para el estado comercial de las tarjetas.
   Solo queda visible un estado: EN OFERTA cuando hay rebaja y existencias,
   o SIN STOCK cuando el producto no se puede comprar. */
.product-miniature .product-flags {
  display: block !important;
  height: 112px !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: auto !important;
  top: 0 !important;
  width: 112px !important;
  z-index: 6 !important;
}

.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  align-items: center !important;
  backdrop-filter: blur(4px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 5px 14px rgba(12,38,61,.18) !important;
  box-sizing: border-box !important;
  clip-path: none !important;
  color: #fff !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  height: 34px !important;
  justify-content: center !important;
  left: -42px !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  position: absolute !important;
  text-align: center !important;
  text-transform: uppercase !important;
  top: 29px !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  width: 166px !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: linear-gradient(90deg, rgba(255,140,51,.90), rgba(255,176,43,.86)) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: linear-gradient(90deg, rgba(9,39,63,.90), rgba(27,78,111,.86)) !important;
  grid-column: auto !important;
}

@media (max-width: 575px) {
  .product-miniature .product-flags {
    height: 96px !important;
    width: 96px !important;
  }

  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    font-size: 11px !important;
    height: 30px !important;
    left: -43px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    top: 25px !important;
    width: 158px !important;
  }
}

/* Sistema definitivo de tarjetas de producto.
   Las etiquetas nunca reservan espacio: la fotografía conserva siempre la
   misma caja y queda centrada haya promoción, stock o ninguna etiqueta. */
.product-miniature .thumbnail-container {
  position: relative !important;
}

.product-miniature .thumbnail-top,
.product-miniature .thumbnail-top:not(:has(.product-flags li)),
.product-miniature .thumbnail-top:has(.product-flags:empty) {
  align-items: center !important;
  display: flex !important;
  height: 292px !important;
  justify-content: center !important;
  min-height: 292px !important;
  padding: 0 !important;
  position: relative !important;
}

.product-miniature .thumbnail-top .thumbnail,
.product-miniature .product-thumbnail {
  align-items: center !important;
  display: flex !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.product-miniature .thumbnail-top img,
.product-miniature .thumbnail-top:not(:has(.product-flags li)) img,
.product-miniature .thumbnail-top:has(.product-flags:empty) img,
.product-miniature .product-thumbnail img,
.product-miniature .thumbnail-container:hover .product-thumbnail img,
.product-miniature .thumbnail-container:hover .thumbnail-top:not(:has(.product-flags li)) img {
  box-sizing: border-box !important;
  display: block !important;
  height: 100% !important;
  margin: auto !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 12px !important;
  transform: none !important;
  width: 100% !important;
}

.product-miniature .product-flags {
  align-items: flex-start !important;
  display: flex !important;
  flex-flow: row wrap !important;
  gap: 6px !important;
  left: 12px !important;
  margin: 0 !important;
  max-width: calc(100% - 24px) !important;
  pointer-events: none !important;
  position: absolute !important;
  right: auto !important;
  top: 12px !important;
  width: auto !important;
  z-index: 4 !important;
}

/* El ahorro ya queda claro con el precio anterior tachado; se evita duplicar
   información y se gana espacio para la fotografía. */
.product-miniature .product-flags li.product-flag.discount,
.product-miniature .product-price-and-shipping .discount-product {
  display: none !important;
}

/* La etiqueta de oferta solo se muestra cuando existe realmente un precio
   anterior. Si no hay stock, ese estado prevalece sobre cualquier promoción. */
.product-miniature .thumbnail-container:not(:has(.regular-price)) .product-flags li.product-flag.on-sale,
.product-miniature .thumbnail-container:has(.product-flag.out_of_stock) .product-flags li.product-flag.on-sale,
.product-miniature .thumbnail-container:has(.product-flag.out_of_stock) .product-flags li.product-flag.discount {
  display: none !important;
}

.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  align-items: center !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 9px !important;
  box-shadow: 0 5px 14px rgba(12,38,61,.12) !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  width: auto !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: rgba(245,145,96,.92) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: rgba(12,38,61,.92) !important;
  grid-column: auto !important;
}

@media (max-width: 575px) {
  .product-miniature .thumbnail-container {
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: 45% minmax(0, 55%) !important;
    height: 184px !important;
    min-height: 184px !important;
  }

  .product-miniature .thumbnail-top,
  .product-miniature .thumbnail-top:not(:has(.product-flags li)),
  .product-miniature .thumbnail-top:has(.product-flags:empty) {
    height: 184px !important;
    min-height: 184px !important;
    padding: 0 !important;
  }

  .product-miniature .thumbnail-top img,
  .product-miniature .thumbnail-top:not(:has(.product-flags li)) img,
  .product-miniature .thumbnail-top:has(.product-flags:empty) img,
  .product-miniature .product-thumbnail img {
    object-position: center center !important;
    padding: 14px 8px !important;
  }

  .product-miniature .product-description {
    align-items: stretch !important;
    height: 184px !important;
    justify-content: center !important;
    min-height: 184px !important;
    padding: 18px 14px !important;
  }

  .product-miniature .product-flags {
    gap: 4px !important;
    left: 9px !important;
    max-width: calc(100% - 18px) !important;
    top: 9px !important;
  }

  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    border-radius: 8px !important;
    font-size: 12px !important;
    min-height: 32px !important;
    padding: 0 9px !important;
  }
}

/* Etiquetas de estado con forma de cinta. Oferta y falta de stock comparten
   exactamente caja, tipografía y posición; solo cambia el color semántico. */
.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  border-radius: 10px 3px 3px 10px !important;
  box-shadow: 0 6px 16px rgba(12,38,61,.16) !important;
  box-sizing: border-box !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%) !important;
  font-size: 14px !important;
  height: 44px !important;
  letter-spacing: .01em !important;
  min-height: 44px !important;
  min-width: 124px !important;
  padding: 0 20px 0 13px !important;
  text-align: center !important;
  width: 124px !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: linear-gradient(135deg, rgba(250,161,111,.97), rgba(239,126,82,.94)) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: linear-gradient(135deg, rgba(20,58,87,.97), rgba(8,32,52,.95)) !important;
}

@media (max-width: 575px) {
  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%) !important;
    font-size: 12px !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: 106px !important;
    padding: 0 16px 0 10px !important;
    width: 106px !important;
  }
}

/* El texto del anuncio SAT queda en la zona izquierda del banner, elevado y
   separado de la imagen del monociclo/patin. El enlace cubre todo el banner. */
#carousel .mdr-sat-carousel-figure { overflow: hidden !important; position: relative !important; }
#carousel .mdr-sat-carousel-copy {
  bottom: 0 !important;
  justify-content: flex-start !important;
  max-width: 58% !important;
  padding: 42px 7% 26px !important;
  top: 0 !important;
}
#carousel .mdr-sat-carousel-copy strong { max-width: 100% !important; }
#carousel .mdr-sat-carousel-copy small { max-width: 100% !important; }
@media (max-width: 767px) {
  #carousel .mdr-sat-carousel-copy {
    max-width: 62% !important;
    padding: 18px 5% 14px !important;
  }
  #carousel .mdr-sat-carousel-copy strong { font-size: clamp(18px, 5vw, 28px) !important; }
  #carousel .mdr-sat-carousel-copy small { font-size: 12px !important; margin: 5px 0 8px !important; }
  #carousel .mdr-sat-carousel-copy b { font-size: 11px !important; padding: 7px 10px !important; }
}

/* Etiquetas de catálogo: dos etiquetas en la primera fila y el stock debajo,
   sin que la etiqueta oscura se estire por todo el ancho. */
.product-miniature .product-flags {
  display: grid !important;
  grid-template-columns: max-content max-content !important;
  grid-auto-rows: max-content !important;
  gap: 6px !important;
  max-width: calc(100% - 28px) !important;
}
.product-miniature .product-flags li.product-flag {
  font-size: 15px !important;
  line-height: 1.1 !important;
  padding: 7px 11px !important;
  width: max-content !important;
}
.product-miniature .product-flags li.product-flag.out_of_stock {
  flex-basis: auto !important;
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
  max-width: 100% !important;
  width: max-content !important;
}
@media (max-width: 767px) {
  .product-miniature .product-flags {
    grid-template-columns: max-content max-content !important;
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
    right: auto !important;
    top: 10px !important;
  }
  .product-miniature .product-flags li.product-flag {
    font-size: 14px !important;
    padding: 6px 9px !important;
  }
}

@media (min-width: 768px) {
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #_desktop_contact_link,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #contact-link {
    align-items: center !important;
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #_desktop_contact_link,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #contact-link {
    width: 100% !important;
  }
}

/* Los favoritos no forman parte del flujo de compra de Madridrueda y se
   ocultan para reservar ese espacio a la imagen y al precio. */
.product-miniature .wishlist-button-add,
.page-product .product-quantity .wishlist-button-add,
.wishlist-button-add {
  display: none !important;
}

/* Más superficie útil para la fotografía y etiquetas de oferta legibles. */
.product-miniature .thumbnail-top img,
.product-miniature .product-thumbnail img {
  padding: 6px 5px 8px;
}

.product-flags {
  gap: 8px;
  left: 12px;
  right: 12px;
}

.product-flags li.product-flag {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  min-height: 36px;
  padding: 8px 12px;
}

@media (max-width: 767px) {
  .product-miniature .thumbnail-top img,
  .product-miniature .product-thumbnail img {
    padding: 24px 4px 4px;
  }

  .product-flags {
    gap: 5px;
    left: 8px;
    right: 8px;
  }

  .product-flags li.product-flag {
    font-size: 12px;
    min-height: 32px;
    padding: 7px 9px;
  }
}

/* Tarjetas de catálogo: composición única y compacta para productos con o sin
   oferta/stock. Evita huecos artificiales y mantiene las etiquetas legibles. */
.product-miniature .thumbnail-container {
  border-width: 2px !important;
  overflow: hidden !important;
}
.product-miniature .thumbnail-top {
  box-sizing: border-box !important;
  height: 292px !important;
  min-height: 292px !important;
  padding: 42px 12px 10px !important;
  position: relative !important;
}
.product-miniature .thumbnail-top img,
.product-miniature .thumbnail-top .thumbnail,
.product-miniature .product-thumbnail img {
  height: 100% !important;
  max-height: 240px !important;
  object-fit: contain !important;
  transform: none !important;
  width: 100% !important;
}
.product-miniature .thumbnail-top:not(:has(.product-flags li)) {
  padding-top: 14px !important;
}
.product-miniature .thumbnail-top:not(:has(.product-flags li)) img,
.product-miniature .thumbnail-top:not(:has(.product-flags li)) .thumbnail {
  max-height: 278px !important;
}
.product-miniature .product-flags {
  align-content: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  left: 14px !important;
  max-width: calc(100% - 28px) !important;
  right: auto !important;
  top: 14px !important;
  width: auto !important;
  z-index: 3 !important;
}
.product-miniature .product-flags li.product-flag {
  flex: 0 0 auto !important;
  margin: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}
.product-miniature .product-flags li.product-flag.out_of_stock {
  flex-basis: 100% !important;
  margin-top: 1px !important;
  width: max-content !important;
}
.product-miniature .product-description {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 142px !important;
  padding: 14px 12px 16px !important;
}
.product-miniature .product-title {
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
  min-height: 42px !important;
}
.product-miniature .product-price-and-shipping {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  justify-content: center !important;
  margin: 0 !important;
}
.product-miniature .product-price-and-shipping .regular-price {
  font-size: .9rem !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}
.product-miniature .product-price-and-shipping .price {
  font-size: 1.7rem !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .product-miniature .thumbnail-top {
    height: 224px !important;
    min-height: 224px !important;
    padding: 38px 10px 8px !important;
  }
  .product-miniature .thumbnail-top:not(:has(.product-flags li)) {
    padding-top: 12px !important;
  }
  .product-miniature .thumbnail-top img,
  .product-miniature .thumbnail-top .thumbnail,
  .product-miniature .product-thumbnail img {
    max-height: 184px !important;
  }
  .product-miniature .thumbnail-top:not(:has(.product-flags li)) img,
  .product-miniature .thumbnail-top:not(:has(.product-flags li)) .thumbnail {
    max-height: 210px !important;
  }
  .product-miniature .product-description {
    min-height: 126px !important;
    padding: 12px 10px 14px !important;
  }
  .product-miniature .product-price-and-shipping .price {
    font-size: 1.45rem !important;
  }
}

/* Alineación vertical de la franja azul en escritorio. */
@media (min-width: 768px) {
  #header .header-nav,
  #header .header-nav > .container,
  #header .header-nav > .container > .row,
  #header .header-nav > .container > .row > .hidden-sm-down {
    min-height: 48px !important;
    height: 48px !important;
  }
  #header .header-nav > .container > .row,
  #header .header-nav > .container > .row > .hidden-sm-down,
  #header .header-nav .right-nav,
  #header .header-nav #contact-link,
  #header .header-nav #_desktop_user_info,
  #header .header-nav #_desktop_cart,
  #header .header-nav .mdr-desktop-language {
    align-items: center !important;
    display: flex !important;
  }
  #header .header-nav #contact-link a,
  #header .header-nav #_desktop_user_info a,
  #header .header-nav #_desktop_cart .header,
  #header .header-nav .mdr-desktop-language a {
    line-height: 1.2 !important;
  }
}

@media (min-width: 768px) {
  #header .header-nav .right-nav {
    align-items: stretch;
    display: flex;
    gap: 10px;
  }

  #header #_desktop_user_info,
  #header #_desktop_cart,
  #header #_desktop_language_selector {
    align-items: stretch;
    display: flex;
    flex: 0 0 auto;
    margin: 0;
  }

  #header #_desktop_language_selector .language-selector-wrapper,
  #header #_desktop_language_selector .language-selector {
    align-items: center;
    display: flex;
    min-height: 48px;
  }

  #header #_desktop_language_selector .language-selector > button {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 750;
    gap: 3px;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
  }

  #header #_desktop_language_selector .dropdown-menu {
    border: 1px solid var(--mdr-line);
    border-radius: 10px;
    box-shadow: var(--mdr-shadow);
    margin-top: 0;
    min-width: 150px;
    padding: 6px;
  }

  #header #_desktop_language_selector .dropdown-menu a {
    border-radius: 7px;
    color: var(--mdr-ink);
    font-size: 14px;
    padding: 9px 11px;
  }

  #header #_desktop_language_selector .dropdown-menu .current a,
  #header #_desktop_language_selector .dropdown-menu a:hover {
    background: var(--mdr-paper);
    color: var(--mdr-red);
    opacity: 1;
  }

  #header #_desktop_user_info .user-info,
  #header #_desktop_cart .blockcart {
    margin: 0 !important;
    min-height: 48px;
  }

  #header #_desktop_user_info .user-info a {
    align-items: center;
    display: flex;
    gap: 7px;
    min-height: 48px;
    padding: 0 14px;
    white-space: nowrap;
  }

  #header #_desktop_cart .blockcart {
    align-items: center;
    display: flex;
    min-width: 132px;
    padding: 0 14px;
  }

  #header #_desktop_cart .blockcart .header {
    justify-content: center;
    white-space: nowrap;
    width: 100%;
  }
}

#header .header-top a[data-depth="0"] {
  color: var(--mdr-ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .015em;
  padding: 12px 11px;
  text-transform: none;
}

#header .header-top a[data-depth="0"]:hover,
#header .header-top a[data-depth="0"]:focus {
  color: var(--mdr-red);
}

#header .top-menu a[data-depth="0"]::after {
  background: var(--mdr-red);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin: 7px auto -10px;
  transform: scaleX(0);
  transition: transform .18s ease;
}

#header .top-menu a[data-depth="0"]:hover::after {
  transform: scaleX(1);
}

#search_widget form input {
  background: #f1f5f8;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--mdr-ink);
  min-height: 46px;
  padding-left: 45px;
}

#search_widget form input:focus {
  background: #fff;
  border-color: var(--mdr-navy-soft);
  box-shadow: 0 0 0 4px rgba(23, 59, 87, .10);
  outline: 0;
}

/* Componentes generales */
.btn,
button,
input,
select,
textarea {
  font-family: inherit;
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
.product-actions .add-to-cart {
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 20px;
  text-transform: none;
}

.btn-primary,
.product-actions .add-to-cart {
  background: var(--mdr-red);
  box-shadow: 0 9px 22px rgba(228, 71, 50, .22);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.product-actions .add-to-cart:hover,
.product-actions .add-to-cart:focus {
  background: var(--mdr-red-dark);
  box-shadow: 0 12px 28px rgba(228, 71, 50, .28);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:disabled,
.product-actions .add-to-cart:disabled {
  background: #aeb9c3;
  box-shadow: none;
  cursor: not-allowed;
}

/* Alineación coherente de todos los controles de acción. Los campos de datos
   mantienen su alineación natural para no perjudicar la lectura y escritura. */
.btn,
button,
input[type="button"],
input[type="submit"],
.product-actions .add-to-cart {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn,
button,
.product-actions .add-to-cart {
  display: inline-flex;
}

.form-control,
.form-control-select,
select.form-control:not([size]):not([multiple]) {
  background: #fff;
  border: 1px solid #cbd7e1;
  border-radius: 12px;
  color: var(--mdr-ink);
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--mdr-navy-soft);
  box-shadow: 0 0 0 4px rgba(23, 59, 87, .10);
}

.card,
.page-content,
.cart-grid-body,
.cart-grid-right .card,
.checkout-step,
#content.page-home {
  border: 1px solid var(--mdr-line);
  border-radius: var(--mdr-radius);
  box-shadow: var(--mdr-shadow);
}

#content.page-home {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.h1,
.h2,
.h3,
h1,
h2,
h3 {
  color: var(--mdr-navy);
  font-family: inherit;
  font-weight: 850;
  letter-spacing: -.025em;
  text-transform: none;
}

.h1,
h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.h2,
h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.15;
}

.breadcrumb {
  background: transparent;
  color: var(--mdr-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb li::after,
.breadcrumb li a {
  color: var(--mdr-muted);
}

/* Portada */
#carousel {
  border-radius: 22px;
  box-shadow: var(--mdr-shadow);
  margin-bottom: 42px;
  overflow: hidden;
}

#carousel .carousel-item img {
  display: block;
  height: auto;
  width: 100%;
}

#carousel .carousel-item > a,
#carousel .carousel-item figure {
  display: block;
  margin: 0;
  width: 100%;
}

#carousel .carousel-inner,
#carousel .carousel-item {
  height: auto !important;
}

/* Portada de escritorio: banner completo y tarjetas compactas y simétricas. */
@media (min-width: 992px) {
  #header .header-nav > .container > .row > .hidden-sm-down {
    justify-content: space-between;
  }

  #header .header-nav #contact-link,
  #header .header-nav .right-nav,
  #header .header-nav .user-info,
  #header .header-nav .blockcart,
  #header .header-nav .blockcart .header {
    align-items: center;
    justify-content: center;
  }

  #carousel,
  #carousel .carousel-inner,
  #carousel .carousel-item,
  #carousel .carousel-item > a,
  #carousel .carousel-item figure {
    aspect-ratio: 1110 / 340;
  }

  #carousel .carousel-item img {
    height: 100% !important;
    object-fit: cover;
    width: 100% !important;
  }

  .product-miniature .thumbnail-top {
    height: 350px;
    padding-top: 42px;
  }

  .product-miniature .thumbnail-top .thumbnail,
  .product-miniature .product-thumbnail {
    aspect-ratio: auto;
    height: 100%;
  }

  .product-miniature .thumbnail-top img,
  .product-miniature .product-thumbnail img {
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 6px 12px 10px;
    width: 100%;
  }

  .product-miniature .product-description {
    flex: 0 0 138px;
    justify-content: space-between;
    min-height: 138px;
    padding: 15px 16px 18px;
  }

  .product-miniature .product-title {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 48px;
  }

  .product-miniature .product-title a {
    font-size: 17px;
    line-height: 1.3;
  }

  .product-miniature .product-price-and-shipping {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.08;
    margin-top: 5px;
    min-height: 49px;
  }

  .product-miniature .product-price-and-shipping .regular-price {
    display: block;
    font-size: 14px;
    line-height: 1.1;
    margin: 0 0 4px;
    order: 1;
  }

  .product-miniature .product-price-and-shipping .discount-product {
    display: none;
  }

  .product-miniature .product-price-and-shipping .price {
    display: block;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    order: 2;
    text-align: center;
    width: 100%;
  }

  .product-flags {
    flex-wrap: nowrap;
    max-width: calc(100% - 76px);
  }

  #content-wrapper .banner {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  #content-wrapper .banner img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 1110px;
    width: 100%;
  }
}

.featured-products,
.product-accessories,
.product-miniature-list-row,
.products-section-title {
  margin-top: 44px;
}

.products-section-title {
  color: var(--mdr-navy);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -.025em;
  margin-bottom: 24px;
  text-align: left;
  text-transform: none;
}

.all-product-link {
  color: var(--mdr-red);
  font-weight: 800;
}

/* Listados y tarjetas de producto */
#products .products,
.featured-products .products,
.product-accessories .products,
.product-miniature-list-row .products {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

/* Las columnas Bootstrap de Classic conservan un ancho porcentual. Al usarlas
   dentro de CSS Grid hay que neutralizarlo para que cada producto ocupe toda
   su celda y no vuelva a reducirse al 25 %. */
#products .products > .js-product,
.featured-products .products > .js-product,
.product-accessories .products > .js-product,
.product-miniature-list-row .products > .js-product {
  flex: none;
  max-width: 100% !important;
  min-width: 0;
  padding: 0;
  width: 100% !important;
}

#products .product-miniature,
.featured-products .product-miniature,
.product-accessories .product-miniature,
.product-miniature-list-row .product-miniature {
  justify-self: stretch;
  margin: 0 !important;
  min-width: 0;
  width: 100% !important;
}

.product-miniature .thumbnail-container {
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #2f5bff, #25d27a) border-box;
  border: 1px solid transparent;
  border-radius: var(--mdr-radius);
  box-shadow: 0 9px 28px rgba(12, 38, 61, .07);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

/* Las fichas sin etiquetas no necesitan reservar la franja superior. */
.product-miniature .thumbnail-top:has(.product-flags:empty) {
  padding-top: 14px;
}

.product-miniature .thumbnail-top:has(.product-flags:empty) img {
  transform: translateY(-18px) scale(1.04);
}

.product-miniature .thumbnail-container:hover .thumbnail-top:has(.product-flags:empty) img {
  transform: translateY(-18px) scale(1.075);
}

.product-miniature .thumbnail-container:hover {
  box-shadow: var(--mdr-shadow-hover);
  transform: translateY(-4px);
}

.product-miniature .thumbnail-top {
  background: #fff;
  overflow: hidden;
  padding-top: 50px;
  position: relative;
}

.product-miniature .thumbnail-top .thumbnail,
.product-miniature .product-thumbnail {
  align-items: center;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.product-miniature .thumbnail-top img,
.product-miniature .product-thumbnail img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .3s ease;
  width: 100%;
}

.product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.035);
}

.product-miniature .product-description {
  align-items: center;
  background: #fff;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto;
  justify-content: flex-start;
  min-height: 122px;
  padding: 16px 18px 18px;
  position: relative;
  width: 100%;
}

.product-miniature .product-title {
  margin: 0;
  min-height: 2.7em;
  text-align: center;
  width: 100%;
}

.product-miniature .product-title a {
  color: var(--mdr-ink);
  display: -webkit-box;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
}

.product-miniature .product-price-and-shipping {
  color: var(--mdr-navy);
  font-size: 18px;
  font-weight: 850;
  margin-top: 9px;
  text-align: center;
  width: 100%;
}

.product-miniature .regular-price {
  color: var(--mdr-muted);
  font-size: 14px;
}

.product-flags {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  left: 14px;
  pointer-events: none;
  right: 58px;
  top: 13px;
  width: auto !important;
}

.product-flags li.product-flag {
  align-items: center;
  background: var(--mdr-red);
  border-radius: 8px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  margin: 0;
  min-height: 0;
  padding: 7px 10px;
  text-transform: none;
  text-align: center;
  width: auto !important;
}

.product-flags li.product-flag.out_of_stock {
  background: var(--mdr-navy);
}

.highlighted-informations,
.product-miniature .highlighted-informations {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -8px 18px rgba(12, 38, 61, .05);
}

/* Confianza y servicio: información útil, integrada en el flujo de PrestaShop. */
#custom-text {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 44px 0 8px;
  padding: 0;
  text-align: left;
}

.mdr-home-benefits {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdr-benefit {
  background: #fff;
  border: 1px solid var(--mdr-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(12, 38, 61, .055);
  min-height: 134px;
  padding: 23px 21px 20px;
  position: relative;
  text-align: center;
}

.mdr-benefit::before {
  background: var(--mdr-red);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin: 0 auto 17px;
  width: 34px;
}

.mdr-benefit strong,
.mdr-benefit span,
.mdr-home-note strong,
.mdr-home-note span {
  display: block;
}

.mdr-benefit strong {
  color: var(--mdr-navy);
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.mdr-benefit span {
  color: var(--mdr-muted);
  font-size: 14px;
  line-height: 1.45;
}

.mdr-home-note {
  align-items: center;
  background: #eef5f8;
  border: 1px solid #d8e7ed;
  border-radius: 16px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 19px 22px;
}

.mdr-home-note strong {
  color: var(--mdr-navy);
  font-size: 16px;
  margin-bottom: 3px;
}

.mdr-home-note span {
  color: var(--mdr-muted);
  font-size: 14px;
  line-height: 1.45;
}

.mdr-home-note a {
  background: var(--mdr-navy);
  border-radius: 11px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 17px;
}

.mdr-home-note a:hover,
.mdr-home-note a:focus {
  background: var(--mdr-red);
  color: #fff;
}

/* El aviso antiguo de monociclos se reutiliza como llamada directa al SAT a
   domicilio. Se mantiene el enlace real del módulo, pero se sustituye el
   mensaje visible para que la portada promocione la reparación. */
.mdr-home-note > div > strong,
.mdr-home-note > div > span,
.mdr-home-note > a {
  font-size: 0;
}

.mdr-home-note > div {
  flex: 1 1 auto;
}

.mdr-home-note > div > strong::after {
  color: var(--mdr-navy);
  content: "Servicio t\00E9 cnico a domicilio";
  display: block;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.mdr-home-note > div > span::after {
  color: var(--mdr-muted);
  content: "Solicita una reparaci\00F3n y gestionamos la recogida y entrega de tu veh\00ED culo.";
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.mdr-home-note > a::after {
  content: "Solicitar reparaci\00F3n";
  font-size: 14px;
}

/* Sustituye visualmente el bloque antiguo por un anuncio de servicio técnico. */
.mdr-home-note { background: #102a43 url('../img/banners-final/sat-domicilio-banner.png') center / cover no-repeat; color: #fff; min-height: 190px; overflow: hidden; padding: 28px 34px; position: relative; }
.mdr-home-note::before { background: linear-gradient(90deg, rgba(12,38,61,.96), rgba(12,38,61,.72) 34%, rgba(12,38,61,0) 67%); content: ''; inset: 0; position: absolute; }
.mdr-home-note > div, .mdr-home-note > a { position: relative; z-index: 1; }
.mdr-home-note > div > strong::after { content: "Servicio técnico a domicilio"; color: #fff; }
.mdr-home-note > div > span::after { content: "Recogida, reparación y entrega de tu vehículo eléctrico."; color: rgba(255,255,255,.88); }
.mdr-home-note > a { background: var(--mdr-red); }

/* Banner ps_banner de transporte: se conserva su enlace, pero se actualiza la
   imagen sin texto incrustado para evitar errores de acentos y escalado. */
#index .banner { background: #edf7fc url('../img/banners-final/transporte-400-banner.png') center / cover no-repeat; border-radius: 18px; display: block; min-height: 213px; overflow: hidden; position: relative; width: 100%; }
#index .banner img { display: block; height: 213px; margin: 0; opacity: 0 !important; width: 100%; }
#index .banner::after { color: var(--mdr-navy); content: "Envío gratuito desde 400 €\A Para pedidos con entrega\A en España peninsular."; display: block; font-size: clamp(20px, 2.3vw, 34px); font-weight: 850; left: 6%; line-height: 1.18; max-width: 54%; position: absolute; top: 50%; transform: translateY(-50%); white-space: pre-line; }
html[lang^="en"] #index .banner::after { content: "Free shipping from €400\A For deliveries within\A mainland Spain."; }
html[lang^="pt"] #index .banner::after { content: "Envio gratuito a partir de 400 €\A Para entregas em\A Espanha peninsular."; }
html[lang^="fr"] #index .banner::after { content: "Livraison offerte dès 400 €\A Pour les livraisons en\A Espagne péninsulaire."; }

/* El antiguo aviso se retira: el anuncio SAT vive ahora en el carrusel. */
#index .mdr-home-note { display: none !important; }

#carousel .mdr-sat-carousel-figure { margin: 0; position: relative; }
#carousel .mdr-sat-carousel-figure img { display: block; width: 100%; }
#carousel .mdr-sat-carousel-copy { background: linear-gradient(90deg, rgba(12,38,61,.94), rgba(12,38,61,0) 78%); bottom: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; left: 0; padding: 34px 7%; position: absolute; right: 0; top: 0; }
#carousel .mdr-sat-carousel-copy strong { font-size: clamp(24px, 3vw, 44px); line-height: 1.1; }
#carousel .mdr-sat-carousel-copy small { font-size: clamp(14px, 1.5vw, 22px); margin: 10px 0 18px; }
#carousel .mdr-sat-carousel-copy b { align-self: flex-start; background: var(--mdr-red); border-radius: 9px; font-size: 15px; padding: 11px 17px; }

/* Ajuste final de la cabecera: todos los elementos quedan centrados en la
   franja azul y el menú usa texto normal, más legible. */
#header .header-nav > .container > .row > .hidden-sm-down,
#header .header-nav .right-nav,
#header .header-nav #contact-link,
#header .header-nav #_desktop_user_info,
#header .header-nav #_desktop_cart,
#header .header-nav #_desktop_language_selector,
#header .header-nav .user-info,
#header .header-nav .blockcart,
#header .header-nav .blockcart .header {
  align-items: center !important;
  align-self: center;
  display: flex;
  min-height: 48px;
}

#header .header-nav #contact-link a,
#header .header-nav #_desktop_user_info a,
#header .header-nav #_desktop_cart a,
#header .header-nav #_desktop_language_selector button {
  align-items: center;
  display: flex;
  line-height: 1.2;
  min-height: 48px;
}

#header .header-top a[data-depth="0"],
#header .top-menu a[data-depth="0"] {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none !important;
}

#header .header-nav > .container > .row,
#header .header-nav > .container > .row > .hidden-sm-down,
#header .header-nav .col-md-5,
#header .header-nav .right-nav,
#header .header-nav #contact-link,
#header .header-nav #_desktop_contact_link {
  align-items: center !important;
  display: flex !important;
  line-height: 1.2;
}

#header .header-nav #contact-link {
  height: 48px;
  white-space: nowrap;
}

/* Banner directo al SAT: la imagen no contiene texto para mantener tildes y
   traducciones nítidas en todos los idiomas. */
.mdr-service-banner { align-items: center; background: #102a43 url('../img/banners-final/sat-domicilio-banner.png') center / cover no-repeat; border-radius: 18px; box-shadow: 0 10px 28px rgba(12,38,61,.12); color: #fff; display: flex; min-height: 190px; margin-top: 14px; overflow: hidden; padding: 28px 34px; position: relative; text-decoration: none !important; }
.mdr-service-banner::before { background: linear-gradient(90deg, rgba(12,38,61,.96) 0%, rgba(12,38,61,.75) 34%, rgba(12,38,61,0) 67%); content: ''; inset: 0; position: absolute; }
.mdr-service-banner > span { max-width: 43%; position: relative; z-index: 1; }
.mdr-service-banner strong, .mdr-service-banner small, .mdr-service-banner b { display: block; }
.mdr-service-banner strong { font-size: 25px; line-height: 1.15; margin-bottom: 7px; }
.mdr-service-banner small { font-size: 15px; line-height: 1.45; margin-bottom: 16px; }
.mdr-service-banner b { background: var(--mdr-red); border-radius: 10px; display: inline-block; font-size: 14px; padding: 11px 16px; }
.mdr-service-banner:hover, .mdr-service-banner:focus { color: #fff; transform: translateY(-1px); }
.mdr-transport-banner { background: #fff url('../img/banners-final/transporte-400-banner.png') center / cover no-repeat; border-radius: 18px; min-height: 190px; }

/* Normalización final de fichas: funciona también en categorías y para
   productos añadidos posteriormente. */
.product-miniature .thumbnail-top:not(:has(.product-flags li)) {
  padding-top: 8px;
}

.product-miniature .thumbnail-top:not(:has(.product-flags li)) img {
  transform: translateY(-16px) scale(1.08);
}

.product-miniature .thumbnail-container:hover .thumbnail-top:not(:has(.product-flags li)) img {
  transform: translateY(-16px) scale(1.11);
}

.product-miniature .product-flags {
  align-items: center;
  flex-wrap: wrap !important;
  gap: 7px;
  max-width: calc(100% - 72px);
  overflow: visible;
  white-space: nowrap;
}

.product-miniature .product-flags li.product-flag {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}

/* Fichas compactas y consistentes en portada y categorías. */
.product-miniature .thumbnail-container { border-width: 2px; }
.product-miniature .thumbnail-top { height: 280px !important; padding-top: 42px !important; }
.product-miniature .thumbnail-top:not(:has(.product-flags li)) { padding-top: 16px !important; }
.product-miniature .thumbnail-top img,
.product-miniature .thumbnail-top:not(:has(.product-flags li)) img,
.product-miniature .thumbnail-container:hover .thumbnail-top:not(:has(.product-flags li)) img { transform: none !important; }
.product-miniature .product-flags li.product-flag.out_of_stock { flex-basis: 100%; margin-top: 2px; }

@media (max-width: 767px) {
  .product-miniature .thumbnail-top { height: 220px !important; padding-top: 38px !important; }
  .product-miniature .thumbnail-top:not(:has(.product-flags li)) { padding-top: 12px !important; }
}

/* Base homogénea para el contenido editorial de todas las fichas. El HTML
   original se conserva; solo se normaliza su lectura y jerarquía. */
.page-product #description,
.page-product #description *,
.page-product .product-description,
.page-product .product-description * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.page-product #description {
  color: var(--mdr-ink);
  font-size: 16px;
  line-height: 1.65;
}

.page-product #description p {
  margin: 0 0 1em;
}

.page-product #description h2,
.page-product #description h3,
.page-product #description h4 {
  color: var(--mdr-navy);
  font-weight: 800;
  line-height: 1.25;
  margin: 1.15em 0 .55em;
}

.page-product #description h2 { font-size: 24px; }
.page-product #description h3 { font-size: 20px; }
.page-product #description h4 { font-size: 17px; }

.page-product #description strong,
.page-product #description b {
  color: var(--mdr-navy);
  font-weight: 800;
}

.page-product #description table {
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
  width: 100%;
}

.page-product #description th,
.page-product #description td {
  border: 1px solid var(--mdr-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.page-product #description th {
  background: #eef5f8;
  color: var(--mdr-navy);
  font-weight: 800;
}

.blockreassurance_product {
  background: #f7fafb;
  border: 1px solid var(--mdr-line);
  border-radius: 15px;
  margin-top: 22px;
  overflow: hidden;
  padding: 4px 16px;
}

.blockreassurance_product > div {
  align-items: center;
  border-bottom: 1px solid var(--mdr-line);
  display: flex;
  gap: 12px;
  min-height: 62px;
  padding: 10px 0;
}

.blockreassurance_product > div:last-child {
  border-bottom: 0;
}

/* PrestaShop añade un div.clearfix técnico al final. No es un cuarto servicio. */
.blockreassurance_product > .clearfix {
  display: none;
}

.blockreassurance_product > div:nth-last-child(2) {
  border-bottom: 0;
}

.blockreassurance_product .item-product {
  flex: 0 0 38px;
  height: 38px;
  margin: 0;
  width: 38px;
}

.blockreassurance_product .item-product svg,
.blockreassurance_product .item-product img {
  height: 38px !important;
  width: 38px !important;
}

.blockreassurance_product .block-title {
  color: var(--mdr-navy) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

/* Ficha de producto */
.page-product #main {
  min-width: 0;
}

.page-product .product-container {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--mdr-line);
  border-radius: 22px;
  box-shadow: var(--mdr-shadow);
  margin: 0;
  padding: 28px;
}

.page-product .product-cover,
.page-product .images-container,
.page-product .product-cover img {
  max-width: 100%;
}

.page-product .product-cover img {
  border-radius: 16px;
  box-shadow: none;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.page-product .product-cover .layer {
  border-radius: 16px;
}

.page-product h1,
.page-product .h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-product .current-price {
  color: var(--mdr-red);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 900;
}

.page-product .current-price .discount,
.page-product .product-discount .regular-price {
  font-size: 14px;
}

.page-product .product-description,
.page-product .product-description p {
  color: #354b5f;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.page-product .product-description li,
.page-product .product-description td,
.page-product .product-description th {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.page-product .product-description p,
.page-product .product-description ul,
.page-product .product-description ol {
  margin-bottom: 1rem;
}

.page-product .product-description strong,
.page-product .product-description b {
  color: var(--mdr-navy);
  font-weight: 800;
}

.page-product .product-description h2,
.page-product .product-description h3,
.page-product .product-description h4 {
  color: var(--mdr-navy);
  font-weight: 800;
  line-height: 1.25;
  margin: 1.35rem 0 .65rem;
}

.page-product .product-description h2 { font-size: 1.45rem; }
.page-product .product-description h3 { font-size: 1.25rem; }
.page-product .product-description h4 { font-size: 1.1rem; }

.page-product .product-variants > .product-variants-item {
  margin: 22px 0;
}

.page-product .product-add-to-cart {
  border-top: 1px solid var(--mdr-line);
  margin-top: 24px;
  padding-top: 24px;
}

.page-product .tabs {
  background: #fff;
  border: 1px solid var(--mdr-line);
  border-radius: var(--mdr-radius);
  box-shadow: var(--mdr-shadow);
  margin-top: 28px;
  padding: 24px;
}

.page-product .tabs .nav-tabs {
  border-bottom: 1px solid var(--mdr-line);
}

.page-product .tabs .nav-tabs .nav-link {
  border: 0;
  color: var(--mdr-muted);
  font-weight: 750;
  text-transform: none;
}

.page-product .tabs .nav-tabs .nav-link.active {
  border-bottom: 3px solid var(--mdr-red);
  color: var(--mdr-navy);
}

.page-product .product-features > dl.data-sheet dd.value,
.page-product .product-features > dl.data-sheet dt.name {
  background: #f4f7f9;
  border-radius: 8px;
  color: var(--mdr-ink);
  margin-bottom: 4px;
  min-height: 46px;
  padding: 12px 14px;
  text-transform: none;
}

.page-product .product-quantity .qty {
  display: inline-flex;
  flex: 0 0 90px;
  height: 56px;
  margin: 0;
  width: 90px;
}

.page-product .product-quantity .bootstrap-touchspin {
  align-items: stretch;
  display: grid;
  float: none;
  grid-template-columns: 56px 34px;
  grid-template-rows: 56px;
  height: 56px;
  overflow: hidden;
  width: 90px;
}

.page-product .product-quantity #quantity_wanted,
.page-product .product-quantity .bootstrap-touchspin input.form-control,
.page-product .product-quantity .bootstrap-touchspin input.input-group {
  border: 1px solid #cbd7e1;
  border-radius: 10px 0 0 10px;
  box-sizing: border-box;
  float: none;
  grid-column: 1;
  grid-row: 1;
  height: 56px;
  margin: 0;
  padding: 0 10px;
  text-align: center;
  width: 56px;
}

.page-product .product-quantity .input-group-btn-vertical {
  display: grid;
  float: none;
  grid-column: 2;
  grid-row: 1;
  grid-template-rows: repeat(2, 28px);
  height: 56px;
  margin: 0;
  width: 34px;
}

.page-product .product-quantity .input-group-btn-vertical .btn {
  align-items: center;
  border: 1px solid #cbd7e1;
  border-left: 0;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  height: 28px;
  justify-content: center;
  margin: 0;
  min-height: 28px;
  padding: 0;
  width: 34px;
}

.page-product .product-quantity .input-group-btn-vertical .bootstrap-touchspin-up {
  border-radius: 0 10px 0 0;
}

.page-product .product-quantity .input-group-btn-vertical .bootstrap-touchspin-down {
  border-radius: 0 0 10px 0;
  border-top: 0;
}

.page-product .product-quantity .input-group-btn-vertical i {
  font-size: 15px;
  left: auto;
  line-height: 1;
  position: static;
  top: auto;
}

/* Tabla de características común para patinetes y monociclos. Neutraliza las
   anchuras y colores incrustados en descripciones antiguas. */
.page-product .tabs table,
.page-product .product-description table,
.page-product table.tablepress,
.page-product table.mdr-vehicle-specs {
  background: #fff !important;
  border: 1px solid var(--mdr-line) !important;
  border-collapse: separate !important;
  border-radius: 14px;
  border-spacing: 0 !important;
  color: var(--mdr-ink) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  height: auto !important;
  margin: 0 auto 1.25rem !important;
  max-width: 760px;
  overflow: hidden;
  table-layout: fixed;
  width: 100% !important;
}

.page-product .tabs table tr,
.page-product .product-description table tr,
.page-product table.tablepress tr,
.page-product table.mdr-vehicle-specs tr {
  background: #fff !important;
  border: 0 !important;
}

.page-product .tabs table td,
.page-product .tabs table th,
.page-product .product-description table td,
.page-product .product-description table th,
.page-product table.tablepress td,
.page-product table.tablepress th,
.page-product table.mdr-vehicle-specs td,
.page-product table.mdr-vehicle-specs th {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mdr-line) !important;
  float: none !important;
  overflow-wrap: anywhere;
  padding: 13px 15px !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
  width: 50% !important;
}

.page-product .tabs table tr:last-child td,
.page-product .tabs table tr:last-child th,
.page-product .product-description table tr:last-child td,
.page-product .product-description table tr:last-child th,
.page-product table.tablepress tr:last-child td,
.page-product table.tablepress tr:last-child th,
.page-product table.mdr-vehicle-specs tr:last-child td,
.page-product table.mdr-vehicle-specs tr:last-child th {
  border-bottom: 0 !important;
}

.page-product .tabs table td:first-child,
.page-product .tabs table th:first-child,
.page-product .product-description table td:first-child,
.page-product .product-description table th:first-child,
.page-product table.tablepress td:first-child,
.page-product table.tablepress th:first-child,
.page-product table.mdr-vehicle-specs td:first-child,
.page-product table.mdr-vehicle-specs th:first-child {
  background: #f4f7f9 !important;
  color: var(--mdr-navy) !important;
  font-weight: 800 !important;
}

/* Carrito y compra */
.cart-grid-body,
.cart-grid-right .card,
.checkout-step {
  background: #fff;
}

.checkout-step {
  margin-bottom: 16px;
  padding: 22px;
}

.checkout-step .step-title {
  color: var(--mdr-navy);
  font-weight: 850;
  text-transform: none;
}

/* Pie */
#footer {
  background: var(--mdr-navy);
  color: rgba(255, 255, 255, .78);
  margin-top: 58px;
  padding-top: 44px;
}

#footer .footer-container {
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0 0 32px;
}

#footer .h3,
#footer .h4,
#footer .h3 a,
#footer .h4 a,
#footer .block-contact-title {
  color: #fff;
  font-weight: 800;
  text-transform: none;
}

#footer a,
#footer .block-contact {
  color: rgba(255, 255, 255, .78);
}

#footer a:hover,
#footer a:focus {
  color: #fff;
}

/* El módulo escribe colores negros en línea; en el pie oscuro deben conservar
   el mismo contraste que el resto de la información de servicio. */
#footer .blockreassurance .block-title {
  color: #fff !important;
}

#footer .blockreassurance p {
  color: rgba(255, 255, 255, .78) !important;
}

#footer .blockreassurance > .row > [class*="col-"] {
  text-align: center;
}

#footer .blockreassurance .block-icon {
  display: flex;
  justify-content: center;
}

@media (min-width: 1200px) {
  #header .header-top > .container > .row {
    flex-wrap: nowrap;
  }

  #header #_desktop_logo {
    align-items: center;
    display: flex;
    flex: 0 0 240px;
    max-width: 240px;
  }

  #header .header-top-right {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 20px;
    justify-content: space-between;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  #header #_desktop_top_menu {
    flex: 1 1 auto;
    min-width: 0;
  }

  #header .header-top-right .search-widgets {
    flex: 0 0 280px;
    margin: 0;
    width: 280px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #header #_desktop_logo {
    flex: 0 0 190px;
    max-width: 190px;
  }

  #header #_desktop_logo .logo {
    max-width: 175px;
  }

  #header .header-top-right {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  #header .header-top a[data-depth="0"] {
    font-size: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }

  #header .header-top-right .search-widgets {
    flex: 0 0 210px;
    margin: 0;
    width: 210px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .container {
    width: min(100% - 24px, 960px);
  }

  #products .products,
  .featured-products .products,
  .product-accessories .products,
  .product-miniature-list-row .products {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-product .product-container {
    padding: 22px;
  }

  .mdr-home-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* Móvil: prioridad absoluta para compra con una mano y sin desbordamientos. */
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 24px);
  }

  #wrapper {
    padding-top: 16px;
  }

  #custom-text {
    margin-top: 30px;
  }

  .mdr-home-benefits {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .mdr-benefit {
    min-height: 0;
    padding: 17px;
  }

  .mdr-benefit::before {
    margin-bottom: 12px;
  }

  .mdr-home-note {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .mdr-home-note a {
    text-align: center;
    width: 100%;
  }

  .mdr-service-banner { min-height: 230px; padding: 22px; }
  .mdr-service-banner > span { max-width: 72%; }
  .mdr-service-banner strong { font-size: 21px; }

  #category #left-column {
    display: none !important;
  }

  #category #content-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  #category .block-category {
    height: auto;
    min-height: 0;
    padding: 20px;
  }

  #category .block-category h1 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  #category #category-description,
  #category #category-description p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  #subcategories {
    height: auto;
    margin-top: 14px;
    padding: 18px 14px;
  }

  #subcategories .subcategory-heading {
    font-size: 21px;
    margin: 0 0 14px;
  }

  #subcategories .subcategories-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    margin: 0;
    width: 100%;
  }

  #subcategories .subcategories-list > li {
    background: #fff;
    border: 1px solid var(--mdr-line);
    border-radius: 14px;
    margin: 0;
    min-width: 0;
    padding: 10px;
    width: auto;
  }

  #subcategories .subcategory-image {
    margin: 0 0 7px;
    padding: 0;
  }

  #subcategories .subcategory-image a {
    align-items: center;
    aspect-ratio: 1 / 1;
    border: 0;
    display: flex;
    justify-content: center;
    padding: 6px;
  }

  #subcategories .subcategory-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
  }

  #subcategories .subcategory-name {
    color: var(--mdr-ink);
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
  }

  #subcategories .cat_desc {
    display: none;
  }

  #header .header-nav {
    background: #fff;
    border-bottom: 1px solid var(--mdr-line);
    box-shadow: 0 6px 18px rgba(12, 38, 61, .06);
    height: auto !important;
    max-height: none !important;
    min-height: 58px;
    padding: 8px 0;
  }

  #header .header-nav > .container,
  #header .header-nav > .container > .row {
    height: auto !important;
    min-height: 52px;
  }

  #header .header-nav .mobile {
    align-items: center;
    display: grid !important;
    grid-template-areas: "menu logo user cart";
    column-gap: 6px;
    grid-template-columns: 44px minmax(0, 1fr) 48px 68px;
    height: 52px;
    min-height: 52px;
    position: relative;
    width: 100%;
  }

  #header .header-nav .mobile #menu-icon,
  #header .header-nav .mobile #_mobile_cart,
  #header .header-nav .mobile #_mobile_user_info {
    margin: 0;
    position: static;
    transform: none;
  }

  #header .header-nav .mobile #menu-icon {
    grid-area: menu;
  }

  #header .header-nav .mobile #_mobile_user_info {
    grid-area: user;
    justify-self: center;
    width: 48px;
  }

  #header .header-nav .mobile #_mobile_cart {
    grid-area: cart;
    justify-self: end;
    width: 68px;
  }

  #header .header-nav .mobile #_mobile_cart .header,
  #header .header-nav .mobile #_mobile_user_info .user-info {
    align-items: center;
    display: flex;
    height: 42px;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  #header .header-nav .mobile #_mobile_user_info .user-info,
  #header .header-nav .mobile #_mobile_cart .blockcart {
    background: #f1f5f8;
    border: 1px solid var(--mdr-line);
    border-radius: 12px;
    height: 44px;
    margin: 0 !important;
    padding: 0;
  }

  #header .header-nav .mobile #_mobile_user_info a {
    align-items: center;
    display: flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 46px;
  }

  #header .header-nav .mobile #_mobile_cart .header {
    gap: 3px;
    height: 42px;
    justify-content: center;
    white-space: nowrap;
  }

  #header .header-nav .mobile #_mobile_cart .blockcart {
    align-items: center;
    display: flex;
    width: 68px;
  }

  #header .header-nav .mobile #_mobile_user_info .material-icons,
  #header .header-nav .mobile #_mobile_cart .material-icons {
    font-size: 25px;
    line-height: 1;
  }

  #header .header-nav .mobile #_mobile_cart .cart-products-count {
    font-size: 13px;
    line-height: 1;
    margin: 0;
  }

  #header .header-nav .mobile .material-icons,
  #header .header-nav .mobile .cart-products-count {
    color: var(--mdr-navy);
  }

  #header .header-nav .top-logo {
    align-items: center;
    display: flex !important;
    grid-area: logo;
    height: 52px;
    justify-content: center;
    max-width: none;
    min-height: 52px;
    overflow: visible;
    position: static;
    transform: none;
    z-index: 2;
  }

  #header .header-nav .top-logo > a,
  #header .header-nav .top-logo > h1,
  #header .header-nav .top-logo > h1 > a {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: 0;
  }

  #header .header-nav .top-logo img,
  #header .header-nav .logo {
    height: auto;
    max-height: 44px;
    max-width: min(190px, 100%);
    width: auto;
  }

  #header .header-top {
    clear: both;
    padding: 10px 0 12px;
    position: relative;
    z-index: 1;
  }

  #header .header-top > .container > .row {
    display: block;
  }

  #header .header-top .search-widget {
    float: none;
    margin: 0;
    width: 100%;
  }

  #header .header-top .search-widget form input {
    min-height: 48px;
    width: 100%;
  }

  #mobile_top_menu_wrapper {
    background: #fff;
    border: 0;
    box-shadow: var(--mdr-shadow);
    padding: 18px;
  }

  #mobile_top_menu_wrapper .top-menu a[data-depth="0"] {
    border-bottom: 1px solid var(--mdr-line);
    color: var(--mdr-ink);
    font-size: 17px;
    padding: 15px 4px;
    text-transform: none;
  }

  #carousel {
    background: transparent !important;
    border-radius: 14px;
    margin-bottom: 30px;
    padding-bottom: 0 !important;
  }

  #carousel .carousel-inner,
  #carousel .carousel-item,
  #carousel .carousel-item img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .products-section-title {
    font-size: 1.55rem;
    margin: 30px 0 18px;
  }

  #products .products,
  .featured-products .products,
  .product-accessories .products,
  .product-miniature-list-row .products {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .product-miniature .thumbnail-container {
    border-radius: 14px;
    min-height: 0;
    width: 100% !important;
  }

  .product-miniature .thumbnail-top img,
  .product-miniature .product-thumbnail img {
    padding: 8px;
  }

  .product-miniature .product-description {
    padding: 12px 11px 14px;
  }

  .product-miniature .product-title {
    min-height: 3.75em;
  }

  .product-miniature .product-title a {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.28;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-miniature .product-price-and-shipping {
    font-size: 16px;
  }

  .product-miniature .regular-price {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
  }

  .product-flags {
    left: 7px;
    right: 7px;
    top: 7px;
  }

  .product-flags li.product-flag {
    font-size: 10px;
    padding: 5px 7px;
  }

  .highlighted-informations,
  .product-miniature .highlighted-informations {
    display: none;
  }

  .page-product .breadcrumb {
    white-space: normal;
  }

  .page-product .product-container {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 14px;
  }

  .page-product .product-container > .col-md-6,
  .page-product .product-container > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .page-product .product-cover img {
    max-height: 58vh;
    width: 100%;
  }

  .page-product h1,
  .page-product .h1 {
    font-size: 1.85rem;
    margin-top: 18px;
    overflow-wrap: anywhere;
  }

  .page-product .product-description,
  .page-product .product-description p {
    font-size: 15px;
  }

  .page-product .product-add-to-cart,
  .page-product .product-quantity,
  .page-product .product-quantity .add,
  .page-product .product-quantity .add-to-cart {
    width: 100%;
  }

  .page-product .product-quantity {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-product .tabs {
    border-radius: 16px;
    margin-top: 18px;
    overflow: hidden;
    padding: 16px;
  }

  .page-product .tabs .nav-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-product .product-features > dl.data-sheet dd.value,
  .page-product .product-features > dl.data-sheet dt.name {
    float: none;
    margin: 0 0 4px;
    width: 100%;
  }

  .page-product .tabs table,
  .page-product .product-description table,
  .page-product table.tablepress,
  .page-product table.mdr-vehicle-specs {
    font-size: 14px !important;
    max-width: 100%;
  }

  .page-product .tabs table td,
  .page-product .tabs table th,
  .page-product .product-description table td,
  .page-product .product-description table th,
  .page-product table.tablepress td,
  .page-product table.tablepress th,
  .page-product table.mdr-vehicle-specs td,
  .page-product table.mdr-vehicle-specs th {
    line-height: 1.35;
    padding: 11px 10px !important;
  }

  .checkout-step,
  .cart-grid-body,
  .cart-grid-right .card {
    border-radius: 14px;
    padding: 16px;
  }

  #footer {
    margin-top: 38px;
    padding-top: 26px;
  }

  #footer .links .title {
    border-bottom-color: rgba(255, 255, 255, .16);
  }
}

/* Teléfono: una ficha por fila, horizontal y proporcionada. */
@media (max-width: 575px) {
  #products .products,
  .featured-products .products,
  .product-accessories .products,
  .product-miniature-list-row .products {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
  }

  #products .js-product,
  .featured-products .js-product,
  .product-accessories .js-product,
  .product-miniature-list-row .js-product {
    padding: 0;
    width: 100% !important;
  }

  #products .product-miniature,
  .featured-products .product-miniature,
  .product-accessories .product-miniature,
  .product-miniature-list-row .product-miniature {
    width: 100% !important;
  }

  .product-miniature .thumbnail-container {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    height: 172px;
    min-height: 172px;
  }

  .product-miniature .thumbnail-top {
    height: 172px;
    min-width: 0;
    padding-top: 0;
  }

  .product-miniature .thumbnail-top .thumbnail,
  .product-miniature .product-thumbnail {
    aspect-ratio: auto;
    height: 100%;
  }

  .product-miniature .thumbnail-top img,
  .product-miniature .product-thumbnail img {
    height: 100%;
    padding: 40px 10px 10px;
    width: 100%;
  }

  .product-miniature .product-description {
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    padding: 20px 16px 17px;
  }

  .product-miniature .product-title {
    margin-bottom: 10px;
    min-height: 0;
    text-align: center;
  }

  .product-miniature .product-title a {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }

  .product-miniature .product-price-and-shipping {
    font-size: 22px;
    line-height: 1.15;
    margin-top: 0;
    text-align: center;
  }

  .product-miniature .regular-price {
    display: block;
    font-size: 13px;
    margin: 0 0 2px;
  }

  .product-miniature .product-price-and-shipping .price {
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  .product-miniature .wishlist-button-add {
    right: 8px;
    top: 8px;
  }

  .product-flags {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    left: 8px;
    max-width: none;
    right: 64px;
    top: 8px;
    width: auto !important;
  }

  .product-flags li.product-flag {
    flex: 0 1 auto;
    font-size: 10px;
    max-width: none;
    overflow: hidden;
    padding: 5px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-flags li.product-flag.on-sale {
    margin-top: 0 !important;
    width: auto !important;
  }
}

/* Ajuste final de la zona de compra, confianza y pie. Mantiene una retícula
   común para que cantidad, acción, estado e información no "bailen". */
.page-product .product-add-to-cart {
  clear: both;
}

.page-product .product-add-to-cart .control-label {
  display: block;
  margin: 0 0 8px;
}

.page-product .product-quantity {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 90px minmax(220px, 1fr) 56px;
  margin: 0;
  max-width: 620px;
  width: 100%;
}

.page-product .product-quantity .qty,
.page-product .product-quantity .add {
  align-items: stretch;
  display: flex;
  height: 56px;
  margin: 0;
  width: auto;
}

.page-product .product-quantity .add-to-cart {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  height: 56px;
  justify-content: center;
  margin: 0;
  min-height: 56px;
  padding: 0 24px;
  width: 100%;
}

.page-product .product-quantity .add-to-cart .material-icons {
  line-height: 1;
  margin: 0;
}

.page-product .product-quantity .wishlist-button-add {
  align-items: center;
  align-self: stretch;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  margin: 0 !important;
  min-width: 56px;
  position: static !important;
  transform: none !important;
  width: 56px;
}

.page-product #product-availability {
  align-items: center;
  display: flex;
  gap: 10px;
  line-height: 1.35;
  margin: 12px 0 0;
  min-height: 28px;
}

.page-product #product-availability .material-icons,
.page-product #product-availability i {
  flex: 0 0 24px;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.page-product .social-sharing {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.page-product .social-sharing span {
  margin: 0;
}

.page-product .social-sharing ul {
  align-items: center;
  display: flex;
  gap: 16px;
  margin: 0;
}

.page-product .blockreassurance_product {
  background: #f8fafc;
  border: 1px solid var(--mdr-line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(12, 38, 61, .06);
  display: grid;
  margin-top: 30px;
  overflow: hidden;
  padding: 0 22px;
  width: 100%;
}

.page-product .blockreassurance_product > div:not(.clearfix) {
  align-items: center;
  border-bottom: 1px solid var(--mdr-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 46px minmax(190px, 220px) minmax(0, 1fr);
  min-height: 82px;
  padding: 16px 0;
}

.page-product .blockreassurance_product > div:not(.clearfix):last-of-type {
  border-bottom: 0;
}

.page-product .blockreassurance_product .item-product {
  align-items: center;
  display: flex;
  height: 46px;
  justify-content: center;
  margin: 0;
  width: 46px;
}

.page-product .blockreassurance_product .item-product img,
.page-product .blockreassurance_product .item-product svg {
  display: block;
  height: 40px;
  margin: 0;
  max-width: 40px;
  object-fit: contain;
  width: 40px;
}

.page-product .blockreassurance_product .block-title,
.page-product .blockreassurance_product p {
  align-self: center;
  line-height: 1.35;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

.page-product .blockreassurance_product .block-title {
  color: var(--mdr-navy) !important;
  font-size: 16px;
  font-weight: 850;
}

.page-product .blockreassurance_product p:not(.block-title) {
  color: var(--mdr-ink) !important;
  font-size: 15px;
  font-weight: 500;
}

.page-product .blockreassurance_product p.block-title {
  grid-column: 2 / 4;
}

/* Pie más limpio: columnas proporcionadas, títulos alineados y módulos con
   el mismo ritmo vertical. */
#footer .footer-container > .container > .row {
  margin-left: 0;
  margin-right: 0;
}

#footer .footer-container > .container > .row:first-child {
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  padding-top: 30px;
}

#footer .footer-container > .container > .row:first-child > [class*="col-"] {
  float: none;
  margin: 0;
  max-width: none;
  padding: 0;
  width: auto;
}

#footer .footer-container .wrapper,
#footer .footer-container .links,
#footer .footer-container .block-contact {
  margin: 0;
}

#footer .footer-container .h3,
#footer .footer-container .h4,
#footer .footer-container .block-contact-title {
  line-height: 1.25;
  margin: 0 0 14px;
}

#footer .footer-container li,
#footer .footer-container .block-contact,
#footer .footer-container .block-contact p {
  line-height: 1.55;
}

#footer .block_newsletter {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  margin-bottom: 30px;
  padding: 22px 24px;
}

#footer .block_newsletter p,
#footer .block_newsletter label,
#footer .block_newsletter .col-xs-12 {
  color: rgba(255, 255, 255, .82);
}

#footer .block_newsletter form .input-wrapper,
#footer .block_newsletter form input[type="email"] {
  min-height: 48px;
}

#footer .block_newsletter form .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
}

@media (max-width: 991px) {
  #footer .footer-container > .container > .row:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #footer .footer-container > .container > .row:first-child > .block-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .page-product .product-quantity,
  .page-product .product-quantity .add,
  .page-product .product-quantity .add-to-cart {
    width: auto;
  }

  .page-product .product-quantity {
    grid-template-columns: 90px minmax(0, 1fr) 52px;
    max-width: none;
  }

  .page-product .product-quantity .wishlist-button-add {
    height: 56px;
    min-width: 52px;
    width: 52px;
  }

  .page-product .product-quantity .add-to-cart {
    font-size: 15px;
    padding: 0 12px;
  }

  .page-product .blockreassurance_product {
    padding: 0 16px;
  }

  .page-product .blockreassurance_product > div:not(.clearfix) {
    gap: 5px 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 16px 0;
  }

  .page-product .blockreassurance_product .item-product {
    grid-row: 1 / 3;
    height: 44px;
    width: 44px;
  }

  .page-product .blockreassurance_product .block-title,
  .page-product .blockreassurance_product p:not(.block-title),
  .page-product .blockreassurance_product p.block-title {
    grid-column: 2;
  }

  .page-product .blockreassurance_product .block-title {
    font-size: 15px;
  }

  .page-product .blockreassurance_product p:not(.block-title) {
    font-size: 14px;
  }

  #footer .footer-container > .container > .row:first-child {
    display: block;
    padding-top: 14px;
  }

  #footer .footer-container > .container > .row:first-child > [class*="col-"] {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  #footer .footer-container .links .title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0;
    min-height: 52px;
    padding: 12px 4px;
  }

  #footer .footer-container .links ul {
    background: transparent;
    padding: 0 0 12px;
  }

  #footer .footer-container .links ul > li {
    background: transparent;
    border: 0;
    padding: 7px 4px;
  }

  #footer .footer-container .links ul > li a {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
  }

  #footer .block_newsletter {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .page-product .product-quantity {
    gap: 8px;
    grid-template-columns: 82px minmax(0, 1fr) 48px;
  }

  .page-product .product-quantity .qty,
  .page-product .product-quantity .bootstrap-touchspin {
    width: 82px;
  }

  .page-product .product-quantity .bootstrap-touchspin {
    grid-template-columns: 50px 32px;
  }

  .page-product .product-quantity #quantity_wanted,
  .page-product .product-quantity .bootstrap-touchspin input.form-control,
  .page-product .product-quantity .bootstrap-touchspin input.input-group {
    width: 50px;
  }

  .page-product .product-quantity .input-group-btn-vertical,
  .page-product .product-quantity .input-group-btn-vertical .btn {
    width: 32px;
  }

  .page-product .product-quantity .wishlist-button-add {
    min-width: 48px;
    width: 48px;
  }

  .page-product .product-quantity .add-to-cart {
    font-size: 14px;
    gap: 6px;
    padding: 0 8px;
  }

  #footer .block_newsletter form .row,
  #footer .block_newsletter form .input-wrapper {
    width: 100%;
  }
}

@media (max-width: 389px) {
  #products .products,
  .featured-products .products,
  .product-accessories .products,
  .product-miniature-list-row .products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Tipografía única para que los módulos heredados no mezclen familias. */
body,
#header,
#header *,
#wrapper,
#wrapper *,
#footer,
#footer * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#header .material-icons,
#wrapper .material-icons,
#footer .material-icons {
  font-family: "Material Icons" !important;
}

/* Selector de idioma siempre visible, también cuando el widget de PrestaShop
   no está configurado en el hook de navegación. */
.mdr-desktop-language {
  align-items: center;
  display: flex;
  gap: 5px;
  margin: 0 8px 0 0;
  white-space: nowrap;
}

.mdr-desktop-language .mdr-language-label {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
}

.mdr-desktop-language a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 7px;
  color: #fff !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  min-width: 30px;
  padding: 0 6px;
}

.mdr-desktop-language a:hover,
.mdr-desktop-language a:focus {
  background: rgba(255, 255, 255, .16);
  opacity: 1 !important;
}

.mdr-mobile-language {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--mdr-line);
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px -16px -8px;
  padding: 8px 16px;
}

.mdr-mobile-language a {
  border: 1px solid var(--mdr-line);
  border-radius: 7px;
  color: var(--mdr-navy) !important;
  font-size: 13px;
  font-weight: 800;
  min-width: 38px;
  padding: 4px 9px;
  text-align: center;
}

@media (min-width: 768px) {
  .mdr-mobile-language { display: none; }
  .product-miniature .product-description {
    justify-content: flex-start;
    padding-top: 12px;
  }
  .product-miniature .product-title {
    min-height: 42px;
  }
  .product-miniature .product-price-and-shipping {
    margin-top: 2px;
  }
}

/* Cabecera móvil final: logo siempre visible, idiomas fuera del menú y
   carrusel táctil con margen lateral. */
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: hidden !important; }
  #header .header-nav > .container,
  #header .header-nav > .container > .row { margin: 0 !important; max-width: 100% !important; width: 100% !important; }

  #header .header-nav .mobile {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap;
    height: auto !important;
    min-height: 88px !important;
    overflow: visible !important;
    padding: 0 8px;
    width: 100% !important;
  }

  #header .header-nav .mobile #menu-icon { flex: 0 0 40px; }
  #header .header-nav .mobile #_mobile_logo,
  #header .header-nav .mobile .top-logo { flex: 1 1 auto; min-width: 0; }
  #header .header-nav .mobile #_mobile_user_info { flex: 0 0 42px; }
  #header .header-nav .mobile #_mobile_cart { flex: 0 0 64px; }

  #header .header-nav .mobile #_mobile_logo {
    align-items: center;
    display: flex !important;
    height: 52px;
    justify-content: center;
    min-width: 0;
    overflow: visible;
  }

  #header .header-nav .mobile #_mobile_logo::before {
    background: url('/img/madrid-rueda-logo-1649098943.jpg') center / contain no-repeat;
    content: '';
    display: block;
    height: 42px;
    width: min(190px, 100%);
  }

  #header .header-nav .mobile .mdr-mobile-language {
    align-items: center;
    display: flex !important;
    flex: 0 0 100%;
    justify-content: center;
    min-height: 36px;
    position: static !important;
    width: 100%;
  }

  #index #carousel {
    border-radius: 14px;
    margin-left: 12px;
    margin-right: 12px;
    overflow: hidden;
    touch-action: pan-y;
  }

  #index #carousel .direction { display: none !important; }
  #index #carousel .carousel-control { display: none !important; }
  #index #carousel .carousel-inner { overflow: hidden; }

  /* Restablece una única cabecera móvil, sin duplicados ni anchos heredados. */
  #header .header-nav { min-height: 58px !important; padding: 0 !important; }
  #header .header-nav .mobile {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px 64px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 8px !important;
    position: relative;
    width: 100% !important;
  }
  #header .header-nav .mobile #menu-icon { grid-column: 1; grid-row: 1; }
  #header .header-nav .mobile #_mobile_logo,
  #header .header-nav .mobile .top-logo { grid-column: 2; grid-row: 1; min-width: 0; }
  #header .header-nav .mobile #_mobile_user_info { grid-column: 3; grid-row: 1; }
  #header .header-nav .mobile #_mobile_cart { grid-column: 4; grid-row: 1; }
  #header .header-nav .mobile #_mobile_logo > *,
  #header .header-nav .mobile .top-logo > * { display: none !important; }
  #header .header-nav .mobile #_mobile_logo::before {
    background: url('/img/madrid-rueda-logo-1649098943.jpg') center / contain no-repeat;
    content: '';
    display: block;
    height: 42px;
    margin: 0 auto;
    width: min(190px, 100%);
  }
  #header .header-nav .mobile .mdr-mobile-language {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--mdr-line);
    display: flex !important;
    gap: 8px;
    height: 42px;
    justify-content: center;
    left: 0;
    padding: 4px 8px;
    position: absolute !important;
    right: 0;
    top: 58px;
    width: 100%;
    z-index: 10;
  }

  #index #carousel,
  #index #carousel .carousel-inner,
  #index #carousel .carousel-item,
  #index #carousel .carousel-item > a,
  #index #carousel .carousel-item figure {
    display: block;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
  }
  #index #carousel .carousel-item img { display: block; height: auto !important; max-width: 100%; width: 100% !important; }

  /* Corrección estructural final para móvil. El carrusel debe ocultar todas
     las diapositivas salvo la activa; de lo contrario aparecen apiladas. */
  #header .header-nav { height: 104px !important; min-height: 104px !important; overflow: visible !important; }
  #header .header-nav > .container,
  #header .header-nav > .container > .row { height: 104px !important; }
  #header .header-nav .mobile {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px 64px !important;
    grid-template-rows: 62px 42px !important;
    height: 104px !important;
    min-height: 104px !important;
    padding: 0 8px !important;
    width: 100% !important;
  }
  #header .header-nav .mobile #menu-icon,
  #header .header-nav .mobile #_mobile_logo,
  #header .header-nav .mobile #_mobile_user_info,
  #header .header-nav .mobile #_mobile_cart {
    align-items: center !important;
    display: flex !important;
    float: none !important;
    height: 62px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 0 !important;
    position: static !important;
  }
  #header .header-nav .mobile #menu-icon { grid-column: 1; grid-row: 1; }
  #header .header-nav .mobile #_mobile_logo {
    background: url('/img/madrid-rueda-logo-1649098943.jpg') center / contain no-repeat !important;
    grid-column: 2; grid-row: 1;
  }
  #header .header-nav .mobile #_mobile_logo::before { display: none !important; }
  #header .header-nav .mobile #_mobile_logo > * { display: none !important; }
  #header .header-nav .mobile #_mobile_user_info { grid-column: 3; grid-row: 1; }
  #header .header-nav .mobile #_mobile_cart { grid-column: 4; grid-row: 1; }
  #header .header-nav .mobile .mdr-mobile-language {
    background: #fff !important;
    border-top: 1px solid var(--mdr-line) !important;
    display: flex !important;
    gap: 8px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 42px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    position: static !important;
    width: 100% !important;
  }
  #header .header-top { display: block !important; }
  #header .header-top #_desktop_logo,
  #header .header-top #_desktop_top_menu { display: none !important; }
  #header .header-top .header-top-right {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
  }
  #header .header-top #search_widget {
    display: block !important;
    margin: 12px 12px 14px !important;
    width: auto !important;
  }
  #header .header-top #search_widget form { width: 100% !important; }
  #index #carousel .carousel-inner { display: block !important; position: relative !important; }
  #index #carousel .carousel-item { display: none !important; position: relative !important; }
  #index #carousel .carousel-item.active { display: block !important; }
  #header .header-nav > .container > .row > .hidden-sm-down {
    display: none !important;
  }
  #header .header-nav .mobile {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  #index #carousel {
    left: 0 !important;
    right: auto !important;
  }
}

/* Acabado definitivo de la cabecera móvil: controles independientes,
   logo proporcional y una única línea continua bajo los idiomas. */
@media (max-width: 767px) {
  #header .header-nav {
    border-bottom: 0 !important;
  }

  #header .header-nav .mobile {
    column-gap: 6px !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px 62px !important;
  }

  #header .header-nav .mobile #menu-icon {
    align-self: center !important;
    background: #f1f5f8 !important;
    border: 1px solid var(--mdr-line) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    height: 44px !important;
    width: 44px !important;
  }

  #header .header-nav .mobile #menu-icon .material-icons {
    align-items: center !important;
    color: var(--mdr-navy) !important;
    display: flex !important;
    height: 42px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    width: 42px !important;
  }

  #header .header-nav .mobile #_mobile_logo {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  #header .header-nav .mobile #_mobile_user_info {
    width: 44px !important;
  }

  #header .header-nav .mobile #_mobile_cart {
    width: 62px !important;
  }

  #header .header-nav .mobile #_mobile_user_info .user-info {
    width: 44px !important;
  }

  #header .header-nav .mobile #_mobile_user_info a {
    width: 42px !important;
  }

  #header .header-nav .mobile #_mobile_cart .blockcart {
    width: 62px !important;
  }

  #header .header-nav .mobile .mdr-mobile-language {
    border-top: 0 !important;
  }
}

/* Etiquetas finales: oferta y stock comparten exactamente la misma escala.
   El stock ocupa una segunda fila, pero nunca se estira como una barra. */
.product-miniature .product-flags {
  align-items: start !important;
  display: grid !important;
  grid-template-columns: max-content max-content !important;
  justify-items: start !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  flex: none !important;
  flex-basis: auto !important;
  grid-column: 1 !important;
  margin-top: 0 !important;
  max-width: max-content !important;
  min-height: inherit !important;
  width: max-content !important;
}

/* Banda diagonal comercial: override final para portada y categorías. */
.product-miniature .product-flags {
  display: block !important;
  height: 112px !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: auto !important;
  top: 0 !important;
  width: 112px !important;
  z-index: 6 !important;
}

.product-miniature .product-flags li.product-flag.on-sale,
.product-miniature .product-flags li.product-flag.out_of_stock {
  align-items: center !important;
  backdrop-filter: blur(4px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 5px 14px rgba(12,38,61,.18) !important;
  box-sizing: border-box !important;
  clip-path: none !important;
  color: #fff !important;
  display: flex !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  height: 34px !important;
  justify-content: center !important;
  left: -42px !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  position: absolute !important;
  text-align: center !important;
  text-transform: uppercase !important;
  top: 29px !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
  white-space: nowrap !important;
  width: 166px !important;
}

.product-miniature .product-flags li.product-flag.on-sale {
  background: linear-gradient(90deg, rgba(255,140,51,.90), rgba(255,176,43,.86)) !important;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: linear-gradient(90deg, rgba(9,39,63,.90), rgba(27,78,111,.86)) !important;
  grid-column: auto !important;
}

@media (max-width: 575px) {
  .product-miniature .product-flags {
    height: 96px !important;
    width: 96px !important;
  }

  .product-miniature .product-flags li.product-flag.on-sale,
  .product-miniature .product-flags li.product-flag.out_of_stock {
    font-size: 11px !important;
    height: 30px !important;
    left: -43px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    top: 25px !important;
    width: 158px !important;
  }
}

/* Português: “EM PROMOÇÃO!” é mais comprido que o rótulo espanhol.
   Mantemos a mesma faixa e a mesma proporção, mas deslocamos ligeiramente
   o texto para dentro do cartão para que nunca fique cortado. */
body.lang-pt .product-miniature .product-flags li.product-flag.on-sale,
body.lang-pt .product-miniature .product-flags li.product-flag.out_of_stock {
  font-size: 11px !important;
  left: -33px !important;
  letter-spacing: .015em !important;
}

@media (max-width: 575px) {
  body.lang-pt .product-miniature .product-flags li.product-flag.on-sale,
  body.lang-pt .product-miniature .product-flags li.product-flag.out_of_stock {
    font-size: 10px !important;
    left: -34px !important;
  }
}

/* Sistema tipográfico unificado.
   Manrope ya está incluido localmente por PrestaShop, por lo que no añade
   peticiones externas ni cambios de fuente durante la carga. */
body,
button,
input,
select,
textarea,
optgroup,
table,
body :where(h1, h2, h3, h4, h5, h6, p, a, div, span, li, label, small, strong, b, th, td, dt, dd):not(.material-icons):not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-heading,
.page-header h1,
.block-category h1,
.featured-products .products-section-title,
.product-accessories .products-section-title {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

#header .top-menu a,
#header .header-nav a,
#header .mdr-desktop-language,
#header .mdr-mobile-language,
.dropdown-menu a,
.category-sub-menu a,
#subcategories .subcategory-name {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.product-miniature .product-title,
.product-miniature .product-title a,
.product-miniature .price,
.product-miniature .regular-price,
.product-prices,
.current-price,
.product-price {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

.product-miniature .product-title,
.product-miniature .product-title a {
  font-weight: 700 !important;
}

.product-miniature .price,
.product-prices .current-price,
.current-price .current-price-value {
  font-weight: 700 !important;
}

#search_filters .facet-title,
#search_filters .facet-label,
#search_filters .facet-label a,
.products-selection,
.products-sort-order,
.breadcrumb,
.block-category,
.block-category p,
.product-description,
.product-information,
.tabs,
.tabs .nav-tabs .nav-link,
.page-content,
.footer-container {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

#search_filters .facet-title,
#search_filters .facet .facet-title,
.tabs .nav-tabs .nav-link {
  font-weight: 600 !important;
  text-transform: none !important;
}

#carousel .caption,
#carousel .caption *,
#carousel .mdr-sat-carousel-copy,
#carousel .mdr-sat-carousel-copy * {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Categorías compactas: cabecera de marca, ordenación y tarjetas mantienen
   una escala proporcionada sin alterar los destacados de la portada. */
@media (min-width: 768px) {
  #category .block-category {
    box-sizing: border-box !important;
    height: 176px !important;
    min-height: 176px !important;
    overflow: hidden !important;
    padding: 24px 280px 20px 24px !important;
    position: relative !important;
  }

  #category .block-category h1 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
    margin: 0 0 12px !important;
  }

  #category .block-category #category-description,
  #category .block-category #category-description p {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  #category .block-category .category-cover {
    bottom: auto !important;
    height: 98px !important;
    left: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 222px !important;
  }

  #category .block-category .category-cover img {
    display: block !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
  }

  #category #left-column .block-categories {
    box-sizing: border-box !important;
    min-height: 82px !important;
    padding: 18px 20px !important;
  }

  #category #left-column .block-categories .category-sub-menu,
  #category #left-column .block-categories .category-sub-menu li {
    margin: 0 !important;
  }

  #category .products-selection {
    align-items: center !important;
    display: flex !important;
    min-height: 48px !important;
  }

  #category .products-sort-order {
    align-items: center !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  #category .products-sort-order .select-title {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 46px !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    width: 220px !important;
  }

  #category .product-miniature .thumbnail-container {
    height: auto !important;
    min-height: 0 !important;
  }

  #category .product-miniature .thumbnail-top,
  #category .product-miniature .thumbnail-top:not(:has(.product-flags li)),
  #category .product-miniature .thumbnail-top:has(.product-flags:empty) {
    height: 238px !important;
    min-height: 238px !important;
  }

  #category .product-miniature .thumbnail-top img,
  #category .product-miniature .product-thumbnail img {
    padding: 9px !important;
  }

  #category .product-miniature .product-description {
    height: 120px !important;
    min-height: 120px !important;
    padding: 12px 10px 14px !important;
  }

  #category .product-miniature .product-title {
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    min-height: 38px !important;
  }

  #category .product-miniature .product-price-and-shipping .price {
    font-size: 1.55rem !important;
  }
}

/* El contacto conserva su alineación izquierda, pero ocupa exactamente la
   altura de la franja para quedar centrado de arriba abajo. */
@media (min-width: 768px) {
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #_desktop_contact_link,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #contact-link,
  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 #contact-link a {
    box-sizing: border-box !important;
    height: 48px !important;
    margin: 0 !important;
    min-height: 48px !important;
  }

  #header .header-nav > .container > .row > .hidden-sm-down > .col-md-5 {
    align-self: center !important;
  }
}

/* El anuncio del SAT comparte la misma composición visual que las otras
   diapositivas: panel claro, acento rojo y CTA azul en el pie izquierdo. */
#carousel .mdr-sat-carousel-figure {
  background: #f4f8fb !important;
  position: relative !important;
}

#carousel .mdr-sat-carousel-copy {
  background: linear-gradient(90deg, rgba(247,250,252,.99) 0%, rgba(247,250,252,.97) 33%, rgba(247,250,252,.82) 45%, rgba(247,250,252,0) 64%) !important;
  bottom: 0 !important;
  box-sizing: border-box !important;
  color: var(--mdr-navy) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  left: 0 !important;
  max-width: none !important;
  padding: 44px 5.1% 42px !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
}

#carousel .mdr-sat-carousel-copy::before {
  background: var(--mdr-red) !important;
  content: '' !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: 5px !important;
  margin: 0 0 28px !important;
  width: 66px !important;
}

#carousel .mdr-sat-carousel-copy strong {
  color: var(--mdr-navy) !important;
  font-size: clamp(30px, 3vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.13 !important;
  max-width: 42% !important;
}

#carousel .mdr-sat-carousel-copy small {
  color: #5f7283 !important;
  font-size: clamp(15px, 1.5vw, 22px) !important;
  line-height: 1.35 !important;
  margin: 22px 0 0 !important;
  max-width: 42% !important;
}

#carousel .mdr-sat-carousel-copy b {
  align-items: center !important;
  align-self: flex-start !important;
  background: var(--mdr-navy) !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin-top: auto !important;
  min-height: 44px !important;
  padding: 0 20px !important;
}

@media (max-width: 767px) {
  #carousel .mdr-sat-carousel-copy {
    background: linear-gradient(90deg, rgba(247,250,252,.99) 0%, rgba(247,250,252,.94) 43%, rgba(247,250,252,.15) 68%, rgba(247,250,252,0) 100%) !important;
    padding: 12px 5% 11px !important;
  }

  #carousel .mdr-sat-carousel-copy::before {
    height: 3px !important;
    margin-bottom: 7px !important;
    width: 32px !important;
  }

  #carousel .mdr-sat-carousel-copy strong {
    font-size: clamp(15px, 4vw, 21px) !important;
    line-height: 1.08 !important;
    max-width: 52% !important;
  }

  #carousel .mdr-sat-carousel-copy small {
    font-size: clamp(8px, 2.3vw, 11px) !important;
    line-height: 1.2 !important;
    margin-top: 5px !important;
    max-width: 52% !important;
  }

  #carousel .mdr-sat-carousel-copy b {
    font-size: 9px !important;
    min-height: 24px !important;
    padding: 0 9px !important;
  }
}
