/* DES Bewatt TV — estilo oscuro de la antigua mini-web /tv, dentro de la tienda */

/* ---------- Fondo a todo el ancho ---------- */
body.destv-page { overflow-x: hidden; }
/* La miga de pan deja 14 px blancos encima de la zona oscura */
body.destv-page #wrapper .breadcrumb { margin-bottom: 0; }
.destv { position: relative; left: 50%; width: 100vw; margin-left: -50vw; padding: 32px 0 48px; background: #121212; color: #fff; }
.destv-inner { box-sizing: border-box; max-width: 1600px; margin: 0 auto; padding: 0 24px; }
/* #wrapper delante: el tema pinta los enlaces de negro con una regla más fuerte */
#wrapper .destv a, #wrapper .destv a:hover, #wrapper .destv a:focus { color: #fff; text-decoration: none; }

/* ---------- Cabecera del listado ---------- */
.destv-head { margin-bottom: 24px; }
.destv .destv-h1 { margin: 0 0 6px; color: #fff; font-size: 34px; line-height: 1.15; }
.destv-intro { margin: 0; color: #aaa; font-size: 16px; }
.destv-empty { color: #aaa; }

/* ---------- Rejilla de vídeos ---------- */
.destv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
/* Vídeos por fila (ajuste del back-office); en tablet y móvil, menos (ver @media) */
.destv-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.destv-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.destv-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.destv-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.destv-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.destv-cols-5 .destv-card-title, .destv-cols-6 .destv-card-title { font-size: 15px; }
.destv-card { display: block; color: #fff; }
.destv-card-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; background: #000; }
.destv-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.destv-card:hover .destv-card-thumb img { transform: scale(1.03); }
.destv-play { position: absolute; top: 50%; left: 50%; width: 56px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, -50%); transition: opacity .2s; }
.destv-play::before { content: ''; position: absolute; top: 50%; left: 50%; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; transform: translate(-35%, -50%); }
.destv-card:hover .destv-play { opacity: 1; }
.destv-card-title { display: -webkit-box; margin-top: 10px; overflow: hidden; font-size: 16px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.destv-card-meta { display: block; margin-top: 4px; color: #aaa; font-size: 14px; }

/* ---------- Paginación del listado ---------- */
.destv-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.destv-page-link { min-width: 40px; padding: 8px 12px; border: 1px solid #333; border-radius: 4px; color: #fff; font-size: 15px; line-height: 1.2; text-align: center; }
#wrapper .destv .destv-page-link:hover { border-color: #fff; }
.destv-page-link.is-current { border-color: #fff; background: #fff; color: #121212; font-weight: 700; }
.destv-page-gap { align-self: center; padding: 0 2px; color: #aaa; }
#wrapper .destv .destv-intro a { color: #aaa; }
#wrapper .destv .destv-intro a:hover { color: #fff; }

/* ---------- Página de un vídeo ---------- */
/* 'auto 1fr': si la columna derecha (productos) es más alta, el sobrante va a la última fila y
   los recomendados siguen pegados al vídeo (antes se repartía y quedaba un hueco bajo el vídeo) */
.destv-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'player side' 'related side'; gap: 32px 32px; align-items: start; }
.destv-player { grid-area: player; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; }
.destv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Vídeo que su dueño solo deja ver en YouTube: miniatura oscurecida y botón */
.destv-player-off { position: absolute; inset: 0; display: block; }
.destv-player-off img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .2s; }
.destv-player-off:hover img { opacity: .3; }
.destv-player-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; }
.destv-yt-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 6px; background: #f00; color: #fff; font-size: 18px; font-weight: 700; }
.destv-player-off:hover .destv-yt-btn { background: #cc0000; }
.destv-yt-icon { border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.destv-player-note { color: #ddd; font-size: 15px; }
.destv-side { grid-area: side; min-width: 0; }
.destv-related { grid-area: related; min-width: 0; }

.destv-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #2a2a2a; }
/* Los <button> no heredan la letra de la web por defecto */
.destv .destv-tab-btn, .destv .destv-more, .destv .destv-more-link { font-family: inherit; letter-spacing: inherit; }
.destv .destv-tab-btn { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: #aaa; font-size: 17px; white-space: nowrap; cursor: pointer; }
.destv .destv-tab-btn:hover { color: #fff; }
.destv .destv-tab-btn.is-active { border-bottom-color: #fff; background: #1f1f1f; color: #fff; }
.destv-tab-count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 1px 6px; border-radius: 10px; background: #333; color: #fff; font-size: 13px; line-height: 1.4; text-align: center; vertical-align: 2px; }
.destv [hidden] { display: none !important; }
.destv-tab { display: none; }
.destv-tab.is-active { display: block; }

.destv .destv-title { margin: 0 0 12px; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.25; }
.destv .destv-title-sm { font-size: 19px; }
.destv-meta { margin: 0 0 16px; color: #aaa; font-size: 15px; }
.destv-text { color: #e6e6e6; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.destv-text p { margin: 0 0 1em; }
.destv .destv-subtitle { margin: 28px 0 14px; color: #fff; font-size: 17px; font-weight: 700; }
.destv-related .destv-subtitle { margin-top: 0; }
/* "Productos relacionados" con el enlace a la pestaña Productos a la derecha */
.destv-subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 28px 0 14px; }
.destv-subhead .destv-subtitle { margin: 0; }
.destv .destv-more-link { padding: 0; border: 0; background: none; color: #aaa; font-size: 15px; white-space: nowrap; cursor: pointer; }
.destv .destv-more-link:hover { color: #fff; text-decoration: underline; }
.destv-all { margin: 20px 0 0; font-size: 15px; }
#wrapper .destv .destv-all a { color: #aaa; }
#wrapper .destv .destv-all a:hover { color: #fff; }

/* ---------- Productos relacionados ---------- */
.destv-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.destv-product { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
/* Productos que front.js quita porque no caben ("Información") o son de otra página ("Productos") */
.destv-products .destv-product.is-cut { display: none; }
.destv-product-img { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 6px; background: #fff; }
.destv-product-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.destv-product-badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 3px; background: #d6001c; color: #fff; font-size: 12px; }
.destv-product-name { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.destv-product-price { display: inline-block; margin-top: 6px; padding: 2px 6px; border-radius: 3px; background: #2a2a2a; font-weight: 700; }
.destv-product-price s { margin-right: 4px; color: #aaa; font-weight: 400; }
.destv .destv-more { display: block; width: 100%; margin-top: 18px; padding: 10px 16px; border: 1px solid #fff; border-radius: 4px; background: none; color: #fff; font-size: 15px; cursor: pointer; }
.destv .destv-more:hover { background: #fff; color: #121212; }
/* ‹ 1 2 › de la pestaña Productos (mismo aspecto que la paginación del listado, más compacta:
   como mucho ‹ 1 … 4 5 6 … 9 › y siempre en una línea, también en la columna estrecha) */
.destv-pagination.destv-ppages { flex-wrap: nowrap; gap: 3px; margin-top: 20px; }
.destv-ppages .destv-page-link { min-width: 30px; padding: 7px 4px; font-size: 14px; }
.destv-ppages .destv-page-gap { padding: 0; }
.destv .destv-ppages button.destv-page-link { background: none; font-family: inherit; cursor: pointer; }
.destv .destv-ppages button.destv-page-link:hover { border-color: #fff; }

/* ---------- Ficha de producto (fondo claro de la tienda) ---------- */
.destv-product-videos { clear: both; margin: 40px 0; }
.destv-pv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.destv-product-videos .destv-pv-title { margin: 0; font-size: 22px; }
.destv-pv-all { font-size: 15px; white-space: nowrap; }
#wrapper .destv-product-videos .destv-card { color: #282828; text-decoration: none; }
.destv-product-videos .destv-card-meta { color: #777; }
.destv-pv-grid { gap: 20px 12px; }
.destv-pv-grid .destv-card-title { font-size: 15px; }

@media (max-width: 1199px) {
  .destv-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destv-cols-5, .destv-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .destv .destv-tab-btn { padding: 10px 12px; font-size: 16px; }
}

@media (max-width: 991px) {
  .destv-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'player' 'side' 'related'; gap: 24px; }
  .destv-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .destv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .destv { padding: 20px 0 32px; }
  .destv-inner { padding: 0 16px; }
  .destv .destv-h1 { font-size: 26px; }
  .destv-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .destv-pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .destv-pv-grid .destv-card-title { font-size: 14px; }
  .destv-pv-grid .destv-card-meta { font-size: 12px; }
  .destv-page-link { min-width: 36px; padding: 7px 10px; }
  .destv-page-txt, .destv-page-link.is-far { display: none; }
  .destv-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destv .destv-tab-btn { padding: 8px 10px; font-size: 15px; }
  .destv .destv-title { font-size: 20px; }
  .destv-player { margin: 0 -16px; border-radius: 0; }
  .destv-pv-head { flex-direction: column; gap: 4px; }
  .destv-yt-btn { padding: 10px 16px; font-size: 16px; }
  .destv-player-note { font-size: 13px; }
}
