/* ================================================================
   Infy Theme — Producto Individual
   ================================================================ */

.page-producto {
  padding-block: var(--sp-8) var(--sp-20);
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.page-producto__breadcrumb {
  margin-bottom: var(--sp-10);
}

/* ── Layout principal: imagen + info ──────────────────────────── */
.producto-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--sp-12);
  align-items: start;
  margin-bottom: var(--sp-16);
}

/* ── Galería de imágenes ──────────────────────────────────────── */
.producto-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.producto-gallery__main {
  position: relative;
  border: none;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  background: #ededed;
  aspect-ratio: 1 / 1;
  min-height: 420px;
  width: 100%;
  cursor: crosshair;
}

.producto-gallery__zoom-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  overflow: hidden;
}

.producto-gallery__main-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.producto-gallery__main.is-zooming .producto-gallery__main-img {
  transition: transform 0.08s ease-out;
}

.producto-gallery__main.is-zooming .producto-gallery__zoom-hint {
  opacity: 0;
  pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
  .producto-gallery__main {
    cursor: default;
  }
}

.producto-gallery__zoom-hint {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(8, 41, 68, 0.15);
  transition: background var(--transition), transform var(--transition);
}

.producto-gallery__main:hover .producto-gallery__zoom-hint {
  background: var(--color-primary);
  transform: scale(1.05);
}

.producto-gallery__zoom-hint svg {
  width: 20px;
  height: 20px;
}

.producto-gallery__thumbs {
  display: flex;
  gap: var(--sp-3);
}

.producto-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  border-radius: 15px !important;
}

.producto-gallery__thumb.is-active,
.producto-gallery__thumb:hover {
  border-color: var(--color-primary);
}

.producto-gallery__thumb img {
  max-height: 60px;
  object-fit: contain;
}

/* ── Info del producto ────────────────────────────────────────── */
.producto-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.producto-info__sku {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin-bottom: 0px;
}

.producto-info__name {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-dark);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
  max-width: 40rem;
}

.producto-info__tagline {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  line-height: 1.35;
  max-width: 30rem;
}

.producto-info__description {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 40rem;
}

.producto-info__description > :first-child {
  margin-top: 0;
}

.producto-info__description > :last-child {
  margin-bottom: 0;
}

.producto-info__description p {
  margin: 0 0 var(--sp-4);
  line-height: 1.7;
  font-size: var(--fs-base);
}

.producto-info__description h2,
.producto-info__description h3,
.producto-info__description h4 {
  color: var(--color-dark);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin: var(--sp-5) 0 var(--sp-3);
}

.producto-info__description h2 {
  font-size: var(--fs-lg);
}

.producto-info__description h3 {
  font-size: var(--fs-md);
}

.producto-info__description h4 {
  font-size: var(--fs-sm);
}

.producto-info__description ul,
.producto-info__description ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

.producto-info__description li {
  margin-bottom: var(--sp-2);
}

.producto-info__description li:last-child {
  margin-bottom: 0;
}

.producto-info__description strong {
  font-weight: var(--fw-bold);
  color: var(--color-dark);
}

