:root {
  --acc: #e5322d;
  --accs: #fdecea;
  --navy: #0f1838;
  --bg: #f1f2f5;
  --ink: #151a2d;
  --mut: #6b7184;
}
/* Mismo acento de la referencia para las cuatro marcas hasta confirmar los colores reales. */
[data-marca="Yuko"],
[data-marca="Goodday"],
[data-marca="NPX"],
[data-marca="Casa Orient"] { --acc: #e5322d; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Quicksand, system-ui, sans-serif;
}
h1, h2, h3, .qs { font-family: Quicksand, "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #2357e8; }

.lab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 800; }
.mut { color: var(--mut); }
.pill {
  border: 1px solid #dcdfe7; background: #fff; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.pill.dark { background: #111; color: #fff; border-color: #111; }
.pill.acc { background: var(--acc); color: #fff; border-color: var(--acc); }
.pill:disabled, .pill.off {
  background: #4a5272; color: #9aa1bb; border-color: #4a5272; cursor: not-allowed;
}
.chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.r { background: #fde7e7; color: #c62828; }
.g { background: #e3f6ec; color: #1d8a52; }
.a { background: #fff1dc; color: #b36200; }
.n { background: #eef0f4; color: #5b6176; }
.b { background: #e6efff; color: #1b48c9; }
.card { background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(20, 30, 60, .07); }
.btn {
  width: 100%; border: 0; border-radius: 18px; padding: 20px;
  font-size: 20px; font-weight: 800; background: #111; color: #fff;
}
.btn.acc { background: var(--acc); }
.btn:disabled { background: #c5c8d4; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #dcdfe7; }
.inp, .sel2, textarea.inp {
  width: 100%; border: 2px solid #dcdfe7; border-radius: 16px;
  padding: 14px 16px; font-size: 16px; background: #fff;
}
textarea.inp { min-height: 72px; resize: vertical; }
.err {
  background: #fde7e7; color: #c62828; border-radius: 14px;
  padding: 12px 14px; font-weight: 700;
}
.okb {
  background: #e3f6ec; color: #1d8a52; border-radius: 12px;
  padding: 8px 12px; font-size: 13px; font-weight: 700;
}
.warn {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: #fff1dc; color: #9a5400; font-weight: 700;
}

.desk { width: min(1440px, 100%); margin: 0 auto; padding: 26px 32px 40px; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dtop h1 { margin: 2px 0 0; font-size: 28px; }
.dtop-id { display: flex; align-items: center; gap: 12px; }
.logo-row { margin-bottom: 12px; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 4px 10px; line-height: 0;
  box-shadow: 0 1px 4px rgba(15, 24, 56, .12);
}
.logo-marca { height: 42px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.logo-chip.mini .logo-marca { height: 28px; max-width: 110px; }
.brand .logo-marca { height: 34px; max-width: 148px; }
.hero {
  background: linear-gradient(135deg, #0f1838, #1b2a5c); color: #fff;
  border-radius: 24px; padding: 28px 30px; display: grid;
  grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 18px;
  box-shadow: 0 10px 30px rgba(15, 24, 56, .25);
}
.hero.one { grid-template-columns: 1fr; }
.hero.follow { grid-template-columns: 1fr auto; align-items: center; }
.hero h2 { font-size: 40px; line-height: 1.12; margin: 12px 0 8px; }
.hero p { color: #c5cbe0; margin: 0; }
.tag {
  display: inline-block; background: rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 4px 12px; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase;
}
.inner { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #d8dcec; }
.row b { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.kpi { padding: 18px 20px; }
.kpi .v { font-size: 38px; font-weight: 800; margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kpi .h { font-size: 13px; color: var(--mut); }
.sec { margin-top: 22px; padding: 22px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sh h3 { margin: 0; font-size: 20px; }
.ag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ar { border: 1px solid #e6e8ee; border-radius: 16px; padding: 16px; background: #fff; }
.bar { height: 8px; background: #eef0f4; border-radius: 9px; margin: 10px 0; overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: 9px; background: #1d8a52; }
.av {
  width: 30px; height: 30px; border-radius: 50%; background: #e6e8ee; color: #5b6176;
  font-size: 11px; font-weight: 800; display: inline-grid; place-items: center;
  border: 2px solid #fff; margin-left: -8px; vertical-align: middle;
}
.av:first-child { margin-left: 0; }
.av.dark { background: #111; color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); padding: 10px; border-bottom: 1px solid #eceef2; }
td { padding: 12px 10px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.r1 { text-align: right; }
.seg { display: inline-flex; background: #fff; border: 1px solid #dcdfe7; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.seg button.on { background: #111; color: #fff; }
.feed div.fi { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f1f4; font-size: 13.5px; }
.wz { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.wz span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #8a90a2; }
.wz i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef0f4; font-weight: 800; }
.wz .on { color: var(--ink); }
.wz .on i { background: #111; color: #fff; }
.wz .ok { color: var(--ink); }
.wz .ok i { background: #1d8a52; color: #fff; }
.wz b { flex: 0 0 28px; height: 2px; background: #dcdfe7; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.drop { display: block; border: 2px dashed #b9c3dc; border-radius: 20px; padding: 34px; text-align: center; background: #f8faff; cursor: pointer; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.achip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid #dcdfe7; border-radius: 14px; padding: 10px 14px;
  font-weight: 700; font-size: 16px; margin: 0 10px 10px 0;
}
.achip .hd { color: #b4b9c6; cursor: grab; }
.achip button.x { border: 0; background: transparent; color: var(--mut); font-weight: 700; }
.asg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.az { border: 1.5px solid #e6e8ee; border-radius: 16px; padding: 14px; min-height: 120px; background: #fff; }
.az.vacio { border: 2px solid #f0a24a; background: #fffaf2; }
.pchip {
  display: inline-flex; gap: 6px; align-items: center; background: #111; color: #fff;
  border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; margin: 6px 6px 0 0;
}
.pchip button { border: 0; background: transparent; color: #fff; font-weight: 800; }
.split { display: grid; grid-template-columns: 2.1fr 1fr; gap: 18px; align-items: start; }
.wa {
  background: #efe7dd; border-radius: 16px; padding: 14px;
}
.wa .bub { background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.linkish { background: none; border: 0; color: #2357e8; font-weight: 700; font-size: 12.5px; padding: 0; }
.navs { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.tw { overflow-x: auto; }
.xt { min-width: 1200px; }
.xt td, .xt th { padding: 9px 7px; }
.exp td { background: #f7f8fb; }
.pair td { background: #eef7fd; }
.pair td:first-child { box-shadow: inset 4px 0 0 #00b0f0; }
.pairsum td { background: #dff1fb; font-weight: 700; }
.flow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.flow span { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 9px; background: #eef0f4; color: #8a90a2; }
.flow .done { background: #e3f6ec; color: #1d8a52; }
.flow .now { background: #111; color: #fff; }
.xlwrap { overflow: auto; border: 1px solid #d4d4d4; border-radius: 10px; }
.xl { font-family: Calibri, Arial, sans-serif; font-size: 12px; border-collapse: collapse; width: max-content; }
.xl td, .xl th { border: 1px solid #d4d4d4; padding: 3px 6px; white-space: nowrap; height: 20px; }
.xl th { background: #f3f3f3; color: #666; font-weight: 400; text-align: center; }
.xl .rn { background: #f3f3f3; color: #666; text-align: center; }
.xl .pk td:not(.rn) { background: #ffd1d1; }
.xl .bl td:not(.rn) { background: #00b0f0; }
.xl .tt td { font-weight: 700; }
.xl .n { text-align: right; }
.tabs { display: flex; font-family: Calibri, Arial, sans-serif; font-size: 12px; border-top: 1px solid #d4d4d4; }
.tabs button { border: 0; border-right: 1px solid #d4d4d4; background: #f3f3f3; padding: 5px 14px; }
.tabs button.on { background: #fff; color: #217346; font-weight: 700; box-shadow: inset 0 -2px 0 #217346; }

.phone {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.top { background: var(--navy); color: #fff; padding: 18px 20px 22px; }
.brand { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c5cbe0; }
.brand b { color: #fff; letter-spacing: .14em; font-size: 15px; }
.big { font-size: 30px; line-height: 1.12; font-weight: 700; margin: 14px 0 4px; }
.hl { color: #7cf0b4; }
.pad { padding: 18px 18px 28px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.dots { display: flex; gap: 12px; justify-content: center; }
.dot {
  width: 62px; height: 72px; border-radius: 16px; background: #fff;
  border: 2px solid #dcdfe7; display: grid; place-items: center;
  font-size: 34px; font-weight: 800;
}
.dot.on { border-color: #111; }
.kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kp button {
  background: #fff; border: 0; border-radius: 14px; padding: 16px 0;
  text-align: center; font-size: 28px; font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.stp { display: grid; grid-template-columns: 84px 1fr 84px; gap: 10px; align-items: center; }
.stp button { height: 84px; border-radius: 22px; border: 0; font-size: 44px; font-weight: 700; background: #eef0f4; }
.stp .plus { background: #111; color: #fff; }
.stp .qty {
  height: 84px; border-radius: 22px; background: #fff; border: 2px solid #111;
  display: grid; place-items: center; font-size: 46px; font-weight: 800;
}
.tog { display: grid; grid-template-columns: 1fr 1fr; background: #eef0f4; border-radius: 16px; padding: 4px; gap: 4px; }
.tog button { border: 0; background: transparent; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; font-size: 16px; color: #5b6176; }
.tog button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.tog button.av2.on { background: #fff1dc; color: #9a5400; }
.note { border: 1.5px dashed #c8cede; border-radius: 14px; padding: 12px 14px; font-size: 15px; background: #fff; width: 100%; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eceef2; font-size: 15px; }
.li:last-child { border: 0; }
.thumb, .photo {
  border-radius: 12px; background: linear-gradient(135deg, #dfe3ec, #f4f5f8);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.thumb { width: 44px; height: 44px; }
.thumb img, .photo img { width: 100%; height: 100%; object-fit: cover; }
.req { color: #c62828; font-weight: 800; font-size: 12px; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(15, 24, 56, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet {
  width: min(480px, 100%); background: #fff; border-radius: 28px 28px 0 0;
  padding: 22px 20px 26px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
}
.modal {
  position: fixed; inset: 0; background: rgba(15, 24, 56, .45);
  display: grid; place-items: center; padding: 18px; z-index: 30;
}
.modal .box { background: #fff; border-radius: 20px; padding: 22px; width: min(480px, 100%); }
.lb {
  position: fixed; inset: 0; background: rgba(10, 14, 30, .92); z-index: 40;
  display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 26px; color: #fff; overflow: auto;
}
.lb .side { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; align-self: start; }
.lb .side .row { color: #3a3f52; border-color: #eceef2; }
.lb .side .row b { color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  .desk { padding: 16px; }
  .hero, .hero.follow, .grid3, .split, .lb { grid-template-columns: 1fr; }
  .hero h2 { font-size: 28px; }
  .kpis, .ag, .asg { grid-template-columns: 1fr 1fr; }
  .kpi .v { font-size: 28px; }
  .sec { padding: 16px; }
  .pill { white-space: normal; }
}
@media (max-width: 640px) {
  .kpis, .ag, .asg { grid-template-columns: 1fr; }
}
