/* Smartwatches: escenas de "Lo que revisamos" (marcado y coordenadas en watches.js).
   Fotos de detalle 1440x960 en tarjeta opaca; 1cqw = 1 % del ancho de la foto.
   En la foto 3/4 de la muñeca la pantalla dibujada es un contenedor propio: dentro, 1cqw = 1 % del ancho del cristal.
   Estilo base = cuadro representativo (reduced-motion). */
@property --qsw-n{syntax:'<integer>';inherits:true;initial-value:78}

/* ---------- Tarjeta de foto ---------- */
.qc-stage:has(>:is(.qs-watches-touch,.qs-watches-battery,.qs-watches-heart,.qs-watches-crown,.qs-watches-signal,.qs-watches-lock,.qs-watches-erase,.qs-watches-software,.qs-watches-sparkle))>img{
  border-radius:3cqw;box-shadow:0 0 0 1px rgba(22,22,50,.06);filter:drop-shadow(0 18px 24px rgba(22,22,50,.14))}
.qc-scene:is(.qs-watches-touch,.qs-watches-battery,.qs-watches-heart,.qs-watches-crown,.qs-watches-signal,.qs-watches-lock,.qs-watches-erase,.qs-watches-software,.qs-watches-sparkle){border-radius:3cqw;overflow:hidden}

/* Aviso nativo (vidrio esmerilado) */
.qs-watches-toast{top:6%;right:4%;display:flex;align-items:center;gap:1.3cqw;padding:1.2cqw 2.4cqw 1.2cqw 1.2cqw;border-radius:2.2cqw;
  background:rgba(248,248,251,.82);-webkit-backdrop-filter:blur(14px) saturate(1.6);backdrop-filter:blur(14px) saturate(1.6);
  color:#55555e;font:500 2.1cqw/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Manrope,Arial,sans-serif;white-space:nowrap;
  box-shadow:0 1.2cqw 3.6cqw rgba(22,22,50,.16),0 0 0 1px rgba(255,255,255,.6) inset;animation:qsWToast 6s cubic-bezier(.2,.8,.2,1) infinite}
