/*
 * DES Banners de la home — David Escudero Digital Studio
 * Cada zona tiene su diseño fijo, copiado de la home original de Elementor
 * (medidas tomadas del navegador a 1440 px y 390 px de ancho).
 */
.deshb { position: relative; width: 100%; }
.deshb-track { display: grid; }

/* ---------- Medio (imagen / vídeo) ---------- */
.deshb-media { position: relative; overflow: hidden; }
.deshb-media picture, .deshb-media img, .deshb-media video { display: block; width: 100%; height: auto; }
.deshb-media img, .deshb-media video { object-fit: cover; }

/* Proporción fija de la zona: el medio rellena la caja sin deformarse */
.deshb-rd .deshb-media { aspect-ratio: var(--deshb-r-d); }
.deshb-rd .deshb-w-half .deshb-media { aspect-ratio: var(--deshb-r-half, var(--deshb-r-d)); }
.deshb-rd .deshb-media img, .deshb-rd .deshb-media video { position: absolute; inset: 0; height: 100%; }

.deshb-cover-link { position: absolute; inset: 0; z-index: 1; }
.deshb-content { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; }
.deshb-content a { pointer-events: auto; }
.deshb-content-inner { max-width: 100%; }
.deshb-title { font-weight: 700; }
/* Textos largos: se cortan con "…" en vez de salirse del banner */
.deshb-title, .deshb-subtitle { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.deshb-zone-grid .deshb-title, .deshb-zone-grid .deshb-subtitle { -webkit-line-clamp: 2; }
.deshb-zone-hero .deshb-title, .deshb-zone-hero .deshb-subtitle { -webkit-line-clamp: 3; }
.deshb-buttons { display: flex; flex-wrap: wrap; }
.deshb-btn { text-transform: uppercase; }

.deshb-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 22px; font-weight: 700; }
.deshb-badge { display: inline-block; padding: 3px 9px; border-radius: 3px; background: #d6001c; color: #fff; font-size: 15px; line-height: 1.3; letter-spacing: .02em; }
.deshb-kicker { margin-bottom: 8px; font-size: 14px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.deshb-price-old { font-weight: 400; opacity: .7; }

/* ---------- Hero ---------- */
.deshb-zone-hero .deshb-content { align-items: center; justify-content: flex-start; padding: 0 100px; color: #fff; text-align: left; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.deshb-zone-hero .deshb-btn { text-shadow: none; }
.deshb-zone-hero .deshb-title { font-size: 52px; line-height: 52px; }
.deshb-zone-hero .deshb-subtitle { margin-top: 20px; font-size: 24px; line-height: 34px; }
.deshb-zone-hero .deshb-buttons { gap: 9px; margin-top: 40px; }
.deshb-zone-hero .deshb-btn { min-width: 120px; padding: 7px 17.5px; font-size: 18px; line-height: 27px; }
/* Botón 1 relleno (como E-BIKE) y botón 2 transparente con borde blanco (como E-SKATE).
   Doble clase .deshb para ganar a los estilos de Elementor/tema. */
.deshb.deshb-zone-hero .deshb-btn-1 { background-color: #373a3c; border-color: #373a3c; color: #fff; }
.deshb.deshb-zone-hero .deshb-btn-1:hover, .deshb.deshb-zone-hero .deshb-btn-1:focus { background-color: #2c2e30; border-color: #2c2e30; color: #fff; }
.deshb.deshb-zone-hero .deshb-btn-2,
.deshb.deshb-zone-hero .deshb-btn-2:hover,
.deshb.deshb-zone-hero .deshb-btn-2:focus { background-color: transparent; border-color: #fff; color: #fff; }

/* ---------- Banner promo ---------- */
.deshb-zone-promo .deshb-content { align-items: center; justify-content: center; padding: 4% 6%; text-align: center; }

/* ---------- Rejilla ---------- */
.deshb-zone-grid .deshb-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; }
.deshb-zone-grid .deshb-w-full { grid-column: 1 / -1; }
.deshb-zone-grid .deshb-content { align-items: flex-start; justify-content: center; padding: 6% 5% 0; text-align: center; }
.deshb-zone-grid .deshb-title { margin-bottom: 7px; font-size: 58px; line-height: 1.2; }
.deshb-zone-grid .deshb-subtitle { font-size: 32px; line-height: 1.3; }
.deshb-zone-grid .deshb-buttons { justify-content: center; margin-top: 10px; }
.deshb-zone-grid .deshb-btn { padding: 7px 17.5px; font-size: 15px; line-height: 22.5px; }
.deshb-tone-light .deshb-content { color: #fff; }
.deshb-tone-light .deshb-btn { background-color: #fff; border-color: #fff; color: #000; }
.deshb-tone-dark .deshb-content { color: #282828; }
.deshb-tone-dark .deshb-btn { background-color: #282828; border-color: #282828; color: #fff; }
.deshb-zone-grid .deshb-btn:hover, .deshb-zone-grid .deshb-btn:focus { background-color: #adadad; border-color: #adadad; }

/* Banner de producto: la foto (fondo blanco) se encaja abajo y deja arriba sitio para nombre y precio */
.deshb.deshb-zone-grid .deshb-item--product .deshb-media,
.deshb.deshb-zone-promo .deshb-item--product .deshb-media { background: var(--deshb-pbg, #f6f6f6); }
.deshb.deshb-zone-grid .deshb-item--product .deshb-media img { box-sizing: border-box; padding: 24% 0 0; object-fit: cover; object-position: center 55%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 40%); mask-image: linear-gradient(to bottom, transparent 30%, #000 40%); }
/* Producto en el promo (franja estrecha): el producto entero a la derecha y el texto a la izquierda.
   La foto de producto es cuadrada: en 16:3 ocupa el 18,75 % del ancho (en móvil, 8:3 → 37,5 %). */
.deshb.deshb-zone-promo .deshb-item--product .deshb-media img { padding: 0; object-fit: contain; object-position: right center; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 81%, #000 85%); mask-image: linear-gradient(to right, transparent 81%, #000 85%); }
.deshb.deshb-zone-promo .deshb-item--product .deshb-content { align-items: center; justify-content: flex-start; padding: 0 6%; color: #282828; text-align: left; }
.deshb.deshb-zone-promo .deshb-item--product .deshb-content-inner { max-width: 72%; }
.deshb.deshb-zone-promo .deshb-item--product .deshb-title { font-size: 34px; line-height: 1.15; -webkit-line-clamp: 1; }
.deshb.deshb-zone-promo .deshb-item--product .deshb-subtitle { margin-top: 4px; font-size: 16px; -webkit-line-clamp: 1; }
.deshb.deshb-zone-promo .deshb-item--product .deshb-buttons { margin-top: 12px; }
.deshb.deshb-zone-promo .deshb-item--product .deshb-btn { padding: 7px 17.5px; font-size: 15px; }
/* Banners de producto: fondo claro, así que el botón va oscuro */
.deshb .deshb-item--product .deshb-btn-1 { background-color: #282828; border-color: #282828; color: #fff; }
.deshb .deshb-item--product .deshb-btn-1:hover, .deshb .deshb-item--product .deshb-btn-1:focus { background-color: #000; border-color: #000; color: #fff; }

/* Fondo de producto oscuro (elegido en el banner): texto y botón en blanco */
.deshb.deshb-zone-hero .deshb-item--product.deshb-pbg-dark .deshb-content,
.deshb.deshb-zone-promo .deshb-item--product.deshb-pbg-dark .deshb-content,
.deshb.deshb-zone-grid .deshb-item--product.deshb-pbg-dark .deshb-content { color: #fff; }
.deshb .deshb-item--product.deshb-pbg-dark .deshb-btn-1 { background-color: #fff; border-color: #fff; color: #282828; }
.deshb .deshb-item--product.deshb-pbg-dark .deshb-btn-1:hover, .deshb .deshb-item--product.deshb-pbg-dark .deshb-btn-1:focus { background-color: #e6e6e6; border-color: #e6e6e6; color: #282828; }
.deshb.deshb-zone-hero .deshb-item--product.deshb-pbg-dark .deshb-btn-2,
.deshb.deshb-zone-hero .deshb-item--product.deshb-pbg-dark .deshb-btn-2:hover { border-color: #fff; color: #fff; }

/* Producto a ancho completo en la rejilla: como en el hero, texto a la izquierda y producto a la derecha */
.deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-media img { padding: 0 0 0 50%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 50%, #000 53%); mask-image: linear-gradient(to right, transparent 50%, #000 53%); }
.deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-content { align-items: center; justify-content: flex-start; padding: 0 6%; text-align: left; }
.deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-content-inner { max-width: 42%; }
.deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-price,
.deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-buttons { justify-content: flex-start; }
.deshb-zone-grid .deshb-price { justify-content: center; }

/* Producto en el hero: fondo claro, texto oscuro a la izquierda y el producto a la derecha */
.deshb.deshb-zone-hero .deshb-item--product .deshb-media { background: var(--deshb-pbg, #f6f6f6); }
.deshb.deshb-zone-hero .deshb-item--product .deshb-media img { box-sizing: border-box; padding: 0 0 0 50%; object-fit: cover; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 50%, #000 52.5%); mask-image: linear-gradient(to right, transparent 50%, #000 52.5%); }
.deshb.deshb-zone-hero .deshb-item--product .deshb-content { color: #282828; text-shadow: none; }
.deshb.deshb-zone-hero .deshb-item--product .deshb-btn-2,
.deshb.deshb-zone-hero .deshb-item--product .deshb-btn-2:hover { border-color: #282828; color: #282828; }
.deshb-zone-hero .deshb-item--product .deshb-price { font-size: 32px; }
/* Colores elegidos en el banner: texto oscuro (fotos claras) y botón blanco (fotos oscuras) */
.deshb.deshb-zone-hero .deshb-tone-dark .deshb-content { color: #282828; text-shadow: none; }
.deshb.deshb-zone-hero .deshb-tone-dark .deshb-btn-2,
.deshb.deshb-zone-hero .deshb-tone-dark .deshb-btn-2:hover,
.deshb.deshb-zone-hero .deshb-tone-dark .deshb-btn-2:focus { border-color: #282828; color: #282828; }
.deshb.deshb-zone-hero .deshb-btnc-light .deshb-btn-1 { background-color: #fff; border-color: #fff; color: #282828; }
.deshb.deshb-zone-hero .deshb-btnc-light .deshb-btn-1:hover,
.deshb.deshb-zone-hero .deshb-btnc-light .deshb-btn-1:focus { background-color: #e6e6e6; border-color: #e6e6e6; color: #282828; }
/* El texto se queda en la mitad izquierda (los nombres de producto pueden ser largos) */
.deshb.deshb-zone-hero .deshb-item--product .deshb-content-inner { max-width: 42%; }

/* ---------- Barra de ventajas ---------- */
.deshb-zone-usp { display: grid; grid-template-columns: repeat(var(--deshb-usp-cols, 3), minmax(0, 1fr)); }
.deshb-usp { position: relative; padding: 10px; color: #fff; font-size: 14px; line-height: 19.6px; text-align: center; }
.deshb-usp + .deshb-usp::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 0; border-left: 1px solid #fff; }
.deshb-usp a { color: inherit; }
.deshb .deshb-usp .deshb-usp-icon { display: inline-block; width: auto; max-width: 16px; max-height: 16px; height: auto; margin-right: 6px; vertical-align: -2px; }

/* ---------- Carrusel (fundido) ---------- */
/* Los gestos horizontales son del carrusel (deslizar); el scroll vertical y el zoom, del navegador */
.deshb-carousel { touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; }
.deshb-carousel .deshb-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.deshb-carousel .deshb-slide.is-active { opacity: 1; visibility: visible; }
.deshb-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer; transform: translateY(-50%); }
/* Flecha dibujada con CSS: el carácter ‹ › quedaba bajo según la fuente del tema */
.deshb .deshb-arrow { padding: 0; font-size: 0; line-height: 0; }
.deshb .deshb-arrow::before { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.deshb .deshb-prev::before { transform: translate(-35%, -50%) rotate(-45deg); }
.deshb .deshb-next::before { transform: translate(-65%, -50%) rotate(135deg); }
.deshb-prev { left: 12px; }
.deshb-next { right: 12px; }
.deshb-dots { position: absolute; right: 0; bottom: 12px; left: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.deshb-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .25); box-shadow: 0 0 3px rgba(0, 0, 0, .35); cursor: pointer; }
.deshb-dot.is-active { background: #fff; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .deshb-zone-hero .deshb-content { padding: 0 50px; }
  .deshb-zone-grid .deshb-content { justify-content: flex-start; text-align: left; }
  .deshb-zone-grid .deshb-buttons, .deshb-zone-grid .deshb-price { justify-content: flex-start; }
  .deshb-zone-grid .deshb-title { font-size: 36px; }
  .deshb-zone-grid .deshb-subtitle { font-size: 22px; }
}

/* ---------- Visibilidad por dispositivo ---------- */
@media (min-width: 768px) {
  /* Hero: lado del texto elegido en el banner (por defecto a la izquierda, como la home original) */
  .deshb.deshb-zone-hero .deshb-tpd-center .deshb-content { justify-content: center; text-align: center; }
  .deshb.deshb-zone-hero .deshb-tpd-center .deshb-content-inner { max-width: 70%; }
  .deshb.deshb-zone-hero .deshb-tpd-center .deshb-buttons { justify-content: center; }
  .deshb.deshb-zone-hero .deshb-tpd-right .deshb-content { justify-content: flex-end; }
  .deshb.deshb-zone-hero .deshb-tpd-right .deshb-content-inner { max-width: 50%; }
  .deshb-dev-mobile { display: none !important; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .deshb-dev-desktop { display: none !important; }
  .deshb-rd .deshb-media, .deshb-rd .deshb-w-half .deshb-media { aspect-ratio: auto; }
  .deshb-rd .deshb-media img, .deshb-rd .deshb-media video { position: static; height: auto; }
  .deshb-rm .deshb-media, .deshb-rm .deshb-w-half .deshb-media { aspect-ratio: var(--deshb-r-m); }
  .deshb-rm .deshb-media img, .deshb-rm .deshb-media video { position: absolute; inset: 0; height: 100%; }

  /* En la home original el hero móvil es solo vídeo */
  .deshb-zone-hero .deshb-content { display: none; }
  /* ...pero el de producto sí lleva nombre, precio y botón. El hero móvil es vertical (4:5): foto arriba y texto debajo */
  .deshb.deshb-zone-hero .deshb-item--product .deshb-content { display: flex; align-items: flex-end; padding: 0 6% 40px; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-content { justify-content: center; text-align: center; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-content-inner { max-width: 100%; }
  /* La foto va centrada arriba: el texto, centrado debajo */
  .deshb.deshb-zone-hero .deshb-item--product .deshb-price,
  .deshb.deshb-zone-hero .deshb-item--product .deshb-buttons { justify-content: center; }
  /* ...o a la izquierda, si se elige en el banner */
  .deshb.deshb-zone-hero .deshb-item--product.deshb-pm-left .deshb-content { justify-content: flex-start; text-align: left; }
  .deshb.deshb-zone-hero .deshb-item--product.deshb-pm-left .deshb-price,
  .deshb.deshb-zone-hero .deshb-item--product.deshb-pm-left .deshb-buttons { justify-content: flex-start; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-media img { padding: 5% 15% 50%; object-fit: contain; object-position: center;
    -webkit-mask-image: none; mask-image: none; }
  /* Con el hero vertical cabe la categoría (pequeña, encima del nombre) */
  .deshb.deshb-zone-hero .deshb-item--product .deshb-kicker { margin-bottom: 4px; font-size: 12px; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-subtitle,
  .deshb.deshb-zone-hero .deshb-item--product .deshb-btn-2 { display: none; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-title { font-size: 22px; line-height: 26px; -webkit-line-clamp: 2; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-price { margin-top: 6px; font-size: 18px; gap: 2px 8px; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-badge { padding: 1px 6px; font-size: 12px; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-buttons { margin-top: 10px; }
  .deshb.deshb-zone-hero .deshb-item--product .deshb-btn { min-width: 0; padding: 4px 14px; font-size: 13px; line-height: 20px; }
  /* Imagen o vídeo con "Texto en el móvil": título y primer botón, más pequeños */
  /* El hero móvil es vertical: el texto va arriba, en el centro o abajo según el banner (abajo deja sitio a los puntos) */
  .deshb-zone-hero .deshb-text-mobile .deshb-content { display: flex; align-items: flex-start; padding: 12% 6% 0; }
  .deshb-zone-hero .deshb-text-mobile.deshb-tpm-center .deshb-content { align-items: center; padding: 0 6%; }
  .deshb-zone-hero .deshb-text-mobile.deshb-tpm-bottom .deshb-content { align-items: flex-end; padding: 0 6% 40px; }
  .deshb-zone-hero .deshb-text-mobile .deshb-content-inner { max-width: 75%; }
  .deshb.deshb-zone-hero .deshb-text-mobile.deshb-tpm-c .deshb-content { justify-content: center; text-align: center; }
  .deshb.deshb-zone-hero .deshb-text-mobile.deshb-tpm-c .deshb-content-inner { max-width: 90%; }
  .deshb.deshb-zone-hero .deshb-text-mobile.deshb-tpm-c .deshb-buttons { justify-content: center; }
  .deshb-zone-hero .deshb-text-mobile .deshb-title { font-size: 22px; line-height: 26px; -webkit-line-clamp: 2; }
  .deshb-zone-hero .deshb-text-mobile .deshb-subtitle { margin-top: 8px; font-size: 15px; line-height: 20px; -webkit-line-clamp: 2; }
  .deshb-zone-hero .deshb-text-mobile .deshb-btn-2 { display: none; }
  .deshb-zone-hero .deshb-text-mobile .deshb-buttons { margin-top: 12px; }
  .deshb-zone-hero .deshb-text-mobile .deshb-btn { min-width: 0; padding: 4px 14px; font-size: 13px; line-height: 20px; }
  /* Las flechas tapan el texto en móvil: bastan los puntos y el deslizar */
  .deshb-zone-hero .deshb-arrow { display: none; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-media img { -webkit-mask-image: linear-gradient(to right, transparent 62%, #000 67%); mask-image: linear-gradient(to right, transparent 62%, #000 67%); }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-content { padding: 0 5%; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-content-inner { max-width: 60%; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-kicker,
  .deshb.deshb-zone-promo .deshb-item--product .deshb-subtitle { display: none; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-title { font-size: 18px; -webkit-line-clamp: 2; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-price { margin-top: 4px; font-size: 15px; gap: 2px 8px; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-badge { padding: 1px 6px; font-size: 12px; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-buttons { margin-top: 6px; }
  .deshb.deshb-zone-promo .deshb-item--product .deshb-btn { padding: 4px 12px; font-size: 13px; }
  /* En la franja del promo móvil las flechas tapan el texto: bastan los puntos y el deslizar */
  .deshb-zone-promo .deshb-arrow { display: none; }

  .deshb-zone-grid .deshb-track { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .deshb-zone-grid .deshb-content { justify-content: flex-start; padding: 6% 5% 0; text-align: left; }
  .deshb-zone-grid .deshb-buttons, .deshb-zone-grid .deshb-price { justify-content: flex-start; }
  /* En móvil todos los productos de la rejilla usan el diseño de texto a la izquierda y foto a la derecha */
  .deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-media img { padding: 12% 0 0 38%; }
  .deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-content { align-items: flex-start; padding: 6% 5% 0; }
  .deshb.deshb-zone-grid .deshb-w-full.deshb-item--product .deshb-content-inner { max-width: 45%; }
  .deshb-zone-grid .deshb-title { margin-bottom: 6px; font-size: 30px; line-height: 36px; }
  .deshb-zone-grid .deshb-subtitle { font-size: 22px; line-height: 28.6px; }
  .deshb-zone-grid .deshb-btn { padding: 6px 15px; }
  /* Producto en móvil: texto a la izquierda, foto a la derecha fundida por arriba y por la izquierda */
  .deshb.deshb-zone-grid .deshb-item--product .deshb-media img { padding: 12% 0 0 38%; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 36%, #000 46%), linear-gradient(to bottom, transparent 10%, #000 20%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 36%, #000 46%), linear-gradient(to bottom, transparent 10%, #000 20%); mask-composite: intersect; }
  .deshb.deshb-zone-grid .deshb-item--product .deshb-content-inner { max-width: 45%; }
  .deshb.deshb-zone-grid .deshb-item--product .deshb-price { font-size: 18px; }
  .deshb-kicker { margin-bottom: 4px; font-size: 12px; }

  .deshb-zone-usp { grid-template-columns: minmax(0, 1fr); }
  .deshb-usp + .deshb-usp::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .deshb-carousel .deshb-slide { transition: none; }
}
