/**
 * Archivo: productos.css
 * Tipo: hoja de estilos
 * Paginas relacionadas: cables, izajes y detalles de producto
 * Scripts relacionados: modulos de cables e izajes
 * Funcion general: define grillas, heroes, fichas, tablas tecnicas y componentes compartidos de producto.
 */
/* Seccion: Variables compartidas de paginas de producto. */
:root {
  --blue-900: #1c2b7a;
  --blue-700: #2f49b6;
  --blue-500: #4664d7;
  --blue-100: #e7ebff;
  --gray-100: #f5f6f9;
  --gray-300: #d9dee7;
  --text-900: #0f172a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --header-height: 78px;
  --poly-base: #f3efee;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 18px rgba(16, 24, 40, 0.1);
  --shadow-card: 0 12px 28px rgba(16, 24, 40, 0.12);
  --shadow-card-hover: 0 18px 36px rgba(16, 24, 40, 0.16);
  --btn-height: 44px;
  --btn-px: 18px;
}
/* Seccion: Contenedor general de pagina de categoria. */
.product-page {
  padding-top: var(--header-height);
  background: #f3efee;
}
body.hero-page .product-page {
  padding-top: 0;
}
/* Seccion: Hero de categoria con video y titulo. */
.product-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  background: #6aa8d6;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  border-bottom: none;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.product-video {
  --product-video-scale: 1.08;
  --product-video-position: center center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-video-position);
  transform: scale(var(--product-video-scale));
  transform-origin: center;
  will-change: transform;
  z-index: 0;
}
.product-hero .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  justify-items: center;
  align-content: center;
  padding: calc(var(--header-height) + 24px) 8vw 24px;
  max-width: 900px;
  margin: 0 auto;
}
.product-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
}
.hero-description {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: #ffffff;
}
.hero-right {
  text-align: center;
  justify-items: center;
}
.hero-right .hero-scroll {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  text-decoration: none;
}
.hero-right .hero-scroll::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-top: -4px;
}
.product-section {
  background: #f3efee;
  padding: 70px 0;
}
/* Seccion: Rejilla de tarjetas de productos/subcategorias. */
.product-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  justify-content: stretch;
  column-gap: 24px;
  row-gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}
.product-card-tile {
  position: relative;
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(215, 224, 250, 0.55), rgba(215, 224, 250, 0) 44%),
    linear-gradient(160deg, #8b97ad 0%, #7482a2 48%, #647392 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
.product-card-media {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.product-card-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 28% at 50% 16%, rgba(189, 214, 255, 0.38), rgba(189, 214, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.78;
}

.product-card-media.no-image {
  background:
    radial-gradient(120% 80% at 90% 8%, rgba(84, 106, 206, 0.35), rgba(84, 106, 206, 0) 55%),
    linear-gradient(165deg, #8f98aa 0%, #7b8599 42%, #69748a 100%);
}

.product-card-fallback-logo {
  position: absolute;
  width: clamp(120px, 32%, 170px);
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.28;
  filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.product-card-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(25px, 1.85vw, 33px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  max-width: 14ch;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.product-card-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 12, 40, 0.3) 0%, rgba(5, 12, 40, 0.5) 60%, rgba(5, 12, 40, 0.62) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 92%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-description.is-placeholder {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}
.product-card-tile:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(214, 231, 255, 0.34) inset,
    0 0 26px rgba(139, 170, 235, 0.35);
}
@media (max-width: 1140px) {
  .product-cards {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    max-width: 1100px;
  }
}
/* Seccion: Ajustes responsive para cards y filtros. */
@media (max-width: 760px) {
  .product-cards {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 22px;
    padding: 0 16px;
  }

  .product-card-tile {
    min-height: 240px;
  }

  .product-card-tile h3 {
    font-size: clamp(22px, 6.2vw, 30px);
    max-width: 11ch;
  }
}

@media (max-width: 520px) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}
.product-section p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  color: #3b3f46;
}

.cables-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 0 14px;
  max-width: 1200px;
}

/* Seccion: Panel visual de filtros por categoria en cables. */
.cables-board {
  border: 1px solid #d4ddec;
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(180, 201, 248, 0.22), rgba(180, 201, 248, 0) 44%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(26, 42, 88, 0.08);
}

.cables-board-head {
  margin-bottom: 14px;
}

.cables-board-head h2 {
  margin: 0;
  color: #1e3477;
  font-size: clamp(24px, 3vw, 32px);
}

.cables-board-head p {
  margin: 6px 0 0;
  color: #57658b;
  font-size: 16px;
}

/* Seccion: Botones de filtro por categoria de cables. */
.cables-filter-btn {
  border: 1px solid #c8d3ea;
  background: #ffffff;
  color: #1f3479;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  min-width: 174px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.cables-filter-btn:hover {
  border-color: #9cb3e7;
  background: #f4f8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(43, 68, 130, 0.12);
}

.cables-filter-btn.is-active {
  background: linear-gradient(135deg, #1e3aa1, #2f49b6);
  border-color: #1e3aa1;
  color: #ffffff;
}

.cables-status {
  margin: 0 0 18px;
  max-width: 1200px;
  text-align: left;
  color: #4c5772;
  font-weight: 600;
}

.cables-filter-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8e2f8;
  flex-shrink: 0;
}

.cables-filter-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cables-filter-logo.is-fallback span {
  font-size: 13px;
  font-weight: 800;
  color: #29458f;
}

.cables-filter-label {
  line-height: 1.1;
}

#detalle .container {
  max-width: 1280px;
}

#detalle .product-cards {
  margin-top: 6px;
}

.cadenas-page #detalle .product-cards {
  gap: 24px;
}

.cadenas-page #detalle .product-card-tile,
.cadenas-page #detalle .cadenas-card-tile {
  min-height: 372px;
  border-radius: 24px;
  border: 1px solid rgba(177, 191, 223, 0.9);
  background: #d9e0ef;
  box-shadow: 0 18px 32px rgba(22, 38, 79, 0.12);
}

.cadenas-page #detalle .product-card-tile::after,
.cadenas-page #detalle .cadenas-card-tile::after {
  display: none;
}

.cadenas-page #detalle .product-card-media,
.cadenas-page #detalle .cadenas-card-tile .product-card-media {
  background-color: #d8dfec;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
}

.cadenas-page #detalle .product-card-media::before,
.cadenas-page #detalle .cadenas-card-tile .product-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 42, 0.08) 0%, rgba(7, 16, 42, 0.22) 100%);
}

.cadenas-page #detalle .product-card-media.no-image,
.cadenas-page #detalle .cadenas-card-tile .product-card-media.no-image {
  background:
    linear-gradient(180deg, #a5b1ca 0%, #7e8daa 100%);
}

.cadenas-page #detalle .product-card-tile h3,
.cadenas-page #detalle .cadenas-card-tile h3 {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  max-width: none;
  font-size: clamp(28px, 2vw, 36px);
  line-height: 1.05;
  text-align: left;
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

@media (max-width: 760px) {
  .cadenas-page #detalle .product-card-tile,
  .cadenas-page #detalle .cadenas-card-tile {
    min-height: 300px;
  }

  .cadenas-page #detalle .product-card-tile h3,
  .cadenas-page #detalle .cadenas-card-tile h3 {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: clamp(24px, 6vw, 32px);
  }
}

.cadenas-page .product-detail-section #detalleDibujoWrap {
  max-width: 860px;
  margin: 22px auto 0;
  padding: 22px;
}

.cadenas-page .product-detail-section #detalleDibujoWrap h3 {
  margin-bottom: 16px;
  text-align: center;
}

.cadenas-page .product-detail-section #detalleDibujoImage {
  max-width: 920px;
  min-height: 0;
  height: clamp(240px, 32vw, 420px);
  margin: 0 auto 18px;
  padding: 12px;
}

.cadenas-page .product-detail-section #detalleDibujoAsset {
  min-height: 0;
  object-fit: contain;
}

.cadenas-page .product-detail-section #detalleTablaWrap {
  margin-top: 20px;
}

body.cadenas-page {
  background:
    linear-gradient(180deg, rgba(246, 248, 253, 0.94) 0%, rgba(240, 244, 252, 0.90) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center top / cover fixed no-repeat !important;
}

body.cadenas-page .product-list-header,
body.cadenas-page .product-detail-section,
body.cadenas-page #detalle {
  position: relative;
  z-index: 0;
}

body.cadenas-page .product-list-header::before,
body.cadenas-page .product-detail-section::before,
body.cadenas-page #detalle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.72), rgba(243, 246, 252, 0.78));
  pointer-events: none;
}

body.dark .cadenas-page .product-detail-section #detalleDibujoImage {
  background: #f4f6fb !important;
  border-color: rgba(184, 197, 226, 0.72) !important;
}

body.dark.cadenas-page,
body.dark .cadenas-page {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.90) 0%, rgba(10, 12, 16, 0.94) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center top / cover fixed no-repeat !important;
}

body.dark.cadenas-page .product-list-header::before,
body.dark.cadenas-page .product-detail-section::before,
body.dark.cadenas-page #detalle::before,
body.dark .cadenas-page .product-list-header::before,
body.dark .cadenas-page .product-detail-section::before,
body.dark .cadenas-page #detalle::before {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.68), rgba(10, 12, 16, 0.78));
}

body.dark .cadenas-page .product-detail-section #detalleDibujoAsset {
  filter: none !important;
  opacity: 1 !important;
}

/* Override final 20260416: cadenas usa imagen fija de fondo en hero y cuerpo
   en lugar del video generico de portada. */
body.cadenas-page .product-hero {
  background:
    linear-gradient(180deg, rgba(11, 20, 44, 0.38) 0%, rgba(9, 16, 36, 0.54) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center center / cover no-repeat !important;
}

body.cadenas-page .product-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 18, 40, 0.42) 0%, rgba(8, 14, 30, 0.58) 100%) !important;
}

body.cadenas-page .product-hero .product-video {
  display: none !important;
}

body.cadenas-page .product-section {
  background:
    linear-gradient(180deg, rgba(243, 239, 238, 0.94) 0%, rgba(243, 239, 238, 0.96) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center top / cover no-repeat fixed !important;
}

body.cadenas-page .product-section::before {
  background: linear-gradient(180deg, rgba(247, 244, 242, 0.72), rgba(243, 239, 238, 0.84)) !important;
}

body.dark.cadenas-page .product-hero,
body.dark .cadenas-page .product-hero {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.34) 0%, rgba(8, 10, 14, 0.56) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center center / cover no-repeat !important;
}

body.dark.cadenas-page .product-hero::before,
body.dark .cadenas-page .product-hero::before {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.42) 0%, rgba(6, 8, 12, 0.66) 100%) !important;
}

body.dark.cadenas-page .product-section,
body.dark .cadenas-page .product-section {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.90) 0%, rgba(10, 10, 10, 0.94) 100%),
    url("../../Imagenes/Cadena fondo.jpeg") center top / cover no-repeat fixed !important;
}

body.dark.cadenas-page .product-section::before,
body.dark .cadenas-page .product-section::before {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.82)) !important;
}

@media (max-width: 760px) {
  .cadenas-page .product-detail-section #detalleDibujoWrap {
    padding: 16px;
  }

  .cadenas-page .product-detail-section #detalleDibujoImage {
    height: auto;
    max-height: 300px;
  }
}

/* Seccion: Contenedor destacado de la seccion cables. */
.cables-page #detalle {
  position: relative;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(145, 170, 230, 0.22), rgba(145, 170, 230, 0) 48%),
    linear-gradient(180deg, #eff2f9 0%, #e5eaf4 100%);
}

.cables-page #detalle::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 8%, transparent 8% 100%);
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.cables-page .cables-board {
  position: relative;
  border: 1px solid #c8d4ea;
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 40px);
  background:
    radial-gradient(110% 90% at 96% 4%, rgba(90, 120, 198, 0.12), rgba(90, 120, 198, 0) 42%),
    radial-gradient(120% 100% at 0% 0%, rgba(180, 201, 248, 0.16), rgba(180, 201, 248, 0) 44%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 24px 40px rgba(26, 42, 88, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.cables-page .cables-board::after {
  content: "";
  position: absolute;
  left: clamp(24px, 3.5vw, 40px);
  top: 14px;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3aa1, #5d7ae0);
  opacity: 0.6;
}

.cables-page .cables-board-head {
  margin-bottom: 0;
}

.cables-page .cables-board-head h2 {
  margin: 0;
  color: #142e73;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.cables-page .cables-board-head p {
  margin: 0;
  color: #4f628e;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.38;
}

.cables-page .cables-filters {
  gap: 14px;
  margin-bottom: 14px;
}

.cables-page .cables-filter-btn {
  border: 1px solid #9eb4e2;
  background: linear-gradient(180deg, #dce7ff 0%, #cddcfa 100%);
  color: #123679;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 182px;
  min-height: 54px;
  box-shadow: 0 8px 16px rgba(29, 51, 108, 0.14);
}

.cables-page .cables-filter-btn:hover {
  border-color: #7e9ad6;
  background: linear-gradient(180deg, #e6eeff 0%, #d6e3ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(34, 59, 124, 0.2);
}

.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #17357f, #2452bb);
  border-color: #1a3692;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(22, 48, 122, 0.26);
}

.cables-page .cables-filter-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(150deg, #274eac 0%, #183878 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cables-page .cables-filter-logo img {
  object-fit: contain;
  padding: 3px;
}

.cables-page .cables-filter-logo.is-fallback span {
  color: #ffffff;
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo {
  background: linear-gradient(150deg, #1a3e8f 0%, #122f6a 100%);
  border-color: rgba(255, 255, 255, 0.34);
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo.is-fallback span {
  color: #ffffff;
}

.cables-page .cables-status {
  margin-bottom: 18px;
  padding-left: 2px;
  color: #49639e;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.cables-page #cablesProducts.product-cards {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  column-gap: 18px;
  row-gap: 18px;
  padding: 0;
}

.cables-page #cablesProducts .product-card-tile {
  min-height: 300px;
  border-radius: 18px;
  border: 1px solid #ccd9ef;
  box-shadow: 0 14px 28px rgba(19, 37, 82, 0.12);
  background: linear-gradient(160deg, #d9e5fb 0%, #b8caef 52%, #8ca5da 100%);
}

.cables-page #cablesProducts .product-card-tile:hover {
  box-shadow: 0 20px 34px rgba(16, 33, 74, 0.2);
}

.cables-page #cablesProducts .product-card-media {
  background-size: cover;
  background-position: center;
}

.cables-page #cablesProducts .product-card-media.no-image {
  background:
    radial-gradient(120% 90% at 12% 6%, rgba(226, 235, 255, 0.72), rgba(226, 235, 255, 0) 46%),
    radial-gradient(115% 80% at 100% 0%, rgba(130, 157, 220, 0.46), rgba(130, 157, 220, 0) 50%),
    linear-gradient(165deg, #cedbf6 0%, #b0c4eb 58%, #8ea9de 100%);
}

.cables-page #cablesProducts .product-card-content {
  inset: 0;
  padding: 16px 18px;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 20, 52, 0.04) 0%, rgba(8, 20, 52, 0.18) 44%, rgba(8, 20, 52, 0.66) 76%, rgba(8, 20, 52, 0.86) 100%);
}

.cables-page #cablesProducts .product-card-tile h3 {
  font-size: clamp(30px, 2.1vw, 38px);
  text-align: left;
  max-width: 100%;
}

.cables-page #cablesProducts .product-card-description {
  color: rgba(236, 242, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
}
.product-scroll {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #24389a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  color: #24389a;
}
.product-scroll::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #24389a;
  border-bottom: 2px solid #24389a;
  transform: rotate(45deg);
  margin-top: -3px;
}
@media (max-width: 720px) {
  .product-hero {
    min-height: 100vh;
  }
  .hero-description {
    font-size: 16px;
  }
  .product-section p {
    font-size: 16px;
    padding: 0 12px;
  }
}
/* Seccion: Version de productos en tema oscuro. */
body.dark .product-page {
  background: #0b0f1d;
}
body.dark .product-section {
  background: #0b0f1d;
}
body.dark .product-card-tile {
  background: #1f2937;
}
body.dark .product-card-media {
  background: rgba(0, 0, 0, 0.45);
}
body.dark .product-card-tile:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(165, 190, 255, 0.26) inset,
    0 0 24px rgba(108, 142, 255, 0.28);
}
body.dark .product-section p {
  color: #e5e7eb;
}
body.dark .product-scroll {
  border-color: #ffffff;
  color: #ffffff;
}
body.dark .product-scroll::after {
  border-color: #ffffff;
}