.producto-info__description a {
  color: var(--color-dark);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.producto-info__description a:hover {
  color: var(--color-primary-hover);
}

/* ── Selector de atributos (píldoras) ─────────────────────────── */
.producto-colors {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}

.producto-colors__label {
  font-size: 1.075rem;
  font-weight: var(--fw-semibold);
  color: rgba(8, 41, 68, 0.55);
  line-height: 1.2;
  margin: 0.5rem 0;
}

.producto-colors__options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.infy-custom-layout .page-producto .producto-colors__options .producto-attr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(8, 41, 68, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

body.infy-custom-layout .page-producto .producto-colors__options .producto-attr-pill:hover:not(.is-active) {
  border-color: rgba(8, 41, 68, 0.28);
  background: rgba(8, 41, 68, 0.03);
}

body.infy-custom-layout .page-producto .producto-colors__options .producto-attr-pill.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #ffffff;
}

body.infy-custom-layout .page-producto .producto-colors__options .producto-attr-pill--color.is-active {
  background: var(--swatch-color, var(--color-dark));
  border-color: var(--swatch-color, var(--color-dark));
  color: #ffffff;
}

body.infy-custom-layout .page-producto .producto-colors__options .producto-attr-pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Precios ──────────────────────────────────────────────────── */
.producto-pricing {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.producto-pricing__price {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-dark);
  line-height: 1;
}

.producto-pricing__price .amount{
  color: var(--color-dark);
}

[data-infy-price-display] .price {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

[data-infy-price-display] .woocommerce-Price-amount,
[data-infy-price-display] ins .woocommerce-Price-amount,
[data-infy-price-display] > .woocommerce-Price-amount {
  color: var(--color-dark);
  font-size: inherit;
  font-weight: var(--fw-extrabold);
  text-decoration: none;
}

[data-infy-price-display] del,
[data-infy-price-display] del .woocommerce-Price-amount,
[data-infy-price-display] del .amount {
  color: var(--color-dark);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  opacity: 1;
  text-decoration: line-through;
}

[data-infy-price-display] .woocommerce-price-suffix,
[data-infy-price-display] .wd-price-unit {
  display: none !important;
}

.producto-pricing__original {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  text-decoration: line-through;
}

.producto-pricing__original .woocommerce-Price-amount,
.producto-pricing__original .woocommerce-Price-amount.amount,
.producto-pricing__original .amount {
  color: var(--color-dark);
  font-size: inherit;
  font-weight: inherit;
  text-decoration: line-through;
}

/* ── Instalación opcional ─────────────────────────────────────── */
.producto-installation {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-8);
  border: 1px solid var(--color-dark);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--fs-base);
  color: var(--color-dark);
  align-items: center;
}

.producto-installation input[type="checkbox"] {
  margin-top: 1px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.producto-installation a {
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  text-decoration: underline;
}

.producto-installation[data-infy-shipping-requires-address],
.producto-installation--requires-address {
  cursor: default;
}

.producto-installation[data-infy-shipping-requires-address] input[type="checkbox"],
.producto-installation--requires-address input[type="checkbox"] {
  cursor: pointer;
}

.producto-installation--notice {
  cursor: default;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.producto-installation--notice a {
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  text-decoration: underline;
}

.producto-installation--notice strong {
  color: var(--color-dark);
  font-weight: var(--fw-bold);
}

.producto-installation__scope {
  white-space: nowrap;
}

/* ── Cantidad + botón ─────────────────────────────────────────── */
.producto-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* Selector con botones circulares separados y cantidad al medio */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: none;
  overflow: visible;
}

.quantity-selector__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius-full) !important;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

html:not(.dark) .quantity-selector__btn:hover {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: var(--color-primary);
}

html.dark body.infy-custom-layout .page-producto .quantity-selector__btn:hover {
  background: #e8f4f8 !important;
  border-color: #e8f4f8 !important;
  color: #082944 !important;
}

body.infy-custom-layout .page-producto .quantity-selector__btn,
body.infy-custom-layout .page-producto .quantity-selector__btn:hover,
body.infy-custom-layout .page-producto .producto-actions .single_add_to_cart_button,
body.infy-custom-layout .page-producto .producto-actions .single_add_to_cart_button:hover {
  transform: none !important;
  box-shadow: none !important;
}

.quantity-selector__input {
  width: 100px !important;
  height: 35px !important;
  text-align: center;
  border: 1px solid var(--color-dark) !important;
  border-radius: var(--radius-full) !important;
  font-size: var(--fs-md) !important;
  font-weight: var(--fw-medium) !important;
  color: var(--color-dark);
  font-family: var(--font-family);
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.quantity-selector__input::-webkit-outer-spin-button,
.quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botón "Agregar al carrito" de la ficha */
body.infy-custom-layout .producto-actions .single_add_to_cart_button {
  min-height: 44px;
  padding: 0 var(--sp-8);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
}

html:not(.dark) body.infy-custom-layout .page-producto .producto-actions .single_add_to_cart_button:hover {
  background-color: var(--color-dark) !important;
  color: var(--color-primary) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Sección "Añadir artículos a la compra" ───────────────────── */
.producto-upsell {
  margin-bottom: var(--sp-12);
}

.producto-upsell__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--sp-5);
}

