/* ============================================================================
   Software POS e inventario (pos.php) — solo lo exclusivo de esta vista.
   Base: kondory-ui.css + kdx-components.css (svx-). Los hex sueltos son de los
   mockups, que imitan la app.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Modulos en pestañas
   --------------------------------------------------------------------------- */
.pos-mods__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto 32px;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--kdx-line);
  width: fit-content;
  max-width: 100%;
}

.pos-mods__tabs[hidden] { display: none; }

.pos-mods__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--kdx-body);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.pos-mods__tab:hover { color: var(--kdx-ink); background: var(--kdx-paper); }
.pos-mods__tab[aria-selected="true"] { background: var(--kdx-ink); color: #fff; }
.pos-mods__tab:focus-visible { outline: 2px solid var(--kdx-blue); outline-offset: 2px; }

.pos-mods__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.pos-mods__panel + .pos-mods__panel { margin-top: 56px; }
.pos-mods.is-js .pos-mods__panel + .pos-mods__panel { margin-top: 0; }
.pos-mods__panel[hidden] { display: none; }

@media (min-width: 992px) {
  .pos-mods__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

.main-wrapper .pos-mods__text h3 {
  margin: 0 0 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--kdx-ink);
}

.pos-mods__text p { margin: 0 0 20px; font-size: 1.04rem; line-height: 1.65; color: var(--kdx-body); }

.pos-mods__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.pos-mods__list li {
  display: flex;
  gap: 10px;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--kdx-ink);
}

.pos-mods__list i { color: var(--kdx-blue); font-size: 1.1rem; line-height: 1.3; }

/* Pantalla de ejemplo del modulo */
.pos-app {
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--kdx-line);
  font-family: 'Open Sans', system-ui, sans-serif;
}

.pos-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
}

.pos-app__bar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--kdx-ink);
}

.pos-app__bar strong i { color: var(--kdx-blue); }

.pos-app__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--kdx-blue);
  font-size: .74rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.pos-app__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 18px 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #c9d5e6;
  background: var(--kdx-paper);
}

.pos-app__label strong { display: block; font-size: .8rem; color: var(--kdx-ink); }
.pos-app__label small { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .72rem; color: #4a5a75; letter-spacing: .08em; }

/* Codigo de barras dibujado con CSS (sin texto) */
.pos-barcode {
  flex: 0 0 112px;
  height: 38px;
  background: repeating-linear-gradient(90deg,
    #0b1428 0 2px, transparent 2px 4px, #0b1428 4px 5px, transparent 5px 7px,
    #0b1428 7px 10px, transparent 10px 11px, #0b1428 11px 12px, transparent 12px 15px);
}

.pos-app__table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .8rem; }

.pos-app__table th {
  padding: 12px 18px 8px;
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  color: #7a8aa3;
  white-space: nowrap;
}

.pos-app__table td {
  padding: 11px 18px;
  border-top: 1px solid #eef2f7;
  color: var(--kdx-ink);
  white-space: nowrap;
}

.pos-app__table td:first-child { font-weight: 600; }
.pos-app__table .svx-pill { font-size: .66rem; }

/* ---------------------------------------------------------------------------
   Introduccion: lo que cambia en el dia a dia (lista bajo la definicion)
   --------------------------------------------------------------------------- */
/* v7: cada punto es una tarjeta */
.pos-what__list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pos-what__list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--kdx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px -24px rgba(8, 15, 36, .35);
  transition: border-color .2s ease, transform .2s ease;
}

.pos-what__list li:hover { border-color: rgba(37, 99, 235, .35); transform: translateY(-2px); }

.pos-what__list i { color: var(--kdx-blue); font-size: 1.2rem; line-height: 1.3; }
.pos-what__list strong { display: block; font-family: 'Poppins', system-ui, sans-serif; font-size: 1rem; font-weight: 600; color: var(--kdx-ink); }
.pos-what__list span { display: block; margin-top: 2px; font-size: .95rem; color: var(--kdx-body); }

/* ---------------------------------------------------------------------------
   Perfiles: comparativa sobre navy
   --------------------------------------------------------------------------- */
.pos-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 992px) {
  .pos-roles { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 72px; }
  .pos-roles__notes { grid-column: 1 / -1; }
}

.pos-roles__head .kdx-lead { margin-top: 16px; }
.pos-roles__wrap { overflow-x: auto; }

.pos-roles__table { width: 100%; border-collapse: collapse; color: #dbe5f6; }

.pos-roles__table thead th {
  padding: 0 10px 16px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--kdx-line-dark);
}

.pos-roles__table thead strong { display: block; font-family: 'Poppins', system-ui, sans-serif; font-size: 1rem; font-weight: 600; color: #fff; }
.pos-roles__table thead small { display: block; margin-top: 2px; font-size: .78rem; color: #8fa6c8; }

.pos-roles__table tbody th {
  padding: 15px 12px 15px 0;
  text-align: left;
  font-size: .98rem;
  font-weight: 400;
  color: #dbe5f6;
}

.pos-roles__table tbody td { padding: 15px 10px; text-align: center; }
.pos-roles__table tbody tr { border-bottom: 1px solid var(--kdx-line-dark); }
.pos-roles__table tbody tr:hover { background: rgba(255, 255, 255, .03); }

.pos-roles__yes { font-size: 1.15rem; color: var(--kdx-cyan); }
.pos-roles__no { font-size: 1.2rem; color: #4b5d7e; }

.pos-roles__own {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .14);
  font-size: .76rem;
  font-weight: 600;
  color: var(--kdx-cyan);
  white-space: nowrap;
}

.pos-roles__notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .pos-roles__notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* v7: cada nota es una tarjeta de vidrio sobre el navy */
.pos-roles__notes li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  font-size: .9rem;
  line-height: 1.6;
  color: #b8c9e4;
}
.pos-roles__notes strong { color: #fff; font-weight: 600; }

@media (max-width: 575px) {
  .pos-roles__table thead small { display: none; }
  .pos-roles__table thead strong { font-size: .78rem; }
  .pos-roles__table thead th { padding: 0 4px 12px; }
  .pos-roles__table tbody th { font-size: .84rem; }
  .pos-roles__table tbody td { padding: 12px 4px; }
  .pos-roles__own { white-space: normal; font-size: .68rem; padding: 2px 6px; }
}

/* ---------------------------------------------------------------------------
   Video demo
   --------------------------------------------------------------------------- */
.pos-video { max-width: 980px; margin-left: auto; margin-right: auto; background: var(--kdx-navy); }

@media (prefers-reduced-motion: reduce) {
  .pos-what__list li:hover { transform: none; }
}
