/* Punto de venta externo: estética de aplicación de escritorio */
.dashboard-card {
  border: 1px solid #aebdc0;
  border-radius: 6px;
  background: #e7ecee;
  box-shadow: 0 8px 24px rgba(41, 65, 69, 0.13);
  font-family: Arial, Helvetica, sans-serif;
}

.pos-window-bar {
  min-height: 36px;
  grid-template-columns: 42px 1fr auto;
  padding: 4px 8px;
  border-bottom: 1px solid #123e52;
  color: #e8f5f6;
  background: #19566f;
  font-size: 11px;
}

.window-controls {
  display: block;
}

.window-controls span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #83c9d4;
  color: #0a3035;
  background: #4fd6d6;
  font-size: 10px;
  font-weight: 700;
}

.pos-address {
  justify-self: start;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: none;
  text-align: left;
  font-weight: 700;
}

.external-badge {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.28);
  color: #e6ffff;
  background: rgba(0,0,0,0.12);
  font-size: 9px;
}

.classic-menu-bar {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #b7c2c4;
  color: #253033;
  background: #eef1f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
}

.classic-menu-bar div {
  height: 28px;
  display: flex;
  align-items: stretch;
}

.classic-menu-bar span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #c3cbcc;
}

.classic-menu-bar span:first-child {
  border-left: 1px solid #c3cbcc;
}

.classic-menu-bar strong {
  color: #5f6a6c;
  font-size: 8px;
}

.pos-app {
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 550px;
}

.pos-sidebar {
  padding: 0;
  border-right: 1px solid #bac4c6;
  color: #263538;
  background: #e8edef;
}

.pos-brand {
  min-height: 78px;
  padding: 13px 10px;
  border-bottom: 1px solid #c1cacc;
  background: #f8fafb;
}

.pos-brand > span {
  border: 1px solid #007f83;
  border-radius: 3px;
  color: #002c2e;
}

.pos-brand strong {
  color: #1e2a2c;
  font-size: 12px;
}

.pos-brand small {
  color: #657275;
  font-size: 9px;
}

.pos-nav {
  gap: 0;
  margin-top: 0;
}

.pos-nav span {
  min-height: 52px;
  padding: 8px 11px;
  border-bottom: 1px solid #c7d0d2;
  border-radius: 0;
  background: #f4f6f7;
  font-size: 11px;
}

.pos-nav span.active {
  color: #fff;
  background: #078f94;
}

.pos-nav b {
  font-size: 15px;
}

.pos-nav i {
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
}

.pos-connection {
  margin: auto 9px 12px;
  padding: 10px 5px 0;
  border-top: 1px solid #a5b0b2;
  color: #3d4d50;
}

.pos-main {
  color: #182527;
  background: #e4e8e9;
}

.dashboard-topbar {
  min-height: 74px;
  padding: 14px 17px;
  border-bottom: 1px solid #c0cacc;
  background: #fff;
}

.dashboard-topbar strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.pos-user > span {
  border: 1px solid #566669;
  border-radius: 3px;
  background: #667a7d;
}

.pos-user strong {
  font-size: 11px;
}

.dashboard-summary {
  gap: 0;
  padding: 9px;
  border-bottom: 1px solid #c4ced0;
  background: #edf1f2;
}

.dashboard-summary > div {
  padding: 13px 14px;
  border: 1px solid rgba(0,0,0,0.28);
  border-right: 0;
  border-radius: 0;
}

.dashboard-summary > div:last-child {
  border-right: 1px solid rgba(0,0,0,0.28);
}

