/* Precio escrito dentro de foto/video queda oculto por una capa OPACA. */
.sc-cover-rect{position:absolute;display:block;box-sizing:border-box;pointer-events:none;z-index:1;opacity:1!important;mix-blend-mode:normal!important;transform:none!important;box-shadow:none!important}
.sc-cover-rect.sc-cover-editable{pointer-events:auto;touch-action:none;cursor:move;outline:2px dashed #ffe360;outline-offset:-2px;z-index:1}
.sc-cover-rect.sc-cover-editable.sc-cover-selected{outline:3px solid #fff087;outline-offset:1px}
.sc-cover-rect .sc-cover-resize{position:absolute;right:-6px;bottom:-6px;width:19px;height:19px;border:2px solid #2d160a;border-radius:5px;background:#ffce38;cursor:nwse-resize;touch-action:none}
#scPriceLayersPanel{margin:12px 0;border:2px solid #dfad46;background:#332118;color:#fff;border-radius:12px;padding:12px;font:14px system-ui,Arial}
#scPriceLayersPanel h3{margin:0 0 8px;color:#ffde79}#scPriceLayersPanel h4{margin:11px 0 6px;color:#ffe09c}
#scPriceLayersPanel .sc-pl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;align-items:end;margin:8px 0}
#scPriceLayersPanel label{display:grid;gap:4px;color:#ffe9cc;font-size:12px;font-weight:700}
#scPriceLayersPanel input,#scPriceLayersPanel select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:7px;border:1px solid #b58c64;border-radius:6px;min-height:37px;font:14px system-ui;color:#1c0c05;background:#fff}
#scPriceLayersPanel input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#ffce36}
#scPriceLayersPanel input[type=color]{height:45px;padding:3px}
#scPriceLayersPanel .sc-pl-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
#scPriceLayersPanel button{border:0;border-radius:8px;padding:10px;background:#ffcc39;color:#271407;font-weight:750;cursor:pointer;white-space:normal}
#scPriceLayersPanel button.sc-pl-remove{background:#bd3838;color:white}
#scPriceLayersPanel small{display:block;line-height:1.45;color:#e8d1bd}
#scPriceLayersPanel .sc-pl-line{border:0;border-top:1px solid #9b744a;margin:13px 0}
#scLiveItems,#scBigItems,#labels{isolation:isolate}
#scLiveItems>.sc-live-price,#scBigItems>.sc-live-price{z-index:3}
#scLiveItems>.sc-cover-rect,#scBigItems>.sc-cover-rect{z-index:1}
/* La máscara debe estar por detrás de los precios, pero delante de la foto. */
#covers{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
#labels{z-index:5}
@media(max-width:540px){#scPriceLayersPanel{padding:8px}#scPriceLayersPanel .sc-pl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared price metrics: identical top-left anchor and scalable glyphs on all screens. */
#scHub .sc-price-unit,.sc-price-unit{line-height:1.05!important;font-weight:900;max-width:none!important;overflow:visible!important;white-space:pre-line!important;overflow-wrap:normal!important;border:0!important;box-sizing:border-box;text-align:center;padding:0!important}
#scHub .sc-price-unit .sc-tag-product,.sc-price-unit .sc-tag-product,.sc-price-unit .label-name{line-height:1.05!important}
#scHub .sc-price-unit .sc-tag-price,.sc-price-unit .sc-tag-price,.sc-price-unit .label-price{line-height:1.05!important;font-weight:900!important;white-space:nowrap!important}
.sc-price-sticker{max-width:none!important;overflow:visible!important}
.sc-sticker-number{display:block!important;touch-action:none}

#scHub .sc-price-main,.sc-price-main{padding:0!important;line-height:1.05!important}

/* Fondos con diseños independientes del texto: MISMA figura en editor y TV. */
.sc-bg-shaped{isolation:isolate!important;overflow:visible!important;box-sizing:border-box!important}
span.sc-bg-shaped{position:relative!important;display:inline-block!important}
.sc-bg-shaped::before,.sc-bg-shaped::after{content:"";position:absolute;pointer-events:none;z-index:-1;display:block;inset:0;background:var(--sc-bg-outer,#df1726);clip-path:var(--sc-bg-clip,inset(0 round .32em));transform:scale(var(--sc-bg-x,1),var(--sc-bg-y,1));transform-origin:50% 50%;border-radius:.32em}
.sc-bg-shaped::before{box-shadow:var(--sc-bg-shadow,none)}
.sc-bg-shaped::after{display:none}
.sc-bg-shaped.sc-bg-double::after{display:block;inset:.15em;background:var(--sc-bg-inner,#ffe21c);z-index:-1;transform:scale(calc(var(--sc-bg-x,1) * .94),calc(var(--sc-bg-y,1) * .85))}
.sc-bg-shaped.sc-bg-double::before{z-index:-2}
.sc-bg-shaped[data-sc-shape="neon"]::before{clip-path:none;border:3px solid var(--sc-bg-inner,#ffe21c);box-shadow:var(--sc-bg-shadow);}
.sc-bg-shaped.sc-bg-double[data-sc-shape="neon"]::after{clip-path:none;box-shadow:0 0 .2em var(--sc-bg-inner);}
#scHub .sc-bg-shaped.sc-price-unit{padding:var(--sc-bg-pad-y,.5cqw) var(--sc-bg-pad-x,1cqw)!important}

/* 16 temas navideños: la figura y el número permanecen unidos, no alteran el video. */
.sc-bg-shaped.sc-xmas{overflow:visible!important;white-space:nowrap!important;text-shadow:0 .035em .05em #0008!important}
.sc-bg-shaped.sc-xmas::before{clip-path:var(--sc-bg-clip,inset(0 round .32em));border:.085em solid var(--sc-xmas-border,#ffdf66);box-shadow:inset 0 .07em .1em #fff5,0 .08em .2em #0009,0 0 .16em var(--sc-xmas-glow,#fff4a6);background:var(--sc-xmas-paint,linear-gradient(125deg,#ae0014,#ed2a36 45%,#7e0010))!important}
.sc-bg-shaped.sc-xmas::after,.sc-bg-shaped.sc-bg-double.sc-xmas::after{content:attr(data-sc-holiday-icon);display:block!important;position:absolute;inset:auto -.37em auto auto;top:-.66em;background:transparent!important;border:0!important;clip-path:none!important;border-radius:0!important;box-shadow:none!important;transform:none!important;z-index:3!important;line-height:1;pointer-events:none;font-size:.75em;filter:drop-shadow(0 .05em .03em #0008)}
.sc-bg-shaped[data-sc-holiday="xmas-red"]{--sc-xmas-border:#ffe08b;--sc-xmas-glow:#ff9b51;--sc-xmas-paint:linear-gradient(135deg,#8c0012,#ed1428,#9a0013)}
.sc-bg-shaped[data-sc-holiday="xmas-snow"]{--sc-xmas-border:#edf8ff;--sc-xmas-glow:#6ed5ff;--sc-xmas-paint:linear-gradient(140deg,#004479,#20aeed,#00416c)}
.sc-bg-shaped[data-sc-holiday="xmas-green"]{--sc-xmas-border:#f3d377;--sc-xmas-glow:#8bd869;--sc-xmas-paint:linear-gradient(125deg,#07562c,#15995c,#004b29)}
.sc-bg-shaped[data-sc-holiday="xmas-candy"]{--sc-xmas-border:#fff;--sc-xmas-glow:#e33e37;--sc-xmas-paint:repeating-linear-gradient(125deg,#e32739 0 13%,white 13% 25%)}
.sc-bg-shaped[data-sc-holiday="xmas-gold"]{--sc-xmas-border:#fff3a4;--sc-xmas-glow:#ffc638;--sc-xmas-paint:linear-gradient(130deg,#98520b,#ffec91,#b66c0e)}
.sc-bg-shaped[data-sc-holiday="xmas-wood"]{--sc-xmas-border:#eee4c8;--sc-xmas-glow:#d7c5aa;--sc-xmas-paint:repeating-linear-gradient(0deg,#794220 0 12%,#9e6136 14% 24%,#6a361b 25% 32%)}
.sc-bg-shaped[data-sc-holiday="xmas-bells"]{--sc-xmas-border:#ffcf4b;--sc-xmas-glow:#ffc600;--sc-xmas-paint:linear-gradient(125deg,#681621,#e93535,#671023)}
.sc-bg-shaped[data-sc-holiday="xmas-lights"]{--sc-xmas-border:#ffed64;--sc-xmas-glow:#ffdf47;--sc-xmas-paint:linear-gradient(125deg,#801013,#ec2722 45%,#680c15)}
.sc-bg-shaped[data-sc-holiday="xmas-cookie"]{--sc-xmas-border:#fff7e6;--sc-xmas-glow:#e4ba74;--sc-xmas-paint:repeating-linear-gradient(45deg,#854112 0 12%,#b26e32 13% 23%)}
.sc-bg-shaped[data-sc-holiday="xmas-star"]{--sc-xmas-border:#fff1b7;--sc-xmas-glow:#ffbf27;--sc-xmas-paint:linear-gradient(100deg,#a67c17,#ffe79c,#c28709)}
.sc-bg-shaped[data-sc-holiday="xmas-white"]{--sc-xmas-border:#ffb72b;--sc-xmas-glow:#fcf6e3;--sc-xmas-paint:linear-gradient(130deg,#ffffff,#f8d9d9,#ffffff)}
.sc-bg-shaped[data-sc-holiday="xmas-tree"]{--sc-xmas-border:#ffcf49;--sc-xmas-glow:#45d86e;--sc-xmas-paint:linear-gradient(135deg,#044e28,#1c9a40,#0d572b)}
.sc-bg-shaped[data-sc-holiday="xmas-ice"]{--sc-xmas-border:#fff;--sc-xmas-glow:#5adfff;--sc-xmas-paint:linear-gradient(120deg,#0d5689,#c8f6ff,#2183bf)}
.sc-bg-shaped[data-sc-holiday="xmas-ribbon"]{--sc-xmas-border:#ffcf6b;--sc-xmas-glow:#f05253;--sc-xmas-paint:linear-gradient(130deg,#6b0016,#f63d36,#910012)}
.sc-bg-shaped[data-sc-holiday="xmas-holly"]{--sc-xmas-border:#ffefac;--sc-xmas-glow:#ff4e44;--sc-xmas-paint:linear-gradient(130deg,#2d672d,#a01d23 52%,#1e652a)}
.sc-bg-shaped[data-sc-holiday="xmas-magic"]{--sc-xmas-border:#ffd94f;--sc-xmas-glow:#ffe9ac;--sc-xmas-paint:linear-gradient(130deg,#a41a1c,#f3242f,#9a1b15)}
#scHolidayGallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;margin:10px 0}
#scHolidayGallery button{min-height:76px;background:linear-gradient(140deg,#b51821,#184b30);border:2px solid #e1ac42;border-radius:12px;color:white;font-size:13px;cursor:pointer;white-space:normal}
#scHolidayGallery button b{display:block;margin:5px auto;color:#fff3ab;font-size:23px;text-shadow:1px 2px #4b130a}
#scHolidayGallery button[aria-pressed="true"]{outline:3px solid #fff3a9}
/* Página de colores: paleta y colores personales borrables. */
#scColorGallery{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;background:#20140e;color:#fff;padding:clamp(12px,3vw,28px);z-index:2147483500;overflow:auto;font:16px system-ui,Arial}
#scColorGallery header{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#ffd65e;font-size:22px}
#scColorGallery h3{margin:22px 0 9px;color:#ffe5a4}#scColorGallery p{line-height:1.5}
#scColorGallery #scAllColors,#scColorGallery #scSavedColors{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:12px}
#scColorGallery .sc-swatch-wrap{position:relative;min-height:56px}
#scColorGallery .sc-swatch{display:block;border:2px solid #fff8;border-radius:10px;width:100%;height:56px;box-shadow:0 2px 7px #0007;cursor:pointer}
#scColorGallery .sc-swatch-delete{position:absolute;top:-8px;right:-5px;width:27px;height:27px;padding:0;background:#a10f1a;border:1px solid #fff;border-radius:99px;color:#fff;font:20px system-ui}
#scColorGallery .scColorActions{display:flex;gap:15px;flex-wrap:wrap;align-items:center;margin:18px 0}#scColorGallery button{padding:10px 12px;background:#ffd440;color:#20130c;border:0;border-radius:8px;font-weight:bold;cursor:pointer}
#scColorGallery #scColorMessage{color:#d7ffa6}
.sc-preset-box{border-top:1px solid #a57e4e;margin-top:18px;padding-top:12px}.sc-preset-box .sc-preset-row{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0}.sc-preset-box .sc-preset-row select,.sc-preset-box .sc-preset-row input{flex:2;min-width:140px}.sc-preset-box .sc-preset-row button{flex:1;min-width:130px}
#scPriceLayersPanel .sc-preset-box>label{display:flex;align-items:center;gap:10px}#scPriceLayersPanel .sc-preset-box>label input{width:22px}

/* Configuración por TV y conversor: controles adaptables a teléfono y PC. */
#scScreenPreferences,#scVideoCompatibility{border:2px solid #dfad46;color:#fff4dd;background:#332118;margin:14px 0;padding:16px;border-radius:12px;min-width:0}
#scScreenPreferences .sc-pl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
#scScreenPreferences label,#scVideoCompatibility label{display:grid;gap:6px;font-size:14px}
#scScreenPreferences input,#scScreenPreferences select,#scVideoCompatibility input,#scVideoCompatibility select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#scScreenPreferences input[type=checkbox]{width:22px;height:22px}
#scScreenPreferences input[type=color]{height:44px;padding:4px}
#scScreenPreferences .sc-pl-buttons,#scVideoCompatibility .sc-pl-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
#scScreenPreferences button,#scVideoCompatibility button{white-space:normal;min-height:44px;max-width:100%}
#scNextSample{overflow-wrap:anywhere}
@media(max-width:500px){#scScreenPreferences .sc-pl-grid{grid-template-columns:minmax(0,1fr)}#scScreenPreferences .sc-pl-buttons button,#scVideoCompatibility .sc-pl-buttons button{width:100%}}

/* Acciones junto a los controles existentes; cada grupo indica la TV destino. */
.sc-number-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px;border:1px solid #9a713d;border-radius:10px;background:#352216;color:#ffe7b7}
.sc-number-actions button{white-space:normal;min-height:44px;flex:1 1 150px;padding:10px;border-radius:8px}
.sc-number-actions small{display:block;width:100%;line-height:1.45}
.sc-number-actions label{display:grid;gap:7px;width:100%}
.sc-number-actions select{width:100%;max-width:100%;min-height:44px}
#scNumberSettingsStatus{min-height:2.8em;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
@media(max-width:500px){.sc-number-actions button{flex-basis:100%}}