body.dark .cables-filter-btn {
  background: #151d2f;
  border-color: #2f3d5e;
  color: #dbe7ff;
}

body.dark .cables-board {
  border-color: #2f3d5e;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(84, 114, 186, 0.2), rgba(84, 114, 186, 0) 45%),
    #121b2f;
}

body.dark .cables-board-head h2 {
  color: #e4ebff;
}

body.dark .cables-board-head p {
  color: #b8c6e8;
}

body.dark .cables-filter-btn:hover {
  background: #1b2740;
  border-color: #4362a5;
}

body.dark .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #2a4aa5, #3b63c2);
  border-color: #3b63c2;
  color: #ffffff;
}

body.dark .cables-filter-logo {
  border-color: #3c4f7e;
  background: #1a2641;
}

body.dark .cables-filter-logo.is-fallback span {
  color: #dbe7ff;
}

body.dark .cables-status {
  color: #c8d4ef;
}

body.dark.cables-page #detalle {
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(74, 98, 160, 0.22), rgba(74, 98, 160, 0) 48%),
    linear-gradient(180deg, #111827 0%, #0f1726 100%);
}

body.dark.cables-page .cables-board {
  border-color: #33466d;
  background:
    radial-gradient(110% 90% at 96% 4%, rgba(70, 99, 170, 0.26), rgba(70, 99, 170, 0) 42%),
    radial-gradient(120% 100% at 0% 0%, rgba(70, 95, 152, 0.25), rgba(70, 95, 152, 0) 44%),
    #162235;
  box-shadow:
    0 24px 40px rgba(2, 8, 23, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

body.dark.cables-page .cables-board-head h2 {
  color: #e6eeff;
}

body.dark.cables-page .cables-board-head p {
  color: #b6c4e8;
}

body.dark.cables-page .cables-filter-btn {
  border-color: #3f557f;
  background: linear-gradient(180deg, #1a2740 0%, #162137 100%);
  color: #dce7ff;
  box-shadow: 0 8px 16px rgba(2, 8, 23, 0.28);
}

body.dark.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #3659b7, #4b72d3);
  border-color: #3659b7;
}

body.dark.cables-page .cables-status {
  color: #d1ddff;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  border-color: #3b4f78;
  background:
    radial-gradient(120% 85% at 14% 8%, rgba(95, 116, 166, 0.4), rgba(95, 116, 166, 0) 48%),
    linear-gradient(170deg, #2a3a57 0%, #22324d 52%, #1a2740 100%);
}

@media (max-width: 1140px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .cables-page .cables-board {
    padding: 20px;
    border-radius: 18px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .cables-page .cables-filter-btn {
    min-width: 160px;
  }
}

/* Cables section: visual upgrade override */
/* Seccion: Contenedor destacado de la seccion cables. */
.cables-page #detalle {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 6% -8%, rgba(53, 89, 186, 0.24), rgba(53, 89, 186, 0) 58%),
    radial-gradient(980px 520px at 100% 0%, rgba(13, 40, 124, 0.2), rgba(13, 40, 124, 0) 64%),
    linear-gradient(180deg, #e9eef8 0%, #dfe6f3 45%, #d7dfef 100%);
}

.cables-page #detalle::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(135deg, rgba(26, 52, 122, 0.08) 0 2px, transparent 2px 18px);
}

.cables-page .cables-board {
  position: relative;
  border: 1px solid rgba(171, 190, 230, 0.86);
  border-radius: 22px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(245, 249, 255, 0.7) 100%),
    radial-gradient(840px 460px at 92% -8%, rgba(56, 93, 188, 0.16), rgba(56, 93, 188, 0) 68%);
  box-shadow:
    0 32px 56px rgba(20, 38, 84, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.66) inset;
  backdrop-filter: blur(3px);
}

.cables-page .cables-board::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 14px;
  width: 140px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a3794 0%, #3258c4 46%, #6f8fe8 100%);
}

.cables-page .cables-board-head {
  margin-bottom: 18px;
}

.cables-page .cables-board-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  letter-spacing: -0.01em;
  color: #153178;
}

.cables-page .cables-board-head p {
  margin: 7px 0 0;
  font-size: 18px;
  color: #4a6195;
  max-width: 62ch;
}

