/* Fichas de producto con el diseño «Ficha que cierra» (maqueta D), versión común v2, eperformance.es, 16/11/2026.
   Se aplica a <main class="shop-main epd-v2">; la ficha del techo (main.epd-ficha) usa la hoja v1 y no se ve afectada.
   Incluye ya los botones segmentados de opciones y el modo seguro (clase epd2-botones en <html>) para las familias
   con opciones, aunque la familia F1 no los use.
   Prefijo de especificidad: el mismo de ios-theme-20260930.css (que se carga después) más .epd-v2 y la clase del
   bloque, para ganar sin depender del orden. Los !important solo aparecen donde la capa existente (ios-theme,
   fluid-motion o unified-selects) ya usa !important en esa misma propiedad; cada uno lo indica. */

/* ---------- Contenedor ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 {
  --epd-max: 1176px;
  --epd-bg2: #1c1c1e;
  --epd-bg3: #2c2c2e;
  --epd-bg4: #3a3a3c;
  --epd-fill2: rgba(120,120,128,.16);
  --epd-line: rgba(255,255,255,.1);
  --epd-line2: rgba(255,255,255,.16);
  --epd-tx2: rgba(235,235,245,.62);
  --epd-tx3: rgba(235,235,245,.34);
  --epd-muted: rgba(235,235,245,.5);
  --epd-ac: #d23a58;
  --epd-ac2: #ee6f86;
  --epd-sf: var(--ios-sf, -apple-system, BlinkMacSystemFont, "SF Pro Text", "EP iOS Sans", "Inter", system-ui, sans-serif);
  --epd-sfd: var(--ios-sfd, -apple-system, BlinkMacSystemFont, "SF Pro Display", "EP iOS Sans", "Inter", system-ui, sans-serif);
  --epd-rnd: var(--ios-rnd, ui-rounded, "SF Pro Rounded", -apple-system, "EP iOS Sans", "Inter", system-ui, sans-serif);
  --epd-top: 89px; /* cabecera fija de la web (73 px) + 16 */
  --epd2-hoja: 1; /* el script comprueba esta marca antes de pasar al modo botones */
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .product-page-top,
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .product-detail,
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .epd-bloque,
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products {
  width: min(100%, var(--epd-max));
  margin-left: auto;
  margin-right: auto;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .product-page-top { padding: 18px 0 16px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-oculto {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Rejilla de dos columnas ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  grid-template-areas: "gal compra" "det compra";
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-gallery { grid-area: gal; min-width: 0; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-info { grid-area: compra; min-width: 0; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .epd-detalle { grid-area: det; min-width: 0; }

/* ---------- Galería ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco { position: relative; border-radius: 24px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco .product-hero-button {
  aspect-ratio: 4 / 3; /* las portadas de producto son 3840 x 2880 */
  border: 0;
  background: var(--epd-bg3);
  animation: none; /* sin el fundido ligado al scroll del tema: la foto principal se ve entera desde el principio */
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco .product-hero-button > img { object-fit: contain; } /* sin recortar el producto */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco .product-hero-button > span { display: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-cont {
  position: absolute; left: 16px; bottom: 16px; z-index: 4; pointer-events: none;
  padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.6);
  color: #fff; font: 600 13px/1 var(--epd-rnd); letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-cont[hidden] { display: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha {
  position: absolute; top: 50%; z-index: 4; translate: 0 -50%;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.55); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity .2s ease, background-color .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha:hover { background: rgba(0,0,0,.8); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco:hover .epd-gal-flecha,
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha:focus-visible { opacity: 1; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha:focus-visible { outline: 2px solid var(--epd-ac2); outline-offset: 2px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-ant { left: 16px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-sig { right: 16px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails {
  /* una sola fila: seis a la vista y, si hay más, se desliza en horizontal */
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 6); gap: 10px;
  margin-top: 10px; padding: 0 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button {
  position: relative; width: auto; height: auto; aspect-ratio: 4 / 3; padding: 0;
  border: 0; background: var(--epd-bg3); opacity: .75; transition: opacity .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button:hover { opacity: .9; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button[aria-pressed="true"] { opacity: 1; box-shadow: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px #fff; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails img { object-fit: cover; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails button:focus-visible { outline: 2px solid var(--epd-ac2); outline-offset: 2px; }
/* el tema fija margen, color y tamaño de esta leyenda con !important */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-photo-note {
  margin: 10px 0 0 !important; color: var(--epd-muted) !important; font-size: 12.5px !important; line-height: 1.5 !important;
}

/* ---------- Caja de compra ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-info {
  position: sticky;
  /* si la caja es más alta que la ventana, sube hasta enseñar su pie (altura medida por el script) */
  top: min(var(--epd-top), calc(100vh - var(--epd-caja-h, 0px) - 16px));
  padding: 24px 26px 22px;
  border-radius: 24px !important; /* el tema la redondea a 28 px con !important */
  animation: none; /* sin el fundido ligado al scroll: la caja pegajosa siempre se ve entera */
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > a.shop-eyebrow {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; margin: 0;
  text-transform: none; text-decoration: none;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > h1 {
  max-width: none; margin: 12px 0 0;
  font-size: 30px; font-weight: 700; line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-reference {
  margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; line-height: 1.4; color: var(--epd-muted);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-reference span {
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--epd-line2);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-detail-price {
  margin: 16px 0 0; color: #fff;
  font: 700 38px/1 var(--epd-rnd); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .epd-senal {
  margin: 7px 0 0; color: var(--epd-tx2); font: 400 14px/1.45 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .epd-senal b { color: #fff; font-weight: 600; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-senal .epd-senal-importe { display: none; }
:root.ep-ios.epd2-botones:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-senal:not([data-epd-sin-importe]) .epd-senal-importe { display: inline !important; /* vence al style="display:none" del HTML */ }
:root.ep-ios.epd2-botones:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-senal:not([data-epd-sin-importe]) .epd-senal-generica { display: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-selected-car { margin: 14px 0 0; border-radius: 14px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-price-note { margin: 6px 0 0; color: var(--epd-muted); font: 400 13px/1.45 var(--epd-sf); }

/* Opciones: botones segmentados; los selects reales quedan ocultos a la vista (no con display:none) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-options {
  margin: 18px 0 0; padding: 0; display: grid; gap: 12px;
  border: 0; border-radius: 0; background: none;
}
/* Red de seguridad: sin la clase epd-botones (script no cargado o fallido) se ven los desplegables reales
   y no los botones. Con ella, al revés. */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-selects { display: grid; gap: 12px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-selects > label {
  display: grid; gap: 7px; margin: 0; color: var(--epd-tx2); font: 600 13px/1.3 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-selects .ep-soft-select { margin: 0; }
:root.ep-ios.epd2-botones:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-selects {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-grupo { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
:root.ep-ios.epd2-botones:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-grupo { display: block !important; /* vence al style="display:none" del HTML, que lo oculta si esta hoja no carga */ }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-grupo legend {
  padding: 0; margin: 0 0 7px; color: var(--epd-tx2); font: 600 13px/1.3 var(--epd-sf); letter-spacing: 0;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg {
  display: grid; gap: 3px; padding: 3px; border-radius: 14px; background: var(--epd-fill2);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg label {
  position: relative; display: block; margin: 0; cursor: pointer; color: inherit; font: inherit;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 4px 8px; border-radius: 11px;
  color: var(--epd-tx2); font: 500 14.5px/1.15 var(--epd-sf); letter-spacing: -.01em;
  transition: background-color .18s ease, color .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg label:hover span { color: #fff; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg input:checked + span {
  background: var(--epd-bg4); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg input:focus-visible + span {
  outline: 2px solid var(--epd-ac2); outline-offset: -2px;
}

/* Botones: el real de la cesta y el enlace real de WhatsApp («Comprar en eperformance.es» ya lo oculta la web) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions { margin: 18px 0 0; display: grid; gap: 10px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions .shop-button {
  width: 100%; min-height: 50px; gap: 9px; padding: 0 24px; font-size: 16px; line-height: 1;
}
/* el tema pinta el botón secundario con fondo de relleno y !important; aquí, el cristal oscuro de la maqueta */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions .shop-button.shop-button-outline {
  background: rgba(44,44,48,.5) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14) !important;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions .shop-button:focus-visible { outline: 2px solid var(--epd-ac2); outline-offset: 2px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions .shop-button:disabled { opacity: .5; cursor: not-allowed; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-action-note { margin: 10px 2px 0; color: var(--epd-muted); font: 400 12.5px/1.45 var(--epd-sf); }

/* Garantías: tres columnas compactas (el tema las pone en lista con !important) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important;
  margin: 18px 0 0 !important; padding: 16px 0 0 !important; list-style: none;
  border: 0 !important; border-top: 1px solid var(--epd-line) !important; border-radius: 0 !important; background: none !important;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important; row-gap: 3px !important; align-content: start !important; align-items: start !important;
  padding: 0 !important; border: 0 !important; background: none !important;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > span {
  grid-row: auto; width: 18px; height: 18px; margin-bottom: 4px;
  background: var(--epd-ac2) !important; /* icono del tema (máscara) en el rosa de la maqueta */
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > b { font: 600 13px/1.3 var(--epd-sf) !important; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > small {
  grid-column: auto; color: var(--epd-muted) !important; font: 400 12.5px/1.3 var(--epd-sf) !important;
}

/* Previsión del pedido: línea de tres pasos (el tema le pone fondo y radio con !important) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-lead-times {
  margin: 16px 0 0; padding: 16px 0 0;
  border: 0 !important; border-top: 1px solid var(--epd-line) !important; border-radius: 0 !important; background: none !important;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-times-title {
  margin: 0 0 12px; color: var(--epd-tx2); font: 600 13px/1.3 var(--epd-sf); letter-spacing: 0;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times dl {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row {
  position: relative; display: block; padding-top: 18px;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row > svg { display: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row::before {
  content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--epd-tx2);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row:first-child::before { background: var(--epd-ac2); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row:not(:last-child)::after {
  content: ""; position: absolute; top: 3.5px; left: 16px; width: calc(100% - 12px); height: 1px; background: var(--epd-line2);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times dt {
  margin: 0 0 2px; color: #fff; font: 600 13px/1.3 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times dd {
  margin: 0; color: var(--epd-muted); font: 400 12.5px/1.3 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-times-note {
  margin: 12px 0 0; padding: 0; border: 0; color: var(--epd-tx3); font: 400 11.5px/1.4 var(--epd-sf);
}
/* Disponibilidad y estado: dos líneas pequeñas (el tema pone su color en rosa con !important) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-config-status {
  margin: 12px 0 0; color: var(--epd-tx2) !important; font: 400 12.5px/1.45 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-config-status + .product-config-status { margin-top: 2px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-config-status strong { color: #fff; font-weight: 600; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > [data-product-status][data-error="true"] { color: #ffb4a8 !important; /* el tema usa !important */ }
/* Previsión «pendiente»: el párrafo tal cual, en pequeño */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-times-pending {
  margin: 0; color: var(--epd-tx2); font: 400 12.5px/1.45 var(--epd-sf);
}

/* ---------- Columna izquierda bajo las fotos ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle { padding-top: 40px; display: grid; gap: 40px; }

/* Probador real */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator {
  margin: 0; padding: 0; border-top: 0;
  border-radius: 24px !important; /* fluid-motion lo deja en 12 px con !important */
  background: var(--epd-bg2) !important; /* fluid-motion: #1e1e22 con !important */
  scroll-margin-top: calc(var(--epd-top) + 8px);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator > header { padding: 28px 28px 8px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator .sc-eyebrow {
  display: block; margin-bottom: 10px; color: var(--epd-ac2); font: 600 13px/1.3 var(--epd-sf); letter-spacing: .04em; text-transform: uppercase;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator > header h2 {
  margin: 0; color: #fff; font: 700 26px/1.1 var(--epd-sfd); letter-spacing: -.028em;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator > header p {
  margin: 8px 0 0; color: var(--epd-tx2); font: 400 15.5px/1.47 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator .sc-workspace { background: var(--epd-bg2); }

/* Galería completa */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-more { margin: 0; padding: 0; border-top: 0; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-more-heading h2 {
  color: #fff; font: 700 26px/1.1 var(--epd-sfd); letter-spacing: -.028em;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-more-heading p { color: var(--epd-muted); font-size: 14px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-stream { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-stream button {
  aspect-ratio: 16 / 10; border: 0; border-radius: 18px; overflow: hidden; background: var(--epd-bg3);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-stream img { object-fit: cover; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-gallery-stream button > span {
  border-radius: 999px; background: rgba(0,0,0,.6);
}

/* En resumen y Qué aporta (el tema fuerza color, peso y espaciado del rótulo con !important) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-summary {
  margin: 0; padding: 0; display: block; border: 0; background: none;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-summary > span {
  display: block; color: #fff !important; font: 700 26px/1.1 var(--epd-sfd) !important; letter-spacing: -.028em !important; text-transform: none;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-summary > p {
  max-width: 60ch; margin: 12px 0 0; color: var(--epd-tx2); font: 400 17px/1.47 var(--epd-sf); letter-spacing: -.011em;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description {
  margin: 0; padding: 0; border: 0; display: grid; gap: 10px;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .epd-aporta { margin: -10px 0 30px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .epd-aporta-titulo {
  margin: 0; color: var(--epd-ac2); font: 600 13px/1.3 var(--epd-sf); letter-spacing: .04em; text-transform: uppercase;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights { margin: 12px 0 0; padding: 0; list-style: none; display: block; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--epd-line);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights li:last-child { border-bottom: 1px solid var(--epd-line); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights li > span {
  width: auto; height: auto; display: block; padding: 0; border-radius: 0; background: none;
  font: 600 15px/1.4 var(--epd-rnd); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights strong { display: block; color: #fff; font: 600 16px/1.4 var(--epd-sf); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights p { margin: 3px 0 0; color: var(--epd-tx2); font: 400 15px/1.47 var(--epd-sf); }

/* Desplegables como tarjetas */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description details {
  padding: 0; border: 0; border-radius: 18px; background: var(--epd-bg2);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description summary {
  position: relative; min-height: 58px; padding: 0 56px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #fff; font: 600 16px/1.3 var(--epd-sf); letter-spacing: -.01em; cursor: pointer; list-style: none;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description summary::-webkit-details-marker { display: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description summary::before { content: none; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--epd-tx2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description details[open] summary::after { transform: rotate(180deg); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description summary:focus-visible { outline: 2px solid var(--epd-ac2); outline-offset: -2px; border-radius: 18px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description .product-prose {
  padding: 0 22px 16px; color: var(--epd-tx2); font: 400 15px/1.5 var(--epd-sf);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-description details > .product-prose:last-child { padding-bottom: 20px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-compatible-list {
  max-height: 320px; margin: 0 22px 20px; padding: 4px 0 0; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 0;
  list-style: none; border: 0; border-top: 1px solid var(--epd-line); background: none; color: var(--epd-tx2); font-size: 14px;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-compatible-list li { border-bottom: 1px solid var(--epd-line); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-compatible-list a { display: block; padding: 9px 0; color: inherit; line-height: 1.35; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-compatible-list a:hover { color: #fff; }

/* ---------- Bloques a todo el ancho ---------- */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-bloque { margin-top: 88px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-antetitulo {
  margin: 0 0 10px; color: var(--epd-ac2); font: 600 13px/1.3 var(--epd-sf); letter-spacing: .04em; text-transform: uppercase;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-bloque h2 {
  margin: 0; color: #fff; font: 700 clamp(1.7rem, 2.6vw, 2.4rem)/1.08 var(--epd-sfd); letter-spacing: -.032em;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-enlace {
  color: var(--epd-ac2); font: 600 15px/1.4 var(--epd-sf); text-decoration: none;
  border-bottom: 1px solid rgba(238,111,134,.35); padding-bottom: 1px; transition: border-color .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-enlace:hover { border-color: var(--epd-ac2); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-resenas { border-top: 1px solid var(--epd-line); padding-top: 48px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-resenas-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-resenas-cab h2 { max-width: 30ch; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-nota { color: var(--epd-ac2); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas blockquote {
  margin: 0; padding: 28px 30px; border-radius: 24px; background: var(--epd-bg2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas p { margin: 0; color: #fff; font: 500 20px/1.4 var(--epd-sfd); letter-spacing: -.015em; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas cite { color: var(--epd-muted); font: normal 400 14px/1.4 var(--epd-sf); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas cite::before {
  content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--epd-tx3);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo {
  display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 16px 32px 16px 16px; border-radius: 24px;
  background: var(--epd-bg2) !important; /* el tema pinta de negro con !important toda section hija de .shop-main */
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo-foto {
  position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--epd-bg3);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo-foto img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo-foto:hover img { transform: scale(1.02); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-play {
  position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18);
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-play svg { fill: #fff; margin-left: 3px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-btn-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin-top: 18px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(44,44,48,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  color: #fff; font: 600 15px/1 var(--epd-sf); letter-spacing: -.01em; text-decoration: none; transition: background-color .18s ease;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-btn-sec:hover { background: rgba(70,70,76,.6); }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-btn-sec svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 :is(.epd-enlace, .epd-btn-sec):focus-visible { outline: 2px solid var(--epd-ac2); outline-offset: 2px; }

/* Accesorios recomendados (la sección real; solo se ajusta el espaciado al de la maqueta) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products { margin-top: 88px; padding-top: 0; border-top: 0; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .related-products-heading { margin-bottom: 26px; }
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .related-products-heading > h2 {
  color: #fff; font: 700 clamp(1.7rem, 2.6vw, 2.4rem)/1.08 var(--epd-sfd); letter-spacing: -.032em;
}
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- Escritorio bajo (p. ej. 1600 x 775): caja más compacta ---------- */
@media (min-width: 900px) and (max-height: 940px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 { --epd-top: 85px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-info { padding: 20px 24px 20px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > h1 { margin-top: 10px; font-size: 28px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-reference { margin-top: 4px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-detail-price { margin-top: 12px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-options { margin-top: 14px; gap: 9px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-grupo legend { margin-bottom: 5px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg span { min-height: 38px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions { margin-top: 14px; gap: 8px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-actions .shop-button { min-height: 48px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits { margin-top: 14px !important; padding-top: 12px !important; gap: 12px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > span { margin-bottom: 2px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-lead-times { margin-top: 12px; padding-top: 12px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-times-title { margin-bottom: 10px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row { padding-top: 16px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-times-note { margin-top: 8px; font-size: 11px; }
}

/* ---------- Tableta horizontal ---------- */
@media (max-width: 1100px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail { column-gap: 28px; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits { grid-template-columns: 1fr !important; gap: 10px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li { grid-template-columns: 22px minmax(0, 1fr) !important; column-gap: 10px !important; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > span { grid-row: span 2; margin: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo { grid-template-columns: 340px minmax(0, 1fr); }
}

/* ---------- Tableta vertical y móvil: una columna ---------- */
@media (max-width: 899px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 { --epd-g: 20px; padding-left: var(--epd-g); padding-right: var(--epd-g); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .product-page-top { padding: 10px 0 10px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail { display: block; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-gallery { margin: 0 calc(var(--epd-g) * -1); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco { border-radius: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-marco .product-hero-button { border-radius: 0 !important; /* el tema la redondea con !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha,
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-thumbnails { display: none; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-cont { left: auto; right: 12px; bottom: 12px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-photo-note {
    margin: 0 !important; padding: 8px var(--epd-g) 0; color: var(--epd-tx3) !important; font-size: 11.5px !important; line-height: 1.35 !important; /* el tema usa !important */
  }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-info {
    position: static; margin: 0; padding: 12px 0 0;
    border-radius: 0 !important; background: none !important; /* el tema le pone fondo y radio con !important */
  }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > h1 { margin-top: 10px; font-size: 27px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-detail-price { margin-top: 12px; font-size: 34px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-options { margin-top: 18px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-seg span { min-height: 44px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits { grid-template-columns: 1fr !important; gap: 12px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li {
    grid-template-columns: 24px auto minmax(0, 1fr) !important; column-gap: 10px !important; align-items: baseline !important; /* el tema usa !important */
  }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > span { grid-row: auto; margin: 0; align-self: center; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > b { font-size: 14px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > small { font-size: 13px !important; /* el tema usa !important */ }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle { padding-top: 40px; gap: 36px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator { margin: 0 calc(var(--epd-g) * -1); border-radius: 0 !important; /* fluid-motion usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator > header { padding: 24px var(--epd-g) 4px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-copy-highlights li { grid-template-columns: 30px minmax(0, 1fr); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-compatible-list { grid-template-columns: 1fr; }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-bloque { margin-top: 64px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-resenas { border-top: 0; padding-top: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas blockquote { padding: 22px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-citas p { font-size: 18px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo { grid-template-columns: 1fr; gap: 18px; padding: 0; border-radius: 0; background: transparent !important; /* anula el fondo de escritorio, que también lleva !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo-foto { margin: 0 calc(var(--epd-g) * -1); border-radius: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-trabajo-txt .epd-btn-sec { margin-top: 14px; }

  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products { margin-top: 64px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--epd-g) * -1); padding: 0 var(--epd-g); scroll-padding: 0 var(--epd-g); scrollbar-width: none;
  }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid::-webkit-scrollbar { display: none; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid > .product-card { flex: 0 0 68%; min-width: 0; scroll-snap-align: start; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid > .product-card[hidden] { display: none !important; /* el tema fuerza display:flex !important en las tarjetas */ }
}
@media (min-width: 600px) and (max-width: 899px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-detail > .product-info,
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle { max-width: 680px; margin-left: auto; margin-right: auto; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-gallery .product-photo-note { text-align: center; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator { margin: 0; border-radius: 24px !important; /* fluid-motion usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 > .related-products .product-grid > .product-card { flex-basis: 40%; }
}
@media (max-width: 560px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li { grid-template-columns: 24px minmax(0, 1fr) !important; row-gap: 1px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-info > .product-buy-benefits li > span { grid-row: span 2; align-self: start; margin-top: 1px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times dl { grid-template-columns: 1fr; gap: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row { padding: 0 0 14px 22px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row:last-child { padding-bottom: 0; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row::before { top: 5px; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times .product-lead-time-row:not(:last-child)::after { top: 17px; left: 3.5px; width: 1px; height: calc(100% - 16px); }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-lead-times dd { text-align: right; }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle .product-summary > span { font-size: 24px !important; /* el tema usa !important */ }
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-detalle starlight-configurator > header h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 :is(.epd-gal-flecha, .epd-seg span, .epd-trabajo-foto img, .product-thumbnails button) { transition: none; }
}

/* El desplegable propio de la web (unified-selects) que acompaña a cada select oculto: fuera del orden de tabulación */
:root.ep-ios.epd2-botones:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .product-options .epd-selects .ep-soft-select { display: none !important; /* unified-selects lo fuerza a flex con !important */ }

/* Móvil: el botón flotante «Contactar» de la web tapaba las opciones. En esta ficha sobra: teléfono y
   WhatsApp están en la cabecera y «Preguntar por WhatsApp» en la caja. */
@media (max-width: 900px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize):has(main.epd-v2) #ep-mobile-contact { display: none; }
}

/* Barra fija del móvil: se aparta mientras las opciones de la caja están a la vista (la clase la pone el script) */
@media (max-width: 700px) {
  :root.ep-ios.epd2-barra-fuera:not(#ep-ios-x):not(.customer-teslize):has(main.epd-v2) .eps-buybar { display: none; }
}

/* Flechas de la galería siempre a la vista con ratón o trackpad, también por debajo del ancho de escritorio */
@media (hover: hover) and (pointer: fine) and (max-width: 899px) {
  :root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 .epd-gal-flecha { display: grid; opacity: 1; }
}

/* Hoja aplicada: el script la comprueba antes de pasar al modo botones (familias con opciones) */
:root.ep-ios:not(#ep-ios-x):not(.customer-teslize) .epd-v2 { --epd2-hoja: 1; }
