/**
 * Archivo: izajes.css
 * Tipo: hoja de estilos dedicada del modulo de izajes
 * Paginas relacionadas: Vistas/izajes*.html
 * Scripts relacionados: Recursos/Scripts/izajes-*.js
 * Funcion general: concentra la capa visual propia del modulo de izajes para
 * evitar que futuros ajustes sigan cargando productos.css con overrides
 * especificos de estas pantallas.
 */

/* Base del modulo: se mantiene ligera al inicio para no alterar el resultado
   actual, pero deja un punto unico de entrada para futuros ajustes. */
.izajes-page {
  --izajes-list-columns: 4;
  --izajes-list-card-width: 248px;
  --izajes-list-gap: 20px;
  --izajes-list-shell-padding-x: 24px;
  --izajes-list-shell-width: calc(
    (var(--izajes-list-columns) * var(--izajes-list-card-width)) +
    ((var(--izajes-list-columns) - 1) * var(--izajes-list-gap)) +
    (var(--izajes-list-shell-padding-x) * 2)
  );
}

.izajes-page .product-section,
.izajes-page .product-list-page,
.izajes-page .product-grid-page,
.izajes-page .product-detail-page {
  position: relative;
}

.izajes-page.product-grid-page .product-grid-section,
.izajes-page .product-grid-page .product-grid-section {
  width: 100%;
  max-width: none;
  margin: 0;
}

.izajes-page .product-cards,
.izajes-page .subcategory-list {
  position: relative;
}

.izajes-page #izajesCards.product-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  max-width: 1120px;
}

.izajes-page #izajesCards .product-card-tile::after {
  display: none;
}

.izajes-page #izajesCards .product-card-media.is-cable-card {
  background-size: 100% 100%, cover;
  background-position: center, center;
}

.izajes-page #izajesCards .product-card-media.is-chain-card {
  background-size: 100% 100%, cover;
  background-position: center, center;
}

.izajes-page .product-card-tile,
.izajes-page .subcategory-item,
.izajes-page .subproduct-card,
.izajes-page .product-detail-card {
  will-change: transform;
}

body.dark.izajes-page .product-card-tile,
body.dark.izajes-page .subcategory-item,
body.dark.izajes-page .subproduct-card,
body.dark.izajes-page .product-detail-card {
  box-shadow: none;
}

.izajes-page:not(.izajes-d3-catalog-page) .product-card-tile h3,
.izajes-page:not(.izajes-d3-catalog-page) .subcategory-item h3,
.izajes-page:not(.izajes-d3-catalog-page) .subproduct-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.izajes-page .listing-hero-title,
.izajes-page .category-intro-content h2,
.izajes-page .product-hero-slab-content h2 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.izajes-page:not(.izajes-d3-catalog-page) .product-list-header > .container,
.izajes-page:not(.izajes-d3-catalog-page) .product-section > .container,
.izajes-page:not(.izajes-d3-catalog-page) .product-grid-section > .container {
  width: min(var(--izajes-list-shell-width), 96vw);
  max-width: min(var(--izajes-list-shell-width), 96vw);
  margin-inline: auto;
}