.cables-page .cables-filters {
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cables-page .cables-filter-btn {
  min-width: 188px;
  min-height: 60px;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #afc2e8;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  box-shadow:
    0 10px 18px rgba(27, 53, 120, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.cables-page .cables-filter-btn:hover {
  transform: translateY(-3px);
  border-color: #88a6de;
  background:
    linear-gradient(180deg, #ffffff 0%, #e5eeff 100%);
  box-shadow:
    0 14px 24px rgba(26, 55, 130, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.cables-page .cables-filter-btn.is-active {
  border-color: #2146aa;
  color: #ffffff;
  background:
    linear-gradient(135deg, #173889 0%, #2b4fb9 55%, #3e67d3 100%);
  box-shadow:
    0 16px 28px rgba(18, 43, 116, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.cables-page .cables-filter-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #cfdbf5;
  background: linear-gradient(180deg, #f7faff 0%, #e8f0ff 100%);
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.cables-page .cables-filter-label {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.cables-page .cables-status {
  text-align: left;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #29498f;
}

.cables-page #cablesProducts.product-cards {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  padding: 0;
  gap: 20px;
}

.cables-page #cablesProducts .product-card-tile {
  border-radius: 18px;
  min-height: 310px;
  border: 1px solid rgba(179, 197, 234, 0.92);
  box-shadow:
    0 16px 30px rgba(26, 45, 97, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset;
}

.cables-page #cablesProducts .product-card-content {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 18px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(5, 13, 38, 0.06) 0%, rgba(5, 13, 38, 0.56) 66%, rgba(5, 13, 38, 0.82) 100%);
}

.cables-page #cablesProducts .product-card-tile h3 {
  margin: 0;
  max-width: 100%;
  text-align: left;
  font-size: clamp(26px, 2vw, 34px);
}

.cables-page #cablesProducts .product-card-description {
  max-width: 96%;
  text-align: left;
  font-size: 15px;
  color: rgba(241, 246, 255, 0.92);
}

body.dark.cables-page #detalle {
  background:
    radial-gradient(1200px 620px at 6% -8%, rgba(58, 88, 168, 0.34), rgba(58, 88, 168, 0) 58%),
    radial-gradient(980px 520px at 100% 0%, rgba(13, 40, 124, 0.28), rgba(13, 40, 124, 0) 64%),
    linear-gradient(180deg, #11192a 0%, #0f1726 45%, #0d1522 100%);
}

body.dark.cables-page .cables-board {
  border-color: #37507d;
  background:
    linear-gradient(160deg, rgba(20, 31, 53, 0.8) 0%, rgba(18, 29, 49, 0.86) 100%),
    radial-gradient(840px 460px at 92% -8%, rgba(56, 93, 188, 0.24), rgba(56, 93, 188, 0) 68%);
  box-shadow:
    0 34px 56px rgba(1, 5, 16, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body.dark.cables-page .cables-board-head h2 {
  color: #e7efff;
}

body.dark.cables-page .cables-board-head p {
  color: #b6c7ea;
}

body.dark.cables-page .cables-filter-btn {
  border-color: #446094;
  background: linear-gradient(180deg, #1c2a43 0%, #162238 100%);
  box-shadow: 0 10px 20px rgba(1, 7, 23, 0.36);
}

body.dark.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #2a4eaf 0%, #3f66cf 58%, #5d82e0 100%);
}

body.dark.cables-page .cables-status {
  color: #d3dfff;
}

@media (max-width: 1140px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .cables-page .cables-board {
    padding: 20px;
  }

  .cables-page .cables-board-head h2 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .cables-page .cables-filter-btn {
    min-width: 166px;
    min-height: 56px;
  }
}

/* Seccion: Ajustes responsive para cards y filtros. */
@media (max-width: 760px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .cables-page .cables-status {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .cables-page .cables-filters {
    gap: 10px;
  }

  .cables-page .cables-filter-btn {
    min-width: 100%;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: 1fr;
  }
}

.product-list-page,
.product-detail-page {
  padding-top: var(--header-height);
  background: linear-gradient(180deg, #f7f4f3 0%, var(--poly-base) 100%);
  min-height: 100vh;
}

.product-detail-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42% 28% at 12% 16%, rgba(47, 73, 182, 0.10), rgba(47, 73, 182, 0) 72%),
    radial-gradient(34% 24% at 88% 20%, rgba(130, 146, 187, 0.14), rgba(130, 146, 187, 0) 70%),
    linear-gradient(180deg, #f6f4f2 0%, #eef1f7 52%, #f5f6fa 100%);
}

.product-detail-page::before,
.product-detail-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.product-detail-page::before {
  top: 138px;
  right: -88px;
  width: 340px;
  height: 340px;
  border-radius: 44px;
  transform: rotate(-16deg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(47, 73, 182, 0.14), rgba(92, 115, 201, 0.04));
  border: 1px solid rgba(185, 196, 224, 0.42);
  box-shadow: 0 18px 42px rgba(31, 48, 90, 0.08);
}

.product-detail-page::after {
  left: -72px;
  bottom: 120px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle, rgba(47, 73, 182, 0.16) 0%, rgba(47, 73, 182, 0) 72%);
  filter: blur(1px);
}

.product-detail-page .container,
.product-detail-section,
.product-list-header {
  position: relative;
  z-index: 1;
}

.product-grid-page {
  padding-top: var(--header-height);
  background: linear-gradient(180deg, #f7f4f3 0%, var(--poly-base) 100%);
  min-height: 100vh;
}

.product-list-header {
  padding: 44px 0 14px;
}

.product-list-header h1 {
  margin: 8px 0 10px;
  color: #1c2b7a;
  font-size: clamp(28px, 4vw, 46px);
}

.product-list-header p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: #2f49b6;
}

.product-back-link::before {
  content: "\2190";
  margin-right: 8px;
}

.product-detail-section {
  padding: 18px 0 70px;
}

.product-grid-section {
  padding: 18px 0 70px;
}

.product-hero-slab {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.1);
  margin-bottom: 24px;
}

.product-hero-slab-image {
  min-height: 240px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-hero-slab-content {
  display: grid;
  align-content: center;
  gap: 8px;
}

.product-hero-slab-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  color: #1c2b7a;
}

.subproduct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.subproduct-card {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.subproduct-media {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.subproduct-card.no-image .subproduct-media {
  background-size: 48%, cover;
  background-position: center;
  background-color: #8a94aa;
}

.subproduct-card-top {
  padding: 14px 14px 8px;
  display: grid;
  gap: 10px;
}

.subproduct-badge {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8ecff;
  color: #1c2b7a;
  font-weight: 700;
  font-size: 12px;
}

.subproduct-card h3 {
  margin: 0;
  color: #1c2b7a;
  font-size: 20px;
  line-height: 1.2;
}

.subproduct-card p {
  margin: 0;
  color: #3d4658;
  font-size: 14px;
  line-height: 1.5;
}

.subproduct-cta {
  justify-self: start;
  margin: 0 14px 14px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3aa1, #2f49b6);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.product-detail-card {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(11, 22, 57, 0.12);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 30px;
}

.product-detail-image {
  position: relative;
  border-radius: 14px;
  min-height: 380px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 18px;
  background-color: #eef1f7;
  overflow: hidden;
}

.product-detail-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(56, 78, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 78, 138, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 68%);
  background-size: 24px 24px, 24px 24px, auto;
  pointer-events: none;
  opacity: 0.55;
}

.product-detail-image::after {
  content: attr(data-product-name);
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(194, 204, 226, 0.92);
  color: #1b357f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 10px 22px rgba(21, 34, 79, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.product-detail-page:not(.d2-detail-page):not(.d3-detail-page) .product-detail-image::after {
  content: none;
  display: none;
}

.product-detail-image.no-image {
  background:
    radial-gradient(120% 80% at 90% 8%, rgba(84, 106, 206, 0.35), rgba(84, 106, 206, 0) 55%),
    linear-gradient(165deg, #8f98aa 0%, #7b8599 42%, #69748a 100%) !important;
  background-size: cover !important;
  position: relative;
}

.product-detail-image.no-image::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 44%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.32;
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.product-detail-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.9vw, 38px);
  color: #1c2b7a;
  line-height: 1.08;
}

.product-detail-description {
  margin: 0 0 18px;
  color: #364152;
  font-size: 17px;
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f5ff 0%, #edf1ff 100%);
  border: 1px solid #d9e0ff;
}

#detalleTablaWrap {
  position: relative;
  margin-top: 28px;
  padding: 26px;
  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%);
  border: 1px solid #d9dee7;
  box-shadow:
    0 18px 42px rgba(16, 24, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

#detalleTablaWrap::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 73, 182, 0.10) 0%, rgba(47, 73, 182, 0) 68%);
  pointer-events: none;
}

#detalleTablaWrap h3 {
  position: relative;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8faff 0%, #eef2fb 100%);
  border: 1px solid #d9dee7;
  color: #1c2b7a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#detalleTablaWrap h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f49b6 0%, #5c73c9 100%);
  box-shadow: 0 0 0 6px rgba(47, 73, 182, 0.10);
}

.product-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1040px;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-detail-table th,
.product-detail-table td {
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 12px;
  font-size: 15px;
  vertical-align: middle;
}

.product-detail-table th {
  color: #2a448f;
  font-weight: 700;
  white-space: normal;
  word-break: normal;
  line-height: 1.2;
  font-size: 12px;
  background: #eef2fb;
  border-bottom: 1px solid #dde3f0;
  padding: 10px 8px;
  vertical-align: middle;
}

.product-detail-table th:first-child,
.product-detail-table td:first-child {
  text-align: center;
}

.product-detail-table th:nth-child(2),
.product-detail-table td:nth-child(2) {
  text-align: center;
}

.product-detail-table th:nth-child(n+3),
.product-detail-table td:nth-child(n+3) {
  text-align: center;
  padding-right: 12px;
  padding-left: 12px;
}

.product-detail-table thead tr:first-child th {
  padding-top: 16px;
}

.product-detail-table thead tr:last-child th {
  padding-bottom: 16px;
}

.product-detail-table-head .product-detail-table-sticky {
  min-width: 116px;
}

.product-detail-table-head .product-detail-table-main {
  font-size: 13px;
  letter-spacing: 0.01em;
  background: #e7ecf8;
  color: #1f3a8a;
  text-align: center;
}

.product-detail-table-head .product-detail-table-spacer {
  background: #e7ecf8;
  color: transparent;
  border-bottom: 1px solid #dde3f0;
}

.product-detail-table-head .product-detail-table-subgroup {
  font-size: 12px;
  color: #28458f;
  background: #f3f6fc;
  text-align: center;
}

.product-detail-table-head .product-detail-table-variant {
  font-size: 11px;
  color: #3b5396;
  min-width: 58px;
  background: #fafbfe;
  text-align: center;
}

.product-detail-table thead tr:nth-child(2) th,
.product-detail-table thead tr:nth-child(3) th,
.product-detail-table thead tr:nth-child(4) th {
  background: #f3f6fc;
}

.product-detail-table thead th[colspan] {
  text-align: center;
}

.product-detail-table tbody td {
  white-space: nowrap;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
}

#detalleTablaContainer {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244, 246, 252, 0.88) 0%, rgba(250, 251, 254, 0.96) 100%);
  border: 1px solid rgba(217, 222, 231, 0.95);
}

body.dark .product-list-page,
body.dark .product-detail-page {
  background: linear-gradient(180deg, #0b0f1d 0%, #0f1423 100%);
}

body.dark .product-detail-page {
  background:
    radial-gradient(42% 28% at 12% 16%, rgba(93, 122, 224, 0.12), rgba(93, 122, 224, 0) 72%),
    radial-gradient(34% 24% at 88% 20%, rgba(39, 53, 95, 0.36), rgba(39, 53, 95, 0) 70%),
    linear-gradient(180deg, #0b0f1d 0%, #101729 52%, #0f1423 100%);
}

body.dark .product-detail-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(93, 122, 224, 0.18), rgba(93, 122, 224, 0.04));
  border-color: rgba(59, 77, 128, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

body.dark .product-detail-page::after {
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle, rgba(93, 122, 224, 0.22) 0%, rgba(93, 122, 224, 0) 72%);
}

body.dark .product-grid-page {
  background: linear-gradient(180deg, #0b0f1d 0%, #0f1423 100%);
}

body.dark .product-list-header h1 {
  color: #ffffff;
}

body.dark .product-list-header p {
  color: #c6d0e7;
}

body.dark .product-back-link {
  color: #9fb3ff;
}

body.dark .product-detail-card {
  background: #141b2d;
  border-color: #29334e;
}

body.dark .product-hero-slab {
  background: #141b2d;
  border-color: #29334e;
}

body.dark .product-hero-slab-content h2 {
  color: #e5eafe;
}

body.dark .subproduct-card {
  background: #141b2d;
  border-color: #2b3552;
}

body.dark .subproduct-card.no-image .subproduct-media {
  background-color: #202946;
}

body.dark .subproduct-badge {
  background: #1f2e58;
  color: #d8e0ff;
}

body.dark .subproduct-card h3 {
  color: #e5eafe;
}

body.dark .subproduct-card p {
  color: #d3dbef;
}

body.dark .product-detail-content h2 {
  color: #ffffff;
}

body.dark .product-detail-description {
  color: #d1d9ea;
  background: #1a243f;
  border-color: #2b3a62;
}

body.dark #detalleTablaWrap {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(93, 122, 224, 0.14), rgba(93, 122, 224, 0) 38%),
    radial-gradient(90% 90% at 0% 100%, rgba(70, 103, 201, 0.14), rgba(70, 103, 201, 0) 42%),
    linear-gradient(180deg, #121a2e 0%, #151f37 100%);
  border-color: #2e3a61;
  box-shadow:
    0 22px 52px rgba(4, 10, 25, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark #detalleTablaWrap h3 {
  background: linear-gradient(135deg, #192543 0%, #202d4f 100%);
  border-color: #31426e;
  color: #e6ecff;
}

body.dark .product-detail-table th,
body.dark .product-detail-table td {
  border-bottom-color: #2c3651;
}

body.dark .product-detail-table th {
  color: #dfe7ff;
  background: #1d2a4f;
}

body.dark .product-detail-table td {
  color: #e5e7eb;
}

body.dark .product-detail-table {
  background: rgba(16, 24, 44, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark .product-detail-table thead tr:nth-child(2) th,
body.dark .product-detail-table thead tr:nth-child(3) th,
body.dark .product-detail-table thead tr:nth-child(4) th {
  background: #24345f;
}

body.dark .product-detail-table-head .product-detail-table-main {
  color: #eef3ff;
  background: #1d2a4f;
}

body.dark .product-detail-table-head .product-detail-table-spacer {
  background: #1d2a4f;
  color: transparent;
}

body.dark .product-detail-table-head .product-detail-table-subgroup {
  color: #dbe5ff;
  background: #24345f;
}

body.dark .product-detail-table-head .product-detail-table-variant {
  color: #c8d6ff;
  background: #2b3d6e;
}

body.dark .product-detail-table tbody td {
  background: rgba(18, 27, 49, 0.76);
}

body.dark #detalleTablaContainer {
  background: linear-gradient(180deg, rgba(27, 39, 68, 0.82) 0%, rgba(18, 26, 46, 0.92) 100%);
  border-color: rgba(48, 66, 112, 0.9);
}

@media (max-width: 980px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 280px;
  }

  .product-detail-page::before {
    width: 210px;
    height: 210px;
    top: 148px;
    right: -70px;
  }

  .product-detail-page::after {
    width: 160px;
    height: 160px;
    left: -48px;
    bottom: 86px;
  }
}

.category-intro-banner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 34px;
  background: #111a3d;
  box-shadow: 0 16px 38px rgba(10, 18, 48, 0.2);
}

.category-intro-media {
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-intro-content {
  padding: 30px 28px;
  color: #ffffff;
  display: grid;
  align-content: center;
  gap: 10px;
}

.category-intro-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.category-intro-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
}

.subcategory-list {
  display: grid;
  gap: 24px;
}

.subcategory-item {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #d9dee7;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.subcategory-media {
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.subcategory-logo-watermark {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 66px;
  opacity: 0.28;
  filter: brightness(0) invert(1);
}

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

.subcategory-content h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  color: #1c2b7a;
}

.subcategory-content p {
  margin: 0;
  color: #3d4658;
  line-height: 1.7;
  font-size: 16px;
}

.subcategory-cta {
  justify-self: start;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3aa1, #2f49b6);
}

.product-detail-table th {
  background: #eef2ff;
  border-bottom-color: #d5dcf1;
  font-size: 14px;
  white-space: nowrap;
}

body.dark .category-intro-banner {
  background: #141b31;
}

body.dark .subcategory-item {
  background: #141b2d;
  border-color: #2b3552;
}

body.dark .subcategory-content h3 {
  color: #e5eafe;
}

body.dark .subcategory-content p {
  color: #d3dbef;
}

body.dark .product-detail-table th {
  background: #1e2945;
  border-bottom-color: #30406a;
}

@media (max-width: 980px) {
  .category-intro-banner {
    grid-template-columns: 1fr;
  }

  .subcategory-item {
    grid-template-columns: 1fr;
  }

  .subcategory-media {
    min-height: 220px;
  }

  .product-hero-slab {
    grid-template-columns: 1fr;
  }

  .subproduct-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .subproduct-grid {
    grid-template-columns: 1fr;
  }
}

/* Izajes visual refresh */
.product-list-page .product-list-header .container,
.product-grid-page .product-list-header .container {
  width: min(1240px, 92vw);
}

.product-list-page .product-list-header {
  background: linear-gradient(180deg, #f9fbff 0%, rgba(249, 251, 255, 0) 100%);
}

.category-intro-banner {
  min-height: 320px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(91, 126, 245, 0.5), rgba(91, 126, 245, 0) 46%),
    linear-gradient(152deg, #0f1b4f 0%, #122564 52%, #1a2f7c 100%);
}

.category-intro-content {
  padding: 34px 32px;
  gap: 14px;
}

.category-intro-content h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.02;
}

.category-intro-content p {
  font-size: 17px;
  max-width: 52ch;
}

.subcategory-item {
  grid-template-columns: minmax(300px, 460px) 1fr;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(17, 27, 63, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(17, 27, 63, 0.15);
}

.subcategory-media {
  min-height: 290px;
}

.subcategory-content {
  padding: 30px 30px 28px;
  gap: 16px;
}

.subcategory-content h3 {
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
}

.subcategory-content p {
  font-size: 17px;
  max-width: 62ch;
}

.subcategory-cta {
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(47, 73, 182, 0.24);
}

.product-hero-slab {
  grid-template-columns: minmax(300px, 500px) 1fr;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(17, 27, 63, 0.12);
}

.product-hero-slab-image {
  min-height: 280px;
}

.product-hero-slab-content h2 {
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.02;
}

.subproduct-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 22px;
}

.subproduct-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 27, 63, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subproduct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 27, 63, 0.15);
}

.subproduct-media {
  min-height: 205px;
}

.subproduct-card h3 {
  font-size: 22px;
}

.subproduct-cta {
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: 0 10px 18px rgba(47, 73, 182, 0.2);
}

body.dark .category-intro-banner {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(88, 115, 217, 0.35), rgba(88, 115, 217, 0) 44%),
    linear-gradient(152deg, #0e152b 0%, #121d39 52%, #16244b 100%);
}

@media (max-width: 1100px) {
  .subcategory-item,
  .product-hero-slab {
    grid-template-columns: 1fr;
  }

  .subcategory-media,
  .product-hero-slab-image {
    min-height: 240px;
  }
}

/* Compact categories + clearer no-image icon */
.product-back-link::before {
  content: "\2190";
}

.subcategory-item {
  grid-template-columns: minmax(220px, 300px) 1fr;
  min-height: 220px;
}

.subcategory-media {
  min-height: 220px;
}

.subcategory-content {
  padding: 20px 22px;
  gap: 10px;
}

.subcategory-content h3 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.subcategory-content p {
  font-size: 15px;
  line-height: 1.55;
}

.subcategory-cta {
  padding: 9px 14px;
  border-radius: 10px;
}

.subproduct-card.no-image .subproduct-media {
  position: relative;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(124, 141, 197, 0.32), rgba(124, 141, 197, 0) 48%),
    linear-gradient(165deg, #8f98aa 0%, #7d889f 45%, #6c7890 100%);
}

.subproduct-card.no-image .subproduct-media::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 92px;
  height: 92px;
  margin: auto;
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.4;
  filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

@media (max-width: 1100px) {
  .subcategory-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .subcategory-media {
    min-height: 210px;
  }
}

/* Final polish for izajes categories and product list */
.product-back-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-back-link {
  border: 1px solid #ccd5ea;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
}

.product-list-header {
  padding: 34px 0 16px;
}

.product-list-header h1 {
  margin-top: 12px;
}

.category-intro-banner {
  min-height: 230px;
  background: #ffffff;
  border: 1px solid #d9dee7;
  box-shadow: 0 14px 32px rgba(17, 27, 63, 0.1);
}

.category-intro-media {
  min-height: 230px;
  position: relative;
}

.category-intro-media.no-image {
  background:
    radial-gradient(125% 90% at 82% 8%, rgba(88, 110, 210, 0.3), rgba(88, 110, 210, 0) 48%),
    linear-gradient(160deg, #8a94a9 0%, #77839b 42%, #68758f 100%);
}

.category-intro-media.no-image::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.33;
  filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.category-intro-content {
  color: #1c2b7a;
}

.category-intro-content p {
  color: #3d4658;
}

.subcategory-list {
  gap: 18px;
}

.subcategory-item {
  grid-template-columns: minmax(300px, 380px) 1fr;
  min-height: 250px;
}

.subcategory-media {
  min-height: 250px;
}

.subcategory-media.no-image {
  position: relative;
  background:
    radial-gradient(130% 100% at 88% 8%, rgba(88, 110, 210, 0.35), rgba(88, 110, 210, 0) 47%),
    linear-gradient(160deg, #8a94a9 0%, #77839b 42%, #68758f 100%);
}

.subcategory-media.no-image::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.33;
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.subcategory-content h3 {
  font-size: clamp(28px, 3vw, 38px);
}

.subcategory-content p {
  font-size: 16px;
}

.product-hero-slab {
  grid-template-columns: minmax(250px, 340px) 1fr;
  min-height: 200px;
  align-items: stretch;
}

.product-hero-slab.is-compact {
  grid-template-columns: 1fr;
}

.product-hero-slab-image {
  min-height: 200px;
  position: relative;
}

.product-hero-slab-image.no-image {
  background:
    radial-gradient(130% 100% at 88% 8%, rgba(88, 110, 210, 0.35), rgba(88, 110, 210, 0) 47%),
    linear-gradient(160deg, #8a94a9 0%, #77839b 42%, #68758f 100%);
}

.product-hero-slab-image.no-image::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.33;
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.subproduct-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.subproduct-card h3 {
  font-size: 18px;
  text-transform: uppercase;
}

.subproduct-card p {
  font-size: 15px;
}

.subproduct-card.no-image .subproduct-media {
  position: relative;
  background:
    radial-gradient(130% 100% at 88% 8%, rgba(88, 110, 210, 0.35), rgba(88, 110, 210, 0) 47%),
    linear-gradient(160deg, #8a94a9 0%, #77839b 42%, #68758f 100%);
}

.subproduct-card.no-image .subproduct-media::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.35;
  filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

@media (max-width: 1100px) {
  .product-hero-slab,
  .subcategory-item {
    grid-template-columns: 1fr;
  }

  .subproduct-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .product-back-links {
    gap: 8px;
  }

  .product-back-link {
    font-size: 13px;
  }

  .subproduct-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero portada for product list */
.product-grid-page .product-list-header {
  display: none;
}

.product-grid-page .product-grid-section {
  padding-top: 34px;
}

.product-grid-page .product-hero-slab {
  position: relative;
  display: block;
  min-height: 360px;
  padding: 0;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #0f1b4f;
  box-shadow: 0 18px 42px rgba(17, 27, 63, 0.2);
}

.product-grid-page .product-hero-slab.is-compact {
  min-height: 280px;
}

.product-grid-page .product-hero-slab-image {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
}

.product-grid-page .product-hero-slab-content {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 34px 30px;
  background: linear-gradient(105deg, rgba(8, 14, 40, 0.72) 0%, rgba(8, 14, 40, 0.48) 52%, rgba(8, 14, 40, 0.2) 100%);
}

.product-grid-page .product-hero-slab.is-compact .product-hero-slab-content {
  min-height: 280px;
}

.product-grid-page .product-hero-slab-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.98;
  max-width: 12ch;
  text-wrap: balance;
}

.product-grid-page .product-detail-description {
  margin: 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(8, 15, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
}

.product-grid-page .product-back-link {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.product-grid-page .product-back-link::before {
  color: #ffffff;
}

@media (max-width: 900px) {
  .product-grid-page .product-hero-slab,
  .product-grid-page .product-hero-slab-content {
    min-height: 300px;
  }

  .product-grid-page .product-hero-slab-content {
    padding: 22px 18px;
  }

  .product-grid-page .product-hero-slab-content h2 {
    font-size: clamp(26px, 8vw, 40px);
  }
}

/* Clean header + normal slab (override previous hero look) */
.product-grid-page .product-list-header {
  display: block;
  padding: 34px 0 20px;
}

.listing-hero {
  padding: 22px 24px;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: linear-gradient(130deg, #ffffff 0%, #f5f8ff 65%, #eef3ff 100%);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.listing-hero-actions {
  margin-bottom: 10px;
}

.listing-hero-title {
  margin: 0;
  color: #1c2b7a;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.02;
}

.listing-hero-subtitle {
  margin: 8px 0 0;
  color: #44506a;
  font-size: 16px;
}

.product-grid-page .product-back-link,
.product-list-page .product-back-link {
  background: #ffffff;
  color: #1f3fa8;
  border-color: #cad5ef;
}

.product-grid-page .product-back-link::before,
.product-list-page .product-back-link::before {
  color: #1f3fa8;
}

.product-grid-page .product-grid-section {
  padding-top: 14px;
}

.product-grid-page .product-hero-slab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  min-height: 240px;
  padding: 16px;
  border: 1px solid #d9dee7;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.09);
}

.product-grid-page .product-hero-slab-image {
  position: relative;
  inset: auto;
  min-height: 205px;
  border-radius: 14px;
}

.product-grid-page .product-hero-slab-content {
  position: relative;
  min-height: auto;
  padding: 6px 8px 6px 14px;
  background: transparent;
  display: grid;
  gap: 8px;
  align-content: center;
}

.product-grid-page .product-hero-slab-content h2 {
  margin: 0;
  color: #1c2b7a;
  font-size: clamp(30px, 3.5vw, 46px);
  max-width: none;
}

.product-grid-page .product-detail-description {
  color: #3d4658;
  border-color: #d7e0fb;
  background: #f1f5ff;
  backdrop-filter: none;
}

.product-grid-page .product-hero-slab.is-compact {
  grid-template-columns: minmax(260px, 340px) 1fr;
  min-height: 240px;
}

.product-list-page .category-intro-banner {
  min-height: 240px;
}

@media (max-width: 980px) {
  .listing-hero {
    padding: 16px;
  }

  .product-grid-page .product-hero-slab,
  .product-grid-page .product-hero-slab.is-compact {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-grid-page .product-hero-slab-content {
    padding: 10px 2px 4px;
  }

  .product-grid-page .product-hero-slab-content h2 {
    font-size: clamp(24px, 8vw, 34px);
  }
}

/* Unified cover header (contact-style) + fixed header clearance */
.product-list-page,
.product-grid-page,
.product-detail-page {
  padding-top: calc(var(--header-height) + 18px);
}

.product-list-header {
  padding: 12px 0 22px;
}

.listing-hero {
  padding: 42px 40px;
  min-height: 320px;
  border: 1px solid #d6def1;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.72)),
    linear-gradient(120deg, #edf2ff 0%, #e4ecff 58%, #d8e5ff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.product-grid-page .listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 380px);
  gap: 28px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.listing-hero-copy {
  display: grid;
  align-content: center;
  padding: 42px 40px;
}

.listing-hero-media {
  position: relative;
  min-height: 100%;
  height: 100%;
  align-self: stretch;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(130% 100% at 88% 8%, rgba(88, 110, 210, 0.28), rgba(88, 110, 210, 0) 47%),
    linear-gradient(160deg, #d8e1f4 0%, #c7d2e8 42%, #bac6dd 100%);
  box-shadow: inset 1px 0 0 rgba(106, 128, 170, 0.12);
}

.listing-hero-media.no-image::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url("../../Imagenes/Logo_Icono_Color.svg") center / contain no-repeat;
  opacity: 0.18;
}

.listing-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.listing-hero-media.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 14, 40, 0.05), rgba(8, 14, 40, 0.18));
}

.listing-hero.has-image {
  border-color: rgba(255, 255, 255, 0.24);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.listing-hero-title {
  color: #1c2b7a;
  font-size: clamp(52px, 5.4vw, 76px);
}

.listing-hero-subtitle {
  color: #425072;
  font-size: 26px;
}

.listing-hero.has-image .listing-hero-title,
.listing-hero.has-image .listing-hero-subtitle {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

.product-back-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-back-link {
  background: #ffffff;
  color: #1f3fa8;
  border: 1px solid #c9d5f0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(31, 63, 168, 0.12);
}

.product-back-link::before {
  color: #1f3fa8;
}

.listing-hero.has-image .product-back-link {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.listing-hero.has-image .product-back-link::before {
  color: #ffffff;
}

/* Keep product info slab clean below the cover */
.product-grid-page .product-hero-slab {
  display: none;
}

/* Dark mode verification */
body.dark .listing-hero {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.7), rgba(7, 11, 24, 0.62)),
    linear-gradient(120deg, #192037 0%, #202b4a 58%, #2b3a60 100%);
  box-shadow: 0 14px 30px rgba(2, 6, 18, 0.42);
}

body.dark .listing-hero-media {
  background:
    radial-gradient(130% 100% at 88% 8%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 47%),
    linear-gradient(160deg, #1b1b1f 0%, #17171b 42%, #121216 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

body.dark .listing-hero-media.has-image::before {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.16), rgba(4, 8, 20, 0.3));
}

body.dark .listing-hero-title,
body.dark .listing-hero-subtitle,
body.dark .product-back-link,
body.dark .product-back-link::before {
  color: #ffffff;
}

body.dark .product-back-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body.dark .listing-hero-title,
body.dark .listing-hero-subtitle,
body.dark .product-back-link::before {
  color: #ffffff;
}

/* Disable duplicated subcategory intro block on category page */
.product-list-page .category-intro-banner {
  display: none !important;
}

@media (max-width: 980px) {
  .product-list-page,
  .product-grid-page,
  .product-detail-page {
    padding-top: calc(var(--header-height) + 12px);
  }

  .listing-hero {
    padding: 20px;
    min-height: 220px;
  }

  .product-grid-page .listing-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .listing-hero-media {
    min-height: 200px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(106, 128, 170, 0.12);
  }

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

  .listing-hero-title {
    font-size: clamp(36px, 8.2vw, 52px);
  }

  .listing-hero-subtitle {
    font-size: clamp(18px, 4.6vw, 24px);
  }

  .product-back-link {
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* Detail layout: chips + description (no table mode) */
.product-detail-tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(140deg, #eef3ff 0%, #e6edff 100%);
  border: 1px solid #cfdaf9;
  color: #1c2b7a;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1;
}

.product-tag-label {
  font-weight: 700;
}

.product-tag-value {
  color: #2d3c62;
}

.product-detail-copy,
.product-detail-extra {
  margin-top: 18px;
  border: 1px solid #dbe3f7;
  border-radius: 12px;
  background: #f6f8ff;
  padding: 14px;
}

.product-detail-copy h3,
.product-detail-extra h3 {
  margin: 0 0 10px;
  color: #1c2b7a;
  font-size: 18px;
}

.product-detail-copy p {
  margin: 0;
  color: #2d3852;
  line-height: 1.65;
}

.product-detail-copy-top {
  margin-top: 12px;
}

.product-detail-extra ul {
  margin: 0;
  padding-left: 18px;
  color: #2d3852;
  line-height: 1.5;
}

.product-detail-extra li + li {
  margin-top: 6px;
}

body.dark .product-tag {
  background: #1e2945;
  border-color: #30406a;
  color: #d5e0ff;
}

body.dark .product-tag-value {
  color: #e5ecff;
}

body.dark .product-detail-copy,
body.dark .product-detail-extra {
  background: #1a243f;
  border-color: #2b3a62;
}

body.dark .product-detail-copy h3,
body.dark .product-detail-extra h3 {
  color: #d6e0ff;
}

body.dark .product-detail-copy p,
body.dark .product-detail-extra ul {
  color: #d1d9ea;
}

.product-detail-tabs {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-tab {
  border: 1px solid #cdd7f3;
  background: #ffffff;
  color: #1c2b7a;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-detail-tab.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.product-detail-panel {
  display: none;
  margin-top: 14px;
}

.product-detail-panel.is-active {
  display: block;
}

.product-detail-list {
  margin: 0;
  padding-left: 18px;
  color: #2d3852;
  line-height: 1.55;
}

.product-detail-list li + li {
  margin-top: 6px;
}

body.dark .product-detail-tab {
  background: #1a243f;
  color: #d6e0ff;
  border-color: #31416b;
}

body.dark .product-detail-tab.is-active {
  background: #d6def8;
  border-color: #d6def8;
  color: #111827;
}

body.dark .product-detail-list {
  color: #d1d9ea;
}

.measure-table-wrap {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid #d9dee7;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(244, 246, 252, 0.88) 0%, rgba(250, 251, 254, 0.96) 100%);
  box-shadow:
    0 16px 34px rgba(16, 24, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.measure-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  overflow: hidden;
}

.measure-table th,
.measure-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5ebf8;
  text-align: center;
  font-size: 14px;
}

.measure-table th {
  background: #e7ecf8;
  color: #1f3a8a;
  font-weight: 700;
  border-bottom: 1px solid #dde3f0;
}

.measure-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.measure-head .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.measure-quote-btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(140deg, #1c2b7a 0%, #2f49b6 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #1c2b7a;
}

.measure-quote-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
}

body.dark .measure-table-wrap {
  background: linear-gradient(180deg, rgba(27, 39, 68, 0.82) 0%, rgba(18, 26, 46, 0.92) 100%);
  border-color: rgba(48, 66, 112, 0.9);
}

body.dark .measure-table th,
body.dark .measure-table td {
  border-bottom-color: #2c3651;
}

body.dark .measure-table {
  background: rgba(16, 24, 44, 0.92);
}

body.dark .measure-table th {
  color: #eef3ff;
  background: #1d2a4f;
}

.product-detail-extra-sections {
  margin-top: 18px;
  border: 1px solid #d9dee7;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

body.dark .product-detail-extra-sections {
  background: #141b2d;
  border-color: #2b3552;
}

.tecnica-block {
  border: 1px solid #d8e1f7;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 12px;
}

.tecnica-block + .tecnica-block {
  margin-top: 10px;
}

.tecnica-block h4 {
  margin: 0 0 6px;
  color: #1c2b7a;
  font-size: 16px;
}

.tecnica-block p {
  margin: 0;
  color: #2d3852;
  line-height: 1.6;
}

.tecnica-block p + p {
  margin-top: 8px;
}

.tecnica-block ul {
  margin: 0;
  padding-left: 18px;
  color: #2d3852;
  line-height: 1.55;
}

.tecnica-block li + li {
  margin-top: 6px;
}

body.dark .tecnica-block {
  background: #1a243f;
  border-color: #2f3f69;
}

body.dark .tecnica-block h4 {
  color: #d6e0ff;
}

body.dark .tecnica-block p {
  color: #d1d9ea;
}

body.dark .tecnica-block ul {
  color: #d1d9ea;
}

/* Cables page modern refresh (latest override) */
/* Seccion: Contenedor destacado de la seccion cables. */
.cables-page #detalle {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 440px at -5% -8%, rgba(64, 99, 187, 0.16), rgba(64, 99, 187, 0) 60%),
    radial-gradient(760px 360px at 105% 0%, rgba(41, 66, 141, 0.14), rgba(41, 66, 141, 0) 62%),
    #edf1f8;
}

.cables-page #detalle::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(135deg, rgba(18, 38, 96, 0.35) 0 1px, transparent 1px 16px);
}

.cables-page .cables-board {
  position: relative;
  border: 1px solid #cfd9ee;
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.86)),
    radial-gradient(700px 320px at 100% 0%, rgba(78, 113, 206, 0.12), rgba(78, 113, 206, 0) 65%);
  box-shadow:
    0 20px 40px rgba(25, 43, 90, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.cables-page .cables-board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.cables-page .cables-board-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.cables-page .cables-board-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #17367f;
}

.cables-page .cables-board-head p {
  margin: 8px 0 0;
  font-size: 20px;
  color: #4b6399;
  font-weight: 500;
}

.cables-page .cables-filters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, max-content));
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}

.cables-page .cables-filter-btn {
  min-height: 66px;
  min-width: 188px;
  border-radius: 12px;
  border: 1px solid #c5d3ef;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  box-shadow:
    0 8px 18px rgba(30, 55, 122, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cables-page .cables-filter-btn:hover {
  transform: translateY(-2px);
  border-color: #98afe0;
  background: linear-gradient(180deg, #ffffff 0%, #e9f0ff 100%);
  box-shadow:
    0 12px 24px rgba(27, 51, 117, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.cables-page .cables-filter-btn.is-active {
  border-color: #1f45a8;
  background: linear-gradient(130deg, #173b96, #2b56c1 56%, #3f70de);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 44, 115, 0.28);
}

.cables-page .cables-filter-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #d2ddf4;
  background: #eef3ff;
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.cables-page .cables-filter-label {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.03;
}

.cables-page .cables-status {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #27488f;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cables-page #cablesProducts.product-cards {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 0;
}

.cables-page #cablesProducts .product-card-tile {
  min-height: 294px;
  border-radius: 16px;
  border: 1px solid #cad7f1;
  background:
    radial-gradient(100% 80% at 16% 0%, rgba(185, 206, 252, 0.28), rgba(185, 206, 252, 0) 55%),
    linear-gradient(170deg, #6d7890 0%, #586686 52%, #4c5978 100%);
  box-shadow:
    0 16px 26px rgba(18, 33, 78, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cables-page #cablesProducts .product-card-content {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 16px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(5, 12, 36, 0.04), rgba(5, 12, 36, 0.7) 72%, rgba(5, 12, 36, 0.85));
}

.cables-page #cablesProducts .product-card-tile h3 {
  margin: 0;
  max-width: 100%;
  text-align: left;
  font-size: clamp(24px, 1.9vw, 30px);
}

.cables-page #cablesProducts .product-card-description {
  max-width: 100%;
  text-align: left;
  font-size: 15px;
}

.cables-page #cablesProducts .product-card-tile:only-child {
  max-width: 360px;
}

.cables-page #cablesProducts .product-card-tile:only-child .product-card-content {
  align-items: center;
  text-align: center;
}

.cables-page #cablesProducts .product-card-tile:only-child h3,
.cables-page #cablesProducts .product-card-tile:only-child .product-card-description {
  text-align: center;
}

body.dark.cables-page #detalle {
  background:
    radial-gradient(900px 440px at -5% -8%, rgba(71, 105, 192, 0.22), rgba(71, 105, 192, 0) 60%),
    radial-gradient(760px 360px at 105% 0%, rgba(41, 66, 141, 0.2), rgba(41, 66, 141, 0) 62%),
    #101726;
}

body.dark.cables-page .cables-board {
  border-color: #354a74;
  background:
    linear-gradient(160deg, rgba(19, 30, 51, 0.88), rgba(17, 27, 47, 0.9)),
    radial-gradient(700px 320px at 100% 0%, rgba(78, 113, 206, 0.2), rgba(78, 113, 206, 0) 65%);
  box-shadow:
    0 22px 40px rgba(2, 7, 18, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body.dark.cables-page .cables-board-head h2 {
  color: #e7efff;
}

body.dark.cables-page .cables-board-head p {
  color: #b9caef;
}

body.dark.cables-page .cables-filter-btn {
  border-color: #445d92;
  background: linear-gradient(180deg, #1a2842 0%, #172338 100%);
}

body.dark.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(130deg, #2a4db0, #3c68d1 56%, #5482e5);
}

body.dark.cables-page .cables-status {
  color: #d3dfff;
}

@media (max-width: 920px) {
  .cables-page .cables-board-head p {
    font-size: 17px;
  }

  .cables-page .cables-status {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .cables-page .cables-board {
    padding: 20px 16px;
  }

  .cables-page .cables-filters {
    grid-template-columns: 1fr;
  }

  .cables-page .cables-filter-btn {
    min-width: 100%;
    width: 100%;
  }
}

/* Cables page compact tune */
/* Seccion: Contenedor destacado de la seccion cables. */
.cables-page #detalle {
  background:
    radial-gradient(740px 340px at 0% 0%, rgba(64, 99, 187, 0.12), rgba(64, 99, 187, 0) 60%),
    #edf1f8;
}

.cables-page .cables-board {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(25, 43, 90, 0.1);
  overflow: visible;
}

.cables-page .cables-board::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -52px;
  width: 170px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 64, 160, 0.9), rgba(74, 109, 211, 0.72));
  box-shadow: 0 8px 18px rgba(31, 64, 160, 0.2);
  pointer-events: none;
}

.cables-page .cables-board-head {
  margin-bottom: 12px;
}

.cables-page .cables-board-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.cables-page .cables-board-head p {
  font-size: 17px;
  margin-top: 6px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: none;
}

.cables-page .cables-filters {
  gap: 10px;
  margin-bottom: 10px;
}

.cables-page .cables-filter-btn {
  min-width: 164px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.cables-page .cables-filter-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
}

.cables-page .cables-filter-label {
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.cables-page .cables-status {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.cables-page #cablesProducts.product-cards {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.cables-page #detalle::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 54%;
  width: 78px;
  height: 250px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(68, 102, 196, 0.2), rgba(68, 102, 196, 0.08));
  border: 1px solid rgba(129, 153, 212, 0.35);
  box-shadow: 0 16px 34px rgba(35, 57, 124, 0.16);
  transform: translateY(-50%);
  pointer-events: none;
}

.cables-page #cablesProducts .product-card-tile {
  min-height: 230px;
  border-radius: 12px;
}

.cables-page #cablesProducts .product-card-content {
  padding: 12px;
}

.cables-page #cablesProducts .product-card-tile h3 {
  font-size: clamp(20px, 1.55vw, 24px);
}

.cables-page #cablesProducts .product-card-description {
  font-size: 13px;
}

.cables-page .cables-empty-state {
  border: 1px dashed #b6c7e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff 0%, #eff4ff 100%);
  padding: 16px;
  max-width: 420px;
}

.cables-page .cables-empty-state h3 {
  margin: 0;
  font-size: 18px;
  color: #1f3f8c;
}

.cables-page .cables-empty-state p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #4f6294;
  text-align: left;
}

body.dark.cables-page .cables-board {
  box-shadow: 0 18px 34px rgba(2, 7, 18, 0.42);
}

body.dark.cables-page .cables-board::before {
  background: linear-gradient(90deg, rgba(80, 119, 230, 0.9), rgba(120, 152, 238, 0.8));
  box-shadow: 0 10px 22px rgba(29, 62, 155, 0.34);
}

body.dark.cables-page #detalle::after {
  background: linear-gradient(180deg, rgba(100, 132, 224, 0.22), rgba(100, 132, 224, 0.12));
  border-color: rgba(120, 152, 233, 0.4);
  box-shadow: 0 18px 34px rgba(10, 21, 48, 0.38);
}

body.dark.cables-page .cables-status {
  color: #d0ddff;
}

body.dark.cables-page .cables-empty-state {
  border-color: #45609b;
  background: linear-gradient(180deg, #182741 0%, #152238 100%);
}

body.dark.cables-page .cables-empty-state h3 {
  color: #e2ecff;
}

body.dark.cables-page .cables-empty-state p {
  color: #b8c9ef;
}

@media (max-width: 1024px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

/* Seccion: Ajustes responsive para cards y filtros. */
@media (max-width: 760px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .cables-page .cables-board-head h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .cables-page .cables-board::before {
    right: -24px;
    width: 104px;
    height: 12px;
  }

  .cables-page #detalle::after {
    right: -22px;
    width: 50px;
    height: 190px;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: 1fr;
  }
}

/* Seccion: Capa de armonizacion visual para vistas de productos y cables. */
.product-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.product-cards {
  column-gap: 18px;
  row-gap: 18px;
  padding-left: 20px;
  padding-right: 20px;
}

.product-card-tile,
.subproduct-card,
.product-detail-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-card-tile:hover,
.subproduct-card:hover,
.product-detail-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.cables-page .cables-filter-btn,
.measure-quote-btn {
  min-height: var(--btn-height);
  padding-left: var(--btn-px);
  padding-right: var(--btn-px);
  border-radius: var(--radius-md);
}

.cables-page #cablesProducts.product-cards {
  column-gap: 18px;
  row-gap: 18px;
}

@media (min-width: 1200px) {
  .product-cards {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    max-width: 1240px;
  }

  .cables-page #cablesProducts.product-cards {
    max-width: 1240px;
  }
}

/* Seccion: Refinado minimal de cables y tarjetas de producto. */
.cables-page #detalle {
  padding-top: 42px;
  padding-bottom: 56px;
}

.cables-page .cables-board {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.1);
}

.cables-page .cables-board-head h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.01em;
}

.cables-page .cables-board-head p {
  font-size: clamp(18px, 1.5vw, 24px);
  max-width: 60ch;
}

.cables-page .cables-filters {
  justify-content: flex-start;
}

.cables-page .cables-filter-btn {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(17, 27, 63, 0.08);
}

.cables-page .cables-filter-btn.is-active {
  box-shadow: 0 10px 20px rgba(20, 44, 115, 0.2);
}

.cables-page #cablesProducts .product-card-tile {
  min-height: 280px;
  border-radius: 16px;
}

.cables-page #cablesProducts .product-card-content {
  padding: 16px;
}