.dashboard-summary .metric-teal { background: #079da1; }
.dashboard-summary .metric-amber { background: #dd8a27; }
.dashboard-summary .metric-violet { background: #6662ad; }

.dashboard-summary span,
.dashboard-summary small {
  font-size: 10px;
}

.dashboard-summary strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
}

.dashboard-table {
  padding: 12px 11px 10px;
}

.table-title {
  min-height: 47px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #939fa1;
  border-bottom: 0;
  background: #e9edef;
}

.table-title strong { font-size: 14px; }
.table-title span { font-size: 9px; }

.table-title button {
  border: 1px solid #006f73;
  border-radius: 2px;
  background: #11bfc3;
}

.table-head {
  min-height: 29px;
  padding: 6px 8px;
  border: 1px solid #899699;
  color: #263336;
  background: #d9e0e2;
  font-size: 9px;
}

.dashboard-row {
  min-height: 55px;
  margin: 0;
  padding: 7px 8px 7px 12px;
  border: 1px solid #a8b3b5;
  border-top: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
}

.dashboard-row:nth-child(even) { background: #eef3f4; }
.dashboard-row strong { font-size: 12px; }
.dashboard-row small { font-size: 9px; }

.order-type {
  min-height: 26px;
  border-color: #9ca9ab;
  border-radius: 2px;
  background: #edf1f2;
}

.order-state {
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 2px;
}

.dashboard-foot {
  border-top: 1px solid #8c9a9d;
  color: #3f4e51;
  background: #dce3e5;
}

/* Verticales futuras con dioramas 3D activados por scroll */
.verticals {
  position: relative;
  z-index: 4;
  padding: 120px 0 150px;
  overflow: clip;
  background:
    radial-gradient(circle at 18% 28%, rgba(var(--theme-accent-rgb), 0.13), transparent 28%),
    linear-gradient(145deg, #071011, #0b1719 58%, #071213);
  transition: background 700ms ease;
}

.vertical-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.verticals-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 95px;
}

.verticals-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -48px;
}

.verticals-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.verticals-heading > p:last-child {
  padding-bottom: 5px;
  color: #8fa2a4;
  font-size: 16px;
  line-height: 1.75;
}

.verticals-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(380px, 0.72fr);
  gap: 92px;
  align-items: start;
}

.vertical-visual {
  position: sticky;
  top: 115px;
  height: calc(100vh - 150px);
  min-height: 600px;
  max-height: 760px;
}

.model-shell {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: #0e191b;
  box-shadow: 0 40px 90px rgba(0,0,0,0.38), 0 0 55px rgba(var(--theme-accent-rgb), 0.08);
}

.model-topbar {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #687b7e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.model-topbar strong {
  color: #eefafa;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.model-progress {
  justify-self: end;
  display: flex;
  gap: 6px;
}

.model-progress i {
  width: 18px;
  height: 3px;
  background: #324447;
  transition: width 300ms ease, background 300ms ease;
}

.model-progress i.active {
  width: 30px;
  background: var(--accent);
}

.model-viewport {
  position: relative;
  height: calc(100% - 58px);
  overflow: hidden;
  perspective: 1100px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, #183033, #0a1416 68%);
  background-size: 42px 42px, 42px 42px, auto;
}

.model-glow {
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  opacity: 0.23;
  background: var(--accent);
  filter: blur(70px);
  animation: model-breathe 4s ease-in-out infinite alternate;
}

@keyframes model-breathe {
  to { opacity: 0.4; transform: scale(1.12); }
}

.model-scene {
  position: absolute;
  inset: 7% 4% 8%;
  opacity: 0;
  transform: translateY(35px) scale(0.9);
  transition: opacity 650ms ease, transform 850ms cubic-bezier(.2,.75,.25,1);
  pointer-events: none;
}

.model-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.diorama {
  position: absolute;
  inset: 9% 9% 14%;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  animation: diorama-float 5s ease-in-out infinite alternate;
}

@keyframes diorama-float {
  to { transform: rotateX(58deg) rotateZ(-35deg) translate3d(5px,-5px,12px); }
}

.iso-floor {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    #214145;
  background-size: 34px 34px;
  box-shadow: 18px 22px 0 #0a2023, 0 0 40px rgba(var(--theme-accent-rgb), 0.16);
}

.iso-wall {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  background: #315b60;
  font: 700 13px var(--font-body);
  letter-spacing: 0.1em;
}

.wall-back {
  top: 6%;
  left: 6%;
  width: 88%;
  height: 60px;
  transform-origin: top;
  transform: rotateX(-90deg);
}

.wall-side {
  top: 6%;
  left: 6%;
  width: 60px;
  height: 88%;
  transform-origin: left;
  transform: rotateY(90deg);
}

.iso-block {
  --block: #00bfc4;
  --side: #007c80;
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.2);
  color: #062a2c;
  background: var(--block);
  box-shadow: 10px 12px 0 var(--side), 14px 18px 16px rgba(0,0,0,0.25);
  transform: translateZ(24px);
}