.producto-upsell__slider {
  position: relative;
  width: 100%;
  padding-inline: 0;
}

.producto-upsell__viewport {
  width: 100%;
}

.producto-upsell__track {
  --upsell-per-view: 2;
  display: grid;
  grid-template-columns: repeat(var(--upsell-per-view), minmax(0, 1fr));
  gap: var(--sp-6);
  width: 100%;
}

.producto-upsell__slider--carousel {
  padding-inline: 52px;
}

.producto-upsell__slider--carousel .producto-upsell__viewport {
  overflow: hidden;
  /* Evita el “corte cuadrado” al deslizar: el borde se difumina
     en la zona del border-radius de las cards. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 32px,
    #000 calc(100% - 32px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 32px,
    #000 calc(100% - 32px),
    transparent 100%
  );
}

.producto-upsell__slider--carousel .producto-upsell__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--sp-6);
  transition: transform 0.45s ease;
  will-change: transform;
}

.producto-upsell__slider--carousel .upsell-card {
  flex: 0 0 auto;
  min-width: 0;
  height: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  /* Mantiene el radio visible durante el transform (bug GPU/navegador). */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

/* Override WoodMart :is(.btn, .button, button) — flechas laterales del carrusel */
body.infy-custom-layout .page-producto .producto-upsell__arrow,
body.infy-custom-layout button.producto-upsell__arrow {
  position: absolute !important;
  top: calc(50% - 12px) !important;
  bottom: auto !important;
  z-index: 5 !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #082944 !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #082944 !important;
  box-shadow: 0 4px 16px rgba(8, 41, 68, 0.18) !important;
  cursor: pointer !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  --btn-bgcolor: #ffffff;
  --btn-bgcolor-hover: #082944;
  --btn-color: #082944;
  --btn-color-hover: #ffffff;
  --btn-brd-width: 2px;
  --btn-padding: 0;
  --btn-height: 44px;
  --btn-box-shadow: none;
  --btn-box-shadow-hover: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

body.infy-custom-layout .page-producto .producto-upsell__arrow svg,
body.infy-custom-layout button.producto-upsell__arrow svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  stroke: currentColor !important;
  fill: none !important;
  pointer-events: none;
}

body.infy-custom-layout .page-producto .producto-upsell__arrow:hover,
body.infy-custom-layout .page-producto .producto-upsell__arrow:focus-visible,
body.infy-custom-layout button.producto-upsell__arrow:hover,
body.infy-custom-layout button.producto-upsell__arrow:focus-visible {
  background: #082944 !important;
  border-color: #082944 !important;
  color: #ffffff !important;
  outline: none !important;
  transform: translateY(-50%) !important;
}

body.infy-custom-layout .page-producto .producto-upsell__arrow[hidden],
body.infy-custom-layout button.producto-upsell__arrow[hidden] {
  display: none !important;
}

body.infy-custom-layout .page-producto .producto-upsell__arrow--prev,
body.infy-custom-layout button.producto-upsell__arrow--prev {
  left: 0 !important;
  right: auto !important;
}

body.infy-custom-layout .page-producto .producto-upsell__arrow--next,
body.infy-custom-layout button.producto-upsell__arrow--next {
  right: 0 !important;
  left: auto !important;
}

.producto-upsell__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 12px;
  margin-top: var(--sp-6);
}

.producto-upsell__nav[hidden] {
  display: none !important;
}

body.infy-custom-layout .producto-upsell__nav-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 9999px !important;
  background: #c5d0d8 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

