/* Imvimax 2026 — ficha de producto (módulo «ficha», clases imvf-). Usa los tokens de style.css. */

/* ---------- Rejilla principal ---------- */
body.imv-ficha.woocommerce div.product.imvf { display: block; --imvf-top: 150px; }
body.imv-ficha.woocommerce div.product.imvf > .imvf-arriba {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 344px;
  grid-template-areas: "gal info compra";
  gap: 28px 40px;
  align-items: start;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > .imvf-gal { grid-area: gal; position: sticky; top: var(--imvf-top); min-width: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > div.summary.imvf-info { grid-area: info; max-width: none; gap: 16px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > .imvf-compra { grid-area: compra; position: sticky; top: var(--imvf-top); min-width: 0; }
body.imv-ficha.woocommerce div.product.imvf > .imvf-abajo { min-width: 0; }

.imvf :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Galería (flexslider + zoom + photoswipe de WooCommerce) ---------- */
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images.woocommerce-product-gallery {
  position: relative;
  width: 100% !important;
  margin: 0;
  padding: 18px;
  border-radius: var(--r-l);
}
body.imv-ficha.woocommerce div.product.imvf .imvf-gal .flex-viewport { border-radius: var(--r-m); }
/* WooCommerce deja la galería con opacity:0 hasta que arranca flexslider (~1 s en blanco y peor LCP):
   se ve desde el principio y, mientras tanto, solo la primera foto para que nada salte al iniciarse. */
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images.woocommerce-product-gallery { opacity: 1 !important; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
/* «Ver carrito» que WooCommerce añade tras el botón al comprar por AJAX: sobra, se abre el mini-carrito. */
body.imv-ficha .imvf-compra form.cart a.added_to_cart { display: none; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .woocommerce-product-gallery__image a { display: block; cursor: zoom-in; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images img { aspect-ratio: 1 / 1; max-height: 540px; object-fit: contain; background: #fff; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2px;
  scrollbar-width: none;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs li {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--linea);
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
  opacity: .62;
  cursor: pointer;
  transition: opacity .15s;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs li:has(img.flex-active) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs li img:is(.flex-active, :hover) { opacity: 1; }

/* Carril de miniaturas: flechas solo cuando no caben (las añade ficha.js) */
.imvf-minis { position: relative; }
.imvf-minis.is-desborda { padding: 0 34px; }
body.imv .imvf-minis__flecha {
  position: absolute;
  top: calc(50% + 7px);
  z-index: 2;
  display: none;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linea);
  color: var(--tinta);
  cursor: pointer;
}
.imvf-minis.is-desborda .imvf-minis__flecha { display: block; }
.imvf-minis__flecha--izda { left: 0; }
.imvf-minis__flecha--dcha { right: 0; }
body.imv .imvf-minis__flecha::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translateX(-1px) rotate(45deg);
}
body.imv .imvf-minis__flecha--izda::before { transform: translateX(1px) rotate(-135deg); }
body.imv .imvf-minis__flecha:hover { background: var(--fondo); color: var(--tinta); }
body.imv .imvf-minis__flecha:disabled { opacity: .35; cursor: default; background: #fff; }
.imvf-puntos { display: none; }

/* Flechas de la galería */
.imvf-gal .flex-direction-nav { margin: 0; padding: 0; list-style: none; }
.imvf-gal .flex-direction-nav li { position: absolute; top: calc(18px + (100% - 36px - 86px) / 2); z-index: 3; margin: 0; }
.imvf-gal .flex-direction-nav li.flex-nav-prev { left: 26px; }
.imvf-gal .flex-direction-nav li.flex-nav-next { right: 26px; }
.imvf-gal:not(:has(.flex-control-thumbs)) .flex-direction-nav li { top: calc(50% - 22px); }
body.imv .imvf-gal .flex-direction-nav a {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linea);
  color: transparent;
  font-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .15s, background-color .15s;
}
body.imv .imvf-gal .flex-direction-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border: solid var(--tinta);
  border-width: 2.5px 2.5px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
body.imv .imvf-gal .flex-direction-nav a.flex-prev::before { transform: translateX(2px) rotate(-135deg); }
body.imv .imvf-gal .flex-direction-nav a.flex-disabled { visibility: hidden; }
.imvf-gal:is(:hover, :focus-within) .flex-direction-nav a { opacity: 1; }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images .flex-control-thumbs li img:focus-visible { opacity: 1; outline: 3px solid var(--teal); outline-offset: 1px; }
body.imv .imvf-gal .flex-direction-nav a:hover { background: #fff; }

/* Lupa (abre el visor a pantalla completa) */
body.imv-ficha.woocommerce div.product.imvf .imvf-gal .woocommerce-product-gallery__trigger {
  top: 26px;
  right: 26px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linea);
}
body.imv-ficha.woocommerce div.product.imvf .imvf-gal .woocommerce-product-gallery__trigger::before { top: 12px; left: 12px; border-color: var(--tinta); }
body.imv-ficha.woocommerce div.product.imvf .imvf-gal .woocommerce-product-gallery__trigger::after { top: 27px; left: 26px; background: var(--tinta); }

/* Miga compacta «‹ Monitores» (solo móvil; la crea imvf_miga_movil) */
.imvf-volver { display: none; }

/* ---------- Columna de información ---------- */
.imvf-info > * { margin: 0; }
.imvf-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.imv a.imvf-marca {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--cian-suave);
  color: var(--teal-osc);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}
body.imv a.imvf-marca:hover { background: var(--teal); color: #fff; }
.imvf-cabecera .imv-etq { font-size: 13px; }
.imv-etq.imvf-etq--oferta { background: var(--rojo); color: #fff; }
.imv-etq.imvf-etq--taller { background: var(--tinta); color: #fff; }
body.imv-ficha.woocommerce div.product.imvf .product_title { font-size: clamp(24px, 2.150vw, 32px); }
.imvf-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--gris); font-size: 14px; }
.imvf-ref strong { color: var(--tinta-2); font-weight: 700; }
body.imv .imvf-ref a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
body.imv .imvf-ref a:hover { color: var(--teal-osc); }
.imvf-ref__sep { color: #9aabb1; }

.imvf-claves { padding: 18px 20px 16px; border: 1px solid var(--linea); border-radius: var(--r-m); background: var(--fondo); }
body.imv .imvf-claves__tit { margin: 0 0 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.010em; color: var(--tinta); }
.imvf-claves__lista { margin: 0; }
.imvf-claves__fila {
  display: grid;
  grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--linea);
  font-size: 15px;
  line-height: 1.35;
}
.imvf-claves__fila:first-child { border-top: 0; }
.imvf-claves__fila dt { color: var(--gris); font-weight: 500; }
.imvf-claves__fila dd { margin: 0; font-weight: 700; color: var(--tinta); min-width: 0; overflow-wrap: anywhere; }
body.imv .imvf-claves__fila dd a { color: var(--tinta); text-decoration: underline; text-decoration-color: rgba(8, 112, 127, .4); text-underline-offset: 3px; }
body.imv .imvf-claves__fila dd a:hover { color: var(--teal-osc); text-decoration-color: currentColor; }
body.imv a.imvf-claves__mas { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--teal); }
body.imv a.imvf-claves__mas:hover { color: var(--teal-osc); }
body.imv-ficha.woocommerce div.product.imvf .woocommerce-product-details__short-description { font-size: 15.5px; }

/* ---------- Caja de compra ---------- */
.imvf-compra { display: grid; gap: 14px; }
.imvf-compra__caja {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--linea);
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--sombra-2);
}
.imvf-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.imvf-precio__etq { flex-basis: 100%; color: var(--gris); font-size: 14px; font-weight: 600; }
body.imv-ficha.woocommerce div.product.imvf .imvf-precio p.price {
  margin: 0;
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.030em;
  color: var(--tinta);
  font-variation-settings: "opsz" 96;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-precio p.price del { display: block; margin: 0 0 4px; font-size: 17px; letter-spacing: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-precio p.price .woocommerce-Price-currencySymbol { font-size: .62em; margin-left: 1px; }
.imvf-precio__consultar { font-size: 26px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-precio--rango p.price { font-size: 27px; letter-spacing: -0.020em; }
.imvf-precio__ahorro { padding: 3px 9px; border-radius: 6px; background: #fdecea; color: var(--rojo); font-size: 14px; font-weight: 800; }
.imvf-precio__nota { flex-basis: 100%; color: var(--gris); font-size: 13.5px; }

.imvf-stock { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; }
.imvf-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.imvf-stock.is-si { background: var(--menta-suave); color: #0b5a2b; }
.imvf-stock.is-pedido { background: #fff6dc; color: #7a5300; }
.imvf-stock.is-no { background: #fdecea; color: var(--rojo); }

.imvf-acciones { display: grid; gap: 10px; }
.imvf-acciones > * { margin: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra p.stock { justify-self: start; margin: 0 0 10px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart .button.single_add_to_cart_button {
  flex: 1 1 170px;
  height: 58px;
  padding: 0 20px;
  font-size: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 16px -8px rgba(240, 176, 0, .9);
}
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart .button.single_add_to_cart_button:is(.disabled, :disabled) { opacity: .55; box-shadow: none; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart .button.single_add_to_cart_button.loading { opacity: .7; }
.imvf-btn-grande { min-height: 58px; font-size: 17px; border-radius: 14px; }
body.imv .imvf-acciones a.imv-btn--linea { min-height: 48px; }

/* Cantidad con − / + (los botones los añade ficha.js) */
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart div.quantity.imvf-cant {
  display: inline-flex;
  align-items: stretch;
  height: 58px;
  border: 1.5px solid #b9c7cc;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart div.quantity.imvf-cant .qty {
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  -moz-appearance: textfield;
  appearance: textfield;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart div.quantity.imvf-cant .qty::-webkit-inner-spin-button,
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.cart div.quantity.imvf-cant .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.imv .imvf-cant__btn {
  width: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--tinta);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
body.imv .imvf-cant__btn:hover { background: var(--fondo); color: var(--tinta); }
body.imv .imvf-cant__btn:disabled { color: #a9b6ba; cursor: default; background: none; }

/* Productos variables (móviles seminuevos) */
body.imv-ficha.woocommerce div.product.imvf .imvf-compra form.variations_form { display: grid; gap: 12px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra table.variations { margin: 0; border: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra table.variations :is(tr, th, td) { display: block; padding: 0; border: 0; background: none; text-align: left; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra table.variations tr + tr { margin-top: 10px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra table.variations th.label { padding-bottom: 5px; font-size: 14.5px; font-weight: 700; color: var(--tinta); line-height: 1.3; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra table.variations select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 40px 0 14px;
  border: 1.5px solid #b9c7cc;
  border-radius: 12px;
  background-color: #fff;
  color: var(--tinta);
  font-size: 16px;
}
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .reset_variations { display: inline-block; margin-top: 6px; font-size: 14px; text-transform: none; letter-spacing: 0; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .single_variation_wrap { display: grid; gap: 10px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .reset_variations[style*="hidden"] { display: none; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .woocommerce-variation-price .price { font-size: 26px; font-weight: 800; color: var(--tinta); }
body.imv-ficha.woocommerce div.product.imvf .imvf-compra .woocommerce-variation-availability p.stock { margin: 0; }

.imvf-compra__nota { margin: 0; color: var(--gris); font-size: 14px; line-height: 1.45; }

/* Confianza */
.imvf-confianza { display: grid; gap: 0; margin: 0; padding: 4px 18px; list-style: none; border: 1px solid var(--linea); border-radius: var(--r-m); background: #fff; }
.imvf-confianza > li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--linea); }
.imvf-confianza > li:first-child { border-top: 0; }
.imvf-confianza .imv-ico { flex: none; margin-top: 1px; color: var(--teal); }
.imvf-confianza span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.imvf-confianza strong { font-size: 15px; color: var(--tinta); }
.imvf-confianza small { font-size: 13.5px; color: var(--gris); }
.imvf-confianza > li.imvf-confianza__wa { padding: 0; }
body.imv .imvf-confianza__wa a { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 0; color: var(--tinta); text-decoration: none; }
body.imv .imvf-confianza__wa a:hover strong { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.imvf-confianza__wa .imv-ico { color: var(--verde); }

/* ---------- Pestañas ---------- */
body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs { margin-top: 24px; padding-top: 0; scroll-margin-top: 130px; }
body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs .panel { max-width: 920px; }
body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs ul.tabs li a:focus-visible { outline-offset: -3px; }
body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs .panel[tabindex="-1"]:focus { outline: none; }

.imvf-desc > :first-child { margin-top: 0; }
.imvf-desc h3 {
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--teal);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.010em;
  line-height: 1.25;
  color: var(--tinta);
}
.imvf-desc p { margin: 0 0 12px; }
.imvf-lista { margin: 0 0 14px; padding-left: 1.2em; }
.imvf-lista li { margin: 4px 0; }
.imvf-lista li::marker { color: var(--teal); }

body.imv .imvf-tabla { width: 100%; margin: 0 0 16px; border: 1px solid var(--linea); border-radius: var(--r-m); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15px; }
body.imv .imvf-tabla :is(th, td) { padding: 10px 14px; border: 0; border-top: 1px solid var(--linea); vertical-align: top; text-align: left; line-height: 1.45; background: none; }
body.imv .imvf-tabla tr:first-child :is(th, td) { border-top: 0; }
body.imv .imvf-tabla th { width: 38%; background: var(--fondo); color: var(--tinta-2); font-weight: 600; }
body.imv .imvf-tabla td { color: var(--tinta); overflow-wrap: anywhere; }
body.imv .imvf-tabla td a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.imvf-specs__nota { color: var(--gris); font-size: 14.5px; }

/* ---------- Carriles ---------- */
.imvf-carril { padding-top: 52px; }
.imvf-carril :is(h2, p) { margin: 0; }
.imvf-carril .imv-sec__cab p { padding-top: 6px; }
.imvf-carril ul.imv-carril { list-style: none; }

/* ---------- Barra fija inferior (solo móvil/tableta) ---------- */
.imvf-barra { display: none; }

/* ---------- Tableta ---------- */
@media (max-width: 1199px) {
  body.imv-ficha.woocommerce div.product.imvf > .imvf-arriba {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "gal info" "gal compra";
    gap: 24px 32px;
  }
  body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > .imvf-compra { position: static; }
}

/* ---------- Móvil ---------- */
@media (max-width: 920px) {
  body.imv-ficha.woocommerce div.product.imvf > .imvf-arriba {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 16px;
  }
  body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > :is(.imvf-gal, div.summary.imvf-info, .imvf-compra) { grid-area: auto; }
  .imvf-info > * { grid-column: 1; min-width: 0; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > .imvf-gal { position: static; order: 0; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > div.summary.imvf-info { display: contents; }
  .imvf-info > * { order: 1; }
  .imvf-info > :is(.imvf-claves, .woocommerce-product-details__short-description) { order: 4; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-arriba > .imvf-compra { order: 3; }
  .imvf-info > .imvf-cabecera { margin-bottom: -6px; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images.woocommerce-product-gallery { padding: 10px; border-radius: 18px; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images img { max-height: 380px; }
  .imvf-gal .flex-direction-nav li { top: calc(10px + (100% - 20px - 86px) / 2); }
  .imvf-gal .flex-direction-nav li.flex-nav-prev { left: 14px; }
  .imvf-gal .flex-direction-nav li.flex-nav-next { right: 14px; }
  .imvf-gal .flex-direction-nav a { opacity: 1 !important; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-gal .woocommerce-product-gallery__trigger { top: 16px; right: 16px; }
  .imvf-compra__caja { padding: 18px; box-shadow: var(--sombra-1); }
  body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs ul.tabs li { flex: none; }
  body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs ul.tabs li a { padding: 12px 14px; font-size: 15.5px; white-space: nowrap; }
  body.imv-ficha.woocommerce div.product.imvf .woocommerce-tabs .panel { font-size: 15.5px; }
  body.imv .imvf-tabla { font-size: 14.5px; }
  body.imv .imvf-tabla :is(th, td) { padding: 9px 11px; }
  body.imv .imvf-tabla th { width: 42%; }
  .imvf-carril { padding-top: 40px; }

  .imvf-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--linea);
    box-shadow: 0 -10px 28px -14px rgba(11, 39, 48, .45);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .imvf-barra.is-visible { transform: none; visibility: visible; transition: transform .22s ease; }
  .imvf-barra__img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--linea); border-radius: 8px; background: #fff; }
  .imvf-barra__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .imvf-barra__tit { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--gris); }
  .imvf-barra__precio { font-size: 19px; font-weight: 800; color: var(--tinta); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .imvf-barra__precio del { font-size: 13px; font-weight: 500; color: var(--gris); }
  .imvf-barra__precio ins { text-decoration: none; }
  body.imv .imvf-barra__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--ambar);
    color: var(--tinta);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
  }
  body.imv .imvf-barra__btn:hover { background: var(--ambar-osc); color: var(--tinta); }
  body.imv .imvf-barra__btn--wa, body.imv .imvf-barra__btn--wa:hover { background: var(--verde); color: #fff; }
  /* Contrato de flotantes: la barra fija --imv-inferior en :root (ficha.js); WhatsApp, «subir» y Comparar se
     colocan con bottom: calc(var(--imv-inferior, 0px) + N px). */
  body.imv-barra-ficha { padding-bottom: var(--imv-inferior, 76px); }
}
/* ---------- Móvil estrecho: miga compacta, foto arriba, título más pequeño, puntos en vez de miniaturas ---------- */
@media (max-width: 767px) {
  body.imv-ficha .imv-migas, body.imv-ficha .woocommerce-breadcrumb { display: none; }
  .imvf-volver { display: block; margin: 0 0 10px; font-size: 14.5px; line-height: 1.3; }
  body.imv .imvf-volver a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--teal-osc); font-weight: 700; text-decoration: none; }
  body.imv .imvf-volver a > span[aria-hidden] { font-size: 22px; line-height: 1; margin-top: -2px; }
  body.imv .imvf-volver a:hover { text-decoration: underline; text-underline-offset: 3px; }
  body.imv-ficha.woocommerce div.product.imvf > .imvf-arriba { gap: 12px; }
  body.imv-ficha.woocommerce div.product.imvf .product_title { font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }
  .imvf-ref { font-size: 13px; }
  body.imv a.imvf-marca { min-height: 26px; padding: 0 10px; font-size: 13px; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-precio p.price { font-size: 32px; }
  body.imv-ficha.woocommerce div.product.imvf .imvf-gal div.images img { max-height: min(78vw, 360px); }

  body.imv-ficha.woocommerce div.product.imvf .imvf-gal .imvf-minis { display: none; }
  .imvf-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 6px 0 -4px; }
  body.imv .imvf-puntos__p { position: relative; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
  body.imv .imvf-puntos__p::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: #b9c7cc; transition: width .15s, background-color .15s; }
  body.imv .imvf-puntos__p[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--teal); }
  body.imv .imvf-puntos__p:hover, body.imv .imvf-puntos__p:focus { background: none; }
  /* Sin miniaturas debajo, las flechas de la foto van centradas en ella. */
  .imvf-gal .flex-direction-nav li { top: calc(50% - 36px); }
}
@media (max-width: 400px) {
  .imvf-barra__img { display: none; }
  .imvf-barra { grid-template-columns: minmax(0, 1fr) auto; }
  body.imv .imvf-barra__btn { padding: 0 13px; font-size: 15px; }
  .imvf-claves { padding: 14px 14px 12px; }
  .imvf-claves__fila { grid-template-columns: minmax(104px, 42%) minmax(0, 1fr); font-size: 14.5px; }
}
/* 320-360 px: sin el icono del botón, para que el precio (o el rango de un variable) no se corte tanto. */
@media (max-width: 360px) {
  body.imv .imvf-barra__btn > svg { display: none; }
  .imvf-barra { gap: 8px; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .imvf-barra, .imvf-barra.is-visible { transition: none; }
  body.imv .imvf-gal .flex-direction-nav a { transition: none; }
}