.iso-block b {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.iso-figure {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 38px;
  border-radius: 9px 9px 4px 4px;
  background: #f1a24a;
  box-shadow: 5px 7px 0 #a65f1f;
  transform: translateZ(45px);
}

.iso-figure i {
  position: absolute;
  top: -14px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2c39d;
}

.reception-desk { left: 24%; bottom: 22%; width: 42%; height: 52px; }
.waiting-seat { --block: #7b77cb; --side: #4d498f; width: 46px; height: 42px; }
.seat-one { right: 18%; top: 31%; }
.seat-two { right: 18%; top: 52%; }
.clinic-screen { --block: #e6f6f6; --side: #8aa9aa; left: 17%; top: 18%; width: 95px; height: 48px; }
.figure-one { left: 43%; bottom: 30%; }
.figure-two { right: 31%; top: 37%; background: #5bc2cb; box-shadow: 5px 7px 0 #2b7d83; }
.scene-clinic .wall-back b { color: #fff; font-size: 34px; }

.exam-bed { --block: #eaf7f7; --side: #9bb9ba; right: 16%; top: 37%; width: 155px; height: 58px; }
.doctor-desk { left: 20%; bottom: 20%; width: 115px; height: 52px; }
.cabinet { --block: #83989b; --side: #536b6e; left: 17%; top: 23%; width: 62px; height: 72px; }
.office-screen { --block: #8c86d4; --side: #57519c; right: 19%; top: 17%; width: 94px; height: 44px; }
.doctor-figure { left: 38%; bottom: 33%; background: #4bbcc5; box-shadow: 5px 7px 0 #24757c; }
.patient-figure { right: 29%; top: 47%; }

.lift-post { --block: #dd8a27; --side: #91500c; width: 32px; height: 135px; }
.post-one { left: 27%; top: 26%; }
.post-two { right: 25%; top: 26%; }
.car-body { --block: #45b9c1; --side: #20747a; left: 31%; top: 43%; width: 205px; height: 78px; border-radius: 25px 35px 12px 12px; }
.car-body b { width: 85px; height: 35px; border-radius: 15px 22px 0 0; background: #173a3f; }
.tool-bench { --block: #6c66b3; --side: #423d80; left: 16%; bottom: 16%; width: 110px; height: 45px; }
.tire { --block: #263235; --side: #11191b; width: 40px; height: 40px; border-radius: 50%; }
.tire-one { right: 17%; bottom: 14%; }
.tire-two { right: 26%; bottom: 10%; }
.mechanic-figure { left: 18%; top: 35%; background: #e6a23f; box-shadow: 5px 7px 0 #965c13; }

.call-desk { --block: #e6f4f4; --side: #849fa1; width: 130px; height: 54px; }
.call-desk b { width: 55px; height: 26px; border: 4px solid #253f43; background: #00bfc4; }
.desk-one { left: 18%; top: 23%; }
.desk-two { right: 18%; top: 23%; }
.desk-three { left: 18%; bottom: 20%; }
.desk-four { right: 18%; bottom: 20%; }
.agent-one { left: 33%; top: 45%; background: #716cc1; box-shadow: 5px 7px 0 #454182; }
.agent-two { right: 27%; top: 24%; background: #ef9c38; box-shadow: 5px 7px 0 #9c5b0c; }
.agent-three { right: 32%; bottom: 14%; background: #4fc0c8; box-shadow: 5px 7px 0 #26767c; }

.model-caption {
  position: absolute;
  inset: auto 22px 18px;
  display: flex;
  justify-content: space-between;
  color: #53676a;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.model-caption small {
  color: #708487;
  font-size: 8px;
  letter-spacing: 0;
}

.vertical-chapters {
  display: flex;
  flex-direction: column;
}

.vertical-chapter {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 70px 38px;
  border-left: 1px solid #25383b;
  opacity: 0.36;
  transition: opacity 350ms ease, border-color 350ms ease;
}

.vertical-chapter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34484b;
  transition: background 350ms ease, box-shadow 350ms ease;
}

.vertical-chapter.active {
  border-left-color: rgba(var(--theme-accent-rgb), 0.5);
  opacity: 1;
}

.vertical-chapter.active::before {
  background: var(--accent);
  box-shadow:
    0 0 0 7px rgba(var(--theme-accent-rgb), 0.1),
    0 0 20px rgba(var(--theme-accent-rgb), 0.45);
}

.chapter-number {
  margin-bottom: 26px;
  color: #53686b;
  font-family: var(--font-head);
  font-size: 12px;
}

.chapter-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vertical-chapter h3 {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.vertical-chapter > p:not(.chapter-kicker) {
  margin-bottom: 25px;
  color: #8fa1a3;
  font-size: 14px;
  line-height: 1.75;
}

.vertical-chapter ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
  list-style: none;
}

.vertical-chapter li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bfcbcc;
  font-size: 12px;
}

.vertical-chapter li::before {
  content: "";
  width: 15px;
  height: 1px;
  background: var(--accent);
}

.chapter-status {
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid #2b4346;
  border-radius: 4px;
  color: #73888b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .verticals-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .vertical-visual {
    top: 90px;
    height: 580px;
    min-height: 0;
  }

  .vertical-chapter {
    min-height: 62vh;
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .classic-menu-bar div span:nth-child(n+4),
  .classic-menu-bar strong {
    display: none;
  }

  .pos-app {
    grid-template-columns: 1fr;
  }

  .pos-sidebar {
    border-right: 0;
    border-bottom: 1px solid #6e8185;
  }

  .pos-brand {
    min-height: 60px;
  }

  .pos-nav span {
    min-height: 42px;
  }

  .verticals {
    padding: 90px 0 100px;
  }

  .verticals-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 55px;
  }

  .verticals-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .verticals-heading h2 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .vertical-visual {
    top: 78px;
    height: 455px;
  }

  .model-shell {
    border-radius: 12px;
  }

  .model-topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 14px;
  }

  .model-topbar > span {
    display: none;
  }

  .model-progress {
    grid-column: 2;
  }

  .diorama {
    inset: 8% 2% 14%;
    transform: rotateX(58deg) rotateZ(-38deg) scale(0.82);
  }

  @keyframes diorama-float {
    to { transform: rotateX(58deg) rotateZ(-35deg) scale(0.82) translate3d(4px,-4px,8px); }
  }

  .vertical-chapter {
    min-height: 65vh;
    padding: 70px 8px 70px 28px;
  }
}

@media (max-width: 430px) {
  .pos-window-bar {
    grid-template-columns: 34px 1fr;
  }

  .pos-address {
    font-size: 9px;
  }

  .classic-menu-bar span {
    padding-inline: 7px;
  }

  .vertical-visual {
    height: 410px;
  }

  .model-caption {
    inset-inline: 12px;
  }

  .model-caption small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-glow,
  .diorama {
    animation: none !important;
  }
}
