/* Software Digital · tema hijo «sd-tienda» · fase 1: cabecera, pie, WhatsApp flotante y ficha de producto.
   Sale del prototipo aprobado (rediseno/prototipo/sitio/css/sistema.css, armazon.css y ficha.css).
   Todo cuelga de sus propias clases (.sd-…) o de body.sd-ficha-nueva: el resto de la web (portada, categorías, carrito,
   pago y Mi cuenta, que siguen con Astra y Elementor) no cambia en esta fase.
   Un solo color de acción, el azul. El rojo, solo en el logo. Las estrellas, en ámbar.

   1 fuente y variables · 2 piezas comunes · 3 cabecera · 4 pie · 5 hojas (menú del móvil y buscador) · 6 WhatsApp
   7 ficha: página · 8 ficha: cabeza y compra · 9 ficha: debajo · 10 barra de compra · 11 movimiento */

/* 1 ─ Fuente y variables */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fuentes/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --fuente: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fondo: #EFF3F8;
  --blanco: #FFFFFF;
  --velo: #ECECF0;
  --velo-hondo: #E0E0E6;
  --linea: #E2E3E8;
  --borde: #80858F;
  --tinta: #0E1116;
  --gris: #5A606B;
  --gris-titular: #70747D;
  --accion: #0A64DC;
  --accion-hondo: #0853B8;
  --accion-velo: #E9F1FD;
  --verde: #0B7A3E;
  --verde-velo: #E4F5EA;
  --aviso: #8A5300;
  --aviso-velo: #FFF4D9;
  --ambar: #E8A100;
  --ambar-filete: #BD7D00;
  --windows: #2C90F8;
  --office: #F6701A;
  --antivirus: #13AA55;
  --radio: 24px;
  --radio-l: 28px;
  --radio-s: 16px;
  --sombra: 0 1px 1px rgba(14, 17, 22, .03), 0 8px 24px rgba(14, 17, 22, .04);
  --sombra-alta: 0 2px 6px rgba(14, 17, 22, .05), 0 22px 56px rgba(14, 17, 22, .13);
  --cabecera: 56px;
  --logo-alto: 23px;
  --margen: 16px;
  --hueco: 12px;
  --aire: 40px;
  --relleno: 20px;
  --t-l: clamp(30px, 21px + 2.9vw, 52px);
  --alto-cookies: 0px;
  --alto-barra: 0px;
}
@media (max-width: 359.98px) { :root { --logo-alto: 21px; } }
@media (min-width: 640px) { :root { --margen: 24px; --hueco: 16px; --relleno: 28px; --aire: 72px; } }
@media (min-width: 1024px) { :root { --cabecera: 64px; --logo-alto: 24px; --margen: 48px; --hueco: 20px; --relleno: 32px; --aire: 96px; } }