body.infy-custom-layout .producto-upsell__nav-dot.is-active {
  width: 32px !important;
  height: 8px !important;
  background: #082944 !important;
}

body.infy-custom-layout .producto-upsell__nav-dot:hover:not(.is-active) {
  background: #9fb0bd !important;
}

/* Tarjeta upsell — pill turquesa, miniatura + texto, botón navy */
.upsell-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--color-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.upsell-card__info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex: 1;
  min-width: 0;
  text-align: left;
}

.upsell-card__thumb-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
}

.upsell-card__thumb-link:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.03);
}

.upsell-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.upsell-card__copy {
  flex: 1;
  min-width: 0;
}

.upsell-card__name {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  line-height: 1.3;
  text-decoration: none;
}

.upsell-card__name:hover {
  text-decoration: underline;
}

.upsell-card__price {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-dark);
}

.upsell-card__price .woocommerce-Price-amount.amount {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: var(--fw-regular);
}

body.infy-custom-layout .upsell-card__btn.btn--dark {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.6rem 1.1rem;
}

html:not(.dark) body.infy-custom-layout .page-producto .upsell-card__btn.btn--dark:hover {
  background-color: #e8f4f8 !important;
  color: #082944 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Tabs de descripción ──────────────────────────────────────── */
.producto-tabs {
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--color-gray);
}

.producto-tabs__mobile {
  display: none;
}

