/* Celular de la demo animada (demo.js). */
.cm-phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  margin: 0 auto;
  padding: 12px;
  border-radius: 46px;
  background: #151515;
  box-shadow: 0 30px 60px -20px rgba(21, 21, 21, .45), inset 0 0 0 2px #2c2c2c;
}
.cm-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 12px; background: #151515; z-index: 3;
}
.cm-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 35px; background: #FAF8F3;
  padding: 46px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: 'Archivo', system-ui, sans-serif; color: #151515;
}
.cm-top { display: flex; flex-direction: column; gap: 2px; }
.cm-chip { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.cm-sub { font-size: 11px; color: #5E5B55; }
.cm-draw { width: 100%; border-radius: 14px; background: #efe9de; display: block; }
.cm-cota { font: 700 9px 'JetBrains Mono', ui-monospace, monospace; fill: #151515; }
.cm-meter {
  display: flex; align-items: baseline; justify-content: space-between;
  background: #151515; color: #FFC21A; border-radius: 12px; padding: 8px 12px;
}
.cm-meter-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #bdb8ad; }
.cm-price { font: 700 22px 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.cm-price.running { text-shadow: 0 0 12px rgba(255, 194, 26, .45); }
.cm-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; }
.cm-step { display: flex; align-items: center; gap: 6px; }
.cm-step b {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: #fff; border: 1px solid #E4DFD4;
  font-size: 18px; font-weight: 700; transition: transform .12s, background .12s;
}
.cm-step b.pressed { background: #FFC21A; border-color: #FFC21A; transform: scale(.92); }
.cm-step span { min-width: 64px; text-align: center; font: 700 14px 'JetBrains Mono', ui-monospace, monospace; }
.cm-fabrics, .cm-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-fab, .cm-opt {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; padding: 5px 8px; border-radius: 999px;
  background: #fff; border: 1px solid #E4DFD4; transition: all .18s;
}
.cm-fab i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.cm-fab.on, .cm-opt.on { background: #151515; color: #FAF8F3; border-color: #151515; }
.cm-opt.on::before { content: '✓'; color: #FFC21A; font-weight: 800; }
.cm-fab.pressed, .cm-opt.pressed, .cm-cta.pressed { transform: scale(.94); }
.cm-list {
  display: flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: 10.5px; color: #5E5B55; padding: 7px 9px;
  border: 1px dashed #E4DFD4; border-radius: 10px;
}
.cm-list i { width: 8px; height: 8px; border-radius: 50%; background: #15773F; box-shadow: 0 0 0 3px rgba(21, 119, 63, .15); flex: none; }
.cm-list b { color: #151515; font-weight: 600; }
.cm-cta {
  margin-top: auto; text-align: center; font-weight: 800; font-size: 13px;
  padding: 11px; border-radius: 12px; background: #FFC21A; color: #151515; transition: transform .12s;
}
.cm-toast {
  position: absolute; left: 14px; right: 14px; bottom: 64px;
  background: #151515; color: #FAF8F3; font-size: 11px; line-height: 1.35;
  padding: 10px 12px; border-radius: 12px; opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}
.cm-toast b { color: #3CCB7F; margin-right: 4px; }
.cm-toast.show { opacity: 1; transform: none; }
.cm-finger {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(21, 21, 21, .22); border: 2px solid rgba(21, 21, 21, .35);
  opacity: 0; pointer-events: none;
}
.cm-finger.tap { animation: cm-tap .5s ease-out; }
@keyframes cm-tap { 0% { opacity: 0; transform: scale(1.4); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.85); } }
.cm-pop { animation: cm-pop .35s cubic-bezier(.2, .9, .3, 1.2); transform-box: fill-box; transform-origin: center; }
@keyframes cm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.cm-unroll-go { animation: cm-unroll .6s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: top; }
@keyframes cm-unroll { from { transform: scaleY(.08); } to { transform: none; } }
.cm-note {
  position: absolute; bottom: -26px; left: 0; right: 0; text-align: center;
  font: 500 11px 'Archivo', system-ui, sans-serif; color: #5E5B55;
}
@media (prefers-reduced-motion: reduce) {
  .cm-pop, .cm-unroll-go, .cm-finger.tap { animation: none; }
}