.cables-page #cablesProducts .product-card-tile h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}

.cables-page #cablesProducts .product-card-description {
  font-size: 16px;
  line-height: 1.45;
}

@media (min-width: 1200px) {
  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
  }
}

/* Seccion: Ajustes multi-pantalla de productos y cables. */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-cards {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .product-cards {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    max-width: 1160px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    max-width: 1160px;
  }
}

@media (min-width: 1600px) {
  .product-cards {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    max-width: 1380px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    max-width: 1320px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .product-hero {
    min-height: 88vh;
  }

  .product-hero .hero-content {
    gap: 12px;
    padding-top: calc(var(--header-height) + 16px);
  }
}

/* Seccion: Override final de diseno para cables (tarjetas + filtros). */
.cables-page #detalle {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(240, 246, 255, 0.9), rgba(240, 246, 255, 0) 45%),
    linear-gradient(180deg, #edf3fc 0%, #e7edf8 100%);
}

.cables-page #detalle::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -170px;
  top: -170px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(66, 103, 191, 0.2), rgba(66, 103, 191, 0) 64%),
    radial-gradient(circle at 60% 60%, rgba(145, 173, 230, 0.22), rgba(145, 173, 230, 0) 74%);
  pointer-events: none;
}

.cables-page #detalle::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 190px;
  left: -120px;
  bottom: 48px;
  border-radius: 34px;
  border: 1px solid rgba(88, 118, 190, 0.16);
  background:
    linear-gradient(165deg, rgba(230, 238, 252, 0.72), rgba(230, 238, 252, 0.25));
  transform: rotate(-10deg);
  pointer-events: none;
}

