/**
 * Ecom Despiece — estilos del visor, de la miniatura de la galería y de la pantalla completa.
 *
 * @author    Ecom Experts <ecomyseo@gmail.com>
 * @copyright 2026 Ecom Experts
 * @license   AFL-3.0
 */
.eev {
  --eev-bg: #f4f4f4;
  --eev-fg: #1d2430;
  --eev-acc: #d9480f;
  --eev-bar: #ffffff;
  --eev-line: rgba(0, 0, 0, .12);
  --eev-focus: #1d64d8;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--eev-bg);
  color: var(--eev-fg);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  text-align: left;
}
.eev-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; }
.eev-edit .eev-stage { touch-action: none; cursor: grab; }
.eev-scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.eev-edit .eev-scene {
  background: repeating-conic-gradient(#e3e6ea 0 25%, #ffffff 0 50%) 0 0 / 20px 20px;
  outline: 1px dashed rgba(0, 0, 0, .4);
}
.eev-piece {
  position: absolute; left: 0; top: 0; max-width: none; margin: 0;
  user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform;
}
.eev-has-sel .eev-piece:not(.eev-sel) { filter: grayscale(.55) opacity(.45); }
.eev-piece.eev-sel { filter: drop-shadow(0 0 3px var(--eev-acc)) drop-shadow(0 0 9px rgba(217, 72, 15, .5)); }
.eev-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.eev-backdrop {
  position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.eev-edit .eev-backdrop { display: none; }
.eev-3d .eev-scene { right: 0; bottom: 0; width: 100%; height: 100%; transform: none; }
.eev-canvas3d { display: block; width: 100%; height: 100%; cursor: grab; }
.eev-canvas3d:active { cursor: grabbing; }
.eev-ready .eev-poster { display: none; }

.eev-hots { position: absolute; inset: 0; pointer-events: none; }
.eev-hot {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; margin: 0;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer; pointer-events: auto;
}
.eev-dot {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--eev-acc); color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .3);
}
.eev-dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.eev-narrow .eev-dot { left: -11px; top: -11px; width: 22px; height: 22px; font-size: 11.5px; box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, .3); }
.eev-pill {
  position: absolute; top: -13px; left: 20px; height: 26px; line-height: 26px; padding: 0 10px;
  border-radius: 13px; background: rgba(255, 255, 255, .95); color: #1d2430; white-space: nowrap;
  font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; visibility: hidden; transition: opacity .12s ease;
}
.eev-hot:hover .eev-pill, .eev-hot:focus .eev-pill, .eev-hot:focus-visible .eev-pill {
  opacity: 1; visibility: visible;
}
.eev-hot.eev-l .eev-pill { left: auto; right: 20px; }
.eev-hot.eev-t .eev-pill, .eev-hot.eev-b .eev-pill { left: 0; transform: translateX(-50%); }
.eev-hot.eev-t .eev-pill { top: -47px; }
.eev-hot.eev-b .eev-pill { top: 21px; }
.eev-narrow .eev-pill, .eev-hot.eev-solo .eev-pill { display: none; }
.eea:not(.eea-drawing) .eev-hot:not(.eev-solo) .eev-pill { opacity: .96; visibility: visible; }
.eev-hot:focus-visible { outline: none; }
.eev-hot:focus-visible .eev-dot { outline: 3px solid var(--eev-focus); outline-offset: 3px; }

