/*
Theme Name: Imvimax 2026
Template: astra
Description: Tema hijo de Astra para imvimax.es (rediseño tienda 2026).
Version: 0.1.0
Text Domain: imvimax-2026
*/

/* =====================================================================
   1. Fichas de diseño
   ===================================================================== */
:root {
  --imv-f: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tinta: #0b2730;
  --tinta-2: #153d49;
  --teal: #08707f;
  --teal-osc: #065a66;
  --menta: #bff3c6;
  --cian: #86dff7;
  --menta-suave: #eafbee;
  --cian-suave: #e6f7fc;
  --ambar: #ffc42e;
  --ambar-osc: #f0b000;
  --fondo: #f2f6f7;
  --linea: #dbe4e7;
  --gris: #54676e;
  --verde: #0e7a45;
  --rojo: #b42318;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --sombra-1: 0 1px 2px rgba(11, 39, 48, .06), 0 6px 18px -10px rgba(11, 39, 48, .22);
  --sombra-2: 0 2px 4px rgba(11, 39, 48, .06), 0 18px 40px -18px rgba(11, 39, 48, .35);
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --ancho: 1360px;
}

/* =====================================================================
   2. Base y herencia para Astra / Elementor
   ===================================================================== */
body.imv,
body.imv button,
body.imv input,
body.imv select,
body.imv textarea,
body.imv .ast-button,
body.imv :is(h1, h2, h3, h4, h5, h6),
body.imv .entry-content :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--imv-f);
}
body.imv {
  color: var(--tinta);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.imv[class*="elementor-kit-"] {
  --e-global-typography-primary-font-family: "Bricolage Grotesque";
  --e-global-typography-secondary-font-family: "Bricolage Grotesque";
  --e-global-typography-text-font-family: "Bricolage Grotesque";
  --e-global-typography-accent-font-family: "Bricolage Grotesque";
  --e-global-color-primary: #08707f;
  --e-global-color-accent: #08707f;
}
body.imv .elementor-widget-heading .elementor-heading-title,
body.imv .elementor-widget-text-editor,
body.imv .elementor-button {
  font-family: var(--imv-f);
}
body.imv .elementor-button { border-radius: 10px; }
body.imv a { color: var(--teal); }
body.imv a:hover, body.imv a:focus { color: var(--teal-osc); }
body.imv.imv-portada, body.imv.imv-catalogo { background: var(--fondo); }
body.imv.imv-ficha, body.imv.woocommerce-cart, body.imv.woocommerce-checkout { background: #fff; }

.imv-w {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}
body.imv-portada .site-content > .ast-container {
  display: block;
  max-width: none;
  padding: 0;
}
body.imv-catalogo .site-content > .ast-container,
body.imv-ficha .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: var(--ancho) !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
  box-sizing: border-box;
}

/* Reinicio local: Astra da márgenes y estilos de botón a todo. */
:is(.imv-top, .imv-cab, .imv-lateral, .imv-home, .imv-cat, .imv-pie) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:is(.imv-top, .imv-cab, .imv-lateral, .imv-home, .imv-cat, .imv-pie) :is(h1, h2, h3, p, address, dl, dt, dd) { margin: 0; padding: 0; font-style: normal; clear: none; }
:is(.imv-top, .imv-cab, .imv-lateral, .imv-home, .imv-cat, .imv-pie) :is(a, a:hover, a:focus) { text-decoration: none; }
:is(.imv-cab, .imv-lateral, .imv-home, .imv-cat) button,
:is(.imv-cab, .imv-lateral, .imv-home, .imv-cat) button:hover,
:is(.imv-cab, .imv-lateral, .imv-home, .imv-cat) button:focus {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-transform: none;
}
.imv-ico { flex: none; vertical-align: -0.180em; }
body.imv :is(.imv-top, .imv-cab, .imv-lateral, .imv-home, .imv-cat, .imv-pie) :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.imv-pie :is(a, button):focus-visible, .imv-top a:focus-visible, .imv-taller a:focus-visible { outline-color: var(--menta) !important; }

/* Botones */
.imv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.imv-btn:active { transform: translateY(1px); }
body.imv a.imv-btn--compra { background: var(--ambar); color: var(--tinta); }
body.imv a.imv-btn--compra:hover { background: var(--ambar-osc); color: var(--tinta); }
body.imv a.imv-btn--tinta { background: var(--tinta); color: #fff; }
body.imv a.imv-btn--tinta:hover { background: var(--tinta-2); color: #fff; }
body.imv a.imv-btn--linea { border-color: var(--tinta); color: var(--tinta); }
body.imv a.imv-btn--linea:hover { background: var(--tinta); color: #fff; }
body.imv a.imv-btn--wa { background: var(--verde); color: #fff; }
body.imv a.imv-btn--wa:hover { background: #0a6338; color: #fff; }
body.imv a.imv-btn--claro { background: #fff; color: var(--tinta); }
body.imv a.imv-btn--claro:hover { background: var(--menta); color: var(--tinta); }

/* Etiquetas */
.imv-etq {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--menta);
  color: #0b3d1c;
}
.imv-etq--seminuevo { background: var(--cian); color: #06323d; }
.imv-etq--agotado { background: #e8ecee; color: #3d4c52; }
.imv-etq--reparacion { background: var(--tinta); color: #fff; }

/* =====================================================================
   3. Cabecera
   ===================================================================== */
.imv-top { background: var(--tinta); color: #d6e3e6; font-size: 13.5px; }
.imv-top__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 36px; }
.imv-top ul { display: flex; align-items: center; gap: 22px; }
.imv-top li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
body.imv .imv-top a { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
body.imv .imv-top a:hover { color: var(--menta); }

.imv-cab {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 1px 0 var(--linea);
}
.admin-bar .imv-cab { top: 32px; }
.imv-cab.is-compacta { box-shadow: 0 1px 0 var(--linea), 0 10px 24px -16px rgba(11, 39, 48, .4); }

.imv-barra__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 36px;
  padding-block: 14px;
  transition: padding .18s;
}
.imv-cab.is-compacta .imv-barra__in { padding-block: 7px; }
.imv-cab .imv-hamb { display: none; }
.imv-logo { display: block; line-height: 0; }
.imv-logo img { height: 52px; width: auto; max-width: none; transition: height .18s; }
.imv-cab.is-compacta .imv-logo img { height: 44px; }
.imv-logo__txt { font-weight: 800; font-size: 26px; color: var(--tinta); }

.imv-buscar {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
body.imv .imv-buscar input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 64px 0 18px;
  border: 2px solid var(--tinta);
  border-radius: 14px;
  background: #fff;
  color: var(--tinta);
  font-size: 16px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
body.imv .imv-buscar input[type="search"]::placeholder { color: #66787e; opacity: 1; }
body.imv .imv-buscar input[type="search"]:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--cian-suave); outline: 0; }
body.imv .imv-buscar button {
  position: absolute;
  inset: 5px 5px 5px auto;
  width: 48px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
}
body.imv .imv-buscar button:hover { background: var(--teal-osc); color: #fff; }
.imv-cab.is-compacta .imv-buscar input[type="search"] { height: 44px; }

.imv-acc { display: flex; align-items: center; gap: 6px; }
body.imv .imv-acc__it {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--tinta);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
body.imv .imv-acc__it:hover { background: var(--fondo); color: var(--tinta); }
.imv-cab.is-compacta .imv-acc__it > span:last-child { display: none; }
.imv-cab.is-compacta .imv-acc__it { min-width: 44px; }
.imv-carrito__ico { position: relative; display: block; line-height: 0; }
.imv-carrito__n {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--ambar);
  color: var(--tinta);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.imv-carrito__n.is-cero { background: #e8ecee; color: var(--gris); }

/* Barra de navegación */
.imv-nav { border-top: 1px solid var(--linea); }
.imv-nav__in { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; }
.imv-cab.is-compacta .imv-nav__in { min-height: 44px; }
body.imv .imv-cab .imv-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--tinta);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
body.imv .imv-cab .imv-cats-btn:hover,
body.imv .imv-cab .imv-cats-btn[aria-expanded="true"] { background: var(--teal); color: #fff; }
.imv-cats-btn .imv-ico:last-child { transition: transform .18s; }
.imv-cats-btn[aria-expanded="true"] .imv-ico:last-child { transform: rotate(180deg); }
ul.imv-nav__enlaces { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
body.imv .imv-nav__enlaces a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 15px;
}
body.imv .imv-nav__enlaces a:hover { background: var(--fondo); color: var(--teal-osc); }
body.imv .imv-nav__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--teal); padding: 8px 4px; }
body.imv .imv-nav__cta:hover { color: var(--teal-osc); text-decoration: underline; text-underline-offset: 4px; }

/* Mega-menú */
.imv-mega {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  max-height: min(72vh, 620px);
  background: #fff;
  border: 1px solid var(--linea);
  border-top: 0;
  border-radius: 0 0 var(--r-l) var(--r-l);
  box-shadow: var(--sombra-2);
  overflow: hidden;
}
.imv-mega[hidden] { display: none; }
ul.imv-mega__raices { background: var(--fondo); padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
body.imv .imv-mega__raices button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--tinta);
}
.imv-mega__raices button span { flex: 1; }
body.imv .imv-mega__raices button .imv-ico:last-child { color: #8a9ba1; }
body.imv .imv-mega__raices button:hover { background: #e6edef; }
body.imv .imv-mega__raices button[aria-selected="true"] { background: #fff; color: var(--teal-osc); box-shadow: var(--sombra-1); }
.imv-mega__todo { margin-top: auto; padding: 12px 12px 4px; }
body.imv .imv-mega__todo a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.imv-mega__paneles { padding: 22px 28px 28px; overflow-y: auto; }
p.imv-mega__cab { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--linea); }
body.imv .imv-mega__cab a { font-weight: 800; font-size: 19px; color: var(--tinta); }
body.imv .imv-mega__cab a:hover { color: var(--teal-osc); }
.imv-mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px 28px; }
body.imv .imv-mega__sub { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15.5px; color: var(--tinta); padding: 2px 0 6px; }
.imv-mega__sub em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--gris); }
body.imv .imv-mega__col li a { display: block; padding: 4px 0; color: #3b4f56; font-size: 14.5px; }
body.imv .imv-mega__col a:hover { color: var(--teal-osc); text-decoration: underline; text-underline-offset: 3px; }
body.imv .imv-mega__col a.imv-mega__mas { color: var(--teal); font-weight: 600; }

/* Menú lateral (móvil) */
.imv-velo { position: fixed; inset: 0; z-index: 900; background: rgba(11, 39, 48, .55); }
.imv-velo[hidden] { display: none; }
.imv-lateral {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 950;
  width: min(88vw, 370px);
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s .22s;
}
.imv-menu-abierto .imv-lateral { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: var(--sombra-2); }
body.imv-menu-abierto, body.imv-filtros-abiertos { overflow: hidden; }
body.imv-menu-abierto :is(.joinchat, #ast-scroll-top), body.imv-filtros-abiertos :is(.joinchat, #ast-scroll-top) { display: none !important; }
.imv-lateral__cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--linea); font-size: 19px; }
body.imv .imv-lateral__cerrar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
body.imv .imv-lateral__cerrar:hover { background: var(--fondo); }
.imv-lateral__cuerpo { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }
.imv-lateral__cuerpo .imv-lateral__tit { padding: 16px 8px 6px; font-size: 13.5px; font-weight: 700; color: var(--gris); }
.imv-lateral__grupo summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.imv-lateral__grupo summary::-webkit-details-marker { display: none; }
.imv-lateral__grupo summary span { flex: 1; }
.imv-lateral__grupo summary .imv-ico:last-child { transition: transform .18s; color: #8a9ba1; }
.imv-lateral__grupo[open] summary { background: var(--fondo); }
.imv-lateral__grupo[open] summary .imv-ico:last-child { transform: rotate(180deg); }
.imv-lateral__grupo ul { padding: 4px 0 10px 40px; }
body.imv .imv-lateral__grupo li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 8px; color: var(--tinta); border-radius: 8px; }
.imv-lateral__grupo li em { font-style: normal; font-size: 13px; color: var(--gris); }
body.imv .imv-lateral__grupo li a.imv-lateral__todo { color: var(--teal); font-weight: 700; }
body.imv .imv-lateral__enlace { display: flex; align-items: center; min-height: 48px; padding: 0 8px; border-radius: 10px; color: var(--tinta); font-weight: 600; }
body.imv .imv-lateral__enlace--tienda { color: var(--teal); font-weight: 700; }
body.imv .imv-lateral a:hover { background: var(--fondo); }
.imv-lateral__pie { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--linea); background: var(--fondo); }
body.imv .imv-lateral__pie a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--linea); color: var(--tinta); font-weight: 700; font-size: 14.5px; }

/* =====================================================================
   4. Tarjeta de producto
   ===================================================================== */
.imv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.imv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.imv-card:hover, .imv-card:focus-within { border-color: #9fc9d1; box-shadow: var(--sombra-2); transform: translateY(-2px); }
.imv-card__img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: #fff;
  overflow: hidden;
}
.imv-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.imv-card:hover .imv-card__img img { transform: scale(1.045); }
.imv-card__sinfoto { display: grid; justify-items: center; gap: 8px; color: #9aaab0; font-size: 13px; }
.imv-card { container: imv-card / inline-size; }
.imv-card__etqs { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.imv-card__cuerpo { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 4px 16px 16px; }
.imv-card .imv-card__titulo {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
  height: calc(1.32em * 2); /* siempre 2 líneas: el precio y el botón quedan a la misma altura en toda la fila */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
body.imv .imv-card__titulo a { color: var(--tinta); text-decoration: none; }
body.imv .imv-card__titulo a::after { content: ""; position: absolute; inset: 0; }
body.imv .imv-card:hover .imv-card__titulo a { color: var(--teal-osc); }
/* Datos clave bajo el título (inc/tarjeta.php): como mucho 2 líneas. */
ul.imv-card__datos { display: flex; flex-wrap: wrap; gap: 4px; max-height: calc(2 * 22px + 4px); margin: -4px 0 0; padding: 0; overflow: hidden; list-style: none; }
ul.imv-card__datos li { margin: 0; padding: 2px 7px; border-radius: 6px; background: var(--fondo); color: #3d5158; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
/* Pie pegado abajo; precio y botón en la misma línea. Si la tarjeta es estrecha, siempre apilados (nunca a medias). */
.imv-card__pie { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 8px 10px; margin-top: auto; }
.imv-card__pie > .imv-card__btn { flex: none; }
.imv-card__pie .imv-card__precio { min-width: 0; white-space: normal; } /* un rango «235,00 € - 359,00 €» parte en dos líneas en vez de pisar el botón */
.imv-card__precio .woocommerce-Price-amount { white-space: nowrap; }
@container imv-card (max-width: 279px) {
  .imv-card__pie { flex-wrap: wrap; }
  .imv-card__pie .imv-card__precio { flex-basis: 100%; }
  body.imv .imv-card__pie > .imv-card__btn { flex: 1 1 100%; }
}
.imv-card__precio { font-size: 23px; font-weight: 800; line-height: 1.1; color: var(--tinta); letter-spacing: -0.010em; white-space: nowrap; }
.imv-card__precio .woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 700; }
.imv-card__precio del { display: block; font-size: 13.5px; font-weight: 500; color: var(--gris); opacity: 1; }
.imv-card__precio ins { text-decoration: none; background: none; color: var(--rojo); }
.imv-card__precio .woocommerce-price-suffix { display: block; font-size: 12px; font-weight: 500; color: var(--gris); }
.imv-card__consultar { font-size: 15px; font-weight: 600; color: var(--gris); }
body.imv .imv-card__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ambar);
  color: var(--tinta);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s;
}
body.imv .imv-card__btn:hover { background: var(--ambar-osc); color: var(--tinta); }
body.imv .imv-card__btn.loading { opacity: .6; pointer-events: none; }
body.imv .imv-card__btn.added { background: var(--menta); }
body.imv .imv-card__btn--ver { background: #fff; box-shadow: inset 0 0 0 1.5px var(--tinta); }
body.imv .imv-card__btn--ver:hover { background: var(--tinta); color: #fff; }
body.imv .imv-card__pie .added_to_cart {
  position: relative;
  z-index: 1;
  flex-basis: 100%;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
}
.imv-card.is-agotado .imv-card__img img { opacity: .55; }

/* =====================================================================
   5. Portada
   ===================================================================== */
.imv-home { display: block; padding-bottom: 0; }
.imv-hero { padding-top: 22px; }
.imv-hero__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 2.150fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.imv-hero__principal {
  grid-row: 1 / 3;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.150fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 460px;
  padding: clamp(28px, 4vw, 60px);
  border-radius: var(--r-l);
  background: linear-gradient(120deg, #f1fcf3 0%, #e9f9fb 100%);
  overflow: hidden;
}
/* Los hexágonos superpuestos del logotipo, a escala de cartel. */
.imv-hex { position: absolute; z-index: -1; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); mix-blend-mode: multiply; }
.imv-hex--a { width: 48%; right: 17%; top: -14%; background: var(--menta); }
.imv-hex--b { width: 48%; right: -9%; top: 13%; background: var(--cian); }
.imv-hex--c { width: 48%; right: 17%; top: 40%; background: #cdf6f6; }
.imv-hero__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.imv-hero__txt h1 {
  font-size: clamp(34px, 4.300vw, 62px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.030em;
  color: var(--tinta);
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.imv-hero__txt p { max-width: 34em; font-size: clamp(16px, 1.250vw, 18.5px); color: #23434d; line-height: 1.45; }
.imv-hero__botones { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.imv-hero__foto { display: grid; place-items: center; }
.imv-hero__foto img { width: 100%; max-width: 400px; height: auto; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }

body.imv .imv-hero__lado {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 28px;
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform .16s;
}
body.imv .imv-hero__lado:hover { transform: translateY(-2px); }
.imv-hero__lado h2 { font-size: clamp(21px, 1.700vw, 25px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; color: inherit; text-wrap: balance; }
.imv-hero__lado p { font-size: 15.5px; line-height: 1.4; }
.imv-hero__enlace { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
body.imv .imv-hero__lado--taller { background: var(--tinta); color: #fff; }
body.imv .imv-hero__lado--taller p { color: #c5d6da; }
body.imv .imv-hero__lado--taller .imv-hero__enlace { color: var(--menta); }
.imv-hero__ico { display: grid; place-items: center; width: 62px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--menta); color: var(--tinta); margin-bottom: 6px; }
body.imv .imv-hero__lado--tarifa { background: var(--teal); color: #fff; }
body.imv .imv-hero__lado--tarifa p { color: #dff3f6; }
body.imv .imv-hero__lado--tarifa .imv-hero__precio { color: var(--ambar); line-height: .9; display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.imv-hero__precio strong { font-size: clamp(56px, 5.400vw, 78px); font-weight: 800; letter-spacing: -0.040em; font-variation-settings: "opsz" 96; }
.imv-hero__precio span { font-size: 30px; font-weight: 800; }
body.imv .imv-hero__lado--tarifa .imv-hero__enlace { color: #fff; }

/* Franja de confianza */
.imv-confianza { padding-top: 16px; }
.imv-confianza__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-m); overflow: hidden; }
.imv-confianza__lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  color: var(--teal);
}
.imv-confianza__lista span { display: flex; flex-direction: column; font-size: 14px; color: var(--gris); line-height: 1.35; }
.imv-confianza__lista strong { font-size: 15.5px; color: var(--tinta); }

/* Secciones */
.imv-sec { padding-top: 56px; }
.imv-sec__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.imv-sec__cab h2 { font-size: clamp(24px, 2.400vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -0.020em; color: var(--tinta); }
.imv-sec__cab p { padding-top: 6px; color: var(--gris); font-size: 15.5px; }
body.imv .imv-sec__cab a { font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }

/* Categorías */
.imv-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.imv .imv-cat-ficha {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  height: 100%;
  box-sizing: border-box;
  padding: 16px 14px;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--linea);
  color: var(--tinta);
  transition: border-color .16s, box-shadow .16s;
}
body.imv .imv-cat-ficha:hover { border-color: #9fc9d1; box-shadow: var(--sombra-1); }
.imv-cat-ficha__hex {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  align-self: center;
  width: 62px;
  aspect-ratio: 1.1547 / 1;
  clip-path: var(--hex);
  background: linear-gradient(120deg, var(--menta) 0%, var(--cian) 100%);
  color: var(--tinta);
  transition: transform .2s;
}
.imv-cat-ficha:hover .imv-cat-ficha__hex { transform: scale(1.06); }
.imv-cat-ficha__hex img { width: 62%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.imv-cat-ficha__nombre { align-self: end; font-weight: 700; font-size: 15.5px; line-height: 1.2; overflow-wrap: anywhere; }
.imv-cat-ficha__n { align-self: start; padding-top: 2px; font-size: 13.5px; color: var(--gris); }

/* Carriles de productos */
.imv-fila__ctrl { display: flex; align-items: center; gap: 8px; }
.imv-fila__ctrl a { margin-right: 8px; }
body.imv .imv-fila__flecha {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linea);
  color: var(--tinta);
}
body.imv .imv-fila__flecha:hover { background: var(--tinta); color: #fff; box-shadow: none; }
body.imv .imv-fila__flecha:disabled { opacity: .35; cursor: default; background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
ul.imv-carril {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  margin: -6px -6px -30px;
  padding: 6px 6px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
}
.imv-carril::-webkit-scrollbar { display: none; }
.imv-carril > .imv-card { scroll-snap-align: start; }

/* Taller */
.imv-taller { position: relative; margin-top: 72px; padding: 68px 0; background: var(--tinta); color: #fff; overflow: hidden; }
.imv-taller::before, .imv-taller::after { content: ""; position: absolute; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); opacity: .13; }
.imv-taller::before { width: 420px; left: -150px; top: -120px; background: var(--menta); }
.imv-taller::after { width: 420px; left: 30px; top: 110px; background: var(--cian); }
.imv-taller__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.150fr); gap: 56px; align-items: center; }
.imv-taller__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.imv-taller__txt h2 { font-size: clamp(30px, 3.400vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.028em; color: #fff; font-variation-settings: "opsz" 96; text-wrap: balance; }
.imv-taller__txt p { color: #c9d9dd; font-size: 17px; max-width: 33em; }
.imv-taller__botones { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.imv-taller__servicios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.imv-taller__servicios li { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-m); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.imv-taller__servicios .imv-ico { color: var(--menta); margin-bottom: 8px; }
.imv-taller__servicios strong { font-size: 17.5px; }
.imv-taller__servicios span { color: #c5d6da; font-size: 14.5px; line-height: 1.4; }

/* Empresas y telefonía */
.imv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 72px; }
.imv-duo__caja { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); }
.imv-duo__caja--empresas { background: #fff; border: 1px solid var(--linea); }
.imv-duo__caja--telefonia { background: var(--cian-suave); }
.imv-duo__ico { display: grid; place-items: center; width: 64px; aspect-ratio: 1.1547 / 1; clip-path: var(--hex); background: var(--menta); color: var(--tinta); }
.imv-duo__caja--telefonia .imv-duo__ico { background: var(--cian); }
.imv-duo__caja h2 { font-size: clamp(23px, 2.200vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -0.020em; color: var(--tinta); text-wrap: balance; }
.imv-duo__caja p { color: #314a52; font-size: 16.5px; max-width: 36em; }
.imv-duo__operadoras { display: flex; flex-wrap: wrap; gap: 8px; }
.imv-duo__operadoras li { padding: 5px 13px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14.5px; color: var(--tinta); }
.imv-duo__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

/* Tienda física */
.imv-local { margin-top: 72px; padding: 60px 0; background: linear-gradient(120deg, var(--menta-suave), var(--cian-suave)); }
.imv-local__in { display: grid; grid-template-columns: minmax(0, 1.200fr) minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.imv-local__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.imv-local__txt h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.02; letter-spacing: -0.026em; color: var(--tinta); font-variation-settings: "opsz" 96; }
.imv-local__txt address { font-size: 18px; line-height: 1.45; color: #23434d; }
.imv-local__horario { display: grid; gap: 0; }
.imv-local__horario div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(11, 39, 48, .16); }
.imv-local__horario div:first-child { border-top: 1px solid rgba(11, 39, 48, .16); }
.imv-local__horario dt { font-weight: 600; color: #23434d; }
.imv-local__horario dd { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tinta); }
.imv-local__contacto { display: grid; gap: 6px; }
body.imv .imv-local__contacto a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 700; font-size: 17px; color: var(--tinta); }
body.imv .imv-local__contacto a:hover { color: var(--teal-osc); }

/* =====================================================================
   6. Catálogo
   ===================================================================== */
.imv-cat { display: block; padding: 18px 0 64px; }
.imv-migas { font-size: 13.5px; color: var(--gris); line-height: 1.5; }
body.imv .imv-migas a { color: var(--gris); }
body.imv .imv-migas a:hover { color: var(--teal-osc); text-decoration: underline; }
.imv-migas__sep { margin: 0 7px; color: #a7b5ba; }
.imv-cat__cab { padding: 10px 0 20px; }
.imv-cat__cab h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--tinta); font-variation-settings: "opsz" 96; }
.imv-cat__cuerpo { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.imv-cat__lado { position: sticky; top: 128px; max-height: calc(100vh - 148px); overflow-y: auto; border-radius: var(--r-m); scrollbar-width: thin; }
.imv-cat__lado:empty { display: none; }
.imv-cat__res { position: relative; min-width: 0; }
.imv-cat__barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; }
.imv-cat .imv-cat__barra .woocommerce-result-count { float: none; margin: 0; padding: 0; font-size: 15px; color: var(--gris); }
.imv-cat .imv-cat__barra .woocommerce-ordering { float: none; margin: 0; }
body.imv .imv-cat__barra select.orderby {
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b2730' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  color: var(--tinta);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.imv-cat__desc { margin-top: 40px; padding: 24px 28px; background: #fff; border-radius: var(--r-m); color: #314a52; max-width: 80ch; }
.imv-cat__desc :is(ul, ol) { margin: 0 0 1em 1.4em; list-style: revert; }

/* Estado de carga (AJAX de filtros) */
.imv-cargando { height: 3px; margin: -3px 0 0; border-radius: 3px; overflow: hidden; visibility: hidden; }
#imv-resultados.is-cargando .imv-cargando { visibility: visible; background: linear-gradient(90deg, transparent 0, var(--teal) 50%, transparent 100%) 0 0 / 40% 100% no-repeat, var(--linea); animation: imv-carga 1s linear infinite; }
#imv-resultados.is-cargando .imv-grid, #imv-resultados.is-cargando .woocommerce-pagination { opacity: .45; pointer-events: none; transition: opacity .15s; }
@keyframes imv-carga { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }

/* Chips de filtros activos */
.imv-activos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 14px; }
body.imv .imv-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px 0 13px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.imv-chip span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 15px; line-height: 1; }
body.imv .imv-chip:hover { background: var(--teal); color: #fff; }
body.imv .imv-activos__limpiar { margin-left: 4px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Filtros (el marcado lo genera inc/filtros.php) */
body.imv .imv-abrir-filtros { display: none; }
.imv-filtros { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-m); padding: 4px 18px 16px; font-size: 15px; }
.imv-filtros__cabecera { display: none; }
.imv-filtro { border-bottom: 1px solid var(--linea); padding: 0 0 14px; }
.imv-filtro:not([open]) { padding-bottom: 0; }
.imv-filtro__titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 12px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--tinta);
  cursor: pointer;
  list-style: none;
}
.imv-filtro__titulo::-webkit-details-marker { display: none; }
.imv-filtro__titulo::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid var(--gris);
  border-bottom: 2px solid var(--gris);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s;
}
.imv-filtro[open] > .imv-filtro__titulo::after { transform: translateY(2px) rotate(-135deg); }
.imv-filtros .imv-filtro__cats, .imv-filtros .imv-filtro__cats ul { list-style: none; margin: 0; padding: 0; }
.imv-filtros .imv-filtro__cats ul { padding-left: 12px; margin-top: 2px; border-left: 2px solid var(--linea); }
body.imv .imv-filtro__cats a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; color: #2c454d; text-decoration: none; line-height: 1.35; }
body.imv .imv-filtro__cats ul a { padding-left: 2px; }
body.imv .imv-filtro__cats a:hover { color: var(--teal-osc); text-decoration: underline; text-underline-offset: 3px; }
body.imv .imv-filtro__cats a.is-actual { font-weight: 700; color: var(--tinta); }
body.imv .imv-filtro__volver a { justify-content: flex-start; color: var(--gris); font-size: 14px; }
.imv-filtros em { font-style: normal; font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.imv-precio { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
body.imv .imv-precio input[type="number"],
body.imv .imv-filtros .imv-filtro__buscar {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #b9c7cc;
  border-radius: var(--r-s);
  background: #fff;
  color: var(--tinta);
  font-size: 15px;
  box-shadow: none;
  box-sizing: border-box;
}
body.imv .imv-filtros .imv-filtro__buscar { margin-bottom: 8px; }
body.imv .imv-precio input:focus, body.imv .imv-filtros .imv-filtro__buscar:focus { border-color: var(--teal); }
.imv-precio > span { color: var(--gris); }
body.imv .imv-filtros .imv-precio__ok {
  grid-column: 1 / -1;
  height: 38px;
  border-radius: var(--r-s);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--tinta);
  color: var(--tinta);
  font-weight: 700;
  font-size: 14.5px;
}
body.imv .imv-filtros .imv-precio__ok:hover { background: var(--tinta); color: #fff; }
.imv-filtro__opciones { display: flex; flex-direction: column; }
.imv-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; line-height: 1.3; color: #2c454d; }
.imv-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.imv-check__txt { flex: 1; min-width: 0; }
.imv-check:hover .imv-check__txt { color: var(--teal-osc); }
.imv-check:has(input:checked) .imv-check__txt { font-weight: 700; color: var(--tinta); }
.imv-check.is-vacio { opacity: .5; cursor: default; }
.imv-check.is-vacio input { cursor: default; }
.imv-check.is-oculta, .imv-check[hidden] { display: none; }
.imv-filtro.is-expandido .imv-check.is-oculta:not([hidden]) { display: flex; }
body.imv .imv-filtros .imv-filtro__mas { margin-top: 6px; color: var(--teal); font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
body.imv .imv-filtros .imv-filtro__mas:hover { color: var(--teal-osc); }
.imv-filtros__pie { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
body.imv .imv-filtros .imv-filtros__aplicar { height: 44px; border-radius: 10px; background: var(--tinta); color: #fff; font-weight: 700; font-size: 15px; }
body.imv .imv-filtros .imv-filtros__aplicar:hover { background: var(--teal); color: #fff; }
body.imv .imv-filtros__limpiar { align-self: center; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Paginación */
.imv-cat .woocommerce-pagination { margin: 36px 0 0; text-align: center; }
.imv-cat .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.imv-cat .woocommerce-pagination ul.page-numbers li { float: none; margin: 0; padding: 0; border: 0; overflow: visible; }
body.imv .imv-cat .woocommerce-pagination ul.page-numbers li .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
body.imv .imv-cat .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--tinta); background: #fff; color: var(--tinta); }
body.imv .imv-cat .woocommerce-pagination ul.page-numbers li .page-numbers.current { background: var(--tinta); border-color: var(--tinta); color: #fff; }
body.imv .imv-cat .woocommerce-pagination ul.page-numbers li .page-numbers.dots { border-color: transparent; background: none; color: var(--gris); min-width: 24px; }

/* Sin resultados */
.imv-vacio { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px; background: #fff; border: 1px solid var(--linea); border-radius: var(--r-m); }
.imv-vacio h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; color: var(--tinta); }
.imv-vacio p { color: var(--gris); max-width: 52ch; }
p.imv-vacio__botones { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }

/* =====================================================================
   7. Ficha de producto
   ===================================================================== */
body.imv-ficha #primary, body.imv.imv-ficha #primary.content-area { margin: 0; padding: 18px 0 64px; width: 100%; border: 0; }
body.imv-ficha #primary .site-main, body.imv-ficha .ast-woocommerce-container { margin: 0; padding: 0; }
body.imv-ficha .ast-woocommerce-container { padding: 0; background: none; }
body.imv-ficha .woocommerce-breadcrumb, body.imv-ficha .imv-migas { margin: 0 0 18px; font-size: 13.5px; color: var(--gris); }
body.imv-ficha.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}
body.imv-ficha.woocommerce div.product::before, body.imv-ficha.woocommerce div.product::after { content: none; }
body.imv-ficha.woocommerce div.product > * { grid-column: 1 / -1; min-width: 0; }
body.imv-ficha.woocommerce div.product div.images.woocommerce-product-gallery {
  grid-column: 1;
  float: none;
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid var(--linea);
  border-radius: var(--r-l);
  background: #fff;
}
body.imv-ficha.woocommerce div.product div.images img { border-radius: 0; object-fit: contain; max-height: 560px; width: 100%; }
body.imv-ficha.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
body.imv-ficha.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: 72px; margin: 0; border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; }
body.imv-ficha.woocommerce div.product div.summary {
  grid-column: 2;
  float: none;
  width: 100% !important;
  max-width: 620px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
body.imv-ficha.woocommerce div.product div.summary > * { margin: 0; }
body.imv-ficha.woocommerce div.product .product_title {
  font-size: clamp(25px, 2.500vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.020em;
  color: var(--tinta);
  text-wrap: balance;
}
body.imv-ficha.woocommerce div.product .summary .single-product-category { display: none; }
body.imv-ficha.woocommerce div.product .summary .single-product-category a { color: var(--gris); }
body.imv-ficha.woocommerce div.product .summary p.price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--tinta);
  font-variation-settings: "opsz" 96;
}
body.imv-ficha.woocommerce div.product p.price .woocommerce-Price-currencySymbol { font-size: .7em; }
body.imv-ficha.woocommerce div.product p.price del { font-size: 18px; font-weight: 500; color: var(--gris); opacity: 1; margin-right: 8px; }
body.imv-ficha.woocommerce div.product p.price ins { text-decoration: none; color: var(--rojo); }
body.imv-ficha.woocommerce div.product .woocommerce-product-details__short-description { color: #314a52; font-size: 16px; }
body.imv-ficha.woocommerce div.product .summary p.stock,
body.imv-ficha.woocommerce div.product .summary .ast-stock-detail {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--menta-suave);
  color: #0b5a2b;
  font-size: 14.5px;
  font-weight: 700;
}
body.imv-ficha.woocommerce div.product .summary p.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body.imv-ficha.woocommerce div.product .summary p.stock.out-of-stock { background: #fdecea; color: var(--rojo); }
body.imv-ficha.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 0; }
body.imv-ficha.woocommerce div.product form.cart::before, body.imv-ficha.woocommerce div.product form.cart::after { content: none; }
body.imv-ficha.woocommerce div.product form.cart div.quantity { float: none; margin: 0; display: flex; }
body.imv-ficha.woocommerce div.product form.cart .quantity .qty {
  width: 78px;
  height: 56px;
  padding: 0 8px;
  border: 1.5px solid #b9c7cc;
  border-radius: 12px;
  background: #fff;
  color: var(--tinta);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
body.imv-ficha.woocommerce div.product form.cart .button.single_add_to_cart_button {
  flex: 1 1 220px;
  float: none;
  height: 56px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--ambar);
  color: var(--tinta);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: background-color .15s;
}
body.imv-ficha.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { background: var(--ambar-osc); color: var(--tinta); }
body.imv-ficha .joinchat__woo-btn__wrapper { display: none; }
body.imv-ficha.woocommerce div.product .summary .product_meta { order: 10; }
body.imv-ficha.woocommerce div.product .product_meta { padding-top: 14px; border-top: 1px solid var(--linea); font-size: 13.5px; color: var(--gris); display: flex; flex-direction: column; gap: 4px; }
body.imv-ficha.woocommerce div.product .product_meta a { color: var(--gris); text-decoration: underline; text-underline-offset: 2px; }

/* Pestañas */
body.imv-ficha.woocommerce div.product .woocommerce-tabs { padding-top: 24px; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; border-bottom: 1px solid var(--linea); overflow: visible; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs::before, body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs::after { content: none; border: 0; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 0 -1px; padding: 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li::before, body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; border: 0; box-shadow: none; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 13px 18px; color: var(--gris); font-size: 16px; font-weight: 700; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--teal); }
body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, body.imv-ficha.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--tinta); }
body.imv-ficha.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 26px 0 0; max-width: 78ch; color: #263f47; font-size: 16.5px; line-height: 1.6; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 14px; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs table.shop_attributes { border: 0; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs table.shop_attributes :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--linea); font-style: normal; background: none; }
body.imv-ficha.woocommerce div.product .woocommerce-tabs table.shop_attributes th { width: 34%; font-weight: 700; color: var(--tinta); text-align: left; }
body.imv-ficha.woocommerce div.product :is(.related, .upsells) { padding-top: 40px; }
body.imv-ficha.woocommerce div.product :is(.related, .upsells) > h2 { font-size: clamp(24px, 2.400vw, 32px); font-weight: 800; letter-spacing: -0.020em; margin: 0 0 20px; color: var(--tinta); }

/* Avisos (el carrito y el checkout van en assets/carrito-paginas.css) */
body.imv .woocommerce-message, body.imv .woocommerce-info { border-top-color: var(--teal); border-radius: 10px; }
body.imv .woocommerce-message::before, body.imv .woocommerce-info::before { color: var(--teal); }


/* =====================================================================
   8. Pie
   ===================================================================== */
.imv-pie { background: var(--tinta); color: #c5d6da; font-size: 15px; }
body.imv-catalogo .imv-pie, body.imv-ficha .imv-pie { margin-top: 0; }
.imv-pie__cols { display: grid; grid-template-columns: minmax(0, 1.300fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.250fr); gap: 40px; padding-block: 56px 44px; }
.imv-pie__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.imv-pie__col h2 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0; line-height: 1.3; }
.imv-pie__col ul { display: grid; gap: 9px; }
body.imv .imv-pie a { color: #dbe7ea; }
body.imv .imv-pie a:hover { color: var(--menta); text-decoration: underline; text-underline-offset: 3px; }
.imv-pie__logo { display: inline-block; padding: 10px 16px 10px 12px; border-radius: var(--r-m); background: #fff; line-height: 0; }
.imv-pie__logo img { height: 50px; width: auto; }
.imv-pie__col--marca p { max-width: 30ch; line-height: 1.5; }
.imv-pie .imv-pie__redes { display: flex; gap: 8px; }
body.imv .imv-pie__redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .09); color: #fff; }
body.imv .imv-pie__redes a:hover { background: var(--menta); color: var(--tinta); }
.imv-pie address, .imv-pie__horario { line-height: 1.55; color: #dbe7ea; }
body.imv .imv-pie__contacto a { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.imv-pie__base { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.imv-pie__base-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.imv-pie__base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* =====================================================================
   9. Adaptación
   ===================================================================== */
@media (max-width: 1240px) {
  body.imv .imv-cat-ficha { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; align-content: start; padding: 16px 8px 14px; text-align: center; }
  .imv-cat-ficha__hex { grid-row: auto; width: 76px; margin-bottom: 8px; }
  .imv-cat-ficha__nombre { font-size: 14.5px; }
  ul.imv-carril { grid-auto-columns: calc((100% - 48px) / 4); }
  .imv-nav__cta { display: none !important; }
  .imv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .imv-local__in { grid-template-columns: 1fr 1fr; }
  .imv-local__contacto { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 28px; }
}
@media (min-width: 1241px) and (max-width: 1400px) {
  .imv-hero__principal { min-height: 420px; }
}
@media (max-width: 1024px) {
  .imv-hero__rejilla { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .imv-hero__principal { grid-row: auto; grid-column: 1 / -1; min-height: 380px; }
  .imv-confianza__lista { grid-template-columns: 1fr 1fr; }
  .imv-taller__in { grid-template-columns: 1fr; gap: 36px; }
  .imv-pie__cols { grid-template-columns: 1fr 1fr; }
  .imv-top__horario { display: none !important; }
}
@media (max-width: 920px) {
  /* Cabecera móvil */
  .imv-nav { display: none; }
  .imv-barra__in {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "hamb logo acc" "buscar buscar buscar";
    gap: 10px 8px;
    padding-block: 10px;
  }
  body.imv .imv-cab .imv-hamb { grid-area: hamb; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; border-radius: 10px; color: var(--tinta); }
  .imv-logo { grid-area: logo; }
  .imv-logo img, .imv-cab.is-compacta .imv-logo img { height: 40px; }
  .imv-buscar { grid-area: buscar; max-width: none; }
  body.imv .imv-buscar input[type="search"], .imv-cab.is-compacta .imv-buscar input[type="search"] { height: 46px; }
  .imv-acc { grid-area: acc; justify-self: end; gap: 0; }
  .imv-acc__it > span:last-child { display: none; }
  body.imv .imv-acc__it { min-width: 44px; min-height: 44px; justify-content: center; }
  .imv-cab.is-compacta .imv-barra__in { padding-block: 8px; }
  .imv-cab.is-compacta .imv-logo, .imv-cab.is-compacta .imv-acc, .imv-cab.is-compacta .imv-hamb { }
  .admin-bar .imv-cab { top: 46px; }

  /* Catálogo: filtros en panel lateral */
  .imv-cat__cuerpo { grid-template-columns: 1fr; gap: 12px; }
  .imv-cat__lado { position: static; max-height: none; overflow: visible; }
  body.imv .imv-abrir-filtros {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--tinta);
    color: #fff;
    font-family: var(--imv-f);
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
  }
  .imv-abrir-filtros__n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--ambar); color: var(--tinta); font-size: 13px; }
  .imv-filtros {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 960;
    width: min(90vw, 380px);
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s .22s;
  }
  .imv-filtros-abiertos .imv-filtros { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 0 0 0 100vmax rgba(11, 39, 48, .55); }
  .imv-filtros > .imv-filtro { margin: 0 18px; }
  .imv-filtros__cabecera { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; background: #fff; border-bottom: 1px solid var(--linea); font-size: 19px; }
  body.imv .imv-filtros .imv-filtros__cerrar { width: 44px; height: 44px; border-radius: 10px; font-size: 28px; line-height: 1; color: var(--tinta); }
  .imv-filtros__pie { position: sticky; bottom: 0; z-index: 2; margin-top: auto; flex-direction: row; align-items: center; padding: 12px 18px; background: #fff; border-top: 1px solid var(--linea); }
  body.imv .imv-filtros .imv-filtros__aplicar { flex: 1; height: 48px; order: 2; }
  .imv-check { padding: 8px 0; }
  .imv-check input { width: 20px; height: 20px; }
  body.imv .imv-filtro__cats a { padding: 8px 0; }

  /* Ficha */
  body.imv-ficha.woocommerce div.product { grid-template-columns: 1fr; gap: 22px; }
  body.imv-ficha.woocommerce div.product div.images.woocommerce-product-gallery,
  body.imv-ficha.woocommerce div.product div.summary { grid-column: 1; position: static; }
  body.imv-ficha.woocommerce div.product .summary p.price { font-size: 34px; }

  .imv-duo { grid-template-columns: 1fr; padding-top: 48px; }
  ul.imv-carril { grid-auto-columns: calc((100% - 32px) / 3); }
  ul.imv-cats { display: flex; gap: 8px; margin: -4px -20px; padding: 4px 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; }
  ul.imv-cats::-webkit-scrollbar { display: none; }
  .imv-cats > li { flex: 0 0 150px; scroll-snap-align: start; }
  .imv-cat-ficha__nombre { font-size: 14px; }
  .imv-sec { padding-top: 44px; }
  .imv-taller, .imv-local { margin-top: 48px; padding: 48px 0; }
}
@media (max-width: 640px) {
  .imv-w { padding-inline: 14px; }
  body.imv-catalogo .site-content > .ast-container, body.imv-ficha .site-content > .ast-container { padding-inline: 14px !important; }
  .imv-top { font-size: 13px; }
  .imv-top__in { min-height: 34px; gap: 10px; }
  .imv-top ul { gap: 14px; }
  .imv-top__in { justify-content: center; }
  .imv-top__der { display: none !important; }

  .imv-hero { padding-top: 14px; }
  .imv-hero__rejilla { grid-template-columns: 1fr; gap: 10px; }
  .imv-hero__principal { grid-template-columns: 1fr; min-height: 0; padding: 26px 22px 0; border-radius: 20px; }
  .imv-hero__foto { margin-top: 4px; }
  .imv-hero__foto img { max-height: 210px; max-width: 78%; }
  .imv-hex--a { width: 74%; right: 18%; top: auto; bottom: 14%; }
  .imv-hex--b { width: 74%; right: -24%; top: auto; bottom: -6%; }
  .imv-hex--c { display: none; }
  .imv-hero__botones { width: 100%; }
  .imv-hero__botones .imv-btn { flex: 1 1 auto; }
  body.imv .imv-hero__lado { padding: 22px; border-radius: 20px; }

  .imv-confianza { padding-top: 10px; }
  .imv-confianza__lista li { padding: 12px; gap: 10px; align-items: flex-start; }
  .imv-confianza__lista li .imv-ico { width: 22px; height: 22px; margin-top: 2px; }
  .imv-confianza__lista span { font-size: 12.5px; }
  .imv-confianza__lista strong { font-size: 14px; line-height: 1.25; }

  .imv-sec__cab { align-items: flex-start; flex-direction: column; gap: 6px; padding-bottom: 14px; }
  .imv-fila .imv-sec__cab { flex-direction: row; align-items: flex-end; }
  .imv-fila__flecha { display: none !important; }
  ul.imv-cats { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
  .imv-cats > li { flex-basis: 146px; }
  .imv-cat-ficha__hex { width: 64px; }
  .imv-cat-ficha__nombre { font-size: 13.5px; }
  .imv-cat-ficha__n { font-size: 12.5px; }

  ul.imv-carril { grid-auto-columns: 46%; gap: 10px; margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
  .imv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .imv-card__img { padding: 10px; }
  .imv-card__cuerpo { padding: 2px 11px 12px; gap: 9px; }
  .imv-card .imv-card__titulo { font-size: 14px; }
  .imv-card__precio { font-size: 20px; flex-basis: 100%; }
  body.imv .imv-card__btn { flex: 1; height: 40px; }
  .imv-card__etqs { top: 8px; left: 8px; right: 8px; }
  .imv-etq { font-size: 11.5px; padding: 2px 7px; }

  .imv-taller__servicios { grid-template-columns: 1fr 1fr; gap: 8px; }
  .imv-taller__servicios li { padding: 16px 14px; }
  .imv-taller__servicios strong { font-size: 15.5px; line-height: 1.2; }
  .imv-taller__servicios span { font-size: 13.5px; }
  .imv-taller__botones, .imv-duo__botones { width: 100%; }
  .imv-taller__botones .imv-btn, .imv-duo__botones .imv-btn { flex: 1 1 100%; }
  .imv-local__in { grid-template-columns: 1fr; gap: 28px; }
  .imv-pie__cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 40px 32px; }
  .imv-pie__col--marca, .imv-pie__col--tienda { grid-column: 1 / -1; }

  .imv-cat { padding-top: 12px; }
  .imv-cat__cab { padding: 6px 0 12px; }
  .imv-cat__barra { padding-bottom: 10px; }
  .imv-cat .imv-cat__barra .woocommerce-result-count { font-size: 13.5px; }
  body.imv .imv-cat__barra select.orderby { height: 40px; font-size: 14px; max-width: 58vw; }
  .imv-vacio { padding: 24px 18px; }
  body.imv .imv-cat .woocommerce-pagination ul.page-numbers li .page-numbers { min-width: 40px; height: 40px; }
  body.imv-ficha.woocommerce div.product div.images.woocommerce-product-gallery { padding: 12px; border-radius: 18px; }
}
@media (max-width: 782px) { .admin-bar .imv-cab { top: 46px; } }
@media (max-width: 600px) { .admin-bar .imv-cab { top: 0; } }

@media (prefers-reduced-motion: reduce) {
  .imv *, .imv *::before, .imv *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ */
/* Repaso final                                                         */
/* ------------------------------------------------------------------ */
/* Tarjetas de reparación: «Pedir cita» en vez de «Añadir». */
body.imv .imv-card__btn--cita { background: var(--tinta); color: #fff; }
body.imv .imv-card__btn--cita:hover { background: var(--teal); color: #fff; }
/* Categorías de reparación: enlace a la tabla de precios por modelo (/reparaciones/). */
.imvz-precios { margin: -6px 0 22px; }
/* Configurador de tarifas (/presupuesto/): cabecera añadida por inc/arreglos.php. */
.imvz-conf { max-width: 640px; margin: 0 auto 26px; text-align: center; }
.imvz-conf__ante { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--menta-suave); color: var(--teal-osc); font-size: 14px; font-weight: 700; }
.imvz-conf h1 { margin: 10px 0 8px; font-family: var(--imv-f); font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--tinta); }
.imvz-conf p { color: var(--gris); font-size: 16.5px; line-height: 1.5; }
body.imv .imvz-conf a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