.cables-page .cables-board {
  position: relative;
  z-index: 1;
  border: 1px solid #d6dfef;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 254, 0.96) 100%);
  box-shadow:
    0 16px 34px rgba(15, 30, 68, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset;
  padding-top: 20px;
}

.cables-page .cables-board::after {
  content: none;
}

.cables-page .cables-board::before {
  content: none;
}

.cables-page .cables-board-head {
  margin-top: 18px;
}

.cables-page .cables-board-head h2 {
  margin-top: 6px;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.cables-page .cables-board-head p {
  margin-top: 14px;
  max-width: 54ch;
}

.cables-page .cables-filters {
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.cables-page .cables-filter-btn {
  border: 1px solid #c8d5ea;
  background: #ffffff;
  color: #23417f;
  border-radius: 14px;
  min-height: 52px;
  padding: 8px 15px;
  box-shadow:
    0 1px 0 rgba(18, 35, 76, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.cables-page .cables-filter-btn:hover {
  border-color: #a7bbe0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(19, 42, 103, 0.1);
}

.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #1f49a5 0%, #2b5ec3 100%);
  border-color: #1f49a5;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(19, 42, 103, 0.2);
}

.cables-page .cables-filter-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(150deg, #214aa3 0%, #173b87 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  padding: 0;
}

.cables-page .cables-filter-logo img {
  width: 68%;
  height: 68%;
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  filter: brightness(1.12) contrast(1.06);
  flex: 0 0 auto;
}

.cables-page .cables-filter-logo.is-fallback span {
  color: #ffffff;
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo {
  background: #173b87;
  border-color: rgba(255, 255, 255, 0.45);
}

.cables-page .cables-filter-btn.is-active .cables-filter-logo.is-fallback span {
  color: #ffffff;
}

.cables-page #cablesProducts .product-card-tile {
  min-height: 360px;
  border-radius: 30px;
  border: 1px solid rgba(170, 191, 229, 0.34);
  box-shadow:
    0 22px 40px rgba(14, 30, 73, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(94, 126, 196, 0.22), rgba(94, 126, 196, 0) 40%),
    linear-gradient(180deg, #18305f 0%, #132750 56%, #0f2147 100%);
  overflow: hidden;
}

.cables-page #cablesProducts .product-card-tile:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 48px rgba(14, 30, 73, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cables-page #cablesProducts .product-card-media {
  min-height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.cables-page #cablesProducts .product-card-media-asset {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center 44%;
  display: block;
  padding: 20px 20px 88px;
  filter: drop-shadow(0 16px 26px rgba(3, 8, 22, 0.18));
}

.cables-page #cablesProducts .product-card-media.no-image {
  background:
    radial-gradient(72% 46% at 50% 16%, rgba(143, 170, 226, 0.22), rgba(143, 170, 226, 0) 72%),
    linear-gradient(180deg, #1a315f 0%, #132750 100%);
}

.cables-page #cablesProducts .product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 46% at 50% 16%, rgba(143, 170, 226, 0.16), rgba(143, 170, 226, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.cables-page #cablesProducts .product-card-content {
  inset: auto 0 0 0;
  min-height: 118px;
  max-width: none;
  padding: 42px 28px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 18, 40, 0) 0%, rgba(8, 18, 40, 0.34) 28%, rgba(8, 18, 40, 0.82) 100%);
  position: absolute;
  gap: 6px;
}

.cables-page #cablesProducts .product-card-content::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 26px;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: rgba(138, 171, 238, 0.78);
}

.cables-page #cablesProducts .product-card-tile h3 {
  margin: 0;
  font-size: clamp(24px, 1.95vw, 32px);
  color: #f2f6ff;
  text-align: left;
  max-width: 100%;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  line-height: 1;
}

.cables-page #cablesProducts .product-card-description {
  display: block;
  margin: 0;
  max-width: 92%;
  color: rgba(223, 233, 255, 0.78);
  font-size: 13px;
  line-height: 1.28;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .cables-page #detalle::before {
    width: 280px;
    height: 280px;
    right: -95px;
    top: -85px;
  }

  .cables-page #detalle::after {
    width: 240px;
    height: 120px;
    left: -100px;
    bottom: 40px;
  }
}

/* Seccion: Override final dark mode para cables. */
body.dark.cables-page #detalle {
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(35, 63, 128, 0.24), rgba(35, 63, 128, 0) 44%),
    linear-gradient(180deg, #0c1730 0%, #0a1228 100%);
}

body.dark.cables-page #detalle::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(71, 111, 210, 0.26), rgba(71, 111, 210, 0) 66%),
    radial-gradient(circle at 60% 60%, rgba(86, 121, 204, 0.24), rgba(86, 121, 204, 0) 78%);
}

body.dark.cables-page #detalle::after {
  border-color: rgba(109, 140, 216, 0.22);
  background: linear-gradient(165deg, rgba(34, 57, 107, 0.45), rgba(34, 57, 107, 0.08));
}

body.dark.cables-page .cables-board {
  border-color: #2a3e6a;
  background: linear-gradient(180deg, rgba(17, 30, 57, 0.9) 0%, rgba(13, 24, 48, 0.96) 100%);
  box-shadow:
    0 16px 34px rgba(2, 8, 24, 0.42),
    0 0 0 1px rgba(130, 164, 244, 0.12) inset;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  border-color: rgba(104, 132, 191, 0.34);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(94, 126, 196, 0.18), rgba(94, 126, 196, 0) 40%),
    linear-gradient(180deg, #162c57 0%, #102347 56%, #0d1c3b 100%);
  box-shadow:
    0 24px 42px rgba(2, 8, 24, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark.cables-page #cablesProducts .product-card-media.no-image {
  background: #1a2238;
}

body.dark.cables-page #cablesProducts .product-card-media-asset {
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.24));
}

body.dark.cables-page #cablesProducts .product-card-media::after {
  background:
    radial-gradient(72% 46% at 50% 16%, rgba(143, 170, 226, 0.12), rgba(143, 170, 226, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

body.dark.cables-page #cablesProducts .product-card-content {
  background: linear-gradient(180deg, rgba(7, 14, 32, 0) 0%, rgba(7, 14, 32, 0.36) 28%, rgba(7, 14, 32, 0.84) 100%);
}

body.dark.cables-page #cablesProducts .product-card-content::before {
  background: rgba(150, 181, 242, 0.78);
}

body.dark.cables-page #cablesProducts .product-card-tile h3 {
  color: #cfe0ff;
}

body.dark.cables-page #cablesProducts .product-card-description {
  color: rgba(198, 215, 247, 0.78);
}

/* Reset visual final: tarjetas de cables limpias, sin composicion decorativa. */
.cables-page #cablesProducts .product-card-tile {
  min-height: 320px;
  border-radius: 26px;
  border: 1px solid #c4d2ea;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  background:
    radial-gradient(88% 56% at 50% 0%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #dfe7f4 0%, #d6dfef 100%);
  overflow: hidden;
  isolation: isolate;
}

.cables-page #cablesProducts .product-card-tile:hover {
  transform: translateY(-6px);
  box-shadow:
    0 26px 46px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.cables-page #cablesProducts .product-card-media {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 78px;
  background: transparent;
}

.cables-page #cablesProducts .product-card-media-inner {
  width: 100%;
  height: 100%;
  min-height: 184px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cables-page #cablesProducts .product-card-media::before {
  content: "";
  position: absolute;
  inset: 20px 20px auto auto;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 70%);
  opacity: 0.7;
  pointer-events: none;
}

.cables-page #cablesProducts .product-card-media::after {
  display: none;
}

.cables-page #cablesProducts .product-card-media.no-image {
  background: transparent;
}

.cables-page #cablesProducts .product-card-media-asset {
  width: 88%;
  height: 88%;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  filter: none;
}

.cables-page #cablesProducts .product-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: auto;
  max-width: none;
  padding: 18px 22px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(223, 231, 244, 0) 0%, rgba(223, 231, 244, 0.92) 48%, rgba(223, 231, 244, 0.98) 100%);
  backdrop-filter: none;
  gap: 4px;
}

.cables-page #cablesProducts .product-card-content::before,
.cables-page #cablesProducts .product-card-content::after {
  display: none;
}

.cables-page #cablesProducts .product-card-tile h3 {
  margin: 0;
  color: #153c89;
  font-size: clamp(24px, 1.88vw, 29px);
  line-height: 0.9;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  letter-spacing: 0.024em;
  text-wrap: balance;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.cables-page #cablesProducts .product-card-tile h3::before {
  content: "CABLE";
  display: block;
  margin-bottom: 9px;
  color: rgba(58, 85, 147, 0.82);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.34em;
}

.cables-page #cablesProducts .product-card-secondary-label {
  margin: -1px 0 0;
  color: rgba(63, 89, 147, 0.82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cables-page #cablesProducts .product-card-description {
  display: none;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  border-color: #334a79;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(88% 56% at 50% 0%, rgba(132, 161, 225, 0.12), rgba(132, 161, 225, 0) 52%),
    linear-gradient(180deg, #19233b 0%, #141c2f 100%);
}

body.dark.cables-page #cablesProducts .product-card-media,
body.dark.cables-page #cablesProducts .product-card-media.no-image {
  background: transparent;
}

body.dark.cables-page #cablesProducts .product-card-media::before {
  background: radial-gradient(circle at 35% 35%, rgba(157, 183, 244, 0.18), rgba(157, 183, 244, 0) 70%);
}

body.dark.cables-page #cablesProducts .product-card-media-asset {
  filter: none;
}

body.dark.cables-page #cablesProducts .product-card-content {
  background: linear-gradient(180deg, rgba(26, 34, 56, 0) 0%, rgba(26, 34, 56, 0.88) 48%, rgba(26, 34, 56, 0.96) 100%);
}

body.dark.cables-page #cablesProducts .product-card-tile h3 {
  color: #e4eeff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark.cables-page #cablesProducts .product-card-tile h3::before {
  color: rgba(184, 202, 242, 0.68);
}

body.dark.cables-page #cablesProducts .product-card-secondary-label {
  color: rgba(186, 204, 244, 0.76);
}

/* Override final: esquina funcional marcada y sin texto secundario. */
.cables-page #cablesProducts .product-card-tile::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 72px;
  height: 72px;
  border-top: 1px solid rgba(100, 126, 186, 0.78);
  border-right: 1px solid rgba(100, 126, 186, 0.78);
  border-top-right-radius: 16px;
  z-index: 2;
}

.cables-page #cablesProducts .product-card-tile::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 147, 197, 0.92);
  background:
    linear-gradient(90deg, transparent 45%, rgba(226, 235, 252, 0.82) 45%, rgba(226, 235, 252, 0.82) 55%, transparent 55%),
    linear-gradient(transparent 45%, rgba(226, 235, 252, 0.82) 45%, rgba(226, 235, 252, 0.82) 55%, transparent 55%),
    radial-gradient(circle at 35% 35%, rgba(195, 214, 251, 0.96), rgba(90, 118, 180, 0.98) 72%);
  box-shadow:
    0 0 0 4px rgba(100, 126, 186, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px 1px rgba(29, 47, 88, 0.28);
  z-index: 2;
}

.cables-page #cablesProducts .product-card-description,
.cables-page #cablesProducts .product-card-secondary-label {
  display: none !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::before {
  border-top-color: rgba(124, 152, 214, 0.82);
  border-right-color: rgba(124, 152, 214, 0.82);
}

body.dark.cables-page #cablesProducts .product-card-tile::after {
  border-color: rgba(146, 172, 228, 0.92);
  background:
    linear-gradient(90deg, transparent 45%, rgba(231, 239, 255, 0.72) 45%, rgba(231, 239, 255, 0.72) 55%, transparent 55%),
    linear-gradient(transparent 45%, rgba(231, 239, 255, 0.72) 45%, rgba(231, 239, 255, 0.72) 55%, transparent 55%),
    radial-gradient(circle at 35% 35%, rgba(164, 188, 243, 0.96), rgba(76, 103, 166, 0.98) 72%);
  box-shadow:
    0 0 0 4px rgba(124, 152, 214, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(5, 12, 28, 0.34);
}

body.dark.cables-page #cablesProducts .product-card-description {
  display: none;
}

/* Override final: imagen de tarjetas mas grande y mejor centrada */
.cables-page #cablesProducts .product-card-media {
  padding: 6px 14px 58px;
}

.cables-page #cablesProducts .product-card-media-inner {
  min-height: 206px;
  align-items: center;
  justify-content: center;
}

.cables-page #cablesProducts .product-card-media-asset {
  width: 94%;
  height: 94%;
  max-width: 94%;
  max-height: 94%;
}

.cables-page #cablesProducts .product-card-content {
  padding: 14px 22px 16px;
}

/* Seccion: Override final detalle de producto principal. */
.product-detail-card {
  position: relative;
  border-radius: 32px;
  box-shadow: 0 22px 54px rgba(11, 22, 57, 0.10);
  padding: 30px;
  gap: 36px;
  overflow: hidden;
}