.izajes-page:not(.izajes-d3-catalog-page) .subcategory-list,
.izajes-page:not(.izajes-d3-catalog-page) .subproduct-grid {
  width: 100%;
  max-width: none;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-card {
  grid-template-rows: auto minmax(112px, auto) auto;
  height: 100%;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-media {
  min-height: 220px;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background-color: #eef3fb;
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 100% 100%, contain;
  background-origin: border-box, content-box;
  background-clip: border-box, content-box;
  position: relative;
  overflow: hidden;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-card.no-image .subproduct-media {
  background-size: cover, cover;
  background-origin: border-box, border-box;
  background-clip: border-box, border-box;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-card-top {
  min-height: 112px;
  align-content: start;
  padding: 18px 18px 10px;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta,
.izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 11px 18px;
  border: 1px solid rgba(28, 43, 122, 0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, #1d338e 0%, #2745af 56%, #3a5fcd 100%);
  box-shadow:
    0 14px 24px rgba(39, 73, 182, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta {
  margin: 0 18px 18px;
}

.izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta {
  margin: 0;
}

.subcategory-media,
.subproduct-media,
.product-hero-slab-image {
  position: relative;
  overflow: hidden;
}

.subcategory-media.has-image::before,
.subproduct-media.has-image::before,
.product-hero-slab-image.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.subcategory-media > img,
.subproduct-media > img,
.product-hero-slab-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.subcategory-media > img,
.product-hero-slab-image > img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  transform: none;
  background: none;
}

.subcategory-media > img {
  object-position: center;
  transform: none;
}

.subproduct-media > img {
  object-fit: contain;
  object-position: center;
  padding: 18px;
  box-sizing: border-box;
}

.subcategory-media.has-image::before {
  background: linear-gradient(180deg, rgba(5, 12, 40, 0.16), rgba(5, 12, 40, 0.4));
}

.subproduct-media.has-image::before {
  background: linear-gradient(180deg, rgba(6, 10, 28, 0.06), rgba(6, 10, 28, 0.2));
}

.product-hero-slab-image.has-image::before {
  background: linear-gradient(180deg, rgba(4, 10, 36, 0.18), rgba(4, 10, 36, 0.45));
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta::after,
.izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta::after {
  content: "\2192";
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta:hover,
.izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 28px rgba(39, 73, 182, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: saturate(1.05);
}

.izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta:hover::after,
.izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta:hover::after {
  transform: translateX(2px);
}

@media (max-width: 760px) {
  .izajes-page:not(.izajes-d3-catalog-page) .subproduct-media {
    min-height: 190px;
    padding: 16px;
  }

  .subproduct-media > img {
    padding: 16px;
  }

  .izajes-page:not(.izajes-d3-catalog-page) .subproduct-card-top {
    min-height: 96px;
    padding: 16px 16px 8px;
  }

  .izajes-page:not(.izajes-d3-catalog-page) .subproduct-cta {
    margin: 0 16px 16px;
    padding: 10px 16px;
  }

  .izajes-page:not(.izajes-d3-catalog-page) .subcategory-cta {
    padding: 10px 16px;
  }
}

.izajes-page .subcategory-item {
  align-items: stretch;
}

.izajes-page .subcategory-content {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.izajes-page .subcategory-content h3,
.izajes-page .subcategory-content p,
.izajes-page .subcategory-content .subcategory-cta {
  text-align: left;
}

.izajes-page.hero-page .product-hero .hero-content,
.izajes-page .product-hero .hero-content.hero-right {
  justify-items: end !important;
  align-items: end !important;
  text-align: right !important;
  margin-left: auto !important;
  margin-right: clamp(32px, 7vw, 120px) !important;
}

.izajes-page.hero-page .product-hero h1,
.izajes-page.hero-page .product-hero .hero-description,
.izajes-page .product-hero .hero-content.hero-right h1,
.izajes-page .product-hero .hero-content.hero-right .hero-description {
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: right !important;
}

.izajes-page.hero-page .product-hero h1,
.izajes-page .product-hero .hero-content.hero-right h1 {
  max-width: none !important;
  font-size: clamp(24px, 3.1vw, 42px) !important;
  line-height: 0.94 !important;
  white-space: nowrap !important;
}

.izajes-page.hero-page .product-hero .hero-description,
.izajes-page .product-hero .hero-content.hero-right .hero-description {
  max-width: min(640px, 100%) !important;
  font-size: clamp(14px, 1.3vw, 18px) !important;
  line-height: 1.5 !important;
}

.izajes-page.hero-page .product-hero .hero-scroll,
.izajes-page .product-hero .hero-content.hero-right .hero-scroll {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.izajes-page.hero-page .product-hero,
.izajes-page .product-hero {
  isolation: isolate;
  min-height: 115vh;
  min-height: 115svh;
}

.izajes-page.hero-page .product-hero::before,
.izajes-page .product-hero::before {
  z-index: 1 !important;
  background: transparent !important;
}

.izajes-page.hero-page .product-hero::after,
.izajes-page .product-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.izajes-page.hero-page .product-hero .product-video,
.izajes-page .product-hero .product-video {
  z-index: 0 !important;
  filter: brightness(0.72) !important;
  --product-video-scale: 1 !important;
  transform: none !important;
}

.izajes-page.hero-page .product-page .product-section,
.izajes-page .product-page .product-section {
  padding-top: 0;
}

@media (max-width: 720px) {
  .izajes-page.hero-page .product-hero,
  .izajes-page .product-hero {
    min-height: 108vh;
    min-height: 108svh;
  }
}

.izajes-page .subcategory-content h3 {
  max-width: none;
  font-size: clamp(24px, 2.6vw, 36px);
}

.izajes-page .subcategory-content p {
  margin: 0;
  max-width: none;
  line-height: 1.7;
}

.izajes-page .subcategory-item {
  grid-template-columns: minmax(260px, 420px) 1fr;
  min-height: 0;
  column-gap: normal;
}

.izajes-page .subcategory-media {
  min-height: 250px;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 720px) {
  .izajes-page.hero-page .product-hero .hero-content,
  .izajes-page .product-hero .hero-content.hero-right {
    justify-items: center;
    text-align: center;
  }

  .izajes-page.hero-page .product-hero h1,
  .izajes-page.hero-page .product-hero .hero-description,
  .izajes-page .product-hero .hero-content.hero-right h1,
  .izajes-page .product-hero .hero-content.hero-right .hero-description {
    text-align: center;
  }

  .izajes-page.hero-page .product-hero .hero-scroll,
  .izajes-page .product-hero .hero-content.hero-right .hero-scroll {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Seccion: listado de subproductos en vista base.
   En movil las tarjetas necesitan ser mas compactas y con CTA visible sin
   quedar empujado demasiado abajo. */
.product-grid-page .subproduct-grid {
  grid-template-columns: repeat(var(--izajes-list-columns), minmax(0, 1fr));
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  gap: var(--izajes-list-gap);
}

.product-grid-page .product-list-header > .container,
.product-grid-page .product-grid-section > .container {
  width: min(var(--izajes-list-shell-width), 96vw);
  max-width: min(var(--izajes-list-shell-width), 96vw);
  margin-inline: auto;
}

.product-grid-page .subproduct-card {
  grid-template-rows: 210px auto auto;
  overflow: hidden;
}

.product-grid-page .subproduct-card-top {
  min-height: 0;
  padding: 18px 18px 10px;
}

.product-grid-page .subproduct-card h3 {
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.08;
  text-wrap: balance;
}

.product-grid-page .subproduct-cta {
  margin: 0 18px 18px;
}

@media (min-width: 1200px) {
  .izajes-page {
    --izajes-list-columns: 4;
    --izajes-list-card-width: 260px;
    --izajes-list-gap: 22px;
    --izajes-list-shell-padding-x: 28px;
  }
}

@media (min-width: 1680px) {
  .izajes-page {
    --izajes-list-columns: 5;
    --izajes-list-card-width: 244px;
    --izajes-list-gap: 22px;
    --izajes-list-shell-padding-x: 28px;
  }
}

@media (min-width: 2200px) {
  .izajes-page {
    --izajes-list-columns: 5;
    --izajes-list-card-width: 260px;
    --izajes-list-gap: 24px;
    --izajes-list-shell-padding-x: 32px;
  }
}

@media (max-width: 720px) {
  .izajes-page:not(.izajes-d3-catalog-page) .product-list-header > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-section > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-grid-section > .container {
    width: min(calc(100vw - 24px), var(--izajes-list-shell-width));
    margin-inline: auto;
  }

  .product-grid-page .product-list-header > .container,
  .product-grid-page .product-grid-section > .container {
    width: min(calc(100vw - 24px), var(--izajes-list-shell-width));
    margin-inline: auto;
  }

  .product-grid-page .subproduct-grid {
    gap: 16px;
    padding-bottom: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .product-grid-page .subproduct-card {
    grid-template-rows: 168px auto auto;
    border-radius: 20px;
  }

  .product-grid-page .subproduct-media {
    min-height: 168px !important;
    aspect-ratio: auto;
    padding: 12px;
    background-size: cover, cover;
    background-position: center;
  }

  .subproduct-media > img {
    padding: 12px;
  }

  .product-grid-page .subproduct-card-top {
    padding: 14px 14px 8px;
  }

  .product-grid-page .subproduct-card h3 {
    font-size: clamp(17px, 5.8vw, 24px);
    line-height: 1.06;
    max-width: 12ch;
  }

  .product-grid-page .subproduct-cta {
    display: flex;
    justify-content: center;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .product-grid-page .product-grid-section {
    padding-bottom: 108px;
  }

  .subcategory-media > img,
  .product-hero-slab-image > img {
    transform: none;
  }

  .subcategory-media > img {
    object-position: center;
    transform: none;
  }

  .izajes-page #izajesCards .product-card-media {
    padding: 14px;
  }

  .izajes-page #izajesCards .product-card-media.is-cable-card,
  .izajes-page #izajesCards .product-card-media.is-chain-card {
    background-size: 100% 100%, cover;
    background-position: center, center;
  }

}

@media (max-width: 420px) {
  .product-grid-page .subproduct-card {
    grid-template-rows: 154px auto auto;
  }

  .product-grid-page .subproduct-media {
    min-height: 154px !important;
  }

  .product-grid-page .subproduct-card h3 {
    font-size: clamp(16px, 7vw, 21px);
  }
}

/* Responsive real del diseno 1 de izajes.
   Estas reglas corrigen overrides de desktop que seguian forzando columnas
   anchas en categoria y listado dentro de tablet/movil. */
@media (max-width: 980px) {
  .izajes-page {
    --izajes-list-columns: 2;
    --izajes-list-card-width: minmax(0, 1fr);
    --izajes-list-gap: 16px;
    --izajes-list-shell-padding-x: 16px;
  }

  .izajes-page:not(.izajes-d3-catalog-page) .product-list-header > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-section > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-grid-section > .container,
  .product-grid-page .product-list-header > .container,
  .product-grid-page .product-grid-section > .container {
    width: min(calc(100vw - 32px), 100%);
    max-width: calc(100vw - 32px);
  }

  .izajes-page .listing-hero,
  .product-grid-page .listing-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    min-height: unset;
  }

  .izajes-page .listing-hero-copy {
    padding: 0;
  }

  .izajes-page .listing-hero-title {
    font-size: clamp(34px, 8vw, 52px);
    line-height: 0.96;
    text-wrap: balance;
  }

  .izajes-page .listing-hero-subtitle {
    font-size: clamp(18px, 4.2vw, 23px);
  }

  .izajes-page .listing-hero-media {
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
  }

  .izajes-page .category-intro-banner,
  .izajes-page .subcategory-item,
  .izajes-page .product-hero-slab {
    grid-template-columns: 1fr !important;
    min-height: unset;
  }

  .izajes-page .category-intro-media,
  .izajes-page .subcategory-media,
  .izajes-page .product-hero-slab-image {
    min-height: 220px;
  }

  .izajes-page .category-intro-content,
  .izajes-page .subcategory-content,
  .izajes-page .product-hero-slab-content {
    padding: 20px 18px;
  }

  .izajes-page .subcategory-content h3,
  .izajes-page .product-hero-slab-content h2,
  .izajes-page .category-intro-content h2 {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.04;
    text-wrap: balance;
  }

  .izajes-page .subcategory-content p,
  .izajes-page .category-intro-content p {
    max-width: none;
    font-size: 15px;
    line-height: 1.6;
  }

  .product-grid-page .subproduct-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 12px;
  }

  .product-grid-page .subproduct-card {
    min-width: 0;
    grid-template-rows: 172px auto auto;
  }

  .product-grid-page .subproduct-media {
    min-height: 172px !important;
    padding: 12px;
  }

  .product-grid-page .subproduct-card-top {
    padding: 14px 14px 8px;
  }

  .product-grid-page .subproduct-card h3 {
    max-width: none;
    font-size: clamp(17px, 4.6vw, 23px);
    line-height: 1.08;
  }

  .product-grid-page .subproduct-cta {
    width: calc(100% - 28px);
    justify-content: center;
    margin: 0 14px 14px;
    padding: 12px 14px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .izajes-page:not(.izajes-d3-catalog-page) .product-list-header > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-section > .container,
  .izajes-page:not(.izajes-d3-catalog-page) .product-grid-section > .container,
  .product-grid-page .product-list-header > .container,
  .product-grid-page .product-grid-section > .container {
    width: min(calc(100vw - 20px), 100%);
    max-width: calc(100vw - 20px);
  }

  .izajes-page .product-list-header {
    padding: 18px 0 10px;
  }

  .izajes-page .listing-hero,
  .product-grid-page .listing-hero {
    padding: 14px;
    gap: 14px;
    border-radius: 18px;
  }

  .izajes-page .listing-hero-actions {
    gap: 8px;
  }

  .izajes-page .product-back-link {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }

  .izajes-page .listing-hero-title {
    font-size: clamp(26px, 8.4vw, 36px);
  }

  .izajes-page .listing-hero-subtitle {
    font-size: 15px;
  }

  .izajes-page .listing-hero-media,
  .izajes-page .category-intro-media,
  .izajes-page .subcategory-media,
  .izajes-page .product-hero-slab-image {
    min-height: 180px;
  }

  .izajes-page .category-intro-content,
  .izajes-page .subcategory-content,
  .izajes-page .product-hero-slab-content {
    padding: 16px 14px;
    gap: 10px;
  }

  .product-grid-page .subproduct-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-grid-page .subproduct-card {
    grid-template-rows: 180px auto auto;
  }

  .product-grid-page .subproduct-media {
    min-height: 180px !important;
  }

  .product-grid-page .subproduct-card h3 {
    font-size: clamp(20px, 6.8vw, 26px);
  }
}

.sling-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Seccion: overrides oscuros propios del diseno 2 de izajes.
   Este bloque absorbe reglas que antes vivian en productos.css y mezclaban
   responsabilidades de detalle/categoria de izajes con modulos ajenos. */
body.dark .izajes-d2-page,
body.dark .d2-detail-page {
  background: linear-gradient(180deg, #151719 0%, #101113 100%) !important;
}

body.dark .izajes-d2-block,
body.dark .sling-builder-card,
body.dark .sling-builder-preview-wrap,
body.dark .sling-builder-form,
body.dark .sling-accessories,
body.dark .d2-detail-card,
body.dark .d2-detail-extra,
body.dark .d2-tech-summary,
body.dark .d2-rigging-modes,
body.dark .d2-capacity-table-wrap,
body.dark .d2-builder,
body.dark .d2-builder-preview,
body.dark .d2-builder-form,
body.dark .d2-builder-extended,
body.dark .d2-simple-quote,
body.dark .d2-rigging-media,
body.dark .d2-model-preview-frame,
body.dark .d2-capacity-table-scroll {
  background: linear-gradient(180deg, #222222 0%, #1b1b1b 100%) !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #f3f3f3 !important;
  box-shadow: 0 16px 30px rgba(0,0,0,0.22) !important;
}

body.dark .d2-capacity-table-wrap {
  box-shadow: 0 18px 34px rgba(0,0,0,0.22) !important;
}

body.dark .d2-detail-page::before,
body.dark .d2-detail-page::after,
body.dark .izajes-d2-page::before,
body.dark .izajes-d2-page::after,
body.dark .d2-rigging-media::before,
body.dark .d2-rigging-media::after,
body.dark .d2-model-preview-frame::before,
body.dark .d2-model-preview-frame::after {
  background: none !important;
  background-image: none !important;
  border-color: rgba(189, 196, 204, 0.10) !important;
  opacity: 0.28 !important;
}

body.dark .d2-tech-summary h3,
body.dark .d2-rigging-modes h3,
body.dark .d2-tech-chip-label,
body.dark .d2-tech-chip-value,
body.dark .d2-tech-paragraph,
body.dark .d2-rigging-subtitle,
body.dark .d2-rigging-content h4,
body.dark .d2-rigging-content p,
body.dark .d2-builder h3,
body.dark .d2-builder-subtitle,
body.dark .d2-builder-extended h4,
body.dark .d2-builder-extended p,
body.dark #d2ModelName,
body.dark #d2ModelMeasure,
body.dark .d2-simple-quote h3,
body.dark .d2-simple-quote-subtitle,
body.dark .d2-simple-quote-form label span {
  color: #f3f3f3 !important;
}

body.dark .d2-tech-chip,
body.dark .d2-rigging-tab,
body.dark .d2-capacity-figure-tab,
body.dark .d2-model-btn {
  background: linear-gradient(180deg, #303338 0%, #26292d 100%) !important;
  border-color: rgba(189, 196, 204, 0.16) !important;
  color: #eee7da !important;
}

body.dark .d2-rigging-tab.is-active,
body.dark .d2-capacity-figure-tab.is-active,
body.dark .d2-model-btn.is-active {
  background: linear-gradient(180deg, #4a4f56 0%, #34383e 100%) !important;
  border-color: rgba(211, 216, 223, 0.16) !important;
  color: #f4efe6 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18) !important;
}

body.dark .sling-field input,
body.dark .sling-field select,
body.dark .sling-btn-secondary,
body.dark .d2-builder-fields input,
body.dark .d2-builder-fields select,
body.dark .d2-builder-extra-fields input,
body.dark .d2-builder-extra-fields select,
body.dark .d2-builder-extra-fields textarea,
body.dark .d2-builder-usage textarea,
body.dark .d2-builder-usage input,
body.dark .d2-simple-quote-form input,
body.dark .d2-simple-quote-form textarea {
  background: #2a2d31 !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #f3f3f3 !important;
}

body.dark .d2-simple-quote {
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%) !important;
  border-color: rgba(255,255,255,0.26) !important;
  color: #ffffff !important;
}

body.dark .d2-capacity-table thead th {
  background: #26292e !important;
  color: #f3f3f3 !important;
  border-color: rgba(201, 208, 216, 0.18) !important;
}

body.dark .d2-capacity-table tbody td {
  background: #1c1f23 !important;
  color: #f3f3f3 !important;
  border-color: rgba(201, 208, 216, 0.10) !important;
}

body.dark .d2-tech-summary,
body.dark .d2-rigging-modes,
body.dark .d2-detail-extra {
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%) !important;
}

/* Diseno 3 de categoria convertido a listado de productos.
   Esta capa compacta las tarjetas para que la vista funcione como catalogo:
   imagen, nombre y CTA, sin parrafos intermedios ni ruido visual. */
.izajes-d3-catalog-page .product-hero-slab {
  margin-bottom: 20px;
}

.izajes-d3-catalog-page .product-hero-slab-content {
  gap: 10px;
}

.izajes-d3-catalog-page .product-hero-slab-content h2 {
  margin-bottom: 0;
}

.izajes-d3-catalog-page .subproduct-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .izajes-d3-catalog-page .subproduct-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .izajes-d3-catalog-page .subproduct-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .izajes-d3-catalog-page .subproduct-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1700px) {
  .izajes-d3-catalog-page .subproduct-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.izajes-d3-catalog-page .subproduct-card {
  display: grid;
  grid-template-rows: 220px auto auto;
  border-radius: 20px;
  overflow: hidden;
}

.izajes-d3-catalog-page .subproduct-media {
  position: relative;
  min-height: 220px;
  background-color: #f3f6fc;
  overflow: hidden;
}

.izajes-d3-catalog-page .subproduct-card.no-image .subproduct-media {
  background: linear-gradient(180deg, #eef3fa 0%, #e5edf8 100%);
}

.izajes-d3-catalog-page .subproduct-media-stage {
  position: absolute;
  inset: 0;
}

.izajes-d3-catalog-page .subproduct-media-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 180ms ease;
}

.izajes-d3-catalog-page .subproduct-media-layer.is-active {
  opacity: 1;
}

.izajes-d3-catalog-page .subproduct-media-switch {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.izajes-d3-catalog-page .subproduct-media-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 43, 122, 0.28);
  background: rgba(255, 255, 255, 0.85);
  padding: 0;
  cursor: pointer;
}

.izajes-d3-catalog-page .subproduct-media-dot.is-active {
  background: #1c2b7a;
  border-color: #1c2b7a;
}

.izajes-d3-catalog-page .subproduct-card-top {
  padding: 16px 16px 10px;
}

.izajes-d3-catalog-page .subproduct-card h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
}

.izajes-d3-catalog-page .subproduct-card p {
  display: none;
}

.izajes-d3-catalog-page .subproduct-cta {
  margin: 0 16px 16px;
  width: fit-content;
  padding: 10px 14px;
}

body.dark.izajes-d3-catalog-page .subproduct-card {
  background: #1d1f24;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark.izajes-d3-catalog-page .subproduct-media {
  background-color: #17191d;
}

body.dark.izajes-d3-catalog-page .subproduct-card.no-image .subproduct-media {
  background: linear-gradient(180deg, #17191d 0%, #121418 100%);
}

body.dark.izajes-d3-catalog-page .subproduct-media-dot {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

body.dark.izajes-d3-catalog-page .subproduct-media-dot.is-active {
  background: #f0f0f0;
  border-color: #f0f0f0;
}
/* Detalle Diseño 3: estabilizar imagen principal y diseñar el zoom/carousel */
.d3-detail-page .product-detail-card {
  grid-template-columns: 420px 1fr;
  grid-template-areas:
    "media content";
  align-items: start;
  gap: 36px;
  padding: 34px;
  border-radius: 34px;
  background: #fdfdfd;
  box-shadow: 0 28px 60px rgba(22, 32, 80, 0.12);
  position: relative;
  overflow: hidden;
  width: min(100%, 1240px);
  margin-inline: auto;
}

.d3-detail-page .product-detail-card::before,
.d3-detail-page .product-detail-card::after {
  display: none !important;
}

.d3-detail-page .product-detail-image {
  grid-area: media;
  --zoom-x: 50%;
  --zoom-y: 50%;
  aspect-ratio: 5 / 6;
  min-height: 480px;
  height: 480px;
  max-height: 480px;
  padding: 0;
  border-radius: 32px;
  border: 1px solid rgba(26, 32, 73, 0.08);
  background: linear-gradient(180deg, #eef2fb 0%, #f6f8fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  flex: 0 0 420px;
  box-sizing: border-box;
}

.d3-detail-page .product-detail-image::before,
.d3-detail-page .product-detail-image::after,
.d3-detail-page .product-detail-image.no-image::before,
.d3-detail-page .product-detail-image.no-image::after {
  content: none;
  display: none;
}

.d3-detail-page .product-detail-image-asset {
  position: absolute;
  inset: 28px 96px 28px 28px;
  width: calc(100% - 124px);
  height: calc(100% - 56px);
  max-width: none;
  max-height: none;
  margin: 0;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(1);
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform 200ms ease;
  cursor: zoom-in;
}

.d3-detail-page .product-detail-image button {
  display: none !important;
}

.d3-detail-page .product-detail-image.is-zooming .product-detail-image-asset {
  transform: scale(1.65);
}

.d3-detail-page .detail-zoom-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(173, 181, 200, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2b2c33;
  box-shadow: 0 12px 24px rgba(25, 34, 75, 0.16);
  pointer-events: none;
  z-index: 2;
}

.d3-detail-page .product-detail-content {
  grid-area: content;
  align-self: center;
  align-content: center;
  min-height: 100%;
  gap: 12px;
  padding-top: 0;
}

.d3-detail-page .product-detail-content h2 {
  display: none;
}

.d3-detail-page .product-detail-thumbnails {
  display: flex;
  position: absolute;
  top: 50%;
  right: 16px;
  left: auto;
  bottom: auto;
  width: 72px;
  max-width: 72px;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid rgba(202, 211, 229, 0.82);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(242, 246, 253, 0.88) 0%, rgba(237, 242, 251, 0.84) 100%);
  box-shadow:
    0 12px 24px rgba(17, 29, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  box-sizing: border-box;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.d3-detail-page .product-detail-thumbnails button {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(164, 177, 209, 0.72);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  padding: 7px;
  box-shadow:
    0 12px 24px rgba(17, 29, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.d3-detail-page .product-detail-thumbnails button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  transition: transform 180ms ease, filter 180ms ease;
}

.d3-detail-page .product-detail-thumbnails button:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 66, 156, 0.42);
  box-shadow:
    0 16px 28px rgba(17, 29, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.d3-detail-page .product-detail-thumbnails button.is-active {
  border-color: #1c2b7a;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #f8fbff 0%, #ebf1ff 100%);
  transform: translateY(-3px);
  box-shadow:
    0 18px 30px rgba(28, 43, 122, 0.20),
    0 0 0 4px rgba(28, 43, 122, 0.10);
}

.d3-detail-page .product-detail-thumbnails button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c2b7a 0%, #4361d3 100%);
  transform: translateX(-50%);
}

.d3-detail-page .product-detail-thumbnails button.is-active img,
.d3-detail-page .product-detail-thumbnails button:hover img {
  transform: scale(1.03);
}

.d3-detail-page .product-detail-thumbnails button:focus-visible {
  outline: none;
  border-color: #1d4ed8;
  box-shadow:
    0 0 0 4px rgba(29, 78, 216, 0.16),
    0 14px 26px rgba(17, 29, 74, 0.12);
}

/* Detalle d3: ocultar tabs y mostrar paneles en bloque */
.d3-detail-page .product-detail-tabs {
  display: none !important;
}
.d3-detail-page .product-detail-panel {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.d3-detail-page .product-detail-panel + .product-detail-panel {
  margin-top: 18px;
}

.d3-detail-page .product-detail-extra-sections {
  margin-top: 26px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 24px;
  width: min(100%, 1240px);
  margin-inline: auto;
  min-width: 0;
}

.d3-detail-page .product-detail-panel {
  margin-top: 0 !important;
  min-width: 0;
}

.d3-detail-page .product-detail-extra-sections > *,
.d3-detail-page [data-panel="medidas"],
.d3-detail-page #detalleMedidasContent,
.d3-detail-page .d3-measures-card,
.d3-detail-page .d3-sheet-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.d3-detail-page [data-panel="tecnica"] .tecnica-block {
  padding: 24px 26px;
  border-radius: 30px;
  border: 1px solid #d9dee7;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(45, 73, 182, 0.08), rgba(45, 73, 182, 0) 36%),
    radial-gradient(90% 90% at 0% 100%, rgba(143, 152, 170, 0.10), rgba(143, 152, 170, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
  box-shadow:
    0 18px 42px rgba(16, 24, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.d3-detail-page [data-panel="tecnica"] .tecnica-block h4 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.5vw, 28px);
}

.d3-detail-page .d3-measures-card {
  position: relative;
  padding: 24px;
  border: 1px solid #d9dee7;
  border-radius: 32px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(45, 73, 182, 0.08), rgba(45, 73, 182, 0) 36%),
    radial-gradient(90% 90% at 0% 100%, rgba(143, 152, 170, 0.10), rgba(143, 152, 170, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
  box-shadow:
    0 18px 42px rgba(16, 24, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.d3-detail-page .d3-measures-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.d3-detail-page .d3-measures-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d9dee7;
  background: linear-gradient(135deg, #f8faff 0%, #eef2fb 100%);
  color: #1c2b7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.d3-detail-page .d3-measures-card-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f49b6 0%, #5c73c9 100%);
  box-shadow: 0 0 0 4px rgba(47, 73, 182, 0.10);
}

.d3-detail-page .d3-measures-card h3 {
  margin: 12px 0 6px;
  color: #1c2b7a;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.05;
}

.d3-detail-page .d3-measures-card-head p {
  margin: 0;
  max-width: 62ch;
  color: #536076;
  line-height: 1.55;
}

.d3-detail-page .d3-measures-scroll-hint {
  display: none;
  margin: -4px 0 14px;
  color: #5a6782;
  font-size: 12px;
  line-height: 1.45;
}

.d3-detail-page .d3-sheet-table-wrap,
.d3-detail-page .d2-capacity-table,
.d3-detail-page .measure-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable both-edges;
  padding: 10px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 73, 182, 0.42) rgba(223, 229, 243, 0.88);
}

.d3-detail-page .d3-sheet-table-wrap {
  border: 1px solid rgba(217, 222, 231, 0.95);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(244, 246, 252, 0.88) 0%, rgba(250, 251, 254, 0.96) 100%);
}

.d3-detail-page .d3-sheet-table-wrap:focus-visible {
  outline: 2px solid rgba(47, 73, 182, 0.36);
  outline-offset: 4px;
}

.d3-detail-page .d3-sheet-table-wrap.is-touch-dragging,
.d3-detail-page .d2-capacity-table.is-touch-dragging,
.d3-detail-page .measure-table-wrap.is-touch-dragging {
  user-select: none;
  -webkit-user-select: none;
}

.d3-detail-page .d3-sheet-table-wrap::-webkit-scrollbar,
.d3-detail-page .d2-capacity-table::-webkit-scrollbar,
.d3-detail-page .measure-table-wrap::-webkit-scrollbar {
  height: 14px;
}

.d3-detail-page .d3-sheet-table-wrap::-webkit-scrollbar-thumb,
.d3-detail-page .d2-capacity-table::-webkit-scrollbar-thumb,
.d3-detail-page .measure-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(47, 73, 182, 0.42);
  border: 3px solid rgba(223, 229, 243, 0.88);
  border-radius: 999px;
}

.d3-detail-page .d3-sheet-table-wrap::-webkit-scrollbar-track,
.d3-detail-page .d2-capacity-table::-webkit-scrollbar-track,
.d3-detail-page .measure-table-wrap::-webkit-scrollbar-track {
  background: rgba(223, 229, 243, 0.88);
  border-radius: 999px;
}

.d3-detail-page .d3-sheet-table {
  width: max-content;
  min-width: max(100%, var(--d3-sheet-table-min-width, 720px));
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  overflow: hidden;
}

.d3-detail-page .d3-sheet-table thead th {
  padding: 18px 18px;
  border-bottom: 1px solid #dbe3f2;
  background: #e4eaf8;
  color: #1f3a8a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.d3-detail-page .d3-sheet-table thead th:first-child {
  border-top-left-radius: 22px;
}

.d3-detail-page .d3-sheet-table thead th:last-child {
  border-top-right-radius: 22px;
}

.d3-detail-page .d3-sheet-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #e6ebf5;
  background: rgba(255, 255, 255, 0.98);
  color: #10255f;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.d3-detail-page .d3-sheet-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.d3-detail-page .d3-sheet-table thead th,
.d3-detail-page .d3-sheet-table tbody td {
  min-width: unset;
}

.d3-detail-page .d3-sheet-table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 14px;
  border: 1px solid rgba(47, 73, 182, 0.22);
  border-radius: 999px;
  background: #f5f7ff;
  color: #1c2b7a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.d3-detail-page .d3-sheet-table-btn:hover {
  background: #1c2b7a;
  color: #ffffff;
  border-color: #1c2b7a;
}

.d3-detail-page .d3-measures-card-table {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable both-edges;
  padding: 8px;
  border: 1px solid rgba(217, 222, 231, 0.95);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244, 246, 252, 0.88) 0%, rgba(250, 251, 254, 0.96) 100%);
}

.d3-detail-page .d3-measures-card .measure-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable both-edges;
  padding: 10px 10px 14px;
  border-radius: 26px;
}

.d3-detail-page .d3-table-scroll,
.d3-detail-page .d3-measures-card-table,
.d3-detail-page .d3-measures-card .measure-table-wrap {
  cursor: auto;
}

.d3-detail-page .d3-table-scroll.is-dragging,
.d3-detail-page .d3-measures-card-table.is-dragging,
.d3-detail-page .d3-measures-card .measure-table-wrap.is-dragging {
  cursor: auto;
  user-select: auto;
}

.d3-detail-page .d3-product-detail-table tbody td:last-child,
.d3-detail-page .d3-product-detail-table thead th:last-child {
  min-width: 108px;
}

.d3-detail-page .d3-product-detail-table {
  width: max-content !important;
  min-width: var(--d3-table-min-width, 720px) !important;
  table-layout: auto !important;
}

.d3-detail-page .d3-measures-card-table::-webkit-scrollbar,
.d3-detail-page .d3-measures-card .measure-table-wrap::-webkit-scrollbar {
  height: 14px;
}

.d3-detail-page .d3-measures-card-table::-webkit-scrollbar-thumb,
.d3-detail-page .d3-measures-card .measure-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(47, 73, 182, 0.42);
  border: 3px solid rgba(223, 229, 243, 0.88);
  border-radius: 999px;
}

.d3-detail-page .d3-measures-card-table::-webkit-scrollbar-track,
.d3-detail-page .d3-measures-card .measure-table-wrap::-webkit-scrollbar-track {
  background: rgba(223, 229, 243, 0.88);
  border-radius: 999px;
}

.d3-detail-page .d2-capacity-table {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.d3-detail-page .d2-capacity-table table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  overflow: hidden;
  table-layout: auto;
}

.d3-detail-page .d2-capacity-table thead th {
  background: #e7ecf8;
  color: #1f3a8a;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 11px;
  border-right: 1px solid #dde3f0;
  border-bottom: 1px solid #dde3f0;
  line-height: 1.2;
  white-space: normal;
  min-width: 82px;
}

.d3-detail-page .d2-capacity-table thead tr.d2-th-groups th {
  background: #f3f6fc;
}

.d3-detail-page .d2-capacity-table thead th .d2-th-main,
.d3-detail-page .d2-capacity-table thead th .d2-th-sub {
  display: block;
}

.d3-detail-page .d2-capacity-table thead th .d2-th-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.d3-detail-page .d2-capacity-table thead th:last-child {
  min-width: 108px;
  width: 108px;
  border-right: none;
}

.d3-detail-page .d2-capacity-table tbody td {
  text-align: center;
  color: #22345f;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 11px;
  border-top: 1px solid #e2e9fb;
  background: rgba(255, 255, 255, 0.98);
  white-space: nowrap;
}

.d3-detail-page .d2-capacity-table thead th:first-child,
.d3-detail-page .d2-capacity-table tbody td:first-child {
  min-width: 140px;
}

.d3-detail-page .d2-capacity-table thead th:not(:first-child):not(:last-child),
.d3-detail-page .d2-capacity-table tbody td:not(:first-child):not(:last-child) {
  min-width: 86px;
}

.d3-detail-page .d2-capacity-table tbody tr:nth-child(even) td {
  background: #f8faff;
}

.d3-detail-page .measure-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f7ff;
  color: #1c2b7a;
  border: 1px solid rgba(28, 43, 122, 0.18);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.d3-detail-page .measure-quote-btn:hover {
  background: #1c2b7a;
  color: #ffffff;
  border-color: #1c2b7a;
}

body.dark .d3-detail-page .product-detail-extra-sections {
  background: transparent;
}

body.dark .d3-detail-page .product-detail-thumbnails {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(35, 38, 42, 0.96) 0%, rgba(27, 30, 34, 0.94) 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .d3-detail-page .product-detail-thumbnails button {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #2c3035 0%, #23262b 100%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .d3-detail-page .product-detail-thumbnails button:hover {
  border-color: rgba(230, 234, 244, 0.26);
}

body.dark .d3-detail-page .product-detail-thumbnails button.is-active {
  border-color: #f3f3f3;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #35393f 0%, #2a2d32 100%);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.08);
}

body.dark .d3-detail-page .product-detail-thumbnails button.is-active::after {
  background: linear-gradient(90deg, #f3f3f3 0%, #cfd5df 100%);
}

body.dark .d3-detail-page [data-panel="tecnica"] .tecnica-block,
body.dark .d3-detail-page .d3-measures-card {
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 18px 34px rgba(0,0,0,0.22);
}

body.dark .d3-detail-page .d3-measures-card-kicker {
  background: linear-gradient(180deg, #303338 0%, #26292d 100%);
  border-color: rgba(189, 196, 204, 0.16);
  color: #f4efe6;
}

body.dark .d3-detail-page .d3-measures-card h3,
body.dark .d3-detail-page .d3-measures-card-head p {
  color: #f3f3f3;
}

body.dark .d3-detail-page .d3-measures-scroll-hint {
  color: #c4ccd9;
}

body.dark .d3-detail-page .d3-sheet-table-wrap {
  background: linear-gradient(180deg, rgba(35, 38, 42, 0.94) 0%, rgba(27, 30, 34, 0.98) 100%);
  border-color: rgba(255,255,255,0.12);
}

body.dark .d3-detail-page .d3-sheet-table-wrap,
body.dark .d3-detail-page .d2-capacity-table,
body.dark .d3-detail-page .measure-table-wrap {
  scrollbar-color: rgba(243, 243, 243, 0.26) rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d3-sheet-table-wrap::-webkit-scrollbar-thumb,
body.dark .d3-detail-page .d2-capacity-table::-webkit-scrollbar-thumb,
body.dark .d3-detail-page .measure-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(243, 243, 243, 0.26);
  border-color: rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d3-sheet-table-wrap::-webkit-scrollbar-track,
body.dark .d3-detail-page .d2-capacity-table::-webkit-scrollbar-track,
body.dark .d3-detail-page .measure-table-wrap::-webkit-scrollbar-track {
  background: rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d3-sheet-table {
  background: #1c1f23;
}

body.dark .d3-detail-page .d3-sheet-table thead th {
  background: #26292e;
  color: #f3f3f3;
  border-color: rgba(201, 208, 216, 0.18);
}

body.dark .d3-detail-page .d3-sheet-table tbody td {
  background: #1c1f23;
  color: #f3f3f3;
  border-color: rgba(201, 208, 216, 0.10);
}

body.dark .d3-detail-page .d3-sheet-table tbody tr:nth-child(even) td {
  background: #171a1f;
}

body.dark .d3-detail-page .d3-sheet-table-btn {
  background: #2a2d31;
  color: #f3f3f3;
  border-color: rgba(255,255,255,0.14);
}

body.dark .d3-detail-page .d3-sheet-table-btn:hover {
  background: #f3f3f3;
  color: #17191d;
  border-color: #f3f3f3;
}

body.dark .d3-detail-page .d3-measures-card-table {
  background: linear-gradient(180deg, rgba(35, 38, 42, 0.94) 0%, rgba(27, 30, 34, 0.98) 100%);
  border-color: rgba(255,255,255,0.12);
}

body.dark .d3-detail-page .d3-table-scroll-sync {
  scrollbar-color: rgba(243, 243, 243, 0.30) rgba(63, 68, 77, 0.92);
  background: rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d3-table-scroll {
  background: linear-gradient(180deg, rgba(35, 38, 42, 0.94) 0%, rgba(27, 30, 34, 0.98) 100%);
  border-color: rgba(255,255,255,0.12);
}

body.dark .d3-detail-page .d3-table-scroll-sync::-webkit-scrollbar-thumb {
  background: rgba(243, 243, 243, 0.30);
  border-color: rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d3-table-scroll-sync::-webkit-scrollbar-track {
  background: rgba(63, 68, 77, 0.92);
}

body.dark .d3-detail-page .d2-capacity-table table {
  background: rgba(16, 24, 44, 0.92);
}

body.dark .d3-detail-page .d2-capacity-table thead th {
  background: #26292e;
  color: #f3f3f3;
  border-color: rgba(201, 208, 216, 0.18);
}

body.dark .d3-detail-page .d2-capacity-table thead tr.d2-th-groups th {
  background: #1f2328;
}

body.dark .d3-detail-page .d2-capacity-table tbody td {
  background: #1c1f23;
  color: #f3f3f3;
  border-color: rgba(201, 208, 216, 0.10);
}

body.dark .d3-detail-page .d2-capacity-table tbody tr:nth-child(even) td {
  background: #171a1f;
}

body.dark .d3-detail-page .measure-quote-btn {
  background: #2a2d31;
  color: #f3f3f3;
  border-color: rgba(255,255,255,0.14);
}

body.dark .d3-detail-page .measure-quote-btn:hover {
  background: #f3f3f3;
  color: #17191d;
  border-color: #f3f3f3;
}

@media (max-width: 1280px) {
  .d3-detail-page .product-detail-card {
    grid-template-columns: 360px 1fr;
    gap: 28px;
    padding: 28px;
  }

  .d3-detail-page .product-detail-image {
    width: 360px;
    flex-basis: 360px;
    min-height: 420px;
    height: 420px;
    max-height: 420px;
  }

  .d3-detail-page .product-detail-image-asset {
    inset: 24px 82px 24px 24px;
    width: calc(100% - 106px);
    height: calc(100% - 48px);
    max-width: none;
    max-height: none;
  }

  .d3-detail-page .d3-measures-card,
  .d3-detail-page [data-panel="tecnica"] .tecnica-block {
    padding: 22px;
  }

  .d3-detail-page .d2-capacity-table {
    width: 100%;
  }

  .d3-detail-page .d2-capacity-table table {
    min-width: 860px;
  }
}

@media (max-width: 1000px) {
  .d3-detail-page .product-detail-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    gap: 28px;
  }

  .d3-detail-page .product-detail-image {
    aspect-ratio: 5 / 6;
    height: clamp(340px, 62vw, 460px);
    min-height: clamp(340px, 62vw, 460px);
    max-height: 460px;
    width: 100%;
    flex: 0 0 100%;
    border-radius: 32px;
    border-bottom: 1px solid rgba(26, 32, 73, 0.08);
  }

  .d3-detail-page .product-detail-image-asset {
    inset: 22px 76px 22px 22px;
    width: calc(100% - 98px);
    height: calc(100% - 44px);
    max-width: none;
    max-height: none;
  }

  .d3-detail-page .detail-zoom-badge {
    right: 54px;
  }

  .d3-detail-page .product-detail-content {
    align-self: start;
    align-content: start;
    min-height: auto;
  }

  .d3-detail-page .product-detail-thumbnails {
    top: 50%;
    right: 14px;
    left: auto;
    bottom: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid rgba(198, 207, 226, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 14px 28px rgba(16, 24, 40, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 10px;
    transform: translateY(-50%);
  }

  .d3-detail-page .product-detail-thumbnails button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .d3-detail-page .product-detail-thumbnails button img {
    border-radius: 14px;
  }

  body.dark .d3-detail-page .product-detail-thumbnails {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(27, 30, 34, 0.92);
    box-shadow:
      0 16px 30px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .d3-detail-page [data-panel="tecnica"] .tecnica-block,
  .d3-detail-page .d3-measures-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .d3-detail-page .d3-sheet-table-wrap {
    padding: 8px 8px 12px;
    border-radius: 24px;
  }

  .d3-detail-page .d3-sheet-table thead th,
  .d3-detail-page .d3-sheet-table tbody td {
    padding: 13px 14px;
  }

  .d3-detail-page .d3-table-scroll-sync {
    top: calc(var(--header-height, 78px) + 6px);
  }

  .d3-detail-page .d3-table-scroll,
  .d3-detail-page .d3-measures-card-table {
    padding: 6px;
    border-radius: 22px;
  }

  .d3-detail-page .d2-capacity-table table {
    min-width: 760px;
  }
}

@media (max-width: 760px) {
  .d3-detail-page .product-list-header {
    padding: 24px 0 10px;
  }

  .d3-detail-page .product-detail-card {
    padding: 20px;
    gap: 20px;
    border-radius: 26px;
  }

  .d3-detail-page .product-detail-content h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .d3-detail-page .product-detail-tags {
    gap: 8px;
  }

  .d3-detail-page .product-meta-group {
    padding: 14px 14px 16px;
    border-radius: 22px;
  }

  .d3-detail-page .product-meta-group-title {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .d3-detail-page .product-meta-group-list {
    gap: 8px;
  }

  .d3-detail-page .product-tag {
    padding: 8px 12px;
    font-size: 13px;
  }

  .d3-detail-page .detail-zoom-badge {
    right: 41px;
  }

  .d3-detail-page .product-detail-thumbnails {
    top: 86px;
    right: 26px;
    gap: 9px;
    padding: 10px 8px;
    width: auto;
    border-radius: 22px;
  }

  .d3-detail-page .product-detail-thumbnails button {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .d3-detail-page .product-detail-thumbnails button img {
    border-radius: 13px;
  }

  .d3-detail-page .product-detail-extra-sections {
    gap: 18px;
  }

  .d3-detail-page .d3-measures-card-head {
    margin-bottom: 14px;
  }

  .d3-detail-page .d3-measures-card h3 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .d3-detail-page .d3-measures-card-head p {
    font-size: 14px;
  }

  .d3-detail-page .d3-measures-scroll-hint {
    display: block;
  }

  .d3-detail-page .d3-sheet-table-wrap {
    padding: 6px 6px 10px;
    border-radius: 20px;
  }

  .d3-detail-page .d3-sheet-table thead th,
  .d3-detail-page .d3-sheet-table tbody td {
    padding: 12px 12px;
    font-size: 12px;
  }

  .d3-detail-page .d3-sheet-table-btn {
    padding: 7px 12px;
    min-width: 78px;
    font-size: 11px;
  }

  .d3-detail-page .d3-table-scroll-sync {
    top: calc(var(--header-height, 78px) + 4px);
    height: 14px;
    margin-bottom: 8px;
  }

  .d3-detail-page .d3-table-scroll-sync::-webkit-scrollbar {
    height: 12px;
  }

  .d3-detail-page .d3-table-scroll,
  .d3-detail-page .d3-measures-card-table,
  .d3-detail-page .measure-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 6px 4px 6px;
    border-radius: 20px;
  }

  .d3-detail-page .d2-capacity-table,
  .d3-detail-page .measure-table {
    width: max-content;
    min-width: 100%;
  }

  .d3-detail-page .d2-capacity-table table,
  .d3-detail-page .measure-table {
    min-width: 720px;
    width: max-content;
  }

  .d3-detail-page .d2-capacity-table thead,
  .d3-detail-page .measure-table thead {
    display: table-header-group;
  }

  .d3-detail-page .d2-capacity-table tbody,
  .d3-detail-page .d2-capacity-table tr,
  .d3-detail-page .measure-table tbody,
  .d3-detail-page .measure-table tr {
    display: table-row-group;
  }

  .d3-detail-page .d2-capacity-table tr,
  .d3-detail-page .measure-table tr {
    display: table-row;
  }

  .d3-detail-page .d2-capacity-table th,
  .d3-detail-page .d2-capacity-table td,
  .d3-detail-page .measure-table th,
  .d3-detail-page .measure-table td {
    min-width: 88px !important;
    padding: 11px 10px;
    white-space: nowrap;
  }

  .d3-detail-page .d2-capacity-table tbody td::before,
  .d3-detail-page .measure-table tbody td::before {
    content: none;
  }
}

@media (max-width: 560px) {
  .d3-detail-page .product-detail-card {
    padding: 16px;
    border-radius: 22px;
  }

  .d3-detail-page .product-detail-image {
    height: clamp(250px, 78vw, 340px);
    min-height: clamp(250px, 78vw, 340px);
    max-height: 340px;
    border-radius: 24px;
  }

  .d3-detail-page .detail-zoom-badge {
    top: 14px;
    right: 32px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .d3-detail-page .product-detail-thumbnails button {
    width: 48px;
    height: 48px;
  }

  .d3-detail-page .product-detail-thumbnails {
    top: 80px;
    right: 20px;
    padding: 8px 7px;
    width: auto;
    border-radius: 20px;
  }

  .d3-detail-page .product-meta-group {
    padding: 12px 12px 14px;
    border-radius: 20px;
  }

  .d3-detail-page .product-meta-group-list {
    gap: 7px;
  }

  .d3-detail-page .product-tag {
    padding: 7px 11px;
    font-size: 12px;
  }

  .d3-detail-page .d3-measures-card,
  .d3-detail-page [data-panel="tecnica"] .tecnica-block {
    padding: 16px;
    border-radius: 20px;
  }

  .d3-detail-page .d3-measures-card-kicker {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .d3-detail-page .d3-sheet-table-wrap {
    padding: 4px 4px 8px;
    border-radius: 18px;
  }

  .d3-detail-page .d3-sheet-table thead th,
  .d3-detail-page .d3-sheet-table tbody td {
    padding: 10px 10px;
    font-size: 11px;
  }

  .d3-detail-page .d3-table-scroll,
  .d3-detail-page .d3-measures-card-table {
    padding: 4px;
    border-radius: 18px;
  }

  .d3-detail-page .d3-table-scroll-sync {
    top: calc(var(--header-height, 78px) + 2px);
  }

  .d3-detail-page .d2-capacity-table table,
  .d3-detail-page .measure-table {
    min-width: 620px;
  }

  .d3-detail-page .d2-capacity-table th,
  .d3-detail-page .d2-capacity-table td,
  .d3-detail-page .measure-table th,
  .d3-detail-page .measure-table td {
    padding: 10px 9px;
    font-size: 12px;
  }

  .d3-detail-page .d2-capacity-table thead th:first-child,
  .d3-detail-page .d2-capacity-table tbody td:first-child,
  .d3-detail-page .measure-table thead th:first-child,
  .d3-detail-page .measure-table tbody td:first-child {
    min-width: 116px !important;
  }

  .d3-detail-page .measure-quote-btn {
    padding: 5px 9px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .d3-detail-page .product-detail-image-asset {
    box-sizing: border-box;
    padding-right: 88px;
    object-position: 42% 50%;
  }

  .d3-detail-page .detail-zoom-badge {
    right: 30px;
  }

  .d3-detail-page .product-detail-thumbnails {
    top: 78px;
    right: 18px;
  }
}

@media (max-width: 760px) {
  .izajes-page .product-detail-page:not(.d3-detail-page) .product-detail-tags {
    gap: 8px;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-meta-group {
    padding: 14px 14px 16px;
    border-radius: 22px;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-meta-group-title {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-meta-group-list {
    gap: 8px;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-tag {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .izajes-page .product-detail-page:not(.d3-detail-page) .product-meta-group {
    padding: 12px 12px 14px;
    border-radius: 20px;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-meta-group-list {
    gap: 7px;
  }

  .izajes-page .product-detail-page:not(.d3-detail-page) .product-tag {
    padding: 7px 11px;
    font-size: 12px;
  }
}

body.dark .d3-detail-page .product-detail-image {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
  border-color: rgba(189, 196, 204, 0.12) !important;
}

body.dark .d3-detail-page .product-detail-image.no-image {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
}

/* Override final 20260414: oculta solo el bloque de modelos/constructor de
   estrobo en el detalle del diseno 2 de izajes. */
.d2-detail-page #d2Builder {
  display: none !important;
}