.eev-pop {
  position: absolute; z-index: 5; width: max-content; max-width: min(300px, calc(100% - 16px));
  background: #fff; color: #1d2430; border-radius: 10px; padding: 12px 46px 12px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.eev-pop-t { display: block; font-size: 15px; margin-bottom: 4px; }
.eev-pop-d { margin: 0; font-size: 13.5px; color: #3b4452; }
.eev-pop .eev-pop-x { position: absolute; right: 4px; top: 4px; min-height: 36px; min-width: 36px; padding: 0; border: 0; }
.eev-pop .eev-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eev-list {
  position: absolute; z-index: 6; inset: 8px; overflow: auto; background: rgba(255, 255, 255, .97);
  border-radius: 10px; padding: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); color: #1d2430;
}
.eev-list-t { font-weight: 700; margin: 0 0 6px; }
.eev-list ol { margin: 0; padding-left: 22px; }
.eev-list-b {
  display: block; width: 100%; min-height: 44px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--eev-line);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.eev-list-b strong { display: block; }
.eev-list-b span { font-size: 12.5px; color: #55606e; }
.eev-hint { font-size: 12px; color: #55606e; margin: 8px 0 0; }

.eev-status {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px);
  background: rgba(20, 24, 32, .8); color: #fff; padding: 6px 12px; border-radius: 16px; font-size: 13px;
}
.eev-status:empty { display: none; }
.eev-status .eev-btn { min-height: 30px; margin-left: 6px; }

.eev-bar { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; background: var(--eev-bar); border-top: 1px solid var(--eev-line); }
.eev-row { display: flex; align-items: center; gap: 6px; }
.eev-range { flex: 1 1 auto; min-width: 0; min-height: 32px; margin: 0; accent-color: var(--eev-acc); }
.eev-out { min-width: 46px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.eev-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 42px; padding: 0 10px; border: 1px solid var(--eev-line); border-radius: 8px;
  background: #fff; color: var(--eev-fg); font: inherit; font-weight: 600; cursor: pointer;
}
.eev-btns > .eev-btn:not(.eev-ico) { flex: 1 1 auto; }
.eev-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.eev-btn.eev-primary { background: var(--eev-acc); border-color: var(--eev-acc); color: #fff; }
.eev-btn:disabled { opacity: .45; cursor: not-allowed; }
.eev-btn:focus-visible, .eev-range:focus-visible, .eev-list-b:focus-visible { outline: 3px solid var(--eev-focus); outline-offset: 2px; }
.eev-ico .eev-btn-t, .eev-narrow .eev-btn-t {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Tooltip de los botones que solo enseñan el icono (la barra va abajo: sale encima). Lee el aria-label. */
.eev-ico[aria-label]::after, .eev-narrow .eev-btn[aria-label]::after {
  content: attr(aria-label); position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 3px);
  padding: 5px 8px; color: #fff; font: 600 11px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap;
  border-radius: 6px; background: #1d2731; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease;
}
.eev-ico:hover::after, .eev-ico:focus-visible::after, .eev-narrow .eev-btn:hover::after, .eev-narrow .eev-btn:focus-visible::after {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.eev-btns > .eev-btn:last-child::after { left: auto; right: 0; transform: translate(0, 3px); }
.eev-btns > .eev-btn:last-child:hover::after, .eev-btns > .eev-btn:last-child:focus-visible::after { transform: translate(0, 0); }

/* Modo vídeo */
.eev-vid .eev-scene { right: 0; bottom: 0; width: 100%; height: 100%; transform: none; }
.eev-video-el { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.eev-video-el[hidden] { display: none; }

/* Modo plano de despiece */
.eev-plano { --eev-marca: 18px; }
.eev-plano.eev-zoom .eev-stage { touch-action: none; cursor: grab; }
/* En pantallas estrechas no caben todos los botones: ahí se amplía con dos dedos. */
.eev-plano.eev-narrow .eev-zoom-b { display: none; }
.eev-plano-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.eev-plano-base { position: absolute; inset: 0; transform-origin: 50% 50%; }
.eev-plano-real { opacity: 0; transition: opacity .25s; background: #fff; }
.eev-ver-real .eev-plano-real { opacity: 1; }
/* Animación: el producto montado se funde y las piezas salen a su sitio del plano. */
.eev-plano-anim { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.eev-plano-anim[hidden] { display: none; }
.eev-plano-pieza { position: absolute; display: block; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; user-select: none; -webkit-user-drag: none; }
.eev-plano-montado { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; will-change: opacity; }
/* Vídeo del despiece: su fotograma es más ancho que el plano y se sale por los lados (blanco sobre blanco). */
.eev-plano-video { position: absolute; display: block; max-width: none; margin: 0; object-fit: fill; background: #fff; pointer-events: none; }
.eev-vista {
  position: absolute; z-index: 4; left: 8px; top: 8px; display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}
.eev-vista[hidden] { display: none; }
.eev-vista-b {
  min-height: 34px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 17px; background: transparent;
  color: var(--eev-fg); font: 600 13px/1 system-ui, sans-serif; cursor: pointer;
}
.eev-vista-b[aria-pressed="true"] { background: var(--eev-acc); color: #fff; }
.eev-vista-b:focus-visible { outline: 3px solid var(--eev-focus); outline-offset: 1px; }
.eev-plano .eev-scene { background: #fff; box-shadow: 0 0 0 1px var(--eev-line); }
.eev-marca {
  position: absolute; left: 0; top: 0; width: var(--eev-marca); height: var(--eev-marca);
  margin: calc(var(--eev-marca) / -2) 0 0 calc(var(--eev-marca) / -2); padding: 0; border: 2px solid var(--eev-acc);
  border-radius: 50%; background: rgba(217, 72, 15, .08); color: transparent; font: 700 11px/1 system-ui, sans-serif;
  display: grid; place-items: center; cursor: pointer; pointer-events: auto;
}
.eev-marca::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.eev-marca:hover { background: rgba(217, 72, 15, .25); }
/* Hasta que llega el dibujo, ni números ni líneas: flotaban sueltos sobre el hueco vacío mientras cargaba. */
.eev-plano:not(.eev-ready) .eev-marca, .eev-plano:not(.eev-ready) .eev-plano-lineas { visibility: hidden; }
/* Con el aspecto real (que no trae números), o si el dibujo no trae el número impreso, la marca enseña su número. */
.eev-ver-real .eev-marca, .eev-marca.eev-num {
  background: #fff; color: var(--eev-acc); font-size: max(8px, calc(var(--eev-marca) * .55)); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.eev-ver-real .eev-marca:hover, .eev-marca.eev-num:hover { background: var(--eev-acc); color: #fff; }
/* En el móvil, sin ampliar, el plano entero no deja sitio para tantos números: puntos con su línea (el toque sigue
   abriendo la ficha) y los números al ampliar con dos dedos o desde la lista. */
.eev-plano.eev-narrow.eev-ver-real:not(.eev-zoom) .eev-marca:not(.eev-sel) {
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-width: 2px; font-size: 0; background: var(--eev-acc); box-shadow: 0 0 0 1px #fff;
}
/* Líneas de referencia del aspecto real, sacadas del dibujo (el dibujo ya trae las suyas). */
.eev-plano-lineas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.eev-ver-real .eev-plano-lineas { display: block; }
/* Un aspecto real ya limpio se muestra sin volver a cubrirlo de números y líneas; el plano técnico conserva ambos. */
.eev-ver-real.eev-real-limpio .eev-marca, .eev-ver-real.eev-real-limpio .eev-plano-lineas { display: none; }
.eev-real-limpio:not(.eev-ver-real) .eev-marca { opacity: 0; }
.eev-real-limpio:not(.eev-ver-real) .eev-marca:hover,
.eev-real-limpio:not(.eev-ver-real) .eev-marca:focus-visible,
.eev-real-limpio:not(.eev-ver-real) .eev-marca.eev-sel { opacity: 1; }
.eev-plano-lineas line { stroke: #2b3036; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.eev-plano-lineas circle { fill: var(--eev-acc); }
.eev-marca.eev-sel {
  z-index: 2; width: calc(var(--eev-marca) + 8px); height: calc(var(--eev-marca) + 8px);
  margin: calc(var(--eev-marca) / -2 - 4px) 0 0 calc(var(--eev-marca) / -2 - 4px);
  background: var(--eev-acc); color: #fff; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .35);
}
.eev-has-sel .eev-marca:not(.eev-sel) { opacity: .45; }
.eev-marca:focus-visible { outline: 3px solid var(--eev-focus); outline-offset: 2px; }
.eev-pop-ref { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #1d2430; font-variant-numeric: tabular-nums; }
.eev-buscar {
  display: block; width: 100%; min-height: 40px; margin: 0 0 6px; padding: 6px 10px; border: 1px solid var(--eev-line);
  border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
.eev-buscar:focus-visible { outline: 3px solid var(--eev-focus); outline-offset: 1px; }
.eev-list-plano { list-style: none; padding-left: 0 !important; }
.eev-list-plano li[hidden] { display: none; }
.eev-list-pos {
  display: inline-block; min-width: 26px; margin-right: 4px; padding: 1px 5px; border-radius: 10px;
  background: var(--eev-acc); color: #fff; font-size: 12px; text-align: center;
}
.eev-edit.eev-plano .eev-stage { cursor: crosshair; }

/* Ficha de producto: miniatura, botón sobre la foto y alojamiento del visor */
.eed-thumb { position: relative; display: block; padding: 0; overflow: hidden; cursor: pointer; background: #fff; }
.eed-thumb-li { list-style: none; }
.eed-thumb-li .eed-thumb { width: 100%; height: 100%; border: 3px solid transparent; }
.eed-thumb-li .eed-thumb.selected { border-color: var(--bs-primary, #24b9d7); }
.eed-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.eed-thumb:not(:has(img)) { min-width: 64px; min-height: 64px; }
.eed-thumb-ico {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: #d9480f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v6m0-6-3 3m3-3 3 3M12 21v-6m0 6-3-3m3 3 3-3'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.eed-thumb .eed-thumb-ico { position: absolute; top: 4px; right: 4px; }
.eed-thumb-t {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px; background: rgba(0, 0, 0, .64);
  color: #fff; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center;
}
.eed-thumb:focus-visible, .eed-abrir:focus-visible { outline: 3px solid #1d64d8; outline-offset: 2px; }
.eed-abrir {
  position: absolute; left: 12px; bottom: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .95);
  color: #1d2430; font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22); cursor: pointer;
}
.eed-on .eed-abrir { display: none; }
.eed-host { position: absolute; inset: 0; z-index: 6; }
.eed-host[hidden] { display: none; }
.eed-espera { display: grid; place-items: center; gap: 8px; height: 100%; background: #f4f3f0; color: #1d2430; font: 14px system-ui, sans-serif; }
.product-cover.eed-on > img, .product-cover.eed-on > .layer { visibility: hidden; }
.product__carousel.eed-on .carousel-control-prev, .product__carousel.eed-on .carousel-control-next,
.product__carousel.eed-on .product__zoom { visibility: hidden; }
/* Otros temas: la caja de la foto se posiciona para que el visor no se escape, y lo del tema (lupa, avisos) no asoma encima. */
.eed-cover-pos { position: relative; }
.eed-otro.eed-on > :not(.eed-host) { visibility: hidden; }
/* La foto crece hasta el alto mínimo del visor (el de .eea, más abajo): si no, el tema recorta la barra de botones. */
.eed-on { min-height: 520px; }
@media (max-width: 820px) { .eed-on { min-height: 620px; } }
@media (max-width: 520px) { .eed-on { min-height: 570px; } }

/* Pantalla completa */
.eed-dlg { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: #05090c; }
/* Cabecera de la ventana: título y dos salidas a la vista (botón «Cerrar» y X). */
.eed-dlg-cab { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 9px 12px 9px 18px; color: #f6f2ea; background: #0b1217; border-bottom: 1px solid rgba(255, 208, 139, .16); font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.eed-dlg-cab strong { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eed-dlg-cab .eev-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; color: #f6f2ea; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .07); font: inherit; cursor: pointer; }
.eed-dlg-cab .eev-btn:hover, .eed-dlg-cab .eev-btn:focus-visible { border-color: #f0ad55; background: rgba(240, 173, 85, .16); outline: none; }
.eed-dlg-x { width: 40px; padding: 0 !important; font-size: 24px; line-height: 1; }
.eea-close-viewer { position: absolute; top: 8px; right: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; color: #f7faf8; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; cursor: pointer; }
.eea-close-viewer .eea-symbol { font-size: 12px; }
.eea-close-viewer .eea-button-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.eea-controls:has(.eea-close-viewer) .eea-product { padding-right: 96px; }
.eea-expanded .eea-close-viewer { display: none; }
.eea-expanded .eea-controls .eea-product { padding-right: 3px; }
.eed-dlg-cuerpo { flex: 1 1 auto; min-height: 0; padding-bottom: env(safe-area-inset-bottom); }
.eed-sin-scroll, .eed-sin-scroll body { overflow: hidden; }

/* Lista de piezas sin JavaScript */
.eed-sinjs { margin: 1rem 0; }
.eed-sinjs h2 { font-size: 1.1rem; }
.eea {
  --eea-ink: #19231f;
  --eea-muted: #68736e;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  color: var(--eea-ink);
  background: #081016;
  border: 1px solid rgba(255, 201, 120, .16);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 24px 70px rgba(3,8,12,.32);
  isolation: isolate;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
.eea-stage, .eea-model, .eea-model > .eev, .eea-model .eev-stage { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.eea-stage { z-index: 1; }
.eea-model > .eev { border: 0; border-radius: 0; background: transparent; }
.eea-model .eev-stage { background: transparent; }
.eea-info { position: absolute; z-index: 12; top: 22px; left: 22px; width: min(350px, calc(38% - 22px)); pointer-events: none; }
.eea-kicker { display: block; margin-bottom: 6px; color: rgba(255,207,139,.78); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.48); }
.eea-title { margin: 0 0 14px; color: #f8f4ec; font-size: clamp(23px,2.2vw,37px); font-weight: 770; line-height: 1.02; letter-spacing: -.042em; text-shadow: 0 3px 14px rgba(0,0,0,.64); }
.eea-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 12px; }
.eea-metric { padding: 10px 11px 9px; color: #f7f3eb; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: linear-gradient(145deg, rgba(19,29,35,.88), rgba(10,17,22,.78)); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 9px 28px rgba(0,0,0,.18); backdrop-filter: blur(16px) saturate(1.25); }
.eea-metric-label { display: block; color: rgba(226,231,232,.56); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eea-metric-value { display: block; margin-top: 4px; color: #ffd08a; font-size: 14px; font-variant-numeric: tabular-nums; }
.eea-instruction { max-width: 326px; padding: 16px 18px; color: #f8faf8; border: 1px solid rgba(255,208,139,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(16,26,32,.95), rgba(9,16,21,.91)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 18px 48px rgba(0,0,0,.28); backdrop-filter: blur(20px) saturate(1.2); }
.eea-step-label { display: block; margin-bottom: 6px; color: #ffc978; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eea-step-title { display: block; margin-bottom: 5px; font-size: 15px; line-height: 1.25; }
.eea-step-text { margin: 0; color: rgba(248,250,248,.77); font-size: 12px; line-height: 1.45; }
.eea-current-part { display: block; margin-top: 10px; color: rgba(255,207,139,.82); font-size: 10px; font-weight: 700; }
.eea-manual-card { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 11px; width: 240px; margin-top: 11px; padding: 8px; color: #f4f1e9; text-align: left; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(12,21,27,.91); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 15px 38px rgba(0,0,0,.26); backdrop-filter: blur(18px); pointer-events: auto; cursor: pointer; }
.eea-manual-thumb { display: block; width: 86px; height: 58px; border-radius: 7px; background: #fff; }
.eea-manual-caption { font-size: 10px; font-weight: 750; line-height: 1.35; }
.eea-controls { position: absolute; z-index: 13; top: 22px; right: 22px; width: min(392px,calc(42% - 22px)); padding: 13px; color: #f7faf8; border: 1px solid rgba(255,208,139,.18); border-radius: 16px; background: linear-gradient(145deg, rgba(15,25,31,.96), rgba(8,15,20,.92)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 20px 55px rgba(0,0,0,.34); backdrop-filter: blur(22px) saturate(1.28); }
.eea-product { display: flex; align-items: baseline; gap: 8px; padding: 1px 3px 10px; border-bottom: 1px solid rgba(255,255,255,.11); }
.eea-product span { color: rgba(255,208,139,.62); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eea-product strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.eea-nav { display: grid; grid-template-columns: 34px 40px 34px minmax(0,1fr); align-items: center; gap: 6px; padding: 10px 0 8px; }
.eea button { font: inherit; }
.eea-icon, .eea-play, .eea-tool, .eea-view, .eea-close { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 9px; color: inherit; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.055); cursor: pointer; }
.eea button:hover, .eea button:focus-visible { border-color: rgba(255,201,120,.72); outline: none; }
.eea button:disabled { opacity: .34; cursor: default; }
.eea-play { color: #17130d; background: linear-gradient(145deg,#ffd895,#f0ad55); box-shadow: 0 5px 18px rgba(233,157,70,.28); }
.eea-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eea-symbol { font-size: 16px; line-height: 1; }
.eea-nav-title { min-width: 0; padding-left: 5px; overflow: hidden; color: rgba(248,250,248,.82); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.eea-timeline-wrap { padding: 5px 3px 9px; }
.eea-timeline { width: 100%; height: 3px; margin: 0; accent-color: #ffc978; cursor: pointer; }
.eea-ticks { display: flex; justify-content: space-between; margin-top: 5px; color: rgba(248,250,248,.45); font-size: 8px; font-variant-numeric: tabular-nums; }
/* Con el botón de la ayuda (voz, vídeo, cámara) la fila tiene que seguir cabiendo en una línea: si se parte en dos, el
   panel crece y el encuadre de la cámara se aleja para no quedar debajo. Si aun así no cabe, se parte (nunca se sale). */
.eea-tools { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: flex-end; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.11); }
.eea-tools .eea-tool { min-width: 30px; padding: 0 6px; }
/* Según el ancho del PANEL (no de la ventana: dentro de la ficha el visor es más estrecho que la pantalla): si no cabe
   con los textos, «Habitación» y «Plano» pasan a solo icono (el tooltip dice cuál es); y más estrecho aún, todo se
   compacta. Así la barra no pasa nunca a dos filas. Con los textos la fila mide unos 348 px y el panel de escritorio
   deja 364 de contenido: el margen absorbe fuentes más anchas (Linux, Mac). */
.eea-controls { container-type: inline-size; container-name: eea-controles; }
@container eea-controles (max-width: 359px) {
  .eea .eea-controls .eea-view .eea-button-text { display: none; }
  .eea .eea-controls .eea-view { min-width: 31px; padding: 0 6px; }
}
@container eea-controles (max-width: 300px) {
  .eea .eea-controls .eea-tools { gap: 2px; }
  .eea .eea-controls .eea-tools .eea-tool, .eea .eea-controls .eea-view { min-width: 26px; padding: 0 4px; }
  .eea .eea-controls .eea-views { gap: 2px; padding: 2px; }
}
.eea-views { display: flex; gap: 3px; margin-right: auto; padding: 3px; border-radius: 9px; background: rgba(0,0,0,.18); }
.eea-view { min-width: 58px; min-height: 29px; padding: 0 6px; border: 0; font-size: 10px; font-weight: 700; }
.eea-view .eea-button-text { position: static; width: auto; height: auto; margin-left: 5px; overflow: visible; clip: auto; }
.eea-view[aria-pressed=true], .eea-tool[aria-pressed=true], .eea-tool[aria-expanded=true] { color: #17130d; background: linear-gradient(145deg,#ffd895,#f0ad55); }
.eea:not(.eea-drawing) .eev-pill {
  height: 24px; line-height: 24px; padding: 0 8px; border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px; color: #f8f5ed; background: rgba(24,27,26,.92); box-shadow: 0 3px 12px rgba(0,0,0,.32);
  font-size: 11px;
}
.eea:not(.eea-drawing) .eev-dot { color: #fff6e8; background: rgba(13,21,26,.96); box-shadow: 0 0 0 2px #ffc978, 0 5px 16px rgba(0,0,0,.42); }
.eea:not(.eea-drawing) .eev-pill { opacity: 0 !important; visibility: hidden !important; }
.eea:not(.eea-drawing) .eev-hot:hover .eev-pill,
.eea:not(.eea-drawing) .eev-hot:focus .eev-pill,
.eea:not(.eea-drawing) .eev-hot:focus-visible .eev-pill { opacity: .98 !important; visibility: visible !important; }
.eea:not(.eea-drawing) .eea-kicker { color: rgba(248,244,235,.68); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.eea:not(.eea-drawing) .eea-title { color: #f7f2e9; text-shadow: 0 2px 8px rgba(0,0,0,.58); }
/* Tooltip de los iconos: al pasar el ratón (o con el foco del teclado) dice para qué es cada botón. Lee el
   aria-label, así que sigue los cambios («Reproducir»/«Pausa», «Ampliar»/«Reducir»). Va en ::before porque el
   ::after del botón de la ayuda ya es su punto de aviso. */
.eea .eea-icon, .eea .eea-play, .eea .eea-tool, .eea .eea-close, .eea .eea-view { position: relative; }
.eea .eea-icon[aria-label]::before, .eea .eea-play[aria-label]::before, .eea .eea-tool[aria-label]::before, .eea .eea-close[aria-label]::before,
.eea .eea-view[aria-label]::before {
  content: attr(aria-label); position: absolute; z-index: 40; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px);
  padding: 5px 8px; color: #17130d; font: 650 11px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none;
  white-space: nowrap; border-radius: 6px; background: #ffe3b4; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease;
}
.eea .eea-icon:hover::before, .eea .eea-play:hover::before, .eea .eea-tool:hover::before, .eea .eea-close:hover::before, .eea .eea-view:hover::before,
.eea .eea-icon:focus-visible::before, .eea .eea-play:focus-visible::before, .eea .eea-tool:focus-visible::before, .eea .eea-close:focus-visible::before,
.eea .eea-view:focus-visible::before {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
/* Los de la orilla derecha, alineados a la derecha (si no, se salen del visor); los del pie de un cajón, hacia arriba. */
.eea .eea-tools > .eea-tool:last-child::before, .eea .eea-drawer-head .eea-close::before { left: auto; right: 0; transform: translate(0, -3px); }
.eea .eea-tools > .eea-tool:last-child:hover::before, .eea .eea-tools > .eea-tool:last-child:focus-visible::before,
.eea .eea-drawer-head .eea-close:hover::before, .eea .eea-drawer-head .eea-close:focus-visible::before { transform: translate(0, 0); }
.eea .eea-manual-nav .eea-icon::before, .eea-phone .eea-controls [aria-label]::before { top: auto; bottom: calc(100% + 8px); }
/* Aviso de simulación (la maqueta sale del manual; el producto real puede verse distinto): siempre a la vista. */
.eea-aviso { display: flex; gap: 8px; align-items: flex-start; width: 240px; margin: 10px 0 0; padding: 8px 10px; color: #efe9df; font-size: 10.5px; line-height: 1.38; border: 1px solid rgba(255,201,120,.28); border-radius: 11px; background: rgba(12,21,27,.88); box-shadow: 0 10px 28px rgba(0,0,0,.22); backdrop-filter: blur(16px); pointer-events: auto; }
.eea-aviso-icono { flex: 0 0 16px; height: 16px; color: #17130d; font: 800 11px/16px Georgia, serif; text-align: center; border-radius: 50%; background: #ffc978; }
.eea-compact .eea-aviso { width: 100%; margin-top: 6px; padding: 5px 7px; font-size: 9px; line-height: 1.3; }
.eea-phone .eea-aviso { width: auto; max-width: calc(100% - 118px); font-size: 9.5px; cursor: pointer; }
/* En el móvil, dos líneas (lo esencial: «simulación orientativa hecha a partir del manual…»); al tocarlo se despliega. */
.eea-phone .eea-aviso-texto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eea-phone .eea-aviso.eea-aviso-abierto .eea-aviso-texto { display: block; -webkit-line-clamp: unset; overflow: visible; }
.eev-aviso { margin: 6px 10px 0; color: #5b5146; font-size: 11px; line-height: 1.4; }
/* Plano: papel claro, así que el título va en tinta (en blanco no se leía). */
.eea-drawing .eea-kicker { color: #8a4f0c; text-shadow: none; }
.eea-drawing .eea-title { color: #1d2731; text-shadow: none; }
.eea-drawing .eev-dot { color: #fff; background: #1d2731; box-shadow: 0 0 0 2px #f3bd6a, 0 3px 10px rgba(29,39,49,.25); }
.eea-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eea-inventory, .eea-manual-panel { position: absolute; z-index: 16; top: 18px; bottom: 18px; right: 18px; width: min(390px,calc(100% - 36px)); overflow: auto; color: var(--eea-ink); border: 1px solid rgba(25,35,31,.12); border-radius: 14px; background: rgba(250,249,245,.97); box-shadow: 0 22px 70px rgba(16,23,20,.28); backdrop-filter: blur(20px); }
.eea-drawer-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(25,35,31,.1); background: rgba(250,249,245,.96); }
.eea-close { min-width: 31px; min-height: 31px; padding: 0; color: var(--eea-ink); border-color: rgba(25,35,31,.13); background: rgba(25,35,31,.04); }
.eea-inventory-list { padding: 8px 14px 18px; }
.eea-inventory-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid rgba(25,35,31,.08); }
.eea-inventory-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #304037; border-radius: 8px; background: #e6e9df; }
.eea-inventory-name strong, .eea-inventory-name small { display: block; }
.eea-inventory-name strong { font-size: 12px; }
.eea-inventory-name small { margin-top: 2px; color: var(--eea-muted); font-size: 9px; }
.eea-inventory-qty { font-size: 11px; font-variant-numeric: tabular-nums; }
.eea-manual-canvas { display: block; width: calc(100% - 28px); height: auto; margin: 14px; border: 1px solid rgba(25,35,31,.1); border-radius: 8px; background: #fff; }
.eea-manual-steps { display: grid; gap: 5px; padding: 0 14px 10px; }
.eea-manual-step { padding: 9px 11px; color: var(--eea-ink); text-align: left; border: 1px solid rgba(25,35,31,.1); border-radius: 7px; background: #eef0e8; cursor: pointer; }
.eea-manual-nav { position: sticky; bottom: 0; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; padding: 10px 14px; text-align: center; border-top: 1px solid rgba(25,35,31,.1); background: rgba(250,249,245,.97); }
.eea-manual-nav .eea-icon { color: var(--eea-ink); border-color: rgba(25,35,31,.12); background: rgba(25,35,31,.04); }
.eed-host .eea-inventory, .eed-host .eea-manual-panel { top: var(--eed-safe-top, 18px); }
@media (min-width: 821px) {
  .eed-host .eea-info, .eed-host .eea-controls { top: var(--eed-safe-top, 22px); }
}
/* Visor estrecho dentro de la ficha: los paneles de arriba también bajan si la cabecera fija del tema los tapa. */
.eed-host .eea-compact:not(.eea-phone) .eea-controls { top: calc(var(--eed-safe-top, 22px) - 12px); }
.eed-host .eea-compact:not(.eea-phone) .eea-info { top: calc(var(--eed-safe-top, 22px) + 115px); }
.eed-host .eea-phone .eea-info { top: calc(var(--eed-safe-top, 22px) - 10px); }
.eea-expanded { min-height: 0; border-radius: 0; }
.eea-compact .eea-info { top: 137px; right: 10px; left: auto; width: 226px; }
.eea-compact .eea-kicker { margin-bottom: 2px; font-size: 7px; }
.eea-compact .eea-title, .eea-compact .eea-metrics, .eea-compact .eea-instruction { width: 100%; }
.eea-compact .eea-title { margin-bottom: 7px; font-size: 17px; line-height: 1.08; }
.eea-compact .eea-metrics { max-width: none; gap: 4px; margin-bottom: 7px; }
.eea-compact .eea-metric { padding: 5px 6px; }
.eea-compact .eea-metric-label { font-size: 6px; }
.eea-compact .eea-metric-value { margin-top: 2px; font-size: 11px; }
.eea-compact .eea-instruction { max-width: none; padding: 9px 10px; }
.eea-compact .eea-step-label { margin-bottom: 3px; font-size: 7px; }
.eea-compact .eea-step-title { margin-bottom: 3px; font-size: 12px; }
.eea-compact .eea-step-text { max-height: 42px; overflow: hidden; font-size: 9px; line-height: 1.35; }
.eea-compact .eea-current-part { display: none; }
.eea-compact .eea-manual-card { display: none; }
.eea-compact .eea-controls { top: 10px; right: 10px; bottom: auto; left: auto; width: 244px; padding: 8px; }
.eea-compact .eea-product { display: none; }
.eea-compact .eea-nav { padding-top: 0; }
.eea-compact .eea-nav { grid-template-columns: 29px 34px 29px minmax(0,1fr); gap: 4px; padding-bottom: 5px; }
.eea-compact .eea-nav-title { padding-left: 3px; font-size: 8px; }
.eea-compact .eea-timeline-wrap { padding: 2px 2px 5px; }
.eea-compact .eea-ticks span { display: none; }
.eea-compact .eea-ticks span:first-child, .eea-compact .eea-ticks span:last-child { display: inline; }
.eea-compact .eea-tools { gap: 3px; padding-top: 5px; }
.eea-compact .eea-icon, .eea-compact .eea-play, .eea-compact .eea-tool, .eea-compact .eea-view { min-width: 29px; min-height: 29px; padding: 0 6px; }
.eea-compact .eea-view { min-width: 44px; }
/* Los textos de «Habitación» y «Plano» los quita la consulta de contenedor (más arriba) cuando no caben, no el modo. */
.eea-compact .eea-inventory, .eea-compact .eea-manual-panel { top: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); }
.eea-phone .eea-kicker, .eea-phone .eea-title { max-width: calc(100% - 118px); }
.eea-phone .eea-info { top: 12px; left: 12px; width: calc(100% - 24px); }
.eea-phone .eea-title { width: auto; font-size: 19px; }
.eea-phone .eea-metrics { position: absolute; top: 0; right: 0; width: 112px; grid-template-columns: 1fr; gap: 3px; }
.eea-phone .eea-metric { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px; }
.eea-phone .eea-metric-value { margin: 0; font-size: 11px; }
.eea-phone .eea-instruction { width: calc(100% - 124px); min-width: 185px; padding: 10px 11px; }
.eea-phone .eea-step-text { max-height: 52px; overflow: hidden; font-size: 10px; }
.eea-phone .eea-current-part { display: none; }
.eea-phone .eea-controls { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; padding: 9px; }
.eea-phone .eea-nav { grid-template-columns: 31px 37px 31px minmax(0,1fr); }
.eea-phone .eea-tools { gap: 4px; }
.eea-phone .eea-icon, .eea-phone .eea-play, .eea-phone .eea-tool, .eea-phone .eea-view { min-width: 31px; min-height: 31px; padding: 0 7px; }
@media (max-width: 820px) {
  .eea { min-height: 620px; border-radius: 12px; }
  .eea-info { top: 12px; left: 12px; width: calc(100% - 24px); }
  .eea-title, .eea-metrics, .eea-instruction { width: 55%; }
  .eea-title { font-size: 22px; }
  .eea-metrics, .eea-instruction { max-width: 310px; }
  .eea-manual-card { display: none; }
  .eea-controls { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; }
  .eea-product { display: none; }
  .eea-nav { padding-top: 0; }
  .eea-view { min-width: 44px; }
  .eea-inventory, .eea-manual-panel { top: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); }
}
@media (max-width: 520px) {
  .eea { min-height: 570px; }
  .eea-kicker, .eea-title { max-width: calc(100% - 118px); }
  .eea-title { width: auto; font-size: 19px; }
  .eea-metrics { position: absolute; top: 0; right: 0; width: 112px; grid-template-columns: 1fr; gap: 3px; }
  .eea-metric { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px; }
  .eea-metric-value { margin: 0; font-size: 11px; }
  .eea-instruction { width: calc(100% - 124px); min-width: 185px; padding: 10px 11px; }
  .eea-step-text { max-height: 52px; overflow: hidden; font-size: 10px; }
  .eea-current-part { display: none; }
  .eea-controls { padding: 9px; }
  .eea-nav { grid-template-columns: 31px 37px 31px minmax(0,1fr); }
  .eea-tools { gap: 4px; }
  .eea-icon, .eea-play, .eea-tool, .eea-view { min-width: 31px; min-height: 31px; padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .eea *, .eea *::before, .eea *::after { scroll-behavior: auto !important; transition: none !important; }
}