.product-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 42% at 100% 0%, rgba(47, 73, 182, 0.06), rgba(47, 73, 182, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.product-detail-card > * {
  position: relative;
  z-index: 1;
}

.product-detail-image {
  border-radius: 24px;
  border: 1px solid rgba(210, 217, 231, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 38px rgba(21, 34, 79, 0.10);
  position: relative;
  min-height: 380px;
  padding: 18px;
  background-color: #eef1f7;
  overflow: hidden;
}

.product-detail-image.no-image {
  background:
    radial-gradient(130% 86% at 88% 10%, rgba(84, 106, 206, 0.24), rgba(84, 106, 206, 0) 55%),
    linear-gradient(165deg, #d8d9df 0%, #c4c7d2 40%, #afb4c2 100%) !important;
}

.product-detail-image-asset {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 344px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-detail-image-asset[hidden] {
  display: none;
}

.product-detail-content {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "meta"
    "desc";
  gap: 16px;
  padding-top: 6px;
}

.product-detail-content h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  grid-area: title;
  align-self: start;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d3dbf2;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.product-detail-action .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.product-detail-action:hover {
  transform: translateY(-1px);
}

.product-detail-action-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1f3d98, #2f49b6);
  border-color: #1f3d98;
  box-shadow: 0 12px 24px rgba(31, 61, 152, 0.22);
}

.product-detail-action-secondary {
  color: #1c2b7a;
  background: linear-gradient(140deg, rgba(241, 245, 255, 0.96) 0%, rgba(232, 238, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-detail-tags {
  grid-area: meta;
  margin: 4px 0 0;
  gap: 10px;
  align-self: start;
}

.product-tag {
  background: linear-gradient(140deg, rgba(241, 245, 255, 0.96) 0%, rgba(232, 238, 252, 0.96) 100%);
  border: 1px solid #d2dbf2;
  padding: 11px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-detail-copy-top {
  margin-top: 8px;
  grid-area: desc;
}

.product-detail-copy.product-detail-copy-top {
  margin-top: 0;
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 244, 252, 0.98));
  border-color: #d7deee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.product-detail-copy.product-detail-copy-top p {
  font-size: 17px;
  line-height: 1.75;
}

.product-print-sheet-head {
  display: none;
}

.product-print-watermark {
  display: none;
}

body.dark .product-detail-card {
  box-shadow: 0 24px 54px rgba(4, 10, 25, 0.26);
}

body.dark .product-detail-card::before {
  background:
    radial-gradient(36% 42% at 100% 0%, rgba(93, 122, 224, 0.12), rgba(93, 122, 224, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

body.dark .product-detail-actions {
  color: inherit;
}

body.dark .product-detail-action {
  border-color: #31426d;
}

body.dark .product-detail-action-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #3658c2, #2945a1);
  border-color: #3658c2;
  box-shadow: 0 12px 24px rgba(28, 52, 124, 0.28);
}

body.dark .product-detail-action-secondary {
  color: #dce6ff;
  background: linear-gradient(140deg, #1c2744 0%, #1f2b4b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark .product-detail-image {
  border-color: rgba(50, 62, 96, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 38px rgba(0, 0, 0, 0.18);
  background-color: #1a2238;
}

body.dark .product-detail-image::before {
  background:
    linear-gradient(rgba(148, 170, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 232, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 68%);
  background-size: 24px 24px, 24px 24px, auto;
  opacity: 0.6;
}

body.dark .product-detail-image::after {
  background: rgba(16, 24, 44, 0.82);
  border-color: rgba(61, 81, 132, 0.92);
  color: #dfe8ff;
  box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

/* Override final: tarjetas de cables con acento industrial/minimal. */
.cables-page #cablesProducts .product-card-tile {
  isolation: isolate;
}

.cables-page #cablesProducts .product-card-tile:hover .product-card-content {
  padding-bottom: 24px;
}

.cables-page #cablesProducts .product-card-content {
  transition: padding 0.22s ease;
}

.cables-page #cablesProducts .product-card-content::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 12px;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: rgba(63, 89, 147, 0.52);
  display: block;
  transition: width 0.22s ease, opacity 0.22s ease;
}

.cables-page #cablesProducts .product-card-content::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(74, 101, 163, 0.36);
  opacity: 0.42;
  display: block;
}

.cables-page #cablesProducts .product-card-tile:hover .product-card-content::before {
  width: 74px;
  opacity: 0.9;
}

.cables-page #cablesProducts .product-card-tile h3 {
  font-variation-settings: "wght" 800;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 0.96;
  font-size: clamp(24px, 2vw, 32px);
  max-width: calc(100% - 26px);
  overflow-wrap: anywhere;
}

.cables-page #cablesProducts .product-card-secondary-label {
  margin: -1px 0 0;
  color: rgba(63, 89, 147, 0.82);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body.dark.cables-page #cablesProducts .product-card-tile:hover .product-card-content {
  padding-bottom: 24px;
}

body.dark.cables-page #cablesProducts .product-card-content::before {
  background: rgba(176, 197, 241, 0.48);
}

body.dark.cables-page #cablesProducts .product-card-content::after {
  border-color: rgba(176, 197, 241, 0.26);
}

body.dark.cables-page #cablesProducts .product-card-secondary-label {
  color: rgba(186, 204, 244, 0.76);
}

body.dark .product-tag {
  background: linear-gradient(140deg, #1c2744 0%, #1f2b4b 100%);
  border-color: #31426d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark .product-detail-copy.product-detail-copy-top {
  background: linear-gradient(180deg, rgba(23, 33, 58, 0.98), rgba(20, 29, 49, 0.98));
  border-color: #2f3b5f;
}

.product-detail-tags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.product-meta-group {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid #d9dee7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.product-meta-group-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a95;
}

.product-meta-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tag {
  padding: 10px 14px;
}

.product-tag-value {
  color: #284185;
  font-weight: 600;
}

body.dark .product-meta-group {
  border-color: #2f3b5f;
  background: linear-gradient(180deg, rgba(23, 32, 56, 0.96), rgba(20, 29, 49, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark .product-meta-group-title {
  color: #9fb1df;
}

body.dark .product-tag-value {
  color: #dce6ff;
}

@media (max-width: 980px) {
  .product-detail-tags,
  body.dark .product-detail-tags {
    grid-template-columns: 1fr;
  }
}

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

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

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

  body.cables-page .product-meta-group-list {
    gap: 8px;
  }

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

@media (max-width: 560px) {
  body.cables-page .product-detail-tags {
    gap: 7px;
  }

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

  body.cables-page .product-meta-group-list {
    gap: 7px;
  }

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

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html,
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #ffffff !important;
  }

  .site-header,
  .site-footer,
  .product-list-header,
  .product-back-link,
  .product-detail-actions,
  .whatsapp-float,
  .scroll-top,
  #acountVueRoot {
    display: none !important;
  }

  .product-detail-page,
  .product-detail-section,
  .container {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .product-print-sheet-head {
    display: grid !important;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 18px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #cfd5e2;
  }

  .product-print-brand img {
    width: 180px;
    max-width: 100%;
    display: block;
  }

  .product-print-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #53627f;
  }

  .product-print-meta h2 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1;
    color: #1c2b7a;
  }

  .product-print-meta p:last-child {
    margin: 0;
    font-size: 13px;
    color: #42506d;
  }

  .product-detail-card,
  #detalleTablaWrap {
    position: relative;
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #cfd5e2 !important;
    border-radius: 20px !important;
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
  }

  .product-print-watermark {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .product-print-watermark img {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 210px;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    display: block;
  }

  .product-detail-card > *,
  #detalleTablaWrap > * {
    position: relative;
    z-index: 1;
  }

  .product-detail-card {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 16px !important;
    padding: 14px !important;
  }

  .product-detail-image {
    width: 100% !important;
    min-height: 220px !important;
    height: 220px !important;
    background: #f2f4f8 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 10px !important;
  }

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

  .product-detail-image-asset {
    width: 100% !important;
    height: 100% !important;
    min-height: 190px;
  }

  .product-detail-content {
    display: block !important;
  }

  .product-detail-content h2 {
    font-size: 22px !important;
    margin: 0 0 10px !important;
  }

  .product-detail-actions {
    display: none !important;
  }

  .product-detail-tags {
    display: block !important;
    margin: 0 !important;
  }

  .product-meta-group,
  .product-detail-copy.product-detail-copy-top {
    display: block !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .product-meta-group-title {
    margin-bottom: 8px !important;
    font-size: 10px !important;
  }

  .product-meta-group-list {
    gap: 6px !important;
  }

  .product-tag {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .product-detail-copy.product-detail-copy-top p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  #detalleTablaWrap {
    display: block !important;
    margin-top: 10px !important;
    padding: 12px !important;
  }

  #detalleTablaWrap h3 {
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
  }

  #detalleTablaContainer {
    padding: 4px !important;
    border-radius: 16px !important;
  }

  .product-detail-table,
  .product-detail-table th,
  .product-detail-table td {
    color: #1f2937 !important;
  }

  .product-detail-table {
    min-width: 0 !important;
    font-size: 11px !important;
  }

  .product-detail-table th,
  .product-detail-table td {
    padding: 7px 6px !important;
    font-size: 10px !important;
  }

  .product-detail-table-head .product-detail-table-main,
  .product-detail-table-head .product-detail-table-subgroup,
  .product-detail-table-head .product-detail-table-variant {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }
}

/* Override final: dark mode de productos menos frio y menos robotico. */
body.dark.cables-page #detalle {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(88, 96, 108, 0.14), rgba(88, 96, 108, 0) 40%),
    linear-gradient(180deg, #17191c 0%, #121416 100%);
}

body.dark.cables-page #detalle::before {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 22% 26%, rgba(154, 165, 178, 0.08), rgba(154, 165, 178, 0) 62%);
}

body.dark.cables-page .cables-board {
  border-color: rgba(123, 132, 143, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 33, 37, 0.94) 0%, rgba(22, 24, 27, 0.98) 100%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

body.dark.cables-page .cables-board-head h2,
body.dark .product-detail-content h2 {
  color: #ece6d8;
}

body.dark.cables-page .cables-board-head p,
body.dark .product-detail-copy.product-detail-copy-top p,
body.dark .product-tag-value,
body.dark .product-meta-group-title {
  color: #c8c1b4;
}

body.dark.cables-page .cables-filter-btn {
  border-color: rgba(136, 145, 156, 0.22);
  background: linear-gradient(180deg, #2b2f34 0%, #23272b 100%);
  color: #ebe4d6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.dark.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(135deg, #5f6c82 0%, #415069 100%);
  border-color: rgba(171, 182, 194, 0.2);
}

body.dark.cables-page #cablesProducts .product-card-tile {
  border-color: rgba(118, 128, 141, 0.28);
  background:
    radial-gradient(90% 52% at 50% 0%, rgba(188, 196, 207, 0.07), rgba(188, 196, 207, 0) 46%),
    linear-gradient(180deg, #23272d 0%, #1b1f24 100%);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.dark.cables-page #cablesProducts .product-card-tile h3 {
  color: #ece6d8;
  text-shadow: none;
}

body.dark.cables-page #cablesProducts .product-card-tile h3::before {
  color: rgba(191, 184, 172, 0.62);
}

body.dark.cables-page #cablesProducts .product-card-content {
  background: linear-gradient(180deg, rgba(24, 27, 31, 0) 0%, rgba(24, 27, 31, 0.24) 34%, rgba(24, 27, 31, 0.84) 100%);
}

body.dark .product-detail-card,
body.dark .product-meta-group,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark #detalleTablaWrap {
  background: linear-gradient(180deg, rgba(31, 34, 38, 0.98), rgba(24, 26, 30, 0.98));
  border-color: rgba(123, 132, 143, 0.2);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.dark .product-detail-image {
  background-color: #25292e;
  border-color: rgba(123, 132, 143, 0.22);
}













/* Override final: dark mode en negro/grafito, sin acentos azules. */
body.dark {
  --dark-ink: #0f1012;
  --dark-panel: #1a1c1f;
  --dark-panel-2: #23262a;
  --dark-border: rgba(180, 186, 194, 0.16);
  --dark-text: #ece6db;
  --dark-muted: #c5bfb3;
  --dark-accent: #7d848d;
}

body.dark .site-header,
body.dark .site-header.scrolled,
body.dark .nav-dropdown-menu,
body.dark .site-header.scrolled .nav-dropdown-menu,
body.dark .mobile-nav,
body.dark .site-header.scrolled .mobile-nav,
body.dark .site-footer,
body.dark .product-detail-card,
body.dark .product-meta-group,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark #detalleTablaWrap,
body.dark .catalogo-head,
body.dark .catalog-card,
body.dark .catalog-modal-dialog,
body.dark .contact-form,
body.dark .contact-side,
body.dark .timeline-step,
body.dark .timeline-panel,
body.dark .projects-collage-shell,
body.dark .project-modal-card,
body.dark .service-box,
body.dark .service-subtopic,
body.dark .service-subtopic {
  background: linear-gradient(180deg, var(--dark-panel-2) 0%, var(--dark-panel) 100%) !important;
  border-color: var(--dark-border) !important;
}

body.dark .main-nav a,
body.dark .nav-dropdown-toggle,
body.dark .menu-toggle,
body.dark .theme-toggle,
body.dark .site-footer a,
body.dark .site-footer p,
body.dark .site-footer h3,
body.dark .site-footer h4,
body.dark .site-footer .footer-toggle,
body.dark .site-footer .material-symbols-outlined,
body.dark .catalogo-head h1,
body.dark .catalogo-head p,
body.dark .catalog-card-head h3,
body.dark .catalog-card-head p,
body.dark .catalogo-page-readout,
body.dark .catalogo-link,
body.dark .catalog-modal-head h2,
body.dark .catalog-modal-head p,
body.dark .catalogo-picker label,
body.dark .contact-side h2,
body.dark .contact-side p,
body.dark .contact-chip,
body.dark .field span,
body.dark .optional-hint,
body.dark .submit-note,
body.dark .timeline-head h2,
body.dark .timeline-panel h3,
body.dark .projects-head h2,
body.dark .project-modal-card h3,
body.dark .timeline-projects-panel .projects-head h3,
body.dark .timeline-head p,
body.dark .timeline-panel p,
body.dark .projects-head p,
body.dark .project-modal-card p,
body.dark .projects-pill,
body.dark .services-eyebrow,
body.dark .services-head h2,
body.dark .services-intro,
body.dark .service-box h3,
body.dark .service-box p,
body.dark .cables-board-head h2,
body.dark .cables-board-head p,
body.dark .cables-status,
body.dark .product-detail-content h2,
body.dark .product-detail-copy.product-detail-copy-top p,
body.dark .product-tag-value,
body.dark .product-meta-group-title {
  color: var(--dark-text) !important;
}