.producto-tabs__mobile-label {
  display: block;
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.page-producto .producto-tabs__mobile {
  --infy-control-bg: #082944;
  --infy-control-border: #082944;
  --infy-control-fg: #ffffff;
  --infy-control-icon: #2ff7d0;
  --infy-control-menu-bg: #ffffff;
  --infy-control-menu-border: #e5eaee;
  --infy-control-menu-hover: rgba(47, 247, 208, 0.16);
  --infy-control-menu-selected: rgba(8, 41, 68, 0.08);
  --infy-control-menu-shadow: 0 12px 32px rgba(8, 41, 68, 0.16);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control {
  position: relative;
  width: 100%;
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control.is-enhanced .infy-control__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 3rem 0.85rem 1.25rem;
  border: 2px solid var(--infy-control-border);
  border-radius: var(--radius-full);
  background: var(--infy-control-bg);
  color: var(--infy-control-fg);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 41, 68, 0.18);
  transition: border-color var(--transition), box-shadow var(--transition);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__trigger:hover {
  border-color: #2ff7d0;
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__trigger:focus-visible,
body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control.is-open .infy-control__trigger {
  border-color: #2ff7d0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 247, 208, 0.25);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__icon {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  background-color: var(--infy-control-icon);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: transform var(--transition);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control.is-open .infy-control__icon {
  transform: translateY(-50%) rotate(180deg);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: var(--sp-2);
  list-style: none;
  overflow: auto;
  border: 1px solid var(--infy-control-menu-border);
  border-radius: var(--radius-xl);
  background: var(--infy-control-menu-bg);
  box-shadow: var(--infy-control-menu-shadow);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__menu[hidden] {
  display: none;
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__option {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  color: #082944;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__option:hover,
body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__option.is-focused {
  background: var(--infy-control-menu-hover);
}

body.infy-custom-layout .page-producto .producto-tabs__mobile .infy-control__option.is-selected {
  background: var(--infy-control-menu-selected);
  color: #082944;
  font-weight: var(--fw-bold);
}

.producto-tabs__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: -1px;
}

.producto-tabs__faq.faq-list {
  max-width: none;
  margin-inline: 0;
}

/* FAQ compacto en ficha producto (proporcional al fs-sm del tab) */
body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item {
  border-radius: 32px;
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item.is-open {
  border-radius: 24px;
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__header {
  min-height: 68px;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  gap: var(--sp-4);
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__icon {
  width: 32px;
  height: 32px;
  font-size: var(--fs-lg);
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__body {
  padding: 0 var(--sp-6) var(--sp-5);
}

body.infy-custom-layout .producto-tabs__tab {
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), border-width var(--transition);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-family);
  white-space: nowrap;
}

body.infy-custom-layout .producto-tabs__tab.is-active {
  color: var(--color-dark);
  font-weight: var(--fw-bold);
  border-bottom: 3px solid var(--color-dark);
}

body.infy-custom-layout .producto-tabs__tab:hover {
  color: var(--color-dark);
}

.producto-tabs__content {
  display: none;
  max-width: 760px;
  margin-inline: auto;
  padding-top: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.producto-tabs__content.is-active {
  display: block;
}

/* Tipografía uniforme: Descripción, Características, Especificaciones, FAQ */
.producto-tabs__content:not(#tab-manuales) {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.producto-tabs__content:not(#tab-manuales) :where(
  p,
  li,
  td,
  th,
  dd,
  dt,
  blockquote,
  figcaption
) {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.producto-tabs__content:not(#tab-manuales) :where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  font-weight: var(--fw-semibold);
  color: inherit;
  line-height: inherit;
  margin: 0 0 var(--sp-4);
}

.producto-tabs__content:not(#tab-manuales) :where(ul, ol) {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25em;
  color: inherit;
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__question {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  line-height: 1.8;
}

body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__body,
body.infy-custom-layout .page-producto .producto-tabs__faq .faq-item__body p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.producto-tabs__content:not(#tab-manuales) p {
  margin-bottom: var(--sp-4);
}

.producto-tabs__content:not(#tab-manuales) p:last-child {
  margin-bottom: 0;
}

/* ── Banner lifestyle con texto superpuesto ───────────────────── */
.producto-banner-inferior {
  display: block;
}

.producto-banner-inferior__row + .producto-banner-inferior__row {
  margin-top: var(--sp-4);
}

.producto-lifestyle {
  position: relative;
  isolation: isolate;
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: var(--sp-12);
  min-height: clamp(320px, 42vw, 680px);
  box-shadow: none;
}

.producto-lifestyle__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.producto-lifestyle__video {
  pointer-events: auto;
  cursor: pointer;
}

.producto-banner-media--video.is-playing .producto-lifestyle__video,
.producto-banner-media--video.is-playing .producto-photos__video {
  cursor: default;
}

.producto-banner-media__play-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.producto-banner-media__play-wrap.is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.infy-custom-layout button.producto-banner-media__play {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  transform: none;
  width: clamp(64px, 8vw, 80px);
  height: clamp(64px, 8vw, 80px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  box-shadow: none;
  color: #082944 !important;
  text-transform: none;
  font-weight: var(--fw-regular);
  font-size: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background-color var(--transition), color var(--transition);
  --btn-bgcolor: var(--color-primary);
  --btn-bgcolor-hover: var(--color-primary-hover);
  --btn-brd-width: 0;
  --btn-padding: 0;
  --btn-height: auto;
  --btn-box-shadow: none;
  --btn-box-shadow-hover: none;
}

body.infy-custom-layout button.producto-banner-media__play:hover {
  transform: none;
  background-color: var(--color-primary-hover);
  color: var(--color-primary) !important;
}

body.infy-custom-layout button.producto-banner-media__play:hover svg,
body.infy-custom-layout button.producto-banner-media__play:hover svg polygon {
  fill: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

body.infy-custom-layout button.producto-banner-media__play svg,
body.infy-custom-layout button.producto-banner-media__play svg polygon {
  width: clamp(34px, 4.5vw, 44px);
  height: clamp(34px, 4.5vw, 44px);
  fill: #082944 !important;
  color: #082944 !important;
  margin-left: 4px;
}

.producto-lifestyle__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(8, 41, 68, 0.22) 0%,
    rgba(8, 41, 68, 0.06) 35%,
    transparent 58%
  );
}

.producto-lifestyle__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 3.5rem);
  pointer-events: none;
}

.producto-lifestyle__heading {
  margin: 0;
  max-width: min(22rem, 52%);
  color: var(--color-white);
  font-size: clamp(1.65rem, 3.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(8, 41, 68, 0.25);
}

.producto-lifestyle__heading-light {
  display: block;
  font-weight: 300;
}

.producto-lifestyle__heading-bold {
  display: block;
  margin-top: 0.12em;
  font-weight: var(--fw-extrabold);
}

/* Override WoodMart :is(.btn, .button, button) — position, fondo gris y padding */
body.infy-custom-layout button.producto-lifestyle__play {
  position: absolute;
  z-index: 3;
  top: auto;
  left: auto;
  right: clamp(1.25rem, 3.5vw, 2rem);
  bottom: clamp(1.25rem, 3.5vw, 2rem);
  width: clamp(64px, 8vw, 80px);
  height: clamp(64px, 8vw, 80px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  box-shadow: none;
  color: #082944 !important;
  text-transform: none;
  font-weight: var(--fw-regular);
  font-size: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition);
  --btn-bgcolor: var(--color-primary);
  --btn-bgcolor-hover: var(--color-primary-hover);
  --btn-brd-width: 0;
  --btn-padding: 0;
  --btn-height: auto;
  --btn-box-shadow: none;
  --btn-box-shadow-hover: none;
}

body.infy-custom-layout button.producto-lifestyle__play:hover {
  transform: none;
  background-color: var(--color-primary-hover);
  color: var(--color-primary) !important;
}

body.infy-custom-layout button.producto-lifestyle__play:hover svg,
body.infy-custom-layout button.producto-lifestyle__play:hover svg polygon {
  fill: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

body.infy-custom-layout button.producto-lifestyle__play svg,
body.infy-custom-layout button.producto-lifestyle__play svg polygon {
  width: clamp(34px, 4.5vw, 44px);
  height: clamp(34px, 4.5vw, 44px);
  fill: #082944 !important;
  color: #082944 !important;
  margin-left: 4px;
}

/* ── CTA centrado bajo lifestyle ──────────────────────────────── */
.producto-cta {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.producto-cta__title {
  font-size: clamp(1.4rem, 3.8vw, var(--fs-6xl));
  font-weight: var(--fw-regular);
  color: var(--color-dark);
  margin-bottom: var(--sp-6);
}

.producto-cta__title strong {
  font-weight: var(--fw-extrabold);
}

html:not(.dark) body.infy-custom-layout .page-producto .producto-cta .btn--primary:hover {
  background-color: #082944 !important;
  color: #2ff7d0 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Galería de 2 fotos finales ───────────────────────────────── */
.producto-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.producto-photos__item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 650px;
}

.producto-photos__item img,
.producto-photos__item video,
.producto-photos__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-photos__item.producto-banner-media--video .producto-photos__video {
  position: absolute;
  inset: 0;
  display: block;
}

/* ── Decoración línea diagonal ────────────────────────────────── */
.producto-decoration {
  position: fixed;
  right: -40px;
  top: 30%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ── WooCommerce en ficha (productos variables) ───────────────── */
.producto-variations-wrap .variations_form {
  margin: 0;
}

.infy-variations-hidden,
.producto-variations-wrap .reset_variations,
.producto-variations-wrap .woocommerce-variation-price,
.producto-variations-wrap .price {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.producto-variations-wrap .single_variation_wrap {
  margin: 0;
}

.producto-variations-wrap .woocommerce-variation.single_variation {
  min-height: 0;
  margin: 0;
}

.producto-variations-wrap .woocommerce-variation-availability {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.producto-variations-wrap .woocommerce-variation-add-to-cart-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.producto-variations-wrap .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  cursor: not-allowed;
}

.producto-variations-wrap .woocommerce-variation-add-to-cart-enabled {
  opacity: 1;
  pointer-events: auto;
}

.producto-variations-wrap .woocommerce-variation-add-to-cart.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.producto-pricing__sep {
  font-weight: var(--fw-regular);
  opacity: 0.75;
}

.producto-actions--wc .variations_form,
.producto-actions--wc form.cart {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.producto-actions--wc .single_add_to_cart_button {
  align-self: flex-start;
}

.producto-attributes table {
  width: 100%;
  border-collapse: collapse;
}

.producto-attributes th,
.producto-attributes td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-gray);
  text-align: left;
}

.producto-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-card {
  list-style: none;
}

.download-card__link {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.download-card__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(8, 41, 68, 0.08);
  transform: translateY(-2px);
}

.download-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-dark);
}

.download-card__icon svg {
  width: 22px;
  height: 22px;
}

.download-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.download-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.download-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-gray);
  color: var(--color-dark);
  transition: background var(--transition), color var(--transition);
}

.download-card__link:hover .download-card__action {
  background: var(--color-dark);
  color: var(--color-white);
}

.download-card__action svg {
  width: 18px;
  height: 18px;
}

/* ── Modal de video ───────────────────────────────────────────── */
.producto-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.producto-video-modal.is-open {
  display: flex;
}

.producto-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 41, 68, 0.8);
  backdrop-filter: blur(2px);
}

.producto-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: var(--color-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.producto-video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.producto-video-modal__player iframe,
.producto-video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.producto-video-modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.producto-video-modal__close:hover {
  background: var(--color-primary-hover);
  color: var(--color-primary-hover-fg);
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .producto-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .producto-gallery__main {
    min-height: 0;
  }

  .producto-info__name {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .producto-upsell__slider:not(.producto-upsell__slider--carousel) .producto-upsell__track {
    --upsell-per-view: 1;
  }

  .producto-upsell__slider--carousel {
    padding-inline: 40px;
  }

  .producto-upsell__arrow,
  body.infy-custom-layout .page-producto .producto-upsell__arrow,
  body.infy-custom-layout button.producto-upsell__arrow {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
  }

  body.infy-custom-layout .page-producto .producto-upsell__arrow svg,
  body.infy-custom-layout button.producto-upsell__arrow svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Upsell mobile: foto a la izquierda, texto + botón a la derecha */
  .upsell-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: var(--sp-4);
    row-gap: var(--sp-3);
    padding: var(--sp-4);
  }

  .upsell-card__info {
    display: contents;
  }

  .upsell-card__thumb-link {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 72px;
    height: 72px;
  }

  .upsell-card__copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .upsell-card__name {
    font-size: var(--fs-sm);
  }

  .upsell-card__price {
    font-size: var(--fs-sm);
  }

  body.infy-custom-layout .upsell-card__btn.btn--dark {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .producto-photos {
    grid-template-columns: 1fr;
  }

  .producto-photos__item{
    height: 320px;
  }

  body.infy-custom-layout button.producto-banner-media__play {
    width: 56px;
    height: 56px;
  }

  body.infy-custom-layout button.producto-banner-media__play svg {
    width: 30px;
    height: 30px;
  }

  .producto-lifestyle {
    border-radius: 28px;
    min-height: 280px;
  }

  .producto-lifestyle__content {
    align-items: flex-start;
    padding: var(--sp-6) var(--sp-5) clamp(5.5rem, 22vw, 6.5rem);
  }

  .producto-lifestyle__heading {
    max-width: min(100%, 18rem);
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  }

  /* Tabs: selector compacto en mobile */
  .producto-tabs {
    border-bottom: none;
    margin-bottom: var(--sp-6);
  }

  .producto-tabs__mobile {
    display: block;
  }

  .producto-tabs__nav {
    display: none;
  }

  .producto-actions {
    gap: var(--sp-3);
  }

  .download-card__link {
    padding: var(--sp-3) var(--sp-4);
  }
}

@media (max-width: 480px) {
  .producto-gallery__thumbs {
    flex-wrap: wrap;
  }

  .producto-gallery__thumb {
    width: 64px;
    height: 64px;
  }

  .producto-tabs__content {
    padding-top: var(--sp-6);
  }
}