.qs-watches-toast b{display:block;color:#1d1d1f;font-size:2.55cqw;font-weight:650;letter-spacing:-.01em}
.qs-watches-toast em{font-style:normal}
.qs-watches-toast .ic{flex:none;display:grid;place-items:center;width:4.8cqw;height:4.8cqw;border-radius:1.3cqw;background:#6600ff}
.qs-watches-toast .ic svg{width:62%}
.qs-watches-toast.g .ic{background:#30d158}.qs-watches-toast.r .ic{background:#ff375f}.qs-watches-toast.b .ic{background:#0a84ff}
@keyframes qsWToast{0%,6%{opacity:0;translate:0 -1cqw}14%,90%{opacity:1;translate:0 0}100%{opacity:0;translate:0 0}}
.qc-scene .qs-tap{border-color:rgba(255,255,255,.95)}
@container (max-width:560px){
  .qs-watches-toast{font-size:3cqw;gap:1.8cqw;padding:1.6cqw 3cqw 1.6cqw 1.6cqw;border-radius:3cqw}
  .qs-watches-toast b{font-size:3.6cqw}.qs-watches-toast .ic{width:6.6cqw;height:6.6cqw;border-radius:1.8cqw}}

/* ---------- Pantalla y táctil ---------- */
.qs-watches-touch .glow{left:62.6%;top:40.2%;width:12cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.55),rgba(255,255,255,0) 62%);mix-blend-mode:screen;opacity:0;animation:qsWGlow 2.4s ease-out infinite}
.qs-watches-touch .qs-tap{left:62.6%;top:40.2%;--tw:4.6cqw;border-width:.3cqw;box-shadow:0 0 0 .3cqw rgba(102,0,255,.4);animation:qsWRip 2.4s cubic-bezier(.2,.7,.3,1) infinite}
.qs-watches-touch .t2{animation-delay:.25s}
@keyframes qsWRip{0%{opacity:0;scale:.5}12%{opacity:1;scale:.7}70%,100%{opacity:0;scale:2.4}}
@keyframes qsWGlow{0%{opacity:0}10%{opacity:1}60%,100%{opacity:0}}

/* ---------- Batería y carga ---------- */
.qs-watches-battery .ring{left:64.5%;top:41.5%;width:19cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(circle,rgba(48,209,88,0) 52%,rgba(48,209,88,.45) 64%,rgba(48,209,88,0) 74%);mix-blend-mode:screen;animation:qsWPulse 2.4s ease-in-out infinite}
.qs-watches-battery .n:before{counter-reset:qswn var(--qsw-n);content:counter(qswn) ' %'}
.qs-watches-battery .n{animation:qsWNum 6s cubic-bezier(.45,0,.25,1) infinite}
@keyframes qsWNum{0%,10%{--qsw-n:72}70%,100%{--qsw-n:80}}
@keyframes qsWPulse{0%,100%{opacity:.35;scale:.97}50%{opacity:1;scale:1.03}}

/* ---------- Sensores ---------- */
.qs-watches-heart .led{left:71.3%;top:44%;width:16cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(circle,rgba(70,255,120,.55),rgba(70,255,120,.16) 38%,rgba(70,255,120,0) 66%);mix-blend-mode:screen;animation:qsWLed .83s ease-in-out infinite}
.qs-watches-heart .l2{width:30cqw;opacity:.5;background:radial-gradient(circle,rgba(70,255,120,.22),rgba(70,255,120,0) 60%);animation-delay:.2s}
.qs-watches-heart .qs-watches-toast{left:4%;right:auto}
.qs-watches-heart .ic svg{animation:qsWBeat .83s ease-out infinite}
.qs-watches-heart .ecg{display:inline-block;vertical-align:middle;width:9cqw;height:2.2cqw;margin-left:1cqw}
.qs-watches-heart .ecg path{fill:none;stroke:#ff375f;stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;
  stroke-dasharray:100 200;animation:qsWEcg 1.66s linear infinite}
@keyframes qsWLed{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes qsWBeat{0%,100%{scale:1}14%{scale:1.22}30%{scale:.95}}
@keyframes qsWEcg{0%{stroke-dashoffset:100}100%{stroke-dashoffset:0}}
@container (max-width:560px){.qs-watches-heart .ecg{width:16cqw;height:3.2cqw}}

/* ---------- Corona y botones ---------- */
.qs-watches-crown .spin{left:69%;top:38.6%;width:15cqw;translate:-50% -50%;overflow:visible;transform:rotateY(58deg);animation:qsWSpin 3s cubic-bezier(.45,0,.25,1) infinite}
.qs-watches-crown .spin path{fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 .6cqw rgba(102,0,255,.8))}
.qs-watches-crown .trk{stroke-dasharray:4 7}
.qs-watches-crown .btn{left:62.4%;top:54.7%;--tw:5cqw;border-width:.3cqw;box-shadow:0 0 0 .3cqw rgba(102,0,255,.4);animation:qsWPress 3s ease-out infinite}
.qs-watches-crown .qs-watches-toast{left:4%;right:auto}
@keyframes qsWSpin{0%{rotate:0deg;opacity:0}12%{opacity:1}60%{rotate:200deg;opacity:1}75%,100%{rotate:220deg;opacity:0}}
@keyframes qsWPress{0%,68%{opacity:0;scale:.5}74%{opacity:1;scale:.75}100%{opacity:0;scale:2}}

/* ---------- Conectividad ---------- */
.qs-watches-signal .arc{left:0;top:0;width:100%;height:100%;overflow:visible}
.qs-watches-signal .arc path{fill:none;stroke:rgba(255,255,255,.95);stroke-width:2.4;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-dasharray:1.2 2.6;
  filter:drop-shadow(0 0 4px rgba(102,0,255,.9))}
.qs-watches-signal .dot{left:28%;top:39%;width:1.8cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:#fff;box-shadow:0 0 1.2cqw .4cqw rgba(102,0,255,.8);
  animation:qsWTravel 2.6s cubic-bezier(.45,0,.3,1) infinite}
.qs-watches-signal .qs-tap{--tw:9cqw;border-width:.3cqw;box-shadow:0 0 0 .3cqw rgba(102,0,255,.4);animation:qsWRip 2.6s ease-out infinite}
.qs-watches-signal .w{left:55.3%;top:60%;animation-delay:1.9s}.qs-watches-signal .p{left:25%;top:37%;--tw:13cqw}
@keyframes qsWTravel{0%{left:28%;top:39%;opacity:0}8%{opacity:1}20%{left:36.3%;top:27.5%}38%{left:44.9%;top:27.8%}56%{left:51.8%;top:38.1%}72%{left:55%;top:57%;opacity:1}82%,100%{left:55%;top:57%;opacity:0}}

/* ---------- Pantalla dibujada (bloqueos, borrado, software) ----------
   Fotos frontales (watches-qc-lock / -erase / -software) con el cristal apagado y recto: la pantalla se dibuja como un
   rectángulo redondeado sobre la zona negra; posición y radio llegan por variables desde watches.js (G). */
.qc-scene :is(.qs-watches-scr,.qs-watches-gl){left:var(--l);top:var(--t);width:var(--w);height:var(--h);border-radius:var(--rr)}
.qc-scene .qs-watches-scr{container-type:inline-size;background:#000;box-shadow:inset 0 0 .8cqw .5cqw #000}
.qc-scene .qs-watches-scr>*{position:absolute}
.qc-scene .qs-watches-gl{pointer-events:none;
  background:linear-gradient(150deg,rgba(255,255,255,.10),rgba(255,255,255,.03) 30%,rgba(255,255,255,0) 46%)}
.qs-watches-scr svg{overflow:visible}
.qs-watches-clk{top:9%;right:11%;font-size:10.5cqw;font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.qs-watches-hd{top:9%;left:11%;font-size:10.5cqw;font-weight:600}
.qs-watches-lk .qs-watches-hd{color:#8e8e93}.qs-watches-sw .qs-watches-hd{color:#30d158}
.qs-watches-lbl{left:6%;right:6%;text-align:center;font-size:10cqw;font-weight:500;color:#ebebf0;line-height:1.15}
.qs-watches-a,.qs-watches-b{left:4%;right:4%;text-align:center;font-size:12cqw;font-weight:600}

/* Bloqueos */
.qs-watches-pad{left:50%;top:24%;width:19cqw;translate:-50% 0}
.qs-watches-pad rect{fill:#30d158;animation:qsWPadC 4.5s ease-in-out infinite}
.qs-watches-shk{fill:none;stroke:#d1d1d6;stroke-width:4;stroke-linecap:round;transform-box:fill-box;transform-origin:0% 100%;transform:translateY(-4px) rotate(-28deg);animation:qsWShk 4.5s cubic-bezier(.5,0,.2,1.4) infinite}
.qs-watches-tick{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:0;animation:qsWTick 4.5s ease-out infinite}
.qs-watches-lk .qs-watches-lbl{top:49%;font-size:10.5cqw;line-height:1.1;color:#d1d1d6}
.qs-watches-st{left:0;right:0;top:76%;text-align:center;font-size:12.5cqw;font-weight:600;color:#30d158;animation:qsWFadeIn 4.5s ease infinite}
@keyframes qsWPadC{0%,30%{fill:#636366}42%,100%{fill:#30d158}}
@keyframes qsWShk{0%,28%{transform:none}40%,100%{transform:translateY(-4px) rotate(-28deg)}}
@keyframes qsWTick{0%,40%{stroke-dashoffset:20}55%,100%{stroke-dashoffset:0}}
@keyframes qsWFadeIn{0%,38%{opacity:0;translate:0 2cqw}52%,100%{opacity:1;translate:0 0}}

/* Borrado */
.qs-watches-ap{width:21cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;opacity:0;
  box-shadow:inset 0 1cqw 1.6cqw rgba(255,255,255,.3),inset 0 -1.2cqw 2cqw rgba(0,0,0,.25);animation:qsWGone 5s cubic-bezier(.5,0,.3,1) infinite both}
.qs-watches-ap:after{content:'';position:absolute;inset:33%;border-radius:50%;border:1cqw solid rgba(255,255,255,.92)}
.qs-watches-ap-a{background:linear-gradient(160deg,#ffb340,#ff7a00)}
.qs-watches-ap-b{background:linear-gradient(160deg,#5ac8fa,#0a6cff)}
.qs-watches-ap-c{background:linear-gradient(160deg,#ff6482,#e0244a)}
.qs-watches-ap-d{background:linear-gradient(160deg,#4cd964,#1fa344)}
.qs-watches-ap-f{background:linear-gradient(160deg,#c785ff,#7b2cff)}
.qs-watches-ap-g{background:linear-gradient(160deg,#8e8e93,#48484a)}
.qs-watches-ap-h{background:linear-gradient(160deg,#64d2ff,#1993d4)}
.qs-watches-ap-i{background:linear-gradient(160deg,#ff9f0a,#ff375f)}
.qs-watches-ap-j{background:linear-gradient(160deg,#30d158,#0a84ff)}
.qs-watches-ap-b:after,.qs-watches-ap-h:after{border-radius:22%}
.qs-watches-er .qs-watches-a{top:72%;color:#d1d1d6;opacity:0;animation:qsWErA 5s ease infinite}
.qs-watches-flash{inset:0;border-radius:inherit;background:radial-gradient(circle at 50% 46%,rgba(255,255,255,.9),rgba(255,255,255,.25) 30%,rgba(255,255,255,0) 58%);opacity:0;animation:qsWFlash 5s ease-out infinite}
.qs-watches-done{left:50%;top:26%;width:30cqw;translate:-50% 0;animation:qsWErB 5s ease infinite}
.qs-watches-done circle{fill:#30d158}
.qs-watches-done path{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.qs-watches-er .qs-watches-b{top:66%;color:#fff;animation:qsWErT 5s ease infinite}
.qs-watches-pb{left:26%;right:26%;top:88%;height:3.2cqw;border-radius:9cqw;background:#2c2c2e;overflow:hidden;opacity:0;animation:qsWErA 5s ease infinite}
.qs-watches-pb i{position:absolute;inset:0;border-radius:inherit;background:#fff;transform-origin:0 50%;animation:qsWPb 5s cubic-bezier(.45,0,.4,1) infinite}
@keyframes qsWPb{0%,10%{scale:0 1}52%,100%{scale:1 1}}
@keyframes qsWErT{0%,62%{opacity:0;translate:0 2cqw}72%,92%{opacity:1;translate:0 0}100%{opacity:0;translate:0 0}}
@keyframes qsWGone{0%{opacity:0;transform:scale(.7)}8%,20%{opacity:1;transform:none}48%,100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(0)}}
@keyframes qsWErA{0%,8%{opacity:0}14%,52%{opacity:1}58%,100%{opacity:0}}
@keyframes qsWFlash{0%,58%{opacity:0}62%{opacity:.55}70%,100%{opacity:0}}
@keyframes qsWErB{0%,62%{opacity:0;translate:-50% 2cqw}72%,92%{opacity:1;translate:-50% 0}100%{opacity:0;translate:-50% 0}}

/* Software */
.qs-watches-ring{left:20%;top:24%;width:60%}
.qs-watches-trk{fill:none;stroke:#2c2c2e;stroke-width:6}
.qs-watches-arc{fill:none;stroke:#30d158;stroke-width:6;stroke-linecap:round;stroke-dasharray:100 100;stroke-dashoffset:0;rotate:-90deg;transform-origin:50% 50%;animation:qsWSw 5s cubic-bezier(.45,0,.4,1) infinite}
.qs-watches-gear{left:50%;top:50%;width:24cqw;translate:-50% -50%;fill:#8e8e93;opacity:0;animation:qsWGear 5s linear infinite}
.qs-watches-chk{left:50%;top:50%;width:28cqw;translate:-50% -50%;fill:none;stroke:#30d158;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;animation:qsWChk 5s ease-out infinite}
.qs-watches-sw .qs-watches-a{top:78%;font-size:11cqw;color:#d1d1d6;opacity:0;animation:qsWShowA 5s ease infinite}
.qs-watches-sw .qs-watches-b{top:74%;font-size:13cqw;color:#fff;animation:qsWShowB 5s ease infinite}
.qs-watches-c{left:4%;right:4%;top:88%;text-align:center;font-size:9cqw;font-weight:500;color:#8e8e93;animation:qsWShowB 5s ease infinite}
@keyframes qsWShowA{0%,62%{opacity:1}70%,100%{opacity:0}}
@keyframes qsWShowB{0%,66%{opacity:0;translate:0 2cqw}76%,100%{opacity:1;translate:0 0}}
@keyframes qsWSw{0%{stroke-dashoffset:100;stroke:#fff}62%{stroke-dashoffset:0;stroke:#fff}72%,100%{stroke-dashoffset:0;stroke:#30d158}}
@keyframes qsWGear{0%{opacity:1;rotate:0deg}60%{opacity:1;rotate:240deg}66%,100%{opacity:0;rotate:260deg}}
@keyframes qsWChk{0%,64%{stroke-dashoffset:20;opacity:0}66%{opacity:1}78%,100%{stroke-dashoffset:0;opacity:1}}

/* ---------- Apariencia (foto de héroe v2/watches-qc-shine.webp, 1440x960) ----------
   Brillo que recorre el cristal (recortado a su forma) y un barrido suave de luz sobre caja y correa. */
.qc-scene .qs-watches-glass{left:34.6%;top:28.4%;width:17.2%;height:35.4%;border-radius:3.4cqw;overflow:hidden;clip-path:inset(0 round 3.4cqw)}
.qs-watches-glass i{position:absolute;top:-30%;left:22%;width:40%;height:160%;rotate:24deg;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.14) 40%,rgba(255,255,255,.3) 50%,rgba(255,255,255,.14) 60%,rgba(255,255,255,0));
  animation:qsWSheen 4.5s cubic-bezier(.45,0,.25,1) infinite}
.qs-watches-sweep{left:0;top:0;width:100%;height:100%;mix-blend-mode:soft-light;pointer-events:none;
  background:linear-gradient(110deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 45%,rgba(255,255,255,0) 60%) no-repeat;background-size:200% 100%;
  animation:qsWSweep 4.5s cubic-bezier(.45,0,.25,1) infinite}
.qc-scene .qs-watches-star{translate:-50% -50%;fill:#fff;filter:drop-shadow(0 0 .8cqw rgba(102,0,255,.9));animation:qsWStar 3.5s ease-in-out infinite}
@keyframes qsWSheen{0%{left:-70%}60%,100%{left:130%}}
@keyframes qsWSweep{0%{background-position:120% 0}60%,100%{background-position:-20% 0}}
@keyframes qsWStar{0%,100%{scale:.2;opacity:0}40%{scale:1;opacity:1;rotate:45deg}70%{scale:.4;opacity:0}}