body.dark .product-tag,
body.dark .cables-filter-btn,
body.dark .service-quote-btn,
body.dark .service-subtoggle,
body.dark .catalogo-picker,
body.dark .catalog-card-preview,
body.dark .catalog-card-loading,
body.dark .field input,
body.dark .field select,
body.dark .field textarea,
body.dark .suggestion-btn,
body.dark .submit-btn,
body.dark .contact-chip,
body.dark .product-detail-action-secondary {
  background: #2a2d31 !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}

body.dark .cables-filter-btn.is-active,
body.dark .service-quote-btn:hover,
body.dark .product-detail-action-primary,
body.dark .submit-btn {
  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.cables-page #detalle,
body.dark .contact-page,
body.dark .about-page,
body.dark .about-section,
body.dark .services-pillar-section,
body.dark.catalogo-page,
body.dark .product-page,
body.dark .product-section,
body.dark .experience,
body.dark .product-strip,
body.dark .product-card {
  background: linear-gradient(180deg, #151719 0%, #101113 100%) !important;
}

body.dark.cables-page .cables-board,
body.dark .product-detail-card,
body.dark #detalleTablaWrap {
  box-shadow: 0 18px 34px rgba(0,0,0,0.22) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile,
body.dark .product-card-tile,
body.dark .catalog-card,
body.dark .counter-card,
body.dark .safety-card {
  background: linear-gradient(180deg, #25282d 0%, #1b1e22 100%) !important;
  border-color: var(--dark-border) !important;
  box-shadow: 0 18px 32px rgba(0,0,0,0.22) !important;
}

body.dark .product-detail-table thead th,
body.dark .measure-table th {
  background: #26292e !important;
  color: var(--dark-text) !important;
  border-color: rgba(201, 208, 216, 0.18) !important;
}

body.dark .product-detail-table tbody td,
body.dark .measure-table td {
  background: #1c1f23 !important;
  color: var(--dark-text) !important;
  border-color: rgba(201, 208, 216, 0.10) !important;
}

body.dark .product-detail-page,
body.dark .product-detail-section,
body.dark.cables-page #detalle {
  background: linear-gradient(180deg, #151719 0%, #101113 100%) !important;
}

body.dark .product-detail-page::before,
body.dark .product-detail-page::after,
body.dark.cables-page #detalle::before,
body.dark.cables-page #detalle::after {
  background-image: none !important;
  background: none !important;
  border-color: rgba(189, 196, 204, 0.10) !important;
  opacity: 0.28 !important;
}

body.dark .product-back-link,
body.dark .product-detail-action-secondary,
body.dark .product-tag {
  background: linear-gradient(180deg, #303338 0%, #26292d 100%) !important;
  border-color: rgba(189, 196, 204, 0.16) !important;
  color: #eee7da !important;
}

body.dark .product-detail-image,
body.dark #detalleTablaContainer {
  background: #26292d !important;
  border-color: rgba(189, 196, 204, 0.14) !important;
}

body.dark .product-detail-image::before,
body.dark .product-detail-image::after {
  background-image: none !important;
  background: none !important;
}

body.dark .product-detail-copy.product-detail-copy-top,
body.dark .product-meta-group {
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%) !important;
}

/* Override final absoluto: dark mode en blanco y negro puro. */
body.dark {
  --mono-bg: #0d0d0d;
  --mono-bg-2: #141414;
  --mono-panel: #1b1b1b;
  --mono-panel-2: #222222;
  --mono-border: rgba(255,255,255,0.16);
  --mono-border-strong: rgba(255,255,255,0.26);
  --mono-text: #f3f3f3;
  --mono-muted: rgba(255,255,255,0.72);
}

body.dark,
body.dark .product-page,
body.dark .product-section,
body.dark .product-detail-page,
body.dark .product-detail-section,
body.dark .contact-page,
body.dark .about-page,
body.dark .about-section,
body.dark .services-pillar-section,
body.dark.catalogo-page,
body.dark.cables-page #detalle,
body.dark .experience,
body.dark .product-strip,
body.dark .product-card {
  background: linear-gradient(180deg, var(--mono-bg-2) 0%, var(--mono-bg) 100%) !important;
  color: var(--mono-text) !important;
}

body.dark .site-header,
body.dark .site-header.scrolled,
body.dark .nav-dropdown-menu,
body.dark .site-header.scrolled .nav-dropdown-menu,
body.dark .mobile-nav,
body.dark .site-header.scrolled .mobile-nav,
body.dark .site-footer,
body.dark .product-detail-card,
body.dark .product-meta-group,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark #detalleTablaWrap,
body.dark #detalleTablaContainer,
body.dark .catalogo-head,
body.dark .catalog-card,
body.dark .catalog-modal-dialog,
body.dark .contact-form,
body.dark .contact-side,
body.dark .timeline-step,
body.dark .timeline-panel,
body.dark .projects-collage-shell,
body.dark .project-modal-card,
body.dark .service-box,
body.dark .service-subtopic,
body.dark .product-detail-image,
body.dark .cables-board,
body.dark.cables-page #cablesProducts .product-card-tile,
body.dark .product-card-tile,
body.dark .counter-card,
body.dark .safety-card {
  background: linear-gradient(180deg, var(--mono-panel-2) 0%, var(--mono-panel) 100%) !important;
  border-color: var(--mono-border) !important;
  color: var(--mono-text) !important;
  box-shadow: 0 16px 30px rgba(0,0,0,0.22) !important;
}

body.dark .product-detail-page::before,
body.dark .product-detail-page::after,
body.dark.cables-page #detalle::before,
body.dark.cables-page #detalle::after,
body.dark .product-detail-image::before,
body.dark .product-detail-image::after,
body.dark.cables-page #cablesProducts .product-card-media::before,
body.dark.cables-page #cablesProducts .product-card-media::after {
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}

body.dark .main-nav a,
body.dark .nav-dropdown-toggle,
body.dark .theme-toggle,
body.dark .menu-toggle,
body.dark .site-footer a,
body.dark .site-footer p,
body.dark .site-footer h3,
body.dark .site-footer h4,
body.dark .site-footer .footer-toggle,
body.dark .site-footer .material-symbols-outlined,
body.dark .catalogo-head h1,
body.dark .catalogo-head p,
body.dark .catalog-card-head h3,
body.dark .catalog-card-head p,
body.dark .catalogo-page-readout,
body.dark .catalogo-link,
body.dark .catalog-modal-head h2,
body.dark .catalog-modal-head p,
body.dark .catalogo-picker label,
body.dark .contact-side h2,
body.dark .contact-side p,
body.dark .contact-chip,
body.dark .field span,
body.dark .optional-hint,
body.dark .submit-note,
body.dark .timeline-head h2,
body.dark .timeline-panel h3,
body.dark .projects-head h2,
body.dark .project-modal-card h3,
body.dark .timeline-projects-panel .projects-head h3,
body.dark .timeline-head p,
body.dark .timeline-panel p,
body.dark .projects-head p,
body.dark .project-modal-card p,
body.dark .projects-pill,
body.dark .services-eyebrow,
body.dark .services-head h2,
body.dark .services-intro,
body.dark .service-box h3,
body.dark .service-box p,
body.dark .cables-board-head h2,
body.dark .cables-board-head p,
body.dark .cables-status,
body.dark .product-detail-content h2,
body.dark .product-detail-copy.product-detail-copy-top p,
body.dark .product-tag-value,
body.dark .product-meta-group-title,
body.dark .product-back-link,
body.dark.cables-page #cablesProducts .product-card-tile h3,
body.dark.cables-page #cablesProducts .product-card-tile h3::before {
  color: var(--mono-text) !important;
  text-shadow: none !important;
}

body.dark .product-tag,
body.dark .cables-filter-btn,
body.dark .service-quote-btn,
body.dark .service-subtoggle,
body.dark .catalogo-picker,
body.dark .catalog-card-preview,
body.dark .catalog-card-loading,
body.dark .field input,
body.dark .field select,
body.dark .field textarea,
body.dark .suggestion-btn,
body.dark .submit-btn,
body.dark .contact-chip,
body.dark .product-detail-action-secondary,
body.dark .product-back-link {
  background: #2a2a2a !important;
  border-color: var(--mono-border) !important;
  color: var(--mono-text) !important;
}

body.dark .cables-filter-btn.is-active,
body.dark .service-quote-btn:hover,
body.dark .product-detail-action-primary,
body.dark .submit-btn {
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%) !important;
  border-color: var(--mono-border-strong) !important;
  color: #ffffff !important;
}

body.dark .product-detail-table thead th,
body.dark .measure-table th {
  background: #262626 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.16) !important;
}

body.dark .product-detail-table tbody td,
body.dark .measure-table td {
  background: #1c1c1c !important;
  color: #f3f3f3 !important;
  border-color: rgba(255,255,255,0.10) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::before,
body.dark.cables-page #cablesProducts .product-card-tile::after {
  border-color: rgba(255,255,255,0.34) !important;
}