/* 2 ─ Piezas comunes (solo dentro de lo nuevo) */
.sd-cab, .sd-pie, .sd-hoja, .sd-wa, .sd-barra, body.sd-ficha-nueva #primary { font-family: var(--fuente); letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.sd-cab *, .sd-cab *::before, .sd-cab *::after, .sd-pie *, .sd-pie *::before, .sd-pie *::after,
.sd-hoja *, .sd-barra *, body.sd-ficha-nueva #primary * { box-sizing: border-box; }
.sd-cab ul, .sd-pie ul, .sd-hoja ul, .sd-garantias, .pagos { margin: 0; padding: 0; list-style: none; }
.sd-cab p, .sd-pie p, .sd-hoja p { margin: 0; }
.sd-cab img, .sd-pie img, .sd-hoja img, .sd-barra img { display: block; max-width: 100%; height: auto; }
.sd-ancho { width: min(100% - 2 * var(--margen), 1240px); margin-inline: auto; }
.icono { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.icono--s { width: 20px; height: 20px; }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.estrellas { display: inline-flex; gap: 1px; color: var(--ambar); vertical-align: -3px; }
.estrellas svg { width: 18px; height: 18px; fill: currentColor; stroke: var(--ambar-filete); stroke-width: 1.1; stroke-linejoin: round; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gris); flex: none; }
.punto--windows { background: var(--windows); }
.punto--office { background: var(--office); }
.punto--antivirus { background: var(--antivirus); }
.punto--pack { background: linear-gradient(90deg, #3055E4 50%, var(--office) 50%); }
.pagos { display: flex; flex-wrap: nowrap; gap: 8px; }
.pagos li { margin: 0; }
.pago { width: 44px; height: 28px; flex: none; display: block; }
@media (max-width: 359.98px) { .pagos { gap: 5px; } .pago { width: 41px; height: 26px; } }
.sd-cab :focus-visible, .sd-pie :focus-visible, .sd-hoja :focus-visible, .sd-wa:focus-visible, .sd-barra :focus-visible,
body.sd-ficha-nueva #primary :focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 8px; }

/* Botones. Se fijan todas las propiedades: Astra y WooCommerce dan estilo a cualquier <button> y a .button. */
.sd-boton, body.sd-ficha-nueva .summary form.cart button.single_add_to_cart_button,
body.sd-ficha-nueva .summary form.cart .sd-compra__ahora {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; max-width: 100%; margin: 0; padding: 8px 24px; border: 0; border-radius: 999px;
  background: var(--velo); color: var(--tinta); box-shadow: none; float: none;
  font-family: var(--fuente); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: 0; text-transform: none;
  text-decoration: none; text-align: center; cursor: pointer; opacity: 1;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.sd-boton:hover { background: var(--velo-hondo); color: var(--tinta); }
.sd-boton:active { transform: scale(.98); }
.sd-boton--accion, body.sd-ficha-nueva .summary form.cart .sd-compra__ahora { background: var(--accion); color: #fff; }
.sd-boton--accion:hover, .sd-boton--accion:focus, body.sd-ficha-nueva .summary form.cart .sd-compra__ahora:hover { background: var(--accion-hondo); color: #fff; }
.sd-boton--velo { background: var(--velo); color: var(--tinta); box-shadow: inset 0 0 0 1px #C9CCD4; }
.sd-boton--grande { min-height: 54px; padding-inline: 30px; }
.sd-boton .icono { width: 22px; height: 22px; }
.sd-icono-boton {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--tinta); box-shadow: none; text-decoration: none; position: relative;
  transition: background-color .2s; cursor: pointer;
}
.sd-icono-boton:hover, .sd-icono-boton:focus { background: rgba(14, 17, 22, .06); color: var(--tinta); }
.sd-enlace { display: inline-block; padding: 10px 0; border: 0; background: none; font-weight: 600; line-height: 1.42; text-decoration: none; color: var(--accion); cursor: pointer; }
.sd-enlace .icono { display: inline-block; width: 18px; height: 18px; margin-left: 2px; vertical-align: -3.5px; }
.sd-enlace .icono--antes { width: 22px; height: 22px; margin: 0 7px 0 0; vertical-align: -5px; }
.sd-enlace:hover { color: var(--accion-hondo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sd-enlace--tinta, .sd-enlace--tinta:hover { color: var(--tinta); }
.sd-enlace--tinta .icono--antes { color: #1A9E4C; }

/* 3 ─ Cabecera: casi opaca y siempre arriba */
.sd-cab {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 243, 248, .95);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14, 17, 22, .07);
  color: var(--tinta); font-size: 17px; line-height: 1.5;
}
body.admin-bar .sd-cab { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sd-cab { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .sd-cab { top: 0; } }
.sd-cab__fila { display: flex; align-items: center; height: var(--cabecera); }
.sd-marca { display: flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.sd-marca__logo { height: var(--logo-alto) !important; width: auto !important; max-width: 100%; }
.sd-cab__acciones { display: flex; align-items: center; margin-right: -10px; }
.sd-nav, .sd-cab__cuenta { display: none; }
.sd-contador {
  position: absolute; top: 0; right: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--accion); color: #fff; font-size: 16px; font-weight: 650; line-height: 22px; text-align: center;
}
.sd-contador[hidden] { display: none; }
@media (min-width: 1024px) {
  .sd-cab__fila { display: grid; grid-template-columns: auto 1fr auto; column-gap: 24px; }
  .sd-cab__menu { display: none; }
  .sd-cab__cuenta { display: inline-grid; }
  .sd-cab__acciones { justify-self: end; }
  .sd-nav { display: flex; align-items: center; justify-content: center; gap: 0; }
  .sd-nav__enlace, .sd-nav__grupo > summary {
    display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 11px; border-radius: 999px;
    font-size: 16px; font-weight: 500; color: var(--tinta); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap;
    transition: background-color .2s;
  }
  .sd-nav__grupo > summary::-webkit-details-marker { display: none; }
  .sd-nav__grupo > summary::marker { content: ""; }
  .sd-nav__grupo > summary .icono { width: 16px; height: 16px; color: var(--gris); transition: transform .2s; }
  .sd-nav__grupo[open] > summary .icono { transform: rotate(180deg); }
  .sd-nav__enlace:hover, .sd-nav__grupo > summary:hover, .sd-nav__grupo[open] > summary { background: rgba(14, 17, 22, .06); color: var(--tinta); }
  .sd-nav__enlace[aria-current="page"], .sd-nav__grupo[aria-current="page"] > summary { font-weight: 600; box-shadow: inset 0 -2px 0 var(--accion); border-radius: 0; }
  .sd-nav__grupo { position: relative; }
  .sd-nav__panel {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 360px; padding: 10px;
    background: var(--blanco); border-radius: 24px; box-shadow: 0 0 0 1px rgba(14, 17, 22, .05), var(--sombra-alta);
  }
  .sd-nav__panel a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 4px 16px 4px 6px; border-radius: 16px; text-decoration: none; font-weight: 500; color: var(--tinta); }
  .sd-nav__panel a:hover { background: var(--fondo); color: var(--tinta); }
  .sd-nav__panel img { width: 52px; height: 52px; flex: none; }
  .sd-nav__panel .sd-nav__todo { min-height: 48px; padding-left: 18px; margin-top: 4px; color: var(--accion); font-weight: 600; border-top: 1px solid var(--linea); border-radius: 0; }
  .sd-nav__panel--lista { width: 260px; }
  .sd-nav__panel--lista a { min-height: 44px; padding-left: 16px; }
}
@media (min-width: 1240px) { .sd-nav { gap: 2px; } .sd-nav__enlace, .sd-nav__grupo > summary { padding: 0 15px; } }

/* 4 ─ Pie */
.sd-pie { margin-top: 40px; padding: 2px 0 24px; border-top: 1px solid var(--linea); background: var(--fondo); color: var(--gris); font-size: 17px; line-height: 1.5; }
.sd-pie__columnas { display: grid; }
.sd-plegable > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
  font-weight: 600; font-size: 18px; line-height: 1.3; cursor: pointer; list-style: none; color: var(--tinta);
}
.sd-plegable > summary::-webkit-details-marker { display: none; }
.sd-plegable > summary::marker { content: ""; }
.sd-plegable > summary .icono { transition: transform .25s; color: var(--gris); }
.sd-plegable[open] > summary .icono { transform: rotate(180deg); }
.sd-pie .sd-plegable + .sd-plegable { border-top: 1px solid var(--linea); }
.sd-pie .sd-plegable > summary { font-size: 17px; min-height: 48px; padding: 8px 0; }
.sd-pie__lista { padding-bottom: 10px; }
.sd-pie__lista a, .sd-pie__boton { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--gris); font-size: 17px; }
.sd-pie__boton { width: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; font-family: inherit; font-weight: 400; line-height: 1.5; cursor: pointer; }
.sd-pie__lista a:hover, .sd-pie__boton:hover, .sd-pie__boton:focus { background: none; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--accion); text-underline-offset: 4px; }
.sd-pie__base { padding-top: 18px; border-top: 1px solid var(--linea); display: grid; gap: 14px; }
.sd-pie__logo { height: 22px !important; width: auto !important; }
.sd-pie__legal { display: grid; gap: 4px; font-size: 16px; line-height: 1.45; }
.sd-pie__largo { display: none; }
@media (min-width: 640px) { .sd-pie__largo { display: inline; } }
@media (min-width: 1024px) {
  .sd-pie { margin-top: 96px; padding: 40px 0; }
  .sd-pie__columnas { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .sd-pie .sd-plegable + .sd-plegable { border-top: 0; }
  .sd-pie .sd-plegable > summary { min-height: 44px; padding: 0; pointer-events: none; cursor: default; }
  .sd-pie .sd-plegable > summary .icono { display: none; }
  .sd-pie__base { grid-template-columns: 1fr auto; align-items: center; gap: 16px 48px; margin-top: 32px; padding-top: 32px; }
  .sd-pie__legal { grid-column: 1 / -1; }
}

/* 5 ─ Hojas: menú del móvil y buscador */
.sd-hoja { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; background: var(--fondo); color: var(--tinta); font-size: 17px; line-height: 1.5; }
.sd-hoja::backdrop { background: rgba(14, 17, 22, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sd-hoja[open] { display: flex; flex-direction: column; }
.sd-hoja__cabeza { display: flex; align-items: center; justify-content: space-between; height: var(--cabecera); padding: 0 6px 0 16px; flex: none; }
.sd-hoja__titulo { font-size: 17px; font-weight: 600; color: var(--gris); }
.sd-hoja__cuerpo { flex: 1; overflow-y: auto; padding: 4px 16px 24px; overscroll-behavior: contain; }
.sd-menu { width: 100%; height: 100%; inset: 0; }
.sd-menu__lista > li + li { border-top: 1px solid var(--linea); }
.sd-menu__lista > li > a, .sd-menu__grupo > summary {
  display: flex; align-items: center; gap: 12px; min-height: 60px; text-decoration: none; cursor: pointer; list-style: none;
  font-size: 24px; font-weight: 650; letter-spacing: -.019em; color: var(--tinta);
}
.sd-menu__grupo > summary::-webkit-details-marker { display: none; }
.sd-menu__grupo > summary::marker { content: ""; }
.sd-menu__grupo > summary .icono { margin-left: auto; color: var(--gris); transition: transform .25s; }
.sd-menu__grupo[open] > summary .icono { transform: rotate(180deg); }
.sd-menu__sub { padding: 0 0 12px; display: grid; }
.sd-menu__sub a { display: flex; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; font-weight: 500; color: var(--tinta); }
.sd-menu__sub img { width: 44px; height: 44px; flex: none; }
.sd-menu__sub .sd-menu__todo { color: var(--accion); font-weight: 600; padding-left: 56px; }
.sd-menu__pie { margin-top: 20px; display: grid; gap: 12px; }
.sd-buscar { width: 100%; inset: 0 0 auto 0; max-height: 100dvh; border-radius: 0 0 28px 28px; box-shadow: var(--sombra-alta); }
.sd-campo-buscar { display: flex; align-items: center; gap: 4px; height: 56px; margin: 0; padding: 0 6px 0 18px; border-radius: 999px; background: var(--blanco); box-shadow: inset 0 0 0 1px var(--borde); }
.sd-campo-buscar:focus-within { box-shadow: inset 0 0 0 2px var(--accion); }
.sd-campo-buscar input[type="search"] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: 18px; color: var(--tinta); outline: none; }
.sd-campo-buscar input::placeholder { color: var(--gris); opacity: 1; }
.sd-atajos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sd-atajo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); font-weight: 500; color: var(--tinta); text-decoration: none; }
.sd-atajo:hover { color: var(--accion); }
@media (min-width: 640px) {
  .sd-buscar { inset: 16px auto auto 50%; transform: translateX(-50%); width: min(100% - 32px, 720px); max-height: calc(100dvh - 32px); border-radius: 28px; }
  .sd-buscar .sd-hoja__cuerpo { padding: 4px 24px 24px; }
  .sd-menu { inset: 0 0 0 auto; width: 420px; box-shadow: var(--sombra-alta); }
}

/* 6 ─ WhatsApp flotante (#1A9E4C). Va por encima del aviso de cookies y se aparta hacia arriba cuando sale la barra de compra. */
.sd-wa {
  position: fixed; right: 16px; bottom: calc(16px + var(--alto-cookies) + var(--alto-barra) + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1A9E4C; color: #fff; box-shadow: 0 6px 18px rgba(14, 17, 22, .18); text-decoration: none;
  transition: bottom .3s cubic-bezier(.2, .8, .2, 1), transform .2s;
}
.sd-wa:hover, .sd-wa:focus { color: #fff; transform: scale(1.06); }
.sd-wa .icono { width: 30px; height: 30px; }
/* En el pago no sale (como en el prototipo): no tapa los campos. */
body.woocommerce-checkout .sd-wa { display: none; }
/* En el móvil, mientras el aviso de cookies está abierto, el botón no tapa la compra: vuelve al cerrarlo. */
@media (max-width: 767.98px) { html.sd-cookies-abierto .sd-wa { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (min-width: 768px) { .sd-wa { right: 24px; bottom: calc(24px + var(--alto-cookies) + var(--alto-barra) + env(safe-area-inset-bottom, 0px)); } }

/* 7 ─ Ficha: la página */
body.sd-ficha-nueva { background: var(--fondo); color: var(--tinta); }
body.sd-ficha-nueva #page, body.sd-ficha-nueva .site-content, body.sd-ficha-nueva #content { background: transparent; }
body.sd-ficha-nueva .site-content > .ast-container {
  display: block; width: min(100% - 2 * var(--margen), 1240px); max-width: none; margin-inline: auto; padding: 0;
}
body.sd-ficha-nueva #primary { width: auto; max-width: none; margin: 0 !important; padding: 0 !important; float: none; border: 0; color: var(--tinta); font-size: 17px; line-height: 1.5; }
body.sd-ficha-nueva #secondary { display: none; }
body.sd-ficha-nueva div.product { display: block; position: relative; margin: 0; padding: 0; background: none; }
body.sd-ficha-nueva .woocommerce-notices-wrapper:not(:empty) { margin-top: 12px; }
body.sd-ficha-nueva .woocommerce-message, body.sd-ficha-nueva .woocommerce-info, body.sd-ficha-nueva .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 12px 12px 12px 18px;
  border: 0; border-radius: var(--radio-s); background: var(--verde-velo); color: var(--tinta); font-size: 17px; line-height: 1.4; list-style: none;
}
body.sd-ficha-nueva .woocommerce-info { background: var(--accion-velo); }
body.sd-ficha-nueva .woocommerce-error { background: var(--aviso-velo); }
body.sd-ficha-nueva .woocommerce-message::before, body.sd-ficha-nueva .woocommerce-info::before, body.sd-ficha-nueva .woocommerce-error::before { display: none; }
body.sd-ficha-nueva .woocommerce-message .button, body.sd-ficha-nueva .woocommerce-message a.button {
  order: 2; float: none; margin: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px;
  background: var(--accion); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 0;
}
.sd-vuelta { margin-top: 4px; }
.sd-vuelta a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding-right: 10px; text-decoration: none; color: var(--gris); font-weight: 500; font-size: 17px; }
.sd-vuelta .icono { width: 20px; height: 20px; }
.sd-migas { display: none; }
@media (min-width: 768px) {
  .sd-vuelta { display: none; }
  .sd-migas { display: block; margin: 16px 0 14px; color: var(--gris); font-size: 16px; line-height: 1.4; }
  .sd-migas a { color: var(--gris); text-decoration: none; }
  .sd-migas a:hover { color: var(--tinta); text-decoration: underline; }
}

/* 8 ─ Ficha: cabeza y compra. El resumen de WooCommerce (div.summary) es la ficha. */
body.sd-ficha-nueva #content div.product div.summary, body.sd-ficha-nueva div.product div.summary {
  display: grid; float: none !important; clear: both; width: auto !important; max-width: none; margin: 0 !important; padding: 0;
}
.sd-ficha__escena { order: 3; margin-top: 20px; background: var(--blanco); border-radius: var(--radio-l); box-shadow: var(--sombra); display: grid; place-items: center; overflow: hidden; }
.sd-ficha__escena img { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 1; object-fit: contain; }
.sd-ficha__cabeza { order: 1; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin: 4px 0 0; }
.sd-ficha__mini, body.sd-ficha-nueva img.sd-ficha__mini { width: 96px; height: 96px; border-radius: 20px; background: var(--blanco); box-shadow: var(--sombra); object-fit: contain; }
.sd-ficha__titulos { display: flex; flex-direction: column; min-width: 0; }
body.sd-ficha-nueva div.product .summary h1.product_title {
  margin: 0; padding: 0; color: var(--tinta); font-family: var(--fuente); font-size: 28px; line-height: 1.08; font-weight: 650; letter-spacing: -.024em; text-wrap: balance; text-transform: none;
}
.sd-ficha__que { margin: 4px 0 0; color: var(--gris); line-height: 1.35; font-size: 17px; }
.sd-ficha__nota { display: flex; align-items: center; gap: 0 6px; min-height: 32px; margin: -4px 0 0; white-space: nowrap; color: var(--tinta); font-size: 17px; }
.sd-ficha__nota b { font-weight: 600; }
.sd-ficha__nota-texto { color: var(--gris); }
.sd-ficha__nota-largo { display: none; }
.sd-ficha__compra { order: 2; margin-top: 12px; min-width: 0; }

/* El precio y el formulario de WooCommerce: precio y cantidad en una fila, los dos botones a lo ancho y el plazo. */
.sd-precio { min-width: 0; }
body.sd-ficha-nueva .sd-precio p.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 0; color: var(--tinta); font-size: 16px; }
.sd-precio__cifra, body.sd-ficha-nueva .sd-precio__cifra .amount { font-size: 40px; line-height: 1; font-weight: 650; letter-spacing: -.029em; color: var(--tinta); white-space: nowrap; }
.sd-precio__cifra .woocommerce-Price-currencySymbol { font-size: inherit; }
.sd-precio__cifra .subscription-details, .sd-precio__cifra > span:not(.amount):not(.woocommerce-Price-amount) { font-size: 18px; letter-spacing: 0; font-weight: 500; color: var(--gris); }
.sd-precio__nota { color: var(--gris); font-size: 16px; line-height: 1.25; }
.sd-precio__total { color: var(--tinta); font-weight: 600; }
body.sd-ficha-nueva .summary form.cart {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin: 0; padding: 0; border: 0;
}
body.sd-ficha-nueva .summary form.cart > * { grid-column: 1 / -1; }
body.sd-ficha-nueva .summary form.cart > .sd-precio { grid-column: 1; grid-row: 1; }
body.sd-ficha-nueva .summary form.cart > .quantity { grid-column: 2; grid-row: 1; }
body.sd-ficha-nueva .summary form.cart > .sd-compra__ahora { grid-row: 2; width: 100%; margin-top: 12px; min-height: 54px; }
body.sd-ficha-nueva .summary form.cart > .single_add_to_cart_button { grid-row: 3; width: 100%; margin: 8px 0 0 !important; }
body.sd-ficha-nueva .summary form.cart > .sd-compra__ahora { margin-left: 0 !important; margin-right: 0 !important; }
body.sd-ficha-nueva .summary p.stock { font-size: 16px !important; font-weight: 500; }
body.sd-ficha-nueva .summary form.cart > .sd-plazo { grid-row: 4; }
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button,
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button.alt {
  background: var(--blanco); color: var(--accion); box-shadow: inset 0 0 0 1.5px var(--accion);
}
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button::before {
  content: ""; width: 22px; height: 22px; flex: none; background: currentColor;
  -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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.6 8.5h12.8l1 11.5H4.6l1-11.5z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5M12 11.6v5.2M9.4 14.2h5.2'/%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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.6 8.5h12.8l1 11.5H4.6l1-11.5z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5M12 11.6v5.2M9.4 14.2h5.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button:hover,
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button.alt:hover { background: var(--accion-velo); color: var(--accion-hondo); }
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button.loading { opacity: .7; }
body.sd-ficha-nueva .summary form.cart .single_add_to_cart_button.added::after { display: none; }
/* Cantidad «− 1 +» sobre el campo de WooCommerce */
body.sd-ficha-nueva .summary form.cart div.quantity {
  display: inline-flex; align-items: center; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 999px; float: none;
  background: var(--blanco); box-shadow: inset 0 0 0 1px var(--borde);
}
body.sd-ficha-nueva .summary form.cart div.quantity:focus-within { box-shadow: inset 0 0 0 2px var(--accion); }
body.sd-ficha-nueva .summary form.cart div.quantity:has(input[type="hidden"]) { display: none; }
body.sd-ficha-nueva .summary form.cart div.quantity input.qty {
  width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: center;
  font-family: var(--fuente); font-size: 17px; font-weight: 600; color: var(--tinta); -moz-appearance: textfield; appearance: textfield;
}
body.sd-ficha-nueva .summary form.cart div.quantity input.qty::-webkit-outer-spin-button,
body.sd-ficha-nueva .summary form.cart div.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.sd-ficha-nueva .summary form.cart div.quantity input.qty:focus-visible { outline: none; }
.sd-cantidad__boton, body.sd-ficha-nueva .summary form.cart .sd-cantidad__boton {
  display: grid; place-items: center; width: 44px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--tinta); box-shadow: none; cursor: pointer;
}
.sd-cantidad__boton:hover, .sd-cantidad__boton:focus { background: none; color: var(--accion); }
.sd-cantidad__boton:disabled { color: #9EA2AB; cursor: default; }
.sd-plazo { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; line-height: 1.4; color: var(--tinta); font-size: 17px; text-wrap: pretty; }
.sd-plazo b { font-weight: 600; }
.sd-plazo .icono { color: var(--accion); }
body.sd-ficha-nueva .summary p.stock { margin: 6px 0 0; color: var(--gris); font-size: 16px; }
body.sd-ficha-nueva .summary p.stock.out-of-stock { color: var(--aviso); font-weight: 600; }
.sd-pago-seguro { display: flex; justify-content: center; margin-top: 14px; }
.sd-aviso { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--radio-s); background: var(--aviso-velo); color: var(--tinta); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.sd-aviso > .icono { margin-top: 1px; color: var(--aviso); }
.sd-aviso p { margin: 0; }
.sd-aviso a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; }
.sd-garantias { margin-top: 16px; padding: 4px 18px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.sd-garantias li { display: flex; gap: 14px; margin: 0; padding: 14px 0; align-items: flex-start; color: var(--gris); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.sd-garantias li + li { border-top: 1px solid var(--linea); }
.sd-garantias b { color: var(--tinta); font-weight: 600; }
.sd-garantias .icono { color: var(--accion); margin-top: 1px; }
.sd-ficha__wa { display: flex; justify-content: center; margin: 4px 0 0; }
.sd-ficha__extracto { margin-top: 8px; padding: 6px 18px; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); color: var(--gris); font-size: 16px; line-height: 1.5; }
.sd-ficha__extracto p { margin: 10px 0; }
.sd-ficha__extracto ul { margin: 8px 0; padding: 0; list-style: none; }
.sd-ficha__extracto li { position: relative; margin: 0; padding: 6px 0 6px 28px; }
.sd-ficha__extracto li:empty { display: none; }
.sd-ficha__extracto li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; background: var(--accion);
  -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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sd-ficha__extracto strong, .sd-ficha__extracto b { color: var(--tinta); font-weight: 600; }
.sd-ficha__extracto a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 359.98px) {
  .sd-ficha__cabeza { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .sd-ficha__mini, body.sd-ficha-nueva img.sd-ficha__mini { width: 80px; height: 80px; border-radius: 18px; }
  body.sd-ficha-nueva div.product .summary h1.product_title { font-size: 25px; }
  .sd-precio__cifra, body.sd-ficha-nueva .sd-precio__cifra .amount { font-size: 34px; }
}
@media (min-width: 640px) { .sd-ficha__escena img { width: min(100%, 420px); } }
/* Tableta: dos columnas, la caja grande a la izquierda */
@media (min-width: 768px) {
  body.sd-ficha-nueva div.product div.summary { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .sd-ficha__escena {
    order: 0; grid-column: 1; grid-row: 1 / span 2; margin-top: 0;
    position: sticky; top: calc(var(--cabecera) + 16px); aspect-ratio: 1; max-height: calc(100vh - var(--cabecera) - 78px); min-height: 300px;
  }
  .sd-ficha__escena img { width: 100%; height: 100%; aspect-ratio: auto; }
  .sd-ficha__cabeza { order: 0; grid-column: 2; display: block; margin: 0; }
  .sd-ficha__mini, body.sd-ficha-nueva img.sd-ficha__mini { display: none; }
  .sd-ficha__nota { margin: -6px 0 4px; }
  .sd-ficha__nota-corto { display: none; }
  .sd-ficha__nota-largo { display: inline; }
  body.sd-ficha-nueva div.product .summary h1.product_title { font-size: 40px; line-height: 1.02; }
  .sd-ficha__que { margin-top: 8px; font-size: 19px; }
  .sd-ficha__compra { order: 0; grid-column: 2; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linea); }
  .sd-pago-seguro { justify-content: flex-start; }
  .sd-ficha__wa { justify-content: flex-start; }
}
/* Ordenador: la compra entera cabe en la primera pantalla de un portátil */
@media (min-width: 1024px) {
  body.sd-ficha-nueva div.product div.summary { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 0 64px; }
  .sd-ficha__escena { border-radius: 32px; }
  body.sd-ficha-nueva div.product .summary h1.product_title { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.02; margin-top: 2px; }
  .sd-ficha__que { margin-top: 10px; font-size: 21px; }
  .sd-precio__cifra, body.sd-ficha-nueva .sd-precio__cifra .amount { font-size: 52px; }
  body.sd-ficha-nueva .summary form.cart > .sd-compra__ahora { margin-top: 14px; min-height: 56px; font-size: 18px; }
  body.sd-ficha-nueva .summary form.cart > .single_add_to_cart_button { margin-top: 10px; }
  .sd-garantias { margin-top: 18px; }
}

/* 9 ─ Ficha: debajo de la compra (plegables, preguntas frecuentes, guías, fuentes y relacionados) */
.sd-bloque { margin-top: var(--aire); }
.sd-titulo, body.sd-ficha-nueva h2.sd-titulo { margin: 0 0 16px; font-family: var(--fuente); font-size: var(--t-l) !important; line-height: 1.06; font-weight: 650; letter-spacing: -.025em; color: var(--tinta); text-wrap: balance; }
.sd-tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.sd-plegables { padding: 4px var(--relleno); }
.sd-plegables .sd-plegable + .sd-plegable { border-top: 1px solid var(--linea); }
.sd-plegable > summary h3 { margin: 0; font-family: var(--fuente); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--tinta); }
.sd-plegable__cuerpo { padding: 0 0 20px; color: var(--gris); }
@media (min-width: 1024px) { .sd-plegables { padding: 8px var(--relleno); } .sd-plegables .sd-plegable > summary { min-height: 68px; } }

/* Texto largo de la descripción: el de siempre del producto, con tipografía legible */
.sd-texto-largo { font-size: 17px; line-height: 1.6; max-width: 76ch; }
.sd-texto-largo h2, .sd-texto-largo h3, .sd-texto-largo h4 { margin: 1.2em 0 .5em; padding: 0 !important; font-family: var(--fuente); color: var(--tinta); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.sd-texto-largo h2 { font-size: 24px; }
.sd-texto-largo h3 { font-size: 20px; }
.sd-texto-largo h4 { font-size: 18px; }
.sd-texto-largo > :first-child { margin-top: 0; }
.sd-texto-largo p { margin: 0 0 1em; }
.sd-texto-largo ul, .sd-texto-largo ol { margin: 0 0 1em 1.2em; padding: 0; }
.sd-texto-largo li { margin: .25em 0; }
.sd-texto-largo a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; }
.sd-texto-largo strong, .sd-texto-largo b { color: var(--tinta); font-weight: 600; }
.sd-texto-largo table { width: 100%; margin: 0 0 1em; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.sd-texto-largo th, .sd-texto-largo td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.sd-texto-largo img { max-width: 100%; height: auto; border-radius: 12px; }
.sd-texto-largo .woocommerce-product-attributes { display: table; }
.sd-texto-largo .woocommerce-product-attributes th { width: 40%; color: var(--tinta); font-weight: 600; background: none; }
.sd-texto-largo .woocommerce-product-attributes td { background: none; font-style: normal; }
.sd-texto-largo .woocommerce-product-attributes td p { margin: 0; }
/* Opiniones: la lista y el formulario de WooCommerce */
.sd-texto-largo #reviews h2, .sd-texto-largo .woocommerce-Reviews-title { font-size: 20px; }
.sd-texto-largo ol.commentlist { margin: 0; padding: 0; list-style: none; }
.sd-texto-largo ol.commentlist li { margin: 0 0 12px; padding: 0; }
.sd-texto-largo ol.commentlist li .comment-text { margin: 0 !important; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--linea) !important; border-radius: 0 !important; }
.sd-texto-largo ol.commentlist li img.avatar { display: none; }
.sd-texto-largo .star-rating { color: var(--ambar); }
.sd-texto-largo input[type="text"], .sd-texto-largo input[type="email"], .sd-texto-largo textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--blanco);
  box-shadow: inset 0 0 0 1px var(--borde); font: inherit; color: var(--tinta);
}
.sd-texto-largo input[type="submit"], .sd-texto-largo .submit {
  min-height: 48px; padding: 8px 24px; border: 0; border-radius: 999px; background: var(--velo); color: var(--tinta); box-shadow: inset 0 0 0 1px #C9CCD4;
  font-family: var(--fuente); font-weight: 600; font-size: 17px; cursor: pointer;
}

/* Preguntas frecuentes (sd-faq), guías (sd-enlazado) y fuentes (sd-fuentes): su HTML de siempre con el aspecto nuevo.
   Sus <style> en línea se sobrescriben aquí con más peso. */
body.sd-ficha-nueva .sd-faq { max-width: none; margin: var(--aire) 0 0; padding: 0; }
body.sd-ficha-nueva .sd-faq h2 { margin: 0 0 16px; font-family: var(--fuente); font-size: var(--t-l); line-height: 1.06; font-weight: 650; letter-spacing: -.025em; color: var(--tinta); }
body.sd-ficha-nueva .sd-faq h2::after { content: "."; }
body.sd-ficha-nueva .sd-faq .sd-faq__item { margin: 0; padding: 0 var(--relleno); border: 0; border-top: 1px solid var(--linea); background: var(--blanco); }
body.sd-ficha-nueva .sd-faq h2 + .sd-faq__item { border-top: 0; border-radius: var(--radio) var(--radio) 0 0; padding-top: 4px; }
body.sd-ficha-nueva .sd-faq .sd-faq__item:last-of-type { border-radius: 0 0 var(--radio) var(--radio); padding-bottom: 4px; }
body.sd-ficha-nueva .sd-faq .sd-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--tinta);
}
body.sd-ficha-nueva .sd-faq .sd-faq__item summary::-webkit-details-marker { display: none; }
body.sd-ficha-nueva .sd-faq .sd-faq__item summary::marker { content: ""; }
body.sd-ficha-nueva .sd-faq .sd-faq__item summary::after {
  content: ""; width: 24px; height: 24px; flex: none; background: var(--gris); transition: transform .25s;
  -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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.sd-ficha-nueva .sd-faq .sd-faq__item[open] summary::after { transform: rotate(180deg); }
body.sd-ficha-nueva .sd-faq .sd-faq__a { padding: 0 0 20px; color: var(--gris); line-height: 1.55; max-width: 68ch; }
body.sd-ficha-nueva .sd-faq .sd-faq__a p { margin: 0; }
@media (min-width: 1024px) { body.sd-ficha-nueva .sd-faq .sd-faq__item summary { min-height: 68px; font-size: 19px; } }
body.sd-ficha-nueva .sd-enl, body.sd-ficha-nueva .sd-fuentes {
  max-width: none; margin: var(--hueco) 0 0; padding: 18px var(--relleno); border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); font-family: var(--fuente);
}
body.sd-ficha-nueva .sd-faq + .sd-enl, body.sd-ficha-nueva .sd-faq ~ .sd-enl:first-of-type { margin-top: var(--aire); }
body.sd-ficha-nueva .sd-enl h2, body.sd-ficha-nueva .sd-fuentes h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 650; color: var(--tinta); }
body.sd-ficha-nueva .sd-enl__lista a, body.sd-ficha-nueva .sd-fuentes a, body.sd-ficha-nueva .sd-enl__landing a { color: var(--accion); }
body.sd-ficha-nueva .sd-enl__landing { margin: 0; }
body.sd-ficha-nueva .sd-fuentes { color: var(--gris); font-size: 16px; }
/* Relacionados y ventas cruzadas: tarjetas blancas */
body.sd-ficha-nueva section.related.products, body.sd-ficha-nueva section.upsells.products { margin-top: var(--aire); }
body.sd-ficha-nueva section.related > h2, body.sd-ficha-nueva section.upsells > h2 { margin: 0 0 16px; font-family: var(--fuente); font-size: var(--t-l) !important; line-height: 1.06; font-weight: 650; letter-spacing: -.025em; color: var(--tinta); }
body.sd-ficha-nueva ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hueco); margin: 0 !important; padding: 0; }
@media (min-width: 768px) { body.sd-ficha-nueva ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.sd-ficha-nueva ul.products::before, body.sd-ficha-nueva ul.products::after { display: none !important; }
body.sd-ficha-nueva ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 14px !important; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra);
  display: flex; flex-direction: column; text-align: left;
}
body.sd-ficha-nueva ul.products li.product img { border-radius: 14px; }
body.sd-ficha-nueva ul.products li.product .woocommerce-loop-product__title { font-family: var(--fuente); font-size: 17px !important; font-weight: 600; line-height: 1.3; color: var(--tinta); }
body.sd-ficha-nueva ul.products li.product .price { color: var(--tinta) !important; font-weight: 650; font-size: 18px; }
body.sd-ficha-nueva ul.products li.product .price del { display: none; }
body.sd-ficha-nueva ul.products li.product .price ins { text-decoration: none; }
body.sd-ficha-nueva ul.products li.product .onsale { display: none !important; }
body.sd-ficha-nueva ul.products li.product .button {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--accion); color: #fff; font-family: var(--fuente); font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0;
}
body.sd-ficha-nueva ul.products li.product .button:hover { background: var(--accion-hondo); color: #fff; }
body.sd-ficha-nueva ul.products li.product .ast-woo-product-category { color: var(--gris); font-size: 16px; }

/* 10 ─ Barra de compra fija. Sale cuando «Comprar ahora» queda arriba, se retira en el pie y va por encima del aviso de cookies. */
.sd-barra {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--alto-cookies) + env(safe-area-inset-bottom, 0px)); z-index: 44;
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 8px 8px 10px;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(14, 17, 22, .06), var(--sombra-alta); color: var(--tinta);
  transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
}
.sd-barra--visible { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.sd-barra img { width: 48px; height: 48px; flex: none; }
.sd-barra__texto { min-width: 0; flex: 1; margin: 0; line-height: 1.25; font-size: 16px; }
.sd-barra__nombre { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gris); }
.sd-barra__precio { display: block; white-space: nowrap; }
.sd-barra__precio b { font-weight: 650; font-size: 18px; }
.sd-barra__precio b .amount { font-weight: 650; }
.sd-barra__iva { color: var(--gris); }
.sd-barra .sd-boton { flex: none; padding: 0 26px; white-space: nowrap; }
@media (max-width: 359.98px) { .sd-barra img { display: none; } .sd-barra { padding-left: 16px; } }
@media (min-width: 640px) {
  .sd-barra { left: 50%; right: auto; width: min(100% - 32px, 620px); transform: translate(-50%, calc(100% + 24px)); padding: 8px 8px 8px 14px; border-radius: 999px; }
  .sd-barra--visible { transform: translateX(-50%); }
}

/* 11 ─ Menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .sd-cab *, .sd-pie *, .sd-hoja, .sd-hoja *, .sd-wa, .sd-barra, body.sd-ficha-nueva #primary * { transition: none !important; animation: none !important; }
  .sd-wa:hover { transform: none; }
}
