/* ==========================================================================
   Ecosistema en movimiento: del post del mes a la venta, en 8 pasos.
   Pieza autónoma. Necesita base.css (clase .iphone) y ecosistema-motion.js.
   Uso: EcosistemaMotion.montar(elemento, {rotulos:[8 textos]})
   Solo anima transform y opacity. Con reduced-motion queda estático, paso a paso.
   ========================================================================== */

.ecm{
  --ecm-fudo:#F0512A;
  --ecm-carta:#1D6A42;
  --ecm-estudio:#7C3AED;
  --ecm-ig:#14101F;
  --ecm-dur:3000ms;
  --ecm-ease:cubic-bezier(.2,.7,.2,1);
  display:grid;gap:20px;justify-items:center;width:100%;
  font-family:var(--f-cuerpo,"Inter",system-ui,sans-serif);color:var(--tinta,#14101F);
}
.ecm *,.ecm *::before,.ecm *::after{box-sizing:border-box}

/* ---------- Teléfono ---------- */
.ecm-escena{position:relative;display:grid;justify-items:center;gap:10px}
.ecm .iphone{--w-cel:min(74vw,300px);--w-max:330px;--reserva:96px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ecm .pantalla{font-size:calc(var(--w) * .044);line-height:1.3;background:#fff;user-select:none;-webkit-user-select:none}

.ecm-estado{
  position:absolute;z-index:4;left:0;right:0;top:0;height:3.4em;
  display:flex;align-items:center;justify-content:space-between;padding:0 1.6em 0 1.9em;
  font:700 .92em/1 var(--f-titulo,"Inter",sans-serif);color:var(--ecm-barra-tinta,#14101F);pointer-events:none;
  transition:color .3s;
}
.ecm-estado i{display:flex;gap:.3em;align-items:center}
.ecm-estado i b{display:block;width:1.1em;height:.62em;border:1.5px solid currentColor;border-radius:.2em;position:relative}
.ecm-estado i b::after{content:"";position:absolute;inset:1px;right:30%;background:currentColor;border-radius:1px}
.ecm-estado i s{display:block;width:.3em;height:.75em;background:currentColor;border-radius:1px;text-decoration:none}

.ecm-barras{
  position:absolute;z-index:4;left:.9em;right:.9em;top:3.5em;display:flex;gap:.25em;pointer-events:none;
}
.ecm-barras span{flex:1;height:.2em;border-radius:9px;background:rgba(20,16,31,.16);overflow:hidden;transition:background .3s}
.ecm-barras span b{display:block;height:100%;background:var(--ecm-barra-tinta,#14101F);transform:scaleX(0);transform-origin:left center;transition:background .3s}
.ecm-barras span.hecho b{transform:scaleX(1)}
.ecm-barras span.on b{animation:ecm-llena var(--ecm-dur) linear forwards}
.ecm.oscuro{--ecm-barra-tinta:#fff}
.ecm.oscuro .ecm-barras span{background:rgba(255,255,255,.32)}
@keyframes ecm-llena{to{transform:scaleX(1)}}

.ecm-pausa{
  position:absolute;z-index:5;left:50%;top:4.4em;transform:translate(-50%,-.4em);opacity:0;
  padding:.35em .9em;border-radius:99px;background:rgba(20,16,31,.82);color:#fff;
  font:700 .75em/1 var(--f-titulo,"Inter",sans-serif);letter-spacing:.02em;pointer-events:none;
  transition:opacity .25s,transform .25s var(--ecm-ease);
}
.ecm.pausado.usuario .ecm-pausa{opacity:1;transform:translate(-50%,0)}
/* En pausa se frena la barra y el dedo; las entradas del contenido terminan igual
   (si no, al elegir un paso en pausa la pantalla quedaba vacía). */
.ecm.pausado .ecm-barras span.on b,.ecm.pausado .ecm-dedo-in,.ecm.pausado .ecm-dedo-in::after{animation-play-state:paused}

/* ---------- Pantallas ---------- */
.ecm-pant{
  position:absolute;inset:0;overflow:hidden;background:#fff;
  opacity:0;transform:translateX(9%);visibility:hidden;
  transition:opacity .45s var(--ecm-ease),transform .45s var(--ecm-ease),visibility 0s .45s;
}
.ecm-pant.antes{transform:translateX(-9%)}
.ecm-pant.on{opacity:1;transform:none;visibility:visible;transition:opacity .45s var(--ecm-ease),transform .45s var(--ecm-ease),visibility 0s}
.ecm-cuerpo{position:absolute;inset:4.4em 0 0;display:flex;flex-direction:column}
.ecm-pant img{display:block;max-width:none}
.ecm-logo{width:2.2em;height:2.2em;border-radius:50%;flex:none}

/* 1. Post */
.ecm-ig-cab{display:flex;align-items:center;gap:.6em;padding:.5em .9em}
.ecm-ig-cab b{font-weight:700;font-size:.95em}
.ecm-ig-cab small{display:block;font-size:.78em;color:#6B6480}
.ecm-ig-cab .ecm-puntos{margin-left:auto;letter-spacing:.1em;color:#4A4560;font-weight:800}
.ecm-post-foto{width:100%;aspect-ratio:1;object-fit:cover;background:#EEEEF4}
.ecm-ig-acc{display:flex;gap:.9em;padding:.6em .9em .3em}
.ecm-ig-acc svg{width:1.45em;height:1.45em;fill:none;stroke:#14101F;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ecm-ig-acc .ecm-corazon{fill:#E0245E;stroke:#E0245E;transform:scale(0);animation:ecm-pop .5s var(--ecm-ease) .9s both}
.ecm-ig-acc .ecm-cora-wrap{position:relative;width:1.45em;height:1.45em}
.ecm-ig-acc .ecm-cora-wrap svg{position:absolute;inset:0}
.ecm-ig-acc .ecm-guardar{margin-left:auto}
.ecm-ig-txt{padding:0 .9em;font-size:.88em}
.ecm-ig-txt b{font-weight:700}
.ecm-ig-txt p{margin:.25em 0 0;color:#14101F}
.ecm-ig-txt small{display:block;margin-top:.35em;color:#6B6480;font-size:.9em}

/* 2. Perfil */
.ecm-perfil{padding:.6em 1em 0}
.ecm-perfil-cab{display:flex;align-items:center;gap:1em}
.ecm-perfil-cab .ecm-logo{width:4.4em;height:4.4em;box-shadow:0 0 0 .16em #fff,0 0 0 .32em #F0512A}
.ecm-stats{display:flex;flex:1;justify-content:space-around;text-align:center;font-size:.85em}
.ecm-stats b{display:block;font-size:1.15em;font-weight:800}
.ecm-perfil h4{margin:.7em 0 .1em;font:800 1em/1.2 var(--f-titulo,"Inter",sans-serif);letter-spacing:-.01em}
.ecm-perfil p{margin:0;font-size:.85em;color:#4A4560}
.ecm-link{display:inline-flex;align-items:center;gap:.3em;margin-top:.3em;font-size:.85em;font-weight:700;color:#00376B}
.ecm-perfil-btns{display:grid;grid-template-columns:1fr 1fr;gap:.4em;margin-top:.7em}
.ecm-perfil-btns span{display:grid;place-items:center;height:2.2em;border-radius:.6em;background:#EFEFF2;font-weight:700;font-size:.82em}
.ecm-perfil-btns span:first-child{background:#0095F6;color:#fff}
.ecm-grilla{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-top:.8em}
.ecm-grilla img{width:100%;aspect-ratio:1;object-fit:cover;background:#EEEEF4}

/* 3. Linktree: el de Rous Pizza (linktree/index.html), verde albahaca.
   Medidas pasadas de px (pantalla de 430) a em: 1px = .05em. */
.ecm-pant-lt{background:#fff}
.ecm-pant-lt .ecm-cuerpo{top:0}
.ecm-lt{display:flex;flex-direction:column;color:#14201A;font-family:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif}
.ecm-lt-cab{text-align:center;padding-bottom:.2em}
.ecm-lt-foto{aspect-ratio:16/9;background:#15161a;border-radius:0 0 1.4em 1.4em;overflow:hidden}
.ecm-lt-foto img{width:100%;height:100%;object-fit:cover}
.ecm-lt-logo{position:relative;width:4.2em;height:4.2em;margin:-2.1em auto 0;border:.2em solid #fff;border-radius:50%;background:#fff;box-shadow:0 .3em .8em -.4em rgba(20,40,25,.45)}
.ecm-lt h4{margin:.5em 0 0;padding:0 .8em;font:700 1.6em/1.15 Georgia,"Iowan Old Style","Times New Roman",serif;letter-spacing:-.01em;color:#14201A}
.ecm-lt-cab p{margin:.3em .8em 0;font-size:.75em;line-height:1.5;color:#4C5C52}
.ecm-lt-cab p span{display:block}
.ecm-lt-links{display:grid;gap:.6em;padding:.9em .8em 0}
.ecm-lt-btn{
  display:grid;grid-template-columns:2.2em minmax(0,1fr) auto;align-items:center;gap:.6em;
  min-height:3.2em;padding:.4em .8em .4em .5em;border:.075em solid #1D6A42;border-radius:99px;
  background:#1D6A42;color:#fff;text-align:left;
  opacity:0;transform:translateY(.6em);animation:ecm-sube .45s var(--ecm-ease) both;
}
.ecm-lt-btn i{display:grid;place-items:center;width:2.2em;height:2.2em;border-radius:50%;background:rgba(255,255,255,.2);color:inherit}
.ecm-lt-btn svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ecm-lt-btn i svg{width:1.2em;height:1.2em}
.ecm-lt-btn > span{display:grid;gap:.05em;min-width:0}
.ecm-lt-btn b{font-size:.8em;font-weight:800;line-height:1.25}
.ecm-lt-btn small{font-size:.7em;line-height:1.3;color:#E3F1E6}
.ecm-lt-fl{width:1em;height:1em;color:#fff}
.ecm-lt-btn.sec{background:#fff;color:#14201A}
.ecm-lt-btn.sec i{background:#E3F1E6;color:#1D6A42}
.ecm-lt-btn.sec small{color:#4C5C52}
.ecm-lt-btn.sec .ecm-lt-fl{color:#1D6A42}
.ecm-lt-btn:nth-child(1){animation-delay:.12s}
.ecm-lt-btn:nth-child(2){animation-delay:.2s}
.ecm-lt-btn:nth-child(3){animation-delay:.28s}
.ecm-lt-btn:nth-child(4){animation-delay:.36s}
.ecm-lt-btn:nth-child(5){animation-delay:.44s}
.ecm-lt-btn:nth-child(6){animation-delay:.52s}

/* 4. Carta QR */
.ecm-pant-qr .ecm-cuerpo{top:0}
.ecm-qr-img{width:100%;height:100%;object-fit:cover;object-position:top center;animation:ecm-scroll var(--ecm-dur) var(--ecm-ease) both}
.ecm-pant-qr::before{content:"";position:absolute;z-index:1;left:0;right:0;top:0;height:5em;background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,0))}
@keyframes ecm-scroll{0%,15%{transform:translateY(0)}55%,100%{transform:translateY(-8%)}}

/* 5. Pedido */
.ecm-pant-ped{background:#F4F7F3}
.ecm-ped{padding:.6em 1em 0;display:flex;flex-direction:column;gap:.55em;height:100%}
.ecm-ped-tit{display:flex;align-items:center;justify-content:space-between}
.ecm-ped-tit h4{margin:0;font:800 1.15em/1.2 var(--f-titulo,"Inter",sans-serif);letter-spacing:-.015em;color:#14201A}
.ecm-ped-tit span{font-size:.75em;font-weight:700;color:var(--ecm-carta);background:#E3F1E6;border-radius:99px;padding:.3em .7em}
.ecm-item{
  display:flex;align-items:center;gap:.7em;padding:.5em;border-radius:.9em;background:#fff;border:1px solid #DDE5DA;
  opacity:0;transform:translateX(1.2em);animation:ecm-entra .45s var(--ecm-ease) both;
}
.ecm-item:nth-of-type(1){animation-delay:.1s}
.ecm-item:nth-of-type(2){animation-delay:.45s}
.ecm-item:nth-of-type(3){animation-delay:.8s}
.ecm-item img{width:2.9em;height:2.9em;border-radius:.6em;object-fit:cover;background:#EEF3EC}
.ecm-item b{display:block;font-size:.88em;color:#14201A}
.ecm-item small{display:block;font-size:.76em;color:#4C5C52}
.ecm-item em{margin-left:auto;font-style:normal;font-weight:800;font-size:.85em;color:#14201A;background:#EEF3EC;border-radius:.5em;padding:.25em .55em}
.ecm-ped-dato{display:flex;gap:.5em;align-items:center;font-size:.8em;color:#4C5C52;padding:.2em .2em}
.ecm-ped-dato i{width:.6em;height:.6em;border-radius:50%;background:var(--ecm-carta)}
.ecm-btn-mp{
  margin-top:auto;margin-bottom:3.2em;display:grid;place-items:center;min-height:3em;border-radius:.9em;
  background:#009EE3;color:#fff;font-weight:800;font-size:.92em;
}

/* 6. Mercado Pago */
.ecm-pant-mp{background:#009EE3}
.ecm-mp{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5em;height:100%;padding:0 1.4em 4em;color:#fff;text-align:center}
.ecm-check{
  width:4.6em;height:4.6em;border-radius:50%;background:#fff;display:grid;place-items:center;
  transform:scale(0);animation:ecm-pop .55s var(--ecm-ease) .25s both;
}
.ecm-check svg{width:2.4em;height:2.4em;fill:none;stroke:#00A650;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.ecm-mp h4{margin:.5em 0 0;font:800 1.3em/1.15 var(--f-titulo,"Inter",sans-serif);color:#fff}
.ecm-mp p{margin:0;font-size:.85em;opacity:.92}
.ecm-mp-tarj{
  width:100%;margin-top:.9em;padding:.8em 1em;border-radius:.9em;background:#fff;color:#14101F;text-align:left;
  display:grid;gap:.35em;font-size:.82em;opacity:0;transform:translateY(.8em);animation:ecm-sube .45s var(--ecm-ease) .7s both;
}
.ecm-mp-tarj div{display:flex;justify-content:space-between;gap:.6em}
.ecm-mp-tarj span{color:#6B6480}
.ecm-mp-tarj b{font-weight:700}
.ecm-mp-btn{width:100%;margin-top:.7em;display:grid;place-items:center;min-height:2.8em;border-radius:.9em;border:1.5px solid rgba(255,255,255,.8);font-weight:800;font-size:.88em}

/* 7. Factura */
.ecm-pant-fac{background:#F7F7FA}
.ecm-fac{padding:.6em 1em 0}
.ecm-fac-tit{display:flex;align-items:center;gap:.5em;margin-bottom:.7em}
.ecm-fac-tit i{width:1.8em;height:1.8em;border-radius:.5em;background:var(--ecm-fudo);display:grid;place-items:center;color:#fff;font:800 .95em/1 var(--f-titulo,"Inter",sans-serif);font-style:normal}
.ecm-fac-tit b{font:800 1em/1.2 var(--f-titulo,"Inter",sans-serif)}
.ecm-fac-tit small{display:block;font-size:.75em;color:#6B6480;font-weight:500}
.ecm-hoja{
  position:relative;background:#fff;border:1px solid #E3E1EC;border-radius:.9em;padding:.9em 1em;
  box-shadow:0 1em 2em -1.4em rgba(20,16,31,.4);
  opacity:0;transform:translateY(1.2em);animation:ecm-sube .5s var(--ecm-ease) .1s both;
}
.ecm-hoja-cab{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:.6em;border-bottom:1px dashed #E3E1EC}
.ecm-hoja-cab b{font:800 1.05em/1.1 var(--f-titulo,"Inter",sans-serif)}
.ecm-hoja-cab span{display:grid;place-items:center;width:2em;height:2em;border:1.5px solid #14101F;border-radius:.35em;font-weight:800}
.ecm-hoja ul{list-style:none;margin:.6em 0;padding:0;display:grid;gap:.35em;font-size:.82em}
.ecm-hoja li{display:flex;justify-content:space-between;gap:.5em}
.ecm-hoja li span{color:#4A4560}
.ecm-hoja-pie{display:grid;gap:.25em;padding-top:.6em;border-top:1px dashed #E3E1EC;font-size:.75em;color:#6B6480}
.ecm-sello{
  position:absolute;right:.8em;top:3.6em;padding:.3em .7em;border:2px solid var(--ok,#15803D);border-radius:.4em;
  color:var(--ok,#15803D);font:800 .8em/1 var(--f-titulo,"Inter",sans-serif);letter-spacing:.06em;text-transform:uppercase;
  transform:rotate(-8deg) scale(1.6);opacity:0;animation:ecm-sello .4s var(--ecm-ease) 1s both;
}
@keyframes ecm-sello{to{opacity:1;transform:rotate(-8deg) scale(1)}}
.ecm-fac-mail{
  display:flex;align-items:center;gap:.5em;margin-top:.8em;padding:.6em .8em;border-radius:.8em;background:#E4F4EA;color:#14532D;
  font-size:.8em;font-weight:600;opacity:0;animation:ecm-aparece .4s var(--ecm-ease) 1.5s both;
}

/* 8. Venta */
.ecm-pant-ven{background:#FFF7F4}
.ecm-ven{padding:.8em 1em 0;display:flex;flex-direction:column;gap:.8em}
.ecm-ven-ok{display:flex;align-items:center;gap:.7em;padding:.8em;border-radius:1em;background:#fff;border:1px solid #F6D5CA}
.ecm-ven-ok .ecm-check{width:2.6em;height:2.6em;background:var(--ok,#15803D);animation-delay:.1s}
.ecm-ven-ok .ecm-check svg{width:1.4em;height:1.4em;stroke:#fff}
.ecm-ven-ok b{display:block;font:800 1em/1.2 var(--f-titulo,"Inter",sans-serif)}
.ecm-ven-ok small{font-size:.78em;color:#6B6480}
.ecm-graf{padding:.9em .9em .7em;border-radius:1em;background:#fff;border:1px solid #F6D5CA}
.ecm-graf-tit{display:flex;justify-content:space-between;align-items:baseline;font-size:.8em}
.ecm-graf-tit b{font:800 1.1em/1.2 var(--f-titulo,"Inter",sans-serif)}
.ecm-graf-tit span{color:var(--ok,#15803D);font-weight:800}
.ecm-barras-g{display:flex;align-items:flex-end;gap:.45em;height:8em;margin-top:.8em;border-bottom:1px solid #E3E1EC}
.ecm-barras-g i{
  flex:1;height:var(--h);border-radius:.35em .35em 0 0;background:#FBD3C6;
  transform:scaleY(0);transform-origin:bottom;animation:ecm-crece .6s var(--ecm-ease) both;
}
.ecm-barras-g i:last-child{background:var(--ecm-fudo)}
.ecm-barras-g i:nth-child(1){animation-delay:.3s}
.ecm-barras-g i:nth-child(2){animation-delay:.4s}
.ecm-barras-g i:nth-child(3){animation-delay:.5s}
.ecm-barras-g i:nth-child(4){animation-delay:.6s}
.ecm-barras-g i:nth-child(5){animation-delay:.7s}
.ecm-barras-g i:nth-child(6){animation-delay:.8s}
.ecm-barras-g i:nth-child(7){animation-delay:.95s}
.ecm-dias{display:flex;gap:.45em;margin-top:.35em;font-size:.68em;color:#6B6480}
.ecm-dias span{flex:1;text-align:center}
.ecm-flecha{
  display:flex;align-items:center;gap:.4em;font-size:.8em;font-weight:700;color:#9A3412;
  opacity:0;transform:translateY(.5em);animation:ecm-sube .4s var(--ecm-ease) 1.4s both;
}
.ecm-flecha svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

@keyframes ecm-pop{0%{transform:scale(0)}70%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes ecm-sube{to{opacity:1;transform:none}}
@keyframes ecm-entra{to{opacity:1;transform:none}}
@keyframes ecm-aparece{to{opacity:1}}
@keyframes ecm-crece{to{transform:scaleY(1)}}

/* Las animaciones internas solo corren en la pantalla activa */
.ecm-pant:not(.on) *{animation:none!important}

/* ---------- Dedo ---------- */
.ecm-dedo{position:absolute;z-index:6;left:var(--x,50%);top:var(--y,50%);width:0;height:0;pointer-events:none}
.ecm-dedo-in{
  position:absolute;left:-1.5em;top:-1.5em;width:3em;height:3em;border-radius:50%;
  background:rgba(255,255,255,.55);border:2px solid rgba(255,255,255,.95);
  box-shadow:0 .3em 1em rgba(20,16,31,.35),inset 0 0 0 .5em rgba(20,16,31,.12);
  opacity:0;transform:translate(1.4em,1.8em) scale(1.25);
}
.ecm-dedo-in::after{
  content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid #fff;opacity:0;transform:scale(1);
}
.ecm-dedo.tap .ecm-dedo-in{animation:ecm-dedo var(--ecm-dur) linear both}
.ecm-dedo.tap .ecm-dedo-in::after{animation:ecm-onda var(--ecm-dur) linear both}
@keyframes ecm-dedo{
  0%,62%{opacity:0;transform:translate(1.4em,1.8em) scale(1.25)}
  72%{opacity:1;transform:translate(0,0) scale(1.1)}
  80%{opacity:1;transform:translate(0,0) scale(.82)}
  86%{opacity:1;transform:translate(0,0) scale(1)}
  96%,100%{opacity:0;transform:translate(0,0) scale(1)}
}
@keyframes ecm-onda{
  0%,79%{opacity:0;transform:scale(1)}
  81%{opacity:.9;transform:scale(1)}
  95%,100%{opacity:0;transform:scale(2.4)}
}

/* ---------- Lista de pasos ---------- */
.ecm-lista{list-style:none;margin:0;padding:0;display:grid;gap:6px;width:100%;max-width:420px;counter-reset:eco}
.ecm-lista li{counter-increment:eco}
.ecm-paso{
  position:relative;display:grid;grid-template-columns:30px 1fr;gap:2px 10px;align-items:center;width:100%;
  min-height:48px;padding:8px 12px;border:1.5px solid var(--linea,#E3E1EC);border-radius:14px;
  background:var(--fondo,#fff);text-align:left;cursor:pointer;color:var(--tinta,#14101F);
  transition:border-color .25s,background-color .25s,transform .25s var(--ecm-ease);
  -webkit-tap-highlight-color:transparent;
}
.ecm-paso::before{
  content:counter(eco);grid-row:1 / span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:var(--sup-2,#EEEEF4);font:800 .875rem/1 var(--f-titulo,"Inter",sans-serif);color:var(--tinta-2,#4A4560);
  transition:background-color .25s,color .25s;
}
.ecm-paso b{font:700 .9375rem/1.25 var(--f-titulo,"Inter",sans-serif);letter-spacing:-.01em}
.ecm-paso small{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;color:var(--tinta-3,#6B6480)}
.ecm-paso small::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--marca)}
/* data-ecm-marca (no data-marca: motor.js rellena todo [data-marca] desde marca.js) */
.ecm-paso[data-ecm-marca="estudio"]{--marca:var(--ecm-estudio)}
.ecm-paso[data-ecm-marca="carta"]{--marca:var(--ecm-carta)}
.ecm-paso[data-ecm-marca="fudo"]{--marca:var(--ecm-fudo)}
.ecm-paso:hover{border-color:#CFCBE0}
.ecm-paso.hecho::before{background:color-mix(in srgb,var(--marca) 16%,#fff);color:var(--marca)}
.ecm-paso.on{border-color:var(--marca);background:color-mix(in srgb,var(--marca) 8%,#fff);transform:translateX(4px)}
.ecm-paso.on::before{background:var(--marca);color:#fff}
.ecm-paso:focus-visible{outline:3px solid var(--acento-fuerte,#5B21B6);outline-offset:2px}

/* ---------- Botones paso a paso (reduced-motion) ---------- */
.ecm-ctrl{display:none;align-items:center;justify-content:center;gap:10px;width:100%}
.ecm-ctrl button{
  min-width:48px;min-height:48px;padding:0 16px;border-radius:var(--r-btn,14px);border:1.5px solid var(--linea,#E3E1EC);
  background:var(--fondo,#fff);font-weight:700;cursor:pointer;color:var(--tinta,#14101F);
}
.ecm-ctrl button:disabled{opacity:.4;cursor:default}
.ecm-ctrl span{min-width:7em;text-align:center;font-weight:700;font-size:.9375rem;color:var(--tinta-2,#4A4560)}
.ecm.quieto .ecm-ctrl{display:flex}
.ecm.quieto .ecm-dedo,.ecm.quieto .ecm-pausa{display:none}
.ecm.quieto .iphone{cursor:default}

/* En celular la lista va en dos columnas compactas para no alargar la página */
@media (max-width:519px){
  .ecm-lista{grid-template-columns:1fr 1fr;max-width:none}
  .ecm-paso{grid-template-columns:24px 1fr;gap:1px 8px;padding:7px 8px;min-height:52px}
  .ecm-paso::before{width:24px;height:24px;font-size:.75rem}
  .ecm-paso b{font-size:.8125rem}
  .ecm-paso small{font-size:.6875rem}
  .ecm-paso.on{transform:none}
}

/* PC: lista al costado */
@media (min-width:900px){
  .ecm{grid-template-columns:auto minmax(280px,400px);justify-content:center;align-items:center;gap:56px;justify-items:stretch}
  .ecm-escena{justify-items:center}
  .ecm-lista{max-width:none;gap:8px}
  .ecm-ctrl{grid-column:1}
}

@media (prefers-reduced-motion:reduce){
  .ecm *,.ecm *::before,.ecm *::after{animation:none!important;transition:none!important}
  .ecm-pant *{opacity:1!important;transform:none!important}
  .ecm-sello{transform:rotate(-8deg)!important}
}
.ecm.quieto *,.ecm.quieto *::before,.ecm.quieto *::after{animation:none!important;transition:none!important}
.ecm.quieto .ecm-pant *{opacity:1!important;transform:none!important}
.ecm.quieto .ecm-sello{transform:rotate(-8deg)!important}
.ecm.quieto .ecm-barras span.on b{transform:scaleX(1)}