/* Override final absoluto: diseno 1 y residuos dark en blanco y negro puro. */
body.dark .product-list-header,
body.dark .listing-hero,
body.dark .product-hero-slab,
body.dark .category-intro-banner,
body.dark .subcategory-item,
body.dark .subproduct-card,
body.dark .product-detail-description {
  background: linear-gradient(180deg, #222222 0%, #171717 100%) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 16px 32px rgba(0,0,0,0.22) !important;
}

body.dark .listing-hero.has-image {
  background: inherit !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body.dark .product-list-header,
body.dark .listing-hero:not(.has-image),
body.dark .product-detail-page,
body.dark .product-grid-page,
body.dark .product-list-page {
  background-image: none !important;
}

body.dark .product-list-header h1,
body.dark .product-list-header p,
body.dark .listing-hero-title,
body.dark .listing-hero-subtitle,
body.dark .product-hero-slab-content h2,
body.dark .subcategory-content h3,
body.dark .subcategory-content p,
body.dark .subproduct-card h3,
body.dark .subproduct-card p,
body.dark .product-back-link,
body.dark .product-detail-description {
  color: #f3f3f3 !important;
}

body.dark .subcategory-media,
body.dark .subproduct-media,
body.dark .listing-hero-media,
body.dark .product-hero-slab-image,
body.dark .category-intro-media {
  background-color: #262626 !important;
}

body.dark .subcategory-logo-watermark,
body.dark .product-card-fallback-logo {
  opacity: 0.16 !important;
  filter: grayscale(1) brightness(0) invert(1) !important;
}

body.dark .subcategory-cta,
body.dark .subproduct-cta,
body.dark .product-back-link,
body.dark #detalleTablaWrap h3,
body.dark .product-detail-action-primary {
  background: linear-gradient(180deg, #3a3a3a 0%, #262626 100%) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(0,0,0,0.18) !important;
}

body.dark .product-back-link::before {
  color: #ffffff !important;
}

body.dark .subproduct-badge,
body.dark .product-tag,
body.dark .product-detail-action-secondary {
  background: #2a2a2a !important;
  border-color: rgba(255,255,255,0.16) !important;
  color: #f3f3f3 !important;
}

body.dark #detalleTablaWrap h3::before,
body.dark.cables-page #cablesProducts .product-card-media::before,
body.dark.cables-page #cablesProducts .product-card-content::before,
body.dark.cables-page #cablesProducts .product-card-content::after {
  background: none !important;
  opacity: 0 !important;
}

body.dark .product-detail-table,
body.dark #detalleTablaContainer {
  background: #171717 !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark .product-detail-table th,
body.dark .product-detail-table-head .product-detail-table-main,
body.dark .product-detail-table-head .product-detail-table-spacer,
body.dark .product-detail-table-head .product-detail-table-subgroup,
body.dark .product-detail-table-head .product-detail-table-variant {
  background: #262626 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.16) !important;
}

body.dark .product-detail-table tbody td {
  background: #1b1b1b !important;
  color: #f3f3f3 !important;
  border-color: rgba(255,255,255,0.10) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  background: linear-gradient(180deg, #232323 0%, #181818 100%) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile h3,
body.dark.cables-page #cablesProducts .product-card-tile h3::before {
  color: #f3f3f3 !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::before {
  border-top-color: rgba(255,255,255,0.44) !important;
  border-right-color: rgba(255,255,255,0.44) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::after {
  border-color: rgba(255,255,255,0.42) !important;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.82) 45%, rgba(255,255,255,0.82) 55%, transparent 55%),
    linear-gradient(transparent 45%, rgba(255,255,255,0.82) 45%, rgba(255,255,255,0.82) 55%, transparent 55%),
    radial-gradient(circle at 35% 35%, rgba(232,232,232,0.96), rgba(118,118,118,0.98) 72%) !important;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.06),
    inset 0 1px 1px rgba(255,255,255,0.16),
    inset 0 -1px 1px rgba(0,0,0,0.24) !important;
}

/* Override final absoluto 2: productos, cables y detalle solo en negro, gris y blanco. */
body.dark .product-page,
body.dark .product-grid-page,
body.dark .product-list-page,
body.dark .product-detail-page,
body.dark .product-section,
body.dark.cables-page,
body.dark.cables-page #detalle,
body.dark.cables-page .cables-board {
  background: #0a0a0a !important;
  background-image: none !important;
}

body.dark .product-page::before,
body.dark .product-page::after,
body.dark .product-grid-page::before,
body.dark .product-grid-page::after,
body.dark .product-list-page::before,
body.dark .product-list-page::after,
body.dark .product-detail-page::before,
body.dark .product-detail-page::after,
body.dark .product-section::before,
body.dark .product-section::after,
body.dark.cables-page::before,
body.dark.cables-page::after,
body.dark.cables-page .cables-board::before,
body.dark.cables-page .cables-board::after,
body.dark .listing-hero::before,
body.dark .listing-hero::after,
body.dark .product-list-header::before,
body.dark .product-list-header::after,
body.dark .product-hero-slab::before,
body.dark .product-hero-slab::after,
body.dark .category-intro-banner::before,
body.dark .category-intro-banner::after,
body.dark .subcategory-item::before,
body.dark .subcategory-item::after,
body.dark .subproduct-card::before,
body.dark .subproduct-card::after,
body.dark #detalleTablaWrap::before,
body.dark #detalleTablaWrap::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

body.dark .product-list-header,
body.dark .listing-hero,
body.dark .product-hero-slab,
body.dark .category-intro-banner,
body.dark .subcategory-item,
body.dark .subproduct-card,
body.dark .product-detail-card,
body.dark .product-meta-group,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark .product-detail-description,
body.dark #detalleTablaWrap,
body.dark #detalleTablaContainer,
body.dark .measure-table-wrap {
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

body.dark .subcategory-media,
body.dark .subproduct-media,
body.dark .product-hero-slab-image,
body.dark .category-intro-media,
body.dark .product-detail-image,
body.dark .product-detail-image-frame {
  background: #141414 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark .product-list-header h1,
body.dark .product-list-header p,
body.dark .listing-hero-title,
body.dark .listing-hero-subtitle,
body.dark .product-hero-slab-content h2,
body.dark .subcategory-content h3,
body.dark .subcategory-content p,
body.dark .subproduct-card h3,
body.dark .subproduct-card p,
body.dark .product-detail-content h2,
body.dark .product-detail-copy.product-detail-copy-top p,
body.dark .product-detail-description,
body.dark .product-tag-value,
body.dark .product-meta-group-title,
body.dark .cables-board-head h2,
body.dark .cables-board-head p,
body.dark .cables-status,
body.dark #detalleTablaWrap h3 {
  color: #f3f3f3 !important;
}

body.dark .subcategory-logo-watermark,
body.dark .product-card-fallback-logo {
  filter: grayscale(1) brightness(0) invert(1) !important;
  opacity: 0.14 !important;
}

body.dark .cables-filter-btn,
body.dark .subcategory-cta,
body.dark .subproduct-cta,
body.dark .product-back-link,
body.dark .product-detail-action-primary,
body.dark .product-detail-action-secondary,
body.dark .measure-quote-btn,
body.dark .product-detail-tab {
  background: #1b1b1b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-btn:hover,
body.dark .subcategory-cta:hover,
body.dark .subproduct-cta:hover,
body.dark .product-back-link:hover,
body.dark .product-detail-action-primary:hover,
body.dark .product-detail-action-secondary:hover,
body.dark .measure-quote-btn:hover,
body.dark .product-detail-tab:hover,
body.dark .cables-filter-btn.is-active,
body.dark .product-detail-tab.is-active {
  background: #262626 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  transform: none !important;
}

body.dark .product-tag,
body.dark .subproduct-badge {
  background: #202020 !important;
  color: #f3f3f3 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark .product-detail-table,
body.dark #detalleTablaContainer {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark .product-detail-table th,
body.dark .product-detail-table-head .product-detail-table-main,
body.dark .product-detail-table-head .product-detail-table-spacer,
body.dark .product-detail-table-head .product-detail-table-subgroup,
body.dark .product-detail-table-head .product-detail-table-variant,
body.dark .measure-table th {
  background: #1f1f1f !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

body.dark .product-detail-table tbody td,
body.dark .measure-table td {
  background: #131313 !important;
  color: #f3f3f3 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  background: linear-gradient(180deg, #181818 0%, #111111 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::before {
  border-top-color: rgba(255, 255, 255, 0.36) !important;
  border-right-color: rgba(255, 255, 255, 0.36) !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::after {
  box-shadow: none !important;
}

body.dark .product-detail-copy,
body.dark .product-detail-extra,
body.dark .product-detail-extra-sections,
body.dark .tecnica-block,
body.dark .product-detail-panel,
body.dark .product-detail-tabs {
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

body.dark .product-detail-copy h3,
body.dark .product-detail-extra h3,
body.dark .tecnica-block h4,
body.dark .product-detail-list,
body.dark .tecnica-block p,
body.dark .tecnica-block ul {
  color: #f3f3f3 !important;
}

body.dark .product-detail-tab {
  background: #1a1a1a !important;
  color: #f3f3f3 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

body.dark .product-detail-tab.is-active {
  background: #2a2a2a !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body.dark .measure-table-wrap {
  background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

body.dark .measure-quote-btn {
  background: #1b1b1b !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

body.dark .measure-quote-btn:hover {
  background: #262626 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body.dark .cables-filter-btn {
  background: linear-gradient(180deg, #202020 0%, #171717 100%) !important;
  color: #f3f3f3 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-btn.is-active,
body.dark .cables-filter-btn:hover {
  background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

body.dark .cables-filter-logo {
  background: #121212 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-logo img {
  filter: grayscale(1) brightness(0) invert(1) !important;
}

/* Remate final: detalle diseno 1 y cables en monocromo exacto */
body.dark .product-detail-extra-sections,
body.dark .product-detail-extra,
body.dark .product-detail-panel,
body.dark .tecnica-block,
body.dark .measure-table-wrap,
body.dark .product-detail-copy,
body.dark .product-detail-description,
body.dark #detalleTablaWrap,
body.dark #detalleTablaContainer {
  background: rgba(17, 17, 17, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark .product-detail-tab,
body.dark .measure-quote-btn,
body.dark .product-detail-action-primary,
body.dark .product-detail-action-secondary,
body.dark .product-back-link {
  background: #1b1b1b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .product-detail-tab.is-active,
body.dark .product-detail-tab:hover,
body.dark .measure-quote-btn:hover,
body.dark .product-detail-action-primary:hover,
body.dark .product-detail-action-secondary:hover,
body.dark .product-back-link:hover {
  background: #2a2a2a !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body.dark .product-detail-table,
body.dark .product-detail-table thead th,
body.dark .product-detail-table tbody td,
body.dark .product-detail-table-head .product-detail-table-main,
body.dark .product-detail-table-head .product-detail-table-spacer,
body.dark .product-detail-table-head .product-detail-table-subgroup,
body.dark .product-detail-table-head .product-detail-table-variant,
body.dark .measure-table th,
body.dark .measure-table td {
  background-image: none !important;
}

body.dark.cables-page .cables-board,
body.dark.cables-page .cables-board::before,
body.dark.cables-page .cables-board::after {
  background: #0a0a0a !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.dark .cables-board-head h2,
body.dark .cables-board-head p,
body.dark .cables-status {
  color: #f3f3f3 !important;
}

body.dark .cables-filter-btn,
body.dark.cables-page .cables-filter-btn {
  background: linear-gradient(180deg, #202020 0%, #171717 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-btn:hover,
body.dark .cables-filter-btn.is-active,
body.dark.cables-page .cables-filter-btn:hover,
body.dark.cables-page .cables-filter-btn.is-active {
  background: linear-gradient(180deg, #2c2c2c 0%, #1f1f1f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-logo,
body.dark.cables-page .cables-filter-logo {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  background: linear-gradient(180deg, #1b1b1b 0%, #111111 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

body.dark.cables-page #cablesProducts .product-card-tile::before,
body.dark.cables-page #cablesProducts .product-card-tile::after,
body.dark.cables-page #cablesProducts .product-card-screw,
body.dark.cables-page #cablesProducts .product-card-corner {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: none !important;
  box-shadow: none !important;
}

body.dark .product-detail-extra-sections,
body.dark .product-detail-panel,
body.dark .product-detail-extra,
body.dark .product-detail-copy,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark .product-detail-description,
body.dark .tecnica-block,
body.dark .measure-table-wrap,
body.dark #detalleTablaWrap {
  background: rgba(17, 17, 17, 0.78) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

body.dark .product-detail-tab,
body.dark .measure-quote-btn,
body.dark .product-back-link,
body.dark .product-detail-action-primary,
body.dark .product-detail-action-secondary {
  background: #1a1a1a !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .product-detail-tab.is-active,
body.dark .product-detail-tab:hover,
body.dark .measure-quote-btn:hover,
body.dark .product-back-link:hover,
body.dark .product-detail-action-primary:hover,
body.dark .product-detail-action-secondary:hover {
  background: #2b2b2b !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body.dark .cables-filter-btn,
body.dark.cables-page .cables-filter-btn {
  background: #1b1b1b !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-btn:hover,
body.dark .cables-filter-btn.is-active,
body.dark.cables-page .cables-filter-btn:hover,
body.dark.cables-page .cables-filter-btn.is-active {
  background: #2a2a2a !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-logo,
body.dark.cables-page .cables-filter-logo,
body.dark .cables-filter-btn.is-active .cables-filter-logo,
body.dark.cables-page .cables-filter-btn.is-active .cables-filter-logo {
  background: #111111 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.dark .cables-filter-logo img,
body.dark.cables-page .cables-filter-logo img {
  filter: grayscale(1) brightness(0) invert(1) !important;
}

/* Override final: dibujo tecnico de cadenas debe conservar fondo claro en modo oscuro */
body.dark.cadenas-page #detalleTablaWrap #detalleDibujoImage,
body.dark .cadenas-page #detalleTablaWrap #detalleDibujoImage,
body.dark.cadenas-page #detalleDibujoImage,
body.dark .cadenas-page #detalleDibujoImage {
  background: #f5f7fb !important;
  background-image: none !important;
  border: 1px solid rgba(188, 201, 230, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(5, 10, 24, 0.12) !important;
  margin-bottom: 24px !important;
}

body.dark.cadenas-page #detalleTablaWrap #detalleDibujoImage::before,
body.dark .cadenas-page #detalleTablaWrap #detalleDibujoImage::before,
body.dark.cadenas-page #detalleTablaWrap #detalleDibujoImage::after,
body.dark .cadenas-page #detalleTablaWrap #detalleDibujoImage::after {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

body.dark.cadenas-page #detalleTablaWrap #detalleDibujoAsset,
body.dark .cadenas-page #detalleTablaWrap #detalleDibujoAsset {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Override final: nombres completos en tarjetas de cables */
.cables-page #cablesProducts .product-card-tile h3,
body.dark.cables-page #cablesProducts .product-card-tile h3 {
  display: block !important;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 0.98 !important;
  font-size: clamp(16px, 1.45vw, 23px) !important;
  letter-spacing: 0.01em !important;
  text-wrap: pretty;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

.cables-page #cablesProducts .product-card-content,
body.dark.cables-page #cablesProducts .product-card-content {
  padding: 12px 18px 16px !important;
}

/* Override final: tabla simple adaptativa para cables */
.product-detail-table--simple {
  table-layout: auto !important;
}

.product-detail-table--simple thead th {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.18 !important;
  font-size: 12px !important;
  padding: 12px 10px !important;
  min-width: 140px;
  vertical-align: middle;
}

.product-detail-table--simple thead th:first-child,
.product-detail-table--simple tbody td:first-child {
  min-width: 110px;
}

.product-detail-table--simple tbody td {
  white-space: nowrap;
  font-size: 14px;
}

body.dark .product-detail-table--simple thead th {
  background: #26292e !important;
  color: #f1eee7 !important;
}

/* Override final: encabezados de tablas de cables deben respirar */
.product-detail-table {
  table-layout: auto !important;
}

.product-detail-table thead th,
.product-detail-table-head .product-detail-table-main,
.product-detail-table-head .product-detail-table-subgroup,
.product-detail-table-head .product-detail-table-variant,
.product-detail-table-head .product-detail-table-spacer {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
  padding: 14px 10px !important;
}

.product-detail-table-head .product-detail-table-main {
  min-width: 132px;
  font-size: 13px !important;
}

.product-detail-table-head .product-detail-table-subgroup,
.product-detail-table-head .product-detail-table-variant,
.product-detail-table-head .product-detail-table-spacer {
  min-width: 108px;
  font-size: 12px !important;
}

.product-detail-table thead tr:first-child th {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.product-detail-table thead tr:nth-child(2) th,
.product-detail-table thead tr:nth-child(3) th,
.product-detail-table thead tr:nth-child(4) th {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.product-detail-table--simple thead th {
  min-width: 150px !important;
}

.product-detail-table--simple thead th:first-child,
.product-detail-table--simple tbody td:first-child {
  min-width: 116px !important;
}

/* Override final: encabezados adaptativos de cables fieles a la hoja */
.product-detail-table {
  table-layout: auto !important;
}

.product-detail-table col {
  min-width: 86px;
}

.product-detail-table-head th {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
  text-align: center;
  vertical-align: middle;
}

.product-detail-table-head .product-detail-table-main,
.product-detail-table-head .product-detail-table-subgroup,
.product-detail-table-head .product-detail-table-variant,
.product-detail-table-head .product-detail-table-spacer {
  min-width: 86px !important;
  padding: 10px 8px !important;
  font-size: 12px !important;
  line-height: 1.18 !important;
}

.product-detail-table-head .product-detail-table-main {
  font-size: 13px !important;
  font-weight: 800 !important;
}

.product-detail-table-head .product-detail-table-spacer {
  background: transparent !important;
  border-bottom: 1px solid #d8deea !important;
}

.product-detail-table tbody td {
  white-space: nowrap;
  padding: 9px 8px !important;
  font-size: 13px;
}

.product-detail-thumbnails {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(201, 211, 232, 0.88);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(239, 244, 252, 0.94) 100%);
  box-shadow:
    0 14px 28px rgba(16, 24, 40, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 99, 255, 0.34) transparent;
}

.product-detail-thumbnails button {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  border: 1px solid rgba(170, 182, 208, 0.68);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  padding: 6px;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(17, 29, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.product-detail-thumbnails button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  transition: transform 180ms ease, filter 180ms ease;
}

.product-detail-thumbnails button:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 99, 255, 0.42);
  box-shadow:
    0 16px 28px rgba(17, 29, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.product-detail-thumbnails button.is-active {
  border-color: #2b63ff;
  transform: translateY(-3px);
  box-shadow:
    0 18px 30px rgba(28, 43, 122, 0.18),
    0 0 0 4px rgba(43, 99, 255, 0.10);
}

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

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

.product-detail-thumbnails button:focus-visible {
  outline: none;
  border-color: #1d4ed8;
  box-shadow:
    0 0 0 4px rgba(29, 78, 216, 0.16),
    0 12px 24px rgba(29, 78, 216, 0.14);
}

.product-detail-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.product-detail-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(43, 99, 255, 0.34);
  border-radius: 999px;
}

@media (min-width: 1800px) {
  .product-cards {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    max-width: 1620px;
    gap: 30px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    max-width: 1620px;
  }

  .product-list-page .product-list-header .container,
  .product-grid-page .product-list-header .container,
  .product-grid-page .product-grid-section,
  .product-detail-page .container {
    width: min(1600px, 92vw);
    max-width: none;
  }

  .subproduct-grid {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    max-width: 1620px;
  }
}

@media (min-width: 2200px) {
  .product-cards {
    grid-template-columns: repeat(6, minmax(240px, 1fr));
    max-width: 1820px;
  }

  .cables-page #cablesProducts.product-cards {
    grid-template-columns: repeat(6, minmax(240px, 1fr));
    max-width: 1820px;
  }

  .product-list-page .product-list-header .container,
  .product-grid-page .product-list-header .container,
  .product-grid-page .product-grid-section,
  .product-detail-page .container {
    width: min(1800px, 94vw);
  }

  .subproduct-grid {
    grid-template-columns: repeat(5, minmax(280px, 1fr));
    max-width: 1820px;
  }
}

/* Override final 20260327ao: portadas internas centradas y con titulo mas limpio. */
.product-hero .hero-content,
.product-hero .hero-content.hero-right {
  max-width: min(980px, 82vw) !important;
  width: min(980px, 82vw) !important;
  margin: 0 auto !important;
  justify-items: center !important;
  align-content: center !important;
  text-align: center !important;
}

.product-hero h1 {
  max-width: min(15ch, 100%) !important;
  margin: 0 auto !important;
  font-size: clamp(44px, 5vw, 76px) !important;
  line-height: 1.02 !important;
  text-align: center !important;
  text-wrap: balance !important;
  color: transparent !important;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #edf2ff 18%, #ffffff 42%, #c5d4ff 62%, #ffffff 82%, #dde7ff 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 8px, rgba(173, 195, 255, 0.06) 8px 18px) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: 0 12px 30px rgba(5, 10, 24, 0.42) !important;
}

.product-hero .hero-description {
  max-width: min(860px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  text-wrap: pretty !important;
}

.product-hero .hero-scroll {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 980px) {
  .product-hero .hero-content,
  .product-hero .hero-content.hero-right {
    width: min(92vw, 760px) !important;
    max-width: min(92vw, 760px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .product-hero h1 {
    font-size: clamp(36px, 8vw, 54px) !important;
    max-width: 12ch !important;
  }

  .product-hero .hero-description {
    font-size: clamp(18px, 3.6vw, 24px) !important;
    line-height: 1.55 !important;
  }
}

/* Override final 20260413: modo nocturno unificado al negro del modo noche del
   selector rapido. */
body.dark .product-page,
body.dark .product-grid-page,
body.dark .product-list-page,
body.dark .product-detail-page,
body.dark .product-section,
body.dark.cables-page,
body.dark.cables-page #detalle,
body.dark.cables-page .cables-board,
body.dark .product-list-header,
body.dark .listing-hero,
body.dark .product-hero-slab,
body.dark .category-intro-banner,
body.dark .subcategory-item,
body.dark .subproduct-card,
body.dark .product-detail-card,
body.dark .product-meta-group,
body.dark .product-detail-copy.product-detail-copy-top,
body.dark .product-detail-description,
body.dark #detalleTablaWrap,
body.dark #detalleTablaContainer,
body.dark .measure-table-wrap,
body.dark .product-detail-extra-sections,
body.dark .product-detail-panel,
body.dark .product-detail-extra,
body.dark .product-detail-copy,
body.dark .tecnica-block {
  background: linear-gradient(180deg, #050608 0%, #0b0d11 100%) !important;
  border-color: rgba(179, 198, 244, 0.14) !important;
}

body.dark .cables-filter-btn,
body.dark .subcategory-cta,
body.dark .subproduct-cta,
body.dark .product-back-link,
body.dark .product-detail-action-primary,
body.dark .product-detail-action-secondary,
body.dark .measure-quote-btn,
body.dark .product-detail-tab,
body.dark .cables-filter-logo,
body.dark.cables-page .cables-filter-logo,
body.dark .product-detail-thumbnails button {
  background: linear-gradient(180deg, #101216 0%, #090b0f 100%) !important;
  border-color: rgba(179, 198, 244, 0.14) !important;
}

body.dark .product-detail-thumbnails {
  background:
    linear-gradient(180deg, rgba(20, 23, 29, 0.98) 0%, rgba(10, 12, 16, 0.94) 100%) !important;
  border-color: rgba(179, 198, 244, 0.12) !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.dark .product-detail-thumbnails button:hover {
  border-color: rgba(113, 145, 255, 0.38) !important;
}

body.dark .product-detail-thumbnails button.is-active {
  border-color: rgba(123, 154, 255, 0.84) !important;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.26),
    0 0 0 4px rgba(92, 120, 222, 0.18) !important;
}

body.dark .product-detail-thumbnails button.is-active::after {
  background: linear-gradient(90deg, #9db3ff 0%, #5b79f0 100%);
}

body.dark .product-detail-table,
body.dark #detalleTablaContainer {
  background: #090b0f !important;
}

body.dark .product-detail-table th,
body.dark .product-detail-table-head .product-detail-table-main,
body.dark .product-detail-table-head .product-detail-table-spacer,
body.dark .product-detail-table-head .product-detail-table-subgroup,
body.dark .product-detail-table-head .product-detail-table-variant,
body.dark .measure-table th {
  background: #101216 !important;
}

body.dark .product-detail-table tbody td,
body.dark .measure-table td {
  background: #090b0f !important;
}

body.dark.cables-page #cablesProducts .product-card-tile {
  background: linear-gradient(180deg, #101216 0%, #090b0f 100%) !important;
}

/* Override final 20260417: centrar la rejilla fija de cadenas sin heredar el
   ancho expansivo del listado general de productos. */
.cadenas-page #detalle .product-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  justify-content: center;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 6px auto 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cadenas-page #detalle .product-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .cadenas-page #detalle .product-cards {
    grid-template-columns: repeat(2, minmax(170px, 190px));
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 520px) {
  .cadenas-page #detalle .product-cards {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    padding-right: 0;
  }
}
