.oys { position: relative; font-family: 'Mulish', system-ui, sans-serif; line-height: 1.35; color: #0B2C3F; }
.oys button { font: inherit; cursor: pointer; }
.oys button:disabled { cursor: default; }

.oys-coach-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 14px; }
.oys-coach { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #FFFFFF; }
.oys-coach b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #E8360B; font-size: 13px; }
.oys-coach.is-in { animation: oysIn .35s cubic-bezier(.16,1,.3,1); }
.oys-steps { margin: 0 0 14px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.oys-steps li { padding-top: 8px; border-top: 3px solid #3C5665; font-size: 12px; font-weight: 800; color: #9DABB2; transition: border-color .3s, color .3s; }
.oys-steps li.is-done { border-top-color: #15803D; color: #CED5D9; }
.oys-steps li.is-now { border-top-color: #E8360B; color: #FFFFFF; }
.oys-reset { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #3C5665; background: transparent; color: #CED5D9; font-size: 12.5px; font-weight: 700; }
.oys-reset:hover { color: #FFFFFF; border-color: #9DABB2; }
.oys-reset[hidden] { display: none; }

.oys-devices { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 18px; align-items: start; }

/* Tienda */
.oys-store { padding: 14px; border-radius: 22px; background: #FFFFFF; border: 6px solid #1A2632; box-shadow: 0 30px 60px rgba(0,0,0,.4); min-height: 470px; display: flex; flex-direction: column; }
.oys-store-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid #E5E9ED; }
.oys-store-head strong { font: 700 16px 'Outfit', system-ui, sans-serif; }
.oys-store-head span { font-size: 12px; color: #64748B; }
.oys-count-head, .oys-count { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 8px; }
.oys-count-head { padding: 4px 0; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9DABB2; }
.oys-count-head span:last-child { text-align: center; }
.oys-count { padding: 7px 0; border-bottom: 1px dashed #EEF1F4; }
.oys-prod { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 700; }
.oys-prod > i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #FFF4F0; color: #E8360B; font-size: 16px; }
.oys-prod > span { display: flex; flex-direction: column; min-width: 0; }
.oys-prod small { font-size: 10.5px; font-weight: 600; color: #9DABB2; }
.oys-step { display: inline-flex; align-items: center; gap: 6px; }
.oys-step b { min-width: 22px; text-align: center; font-size: 13px; }
.oys-step button { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #CED5D9; border-radius: 50%; background: #FFFFFF; color: #0B2C3F; font-size: 12px; }
.oys-step button:hover { border-color: #E8360B; color: #E8360B; }
.oys-sug { display: grid; place-items: center; height: 28px; border-radius: 8px; background: #E8360B; color: #FFFFFF; font-size: 13px; font-weight: 800; }
.oys-sug.is-zero { background: #EEF1F4; color: #9DABB2; }
.oys-formula { margin: 10px 0; font-size: 11.5px; color: #64748B; }
.oys-send { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 14px; background: #E8360B; color: #FFFFFF; font-size: 14px; font-weight: 800; }
.oys-send:disabled { background: #CED5D9; }
.oys-send:not(:disabled), .oys-order button.is-primary { animation: oysPulse 1.8s ease-out infinite; }
.oys-track { margin: 8px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.oys-track li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #9DABB2; }
.oys-track li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #EEF1F4; font-size: 15px; }
.oys-track li.is-done { color: #0B2C3F; }
.oys-track li.is-done i { background: #15803D; color: #FFFFFF; animation: oysPop .4s ease-out; }
.oys-ok { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #DCF2E5; color: #15803D; font-size: 13px; font-weight: 800; animation: oysIn .4s ease-out; }
.oys-lines { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed #E5E9ED; }
.oys-lines p { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #3C5665; }

/* Obrador */
.oys-panel { overflow: hidden; border-radius: 18px; background: #F4F6F8; border: 6px solid #1A2632; box-shadow: 0 30px 60px rgba(0,0,0,.4); min-height: 470px; display: flex; flex-direction: column; }
.oys-panel-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 14px; background: #0B2C3F; color: #FFFFFF; }
.oys-panel-top strong { font: 700 15px 'Outfit', system-ui, sans-serif; }
.oys-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: #14384D; }
.oys-tabs button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 0; border-radius: 999px; background: none; color: #CED5D9; font-size: 12px; font-weight: 800; transition: background .2s, color .2s; }
.oys-tabs button[aria-selected="true"] { background: #FFFFFF; color: #0B2C3F; }
.oys-dot { width: 7px; height: 7px; border-radius: 50%; background: #E8360B; }
.oys-panel-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.oys-sub { margin: 0 0 2px; font-size: 12.5px; color: #64748B; }
.oys-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #64748B; font-size: 13px; font-weight: 600; }
.oys-empty i { font-size: 36px; color: #9DABB2; animation: oysFloat 2s ease-in-out infinite; }
.oys-bar { position: relative; display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: #FFFFFF; overflow: hidden; font-size: 13px; font-weight: 700; }
.oys-bar span, .oys-bar b { position: relative; z-index: 1; }
.oys-bar b { font: 700 16px 'Outfit', system-ui, sans-serif; }
.oys-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, #FAD3C5, #F6AF9D); transition: width .7s cubic-bezier(.16,1,.3,1); animation: oysGrow .8s cubic-bezier(.16,1,.3,1); }
.oys-supplier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #FFFFFF; }
.oys-supplier div { display: flex; flex-direction: column; font-size: 12.5px; color: #3C5665; }
.oys-supplier strong { font-size: 14px; color: #0B2C3F; }
.oys-supplier button, .oys-order button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid #CED5D9; border-radius: 999px; background: #FFFFFF; color: #0B2C3F; font-size: 12px; font-weight: 800; }
.oys-supplier button:disabled { border-color: #DCF2E5; background: #DCF2E5; color: #15803D; }
.oys-order { position: relative; padding: 12px; border-radius: 12px; background: #FFFFFF; border-left: 4px solid #E8360B; box-shadow: 0 2px 10px rgba(11,44,63,.06); }
.oys-order.is-s1 { border-left-color: #F59E0B; }
.oys-order.is-s2 { border-left-color: #15803D; }
.oys-order.is-new { animation: oysDrop .5s cubic-bezier(.16,1,.3,1); }
.oys-order-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.oys-order-head b { font: 700 14px 'Outfit', system-ui, sans-serif; }
.oys-order-head span { font-size: 11.5px; color: #64748B; }
.oys-order-head em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #FFF0EB; color: #B42A08; }
.oys-order.is-s1 em { background: #FEF3C7; color: #92400E; }
.oys-order.is-s2 em { background: #DCF2E5; color: #15803D; }
.oys-order p { margin: 0 0 8px; font-size: 12.5px; color: #3C5665; }
.oys-order button.is-primary { border-color: #E8360B; background: #E8360B; color: #FFFFFF; }

.oys-flight { position: fixed; left: 0; top: 0; z-index: 80; display: flex; align-items: center; gap: 6px; height: 40px; margin: -20px 0 0 -20px; padding: 0 12px 0 10px; border-radius: 999px; background: #E8360B; color: #FFFFFF; font-size: 18px; box-shadow: 0 10px 24px rgba(232,54,11,.45); pointer-events: none; }
.oys-flight small { font-size: 12px; font-weight: 800; }
.oys-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #E8360B, #C52C07); color: #FFFFFF; box-shadow: 0 18px 40px rgba(232,54,11,.35); animation: oysIn .5s cubic-bezier(.16,1,.3,1); }
.oys-end[hidden] { display: none; }
.oys-end span { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-size: 14.5px; }
.oys-end small { color: rgba(255,255,255,.85); }
.oys-end button { padding: 10px 16px; border: 0; border-radius: 999px; background: #FFFFFF; color: #C52C07; font-size: 13.5px; font-weight: 800; }
.oy-demo-chip { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F0FAF4; color: #15803D; font-size: 13px; font-weight: 700; }
.oy-demo-chip[hidden] { display: none; }
.oys-note { margin: 16px 0 0; font-size: 12px; color: #9DABB2; }

@keyframes oysIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes oysDrop { from { opacity: 0; transform: translateY(-16px) scale(.97); background: #FFF0EB; } to { opacity: 1; transform: none; } }
@keyframes oysPop { 0% { transform: scale(.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes oysPulse { 0% { box-shadow: 0 0 0 0 rgba(232,54,11,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232,54,11,0); } }
@keyframes oysGrow { from { width: 0; } }
@keyframes oysFloat { 50% { transform: translateY(-4px); } }

@media (max-width: 760px) {
  .oys-devices { grid-template-columns: 1fr; }
  .oys-store, .oys-panel { min-height: 0; }
  .oys-panel-body { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .oys *, .oys-coach { animation: none !important; transition: none !important; }
}
