:root {
  --ink: #211913;
  --espresso: #1b130e;
  --tobacco: #7b4b2b;
  --copper: #b6814d;
  --linen: #f5efe5;
  --paper: #fffaf1;
  --sage: #717866;
  --olive: #39402e;
  --line: rgba(80, 55, 35, .16);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

.gh-theme {
  background: #f4efe6 !important;
  color: var(--ink) !important;
}

.brand-serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.app-shell {
  background:
    linear-gradient(90deg, rgba(36, 23, 15, .035), transparent 13rem),
    #f4efe6 !important;
  border-left: 1px solid rgba(122, 76, 44, .12);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(185, 129, 77, .12), transparent 17rem),
    #1b130e !important;
  color: #fffaf2 !important;
  box-shadow: 18px 0 45px rgba(31, 23, 17, .16);
}

.brand-mark,
.kiosk-emblem {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 250, 242, .18);
  background: rgba(255, 250, 242, .06);
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.nav-stack {
  display: grid;
  gap: .35rem;
}

.nav-link {
  color: rgba(255, 250, 242, .78);
  border: 1px solid transparent;
  border-radius: .55rem;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fffaf2;
  background: rgba(185, 129, 77, .16);
  border-color: rgba(185, 129, 77, .24);
}

.nav-link:hover {
  transform: translateX(2px);
}

.lux-card {
  background: rgba(255, 250, 241, .92) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 16px 40px rgba(36, 23, 15, .07);
}

.lux-card.compact {
  box-shadow: 0 10px 26px rgba(36, 23, 15, .06);
}

.lux-table thead {
  background: #231710;
  color: #fffaf2;
}

.lux-table tr {
  border-color: rgba(122, 76, 44, .16);
}

.lux-table th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lux-table td {
  vertical-align: middle;
}

.btn-primary {
  background: #7b4b2b;
  color: #fffaf2;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(122, 76, 44, .18);
}

.btn-primary:hover {
  filter: brightness(.96);
}

.btn-dark {
  background: #24170f;
  color: #fffaf2;
}

.camera-frame {
  aspect-ratio: 4 / 3;
  background: #17120d;
}

.field {
  border: 1px solid rgba(122, 76, 44, .25) !important;
  background: rgba(255, 253, 248, .86) !important;
  min-height: 2.65rem;
}

.field:focus {
  border-color: rgba(122, 76, 44, .55) !important;
  box-shadow: 0 0 0 3px rgba(185, 129, 77, .16);
  outline: none;
}

.kicker {
  color: var(--copper);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

table td,
table th {
  padding: .85rem;
}

tbody tr:hover {
  background: rgba(185, 135, 85, .07);
}

input::placeholder {
  color: rgba(36, 23, 15, .45);
}

pre {
  color: #24170f;
}

.kiosk-screen {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(27, 19, 14, .94) 0%, rgba(27, 19, 14, .86) 34%, transparent 34.2%),
    linear-gradient(135deg, #f8f3eb 0%, #eadccc 100%);
}

.kiosk-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 242, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .74), transparent 62%);
}

.kiosk-top,
.kiosk-hero,
.kiosk-panel {
  position: relative;
  z-index: 1;
}

.kiosk-brand {
  color: #d5a56c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kiosk-product {
  margin-top: .2rem;
  color: rgba(255, 250, 242, .82);
  font-size: .95rem;
  font-weight: 700;
}

.kiosk-time {
  color: #fffaf2;
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .95;
}

.kiosk-date {
  color: rgba(255, 250, 242, .6);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kiosk-hero h1 {
  color: #fffaf2;
  text-shadow: 0 16px 42px rgba(0, 0, 0, .2);
}

.kiosk-hero p {
  color: rgba(255, 250, 242, .68) !important;
}

.camera-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, .18);
  border-radius: .85rem;
  background: #17120d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  padding: .6rem;
}

.camera-shell .camera-frame {
  border-radius: .9rem;
}

.camera-badge {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 3;
  border: 1px solid rgba(255, 250, 242, .2);
  background: rgba(27, 19, 14, .72);
  color: rgba(255, 250, 242, .88);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .35rem .55rem;
  text-transform: uppercase;
}

.scan-line {
  position: absolute;
  left: .6rem;
  right: .6rem;
  top: 20%;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(213, 165, 108, .95), transparent);
  opacity: .75;
  animation: scanMove 2.8s ease-in-out infinite alternate;
}

@keyframes scanMove {
  from { transform: translateY(-2rem); }
  to { transform: translateY(18rem); }
}

.kiosk-panel {
  border: 1px solid rgba(255, 250, 242, .74);
  background: rgba(255, 250, 241, .88);
  box-shadow: 0 24px 70px rgba(36, 23, 15, .18);
  backdrop-filter: blur(14px);
}

.kiosk-button {
  background: #7b4b2b;
  box-shadow: 0 16px 34px rgba(122, 76, 44, .28);
  color: #fffaf2;
  font-weight: 800;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.kiosk-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(122, 76, 44, .34);
}

.kiosk-checks div {
  border: 1px solid rgba(122, 76, 44, .18);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .45);
  color: rgba(36, 23, 15, .7);
  font-weight: 700;
  padding: .55rem .35rem;
}

.kiosk-checks span {
  display: block;
  width: .45rem;
  height: .45rem;
  margin: 0 auto .35rem;
  border-radius: 999px;
  background: #7b8468;
}

.status-box {
  border: 1px solid rgba(185, 135, 85, .34);
  border-radius: .85rem;
  background: rgba(185, 135, 85, .12);
  color: #5b351e;
  font-size: .92rem;
  line-height: 1.35;
  padding: .85rem;
}

.result-box {
  border: 1px solid rgba(122, 76, 44, .14);
  background: rgba(255, 255, 255, .52);
  color: #24170f;
}

.admin-access {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(122, 76, 44, .18);
  border-radius: 999px;
  color: rgba(255, 250, 242, .55);
  font-size: .75rem;
  padding: .35rem .75rem;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.admin-access:hover {
  background: rgba(255, 250, 242, .1);
  border-color: rgba(255, 250, 242, .28);
  color: #fffaf2;
}

@media (max-width: 900px) {
  .sidebar {
    position: static !important;
    width: auto !important;
  }

  .app-shell {
    margin-left: 0 !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .kiosk-time {
    font-size: 3.5rem;
  }

  .camera-shell {
    border-radius: 1rem;
    padding: .45rem;
  }

  .kiosk-screen {
    background:
      linear-gradient(180deg, rgba(27, 19, 14, .94) 0%, rgba(27, 19, 14, .86) 24rem, transparent 24.2rem),
      linear-gradient(135deg, #f8f3eb 0%, #eadccc 100%);
  }

  .kiosk-product {
    color: rgba(255, 250, 242, .76);
  }
}

/* Kiosco GH: apariencia de dispositivo, no landing page generica. */
.kiosk-screen {
  background: #18110c;
}

.kiosk-device {
  background:
    linear-gradient(90deg, #1b130e 0 330px, #ede3d4 330px 100%);
}

.kiosk-rail {
  color: #fffaf2;
  border-right: 1px solid rgba(255, 250, 242, .08);
  background:
    linear-gradient(180deg, rgba(182, 129, 77, .1), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 250, 242, .035) 0 1px, transparent 1px 12px);
}

.kiosk-emblem {
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(213, 165, 108, .42);
  background: #24170f;
  color: #d5a56c;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 6px rgba(255, 250, 242, .035);
}

.kiosk-terminal-card {
  border-top: 1px solid rgba(255, 250, 242, .12);
  border-bottom: 1px solid rgba(255, 250, 242, .12);
  padding: 1.2rem 0;
}

.kiosk-terminal-card span,
.kiosk-meta span {
  display: block;
  color: rgba(255, 250, 242, .42);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kiosk-terminal-card strong {
  display: block;
  color: #fffaf2;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  margin-top: .45rem;
}

.kiosk-meta {
  display: grid;
  gap: 1rem;
}

.kiosk-meta div {
  border-left: 2px solid rgba(213, 165, 108, .5);
  padding-left: .8rem;
}

.kiosk-meta strong {
  display: block;
  color: rgba(255, 250, 242, .86);
  font-size: .95rem;
  margin-top: .25rem;
}

.kiosk-camera-zone {
  align-self: center;
}

.kiosk-camera-zone .kiosk-date {
  color: #7b4b2b;
}

.kiosk-camera-zone .kiosk-time {
  color: #211913;
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  font-variant-numeric: tabular-nums;
  margin-top: .25rem;
}

.camera-shell {
  border: 10px solid #24170f;
  border-radius: 0;
  background: #0f0d0a;
  box-shadow: 14px 14px 0 rgba(123, 75, 43, .16), 0 28px 70px rgba(33, 25, 19, .22);
  padding: .45rem;
}

.camera-shell .camera-frame {
  border-radius: 0;
  outline: 1px solid rgba(255, 250, 242, .12);
}

.camera-badge {
  border-radius: 0;
  background: #24170f;
  color: #d5a56c;
}

.kiosk-action {
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .76), rgba(255, 250, 242, .42)),
    #e5d6c5;
}

.kiosk-panel {
  width: 100%;
  border: 1px solid rgba(80, 55, 35, .18);
  border-radius: 0;
  background: #fffaf1;
  box-shadow: 10px 10px 0 rgba(123, 75, 43, .12);
  backdrop-filter: none;
}

.kiosk-panel h1 {
  color: #211913;
}

.kiosk-button {
  border-radius: 0;
  background: #24170f;
  box-shadow: none;
  letter-spacing: .01em;
}

.kiosk-button:hover {
  background: #7b4b2b;
  box-shadow: none;
  transform: none;
}

.kiosk-checks div,
.status-box,
.result-box {
  border-radius: 0;
}

.kiosk-checks div {
  background: #f4eadc;
}

.status-box {
  background: #efe2d0;
}

.result-box {
  background: #f8f1e8;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.admin-access {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 20;
  border-radius: 0;
  background: rgba(24, 17, 12, .72);
  color: rgba(255, 250, 242, .62);
}

@media (max-width: 900px) {
  .kiosk-device {
    display: block;
    background: #ede3d4;
  }

  .kiosk-rail {
    min-height: auto;
    background: #1b130e;
  }

  .kiosk-action {
    display: block;
  }
}

/* Kiosco Habana: base blanca, marca real y operacion directa. */
.kiosk-screen {
  min-height: 100vh;
  background: #ffffff;
  color: #1f1712;
}

.kiosk-screen::before {
  display: none;
}

.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: .85rem 2.2rem;
  border-bottom: 1px solid #ece6df;
  background: #ffffff;
}

.kiosk-lockup,
.kiosk-header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kiosk-header-status span {
  color: rgba(33, 25, 19, .52);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kiosk-logo {
  display: block;
  width: clamp(9rem, 15vw, 14rem);
  height: auto;
  object-fit: contain;
}

.kiosk-brand {
  color: #3a2419;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kiosk-product {
  color: #987146;
  font-size: .9rem;
  font-weight: 700;
}

.admin-access {
  position: static;
  border-radius: 999px;
  border: 1px solid #eee5dc;
  background: #ffffff;
  color: #8b7a6d;
  font-size: .78rem;
  padding: .45rem .8rem;
}

.admin-access:hover {
  background: #f8f4ef;
  border-color: #d8c8b6;
  color: #3a2419;
}

.kiosk-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.15rem 2rem;
}

.kiosk-camera-zone {
  align-self: start;
}

.kiosk-clockbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kiosk-date {
  color: #9b7448;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kiosk-time {
  color: #1f1712;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4.7rem, 9vw, 8.2rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: .92;
}

.kiosk-pill {
  border: 1px solid #ebe0d4;
  background: #faf7f3;
  color: #7b5a3b;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  padding: .55rem .75rem;
  text-transform: uppercase;
}

.camera-shell {
  border: 1px solid #e7ddd2;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(45, 32, 23, .1);
  padding: .55rem;
}

.camera-shell .camera-frame {
  border-radius: .8rem;
  outline: none;
}

.camera-badge {
  display: none;
}

.scan-line {
  left: .75rem;
  right: .75rem;
  background: linear-gradient(90deg, transparent, rgba(223, 164, 53, .72), transparent);
}

.kiosk-panel {
  align-self: center;
  border: 1px solid #e7ddd2;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(45, 32, 23, .08);
  padding: 1.6rem;
}

.kiosk-button {
  border-radius: .75rem;
  background: #2e1a10;
  box-shadow: none;
  color: #ffffff;
  font-weight: 900;
}

.kiosk-button:hover {
  background: #3a2419;
  transform: translateY(-1px);
}

.kiosk-checks div {
  border: 1px solid #eee5dc;
  border-radius: .75rem;
  background: #fbfaf8;
  color: #5b4a3d;
  font-weight: 800;
  padding: .7rem .4rem;
}

.kiosk-checks span {
  background: #dca12f;
}

.status-box,
.result-box {
  border-radius: .75rem;
}

.status-box {
  border: 1px solid #efdfc8;
  background: #fff8ed;
  color: #6a431f;
}

.result-box {
  border: 1px solid #ebe3da;
  background: #fbfaf8;
  color: #251a13;
}

.face-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(32vw, 270px);
  max-width: 42%;
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(248, 236, 217, .92);
  border-radius: 48% / 42%;
  box-shadow:
    0 0 0 999px rgba(33, 25, 19, .12),
    0 0 28px rgba(255, 196, 112, .28),
    inset 0 0 0 1px rgba(123, 75, 43, .7);
  pointer-events: none;
}

.face-guide::before,
.face-guide::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 56%;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(248, 236, 217, .75);
}

.face-guide::before {
  top: 34%;
}

.face-guide::after {
  top: 56%;
}

.camera-quality {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 5;
  border: 1px solid #e5d8ca;
  background: rgba(255, 255, 255, .94);
  color: #392418;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: .85rem 1rem;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(33, 25, 19, .12);
  pointer-events: none;
}

.camera-quality[data-status="ready"] {
  border-color: rgba(69, 128, 80, .42);
  background: rgba(236, 248, 231, .95);
  color: #244a2b;
}

.camera-quality[data-status="warn"] {
  border-color: rgba(167, 108, 59, .38);
  background: rgba(255, 244, 226, .95);
  color: #6e3e18;
}

.camera-quality[data-status="error"] {
  border-color: rgba(165, 60, 48, .45);
  background: rgba(255, 238, 234, .95);
  color: #8a2a1f;
}

@media (max-width: 900px) {
  .face-guide {
    width: min(54vw, 230px);
    max-width: 56%;
  }

  .camera-quality {
    left: .9rem;
    right: .9rem;
    bottom: .9rem;
    font-size: .78rem;
  }
}

@media (max-width: 900px) {
  .kiosk-header,
  .kiosk-header-status {
    align-items: flex-start;
  }

  .kiosk-header {
    gap: 1rem;
    padding: 1rem;
  }

  .kiosk-header-status {
    flex-direction: column;
    gap: .45rem;
  }

  .kiosk-workspace {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* Capa final de marca: blanco primero, Habana como acento. */
.gh-theme:has(.kiosk-screen) {
  background: #ffffff !important;
}

.admin-logo {
  display: block;
  width: 11.5rem;
  max-width: 100%;
  height: auto;
}

.kiosk-screen {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #faf8f5 100%) !important;
}

.kiosk-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eee7df !important;
  box-shadow: 0 8px 24px rgba(31, 23, 18, .04);
}

.kiosk-logo {
  display: block;
  width: clamp(10rem, 16vw, 15rem);
  height: auto;
  object-fit: contain;
}

.kiosk-brand {
  color: #2c1a10 !important;
}

.kiosk-product {
  color: #aa7a2d !important;
}

.kiosk-header-status span,
.kiosk-date,
.kicker {
  color: #9b6a28 !important;
}

.kiosk-workspace {
  max-width: 1280px !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 2.25rem !important;
}

.kiosk-time {
  color: #17110d !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(5rem, 9vw, 8.6rem) !important;
  font-weight: 900 !important;
}

.kiosk-pill,
.admin-access,
.kiosk-panel,
.camera-shell,
.result-box,
.status-box,
.kiosk-checks div {
  background: #ffffff !important;
}

.camera-shell,
.kiosk-panel {
  border: 1px solid #e9dfd4 !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 48px rgba(31, 23, 18, .08) !important;
}

.kiosk-panel {
  padding: 1.75rem !important;
}

.kiosk-button {
  background: #2b180f !important;
  border: 1px solid #2b180f !important;
  color: #ffffff !important;
}

.kiosk-button:hover {
  background: #3a2419 !important;
}

.face-guide {
  border-color: rgba(255, 255, 255, .95) !important;
  box-shadow:
    0 0 0 999px rgba(20, 13, 8, .11),
    0 0 0 6px rgba(220, 161, 47, .12),
    inset 0 0 0 1px rgba(220, 161, 47, .9) !important;
}

.camera-quality {
  background: rgba(255, 255, 255, .95) !important;
  border-radius: 12px !important;
}

@media (max-width: 900px) {
  .kiosk-header {
    align-items: flex-start !important;
    padding: 1rem !important;
  }

  .kiosk-logo {
    width: 8.75rem !important;
  }

  .kiosk-header-status span {
    display: none;
  }

  .kiosk-workspace {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
  }
}

/* Admin blanco: misma marca, menos peso visual. */
.gh-theme {
  background: #ffffff !important;
}

.sidebar {
  background: #ffffff !important;
  color: #24170f !important;
  border-right: 1px solid #ece5dc !important;
  box-shadow: 12px 0 32px rgba(36, 23, 15, .06) !important;
}

.sidebar > div:first-child {
  border-bottom-color: #eee6dc !important;
}

.sidebar .admin-logo {
  width: 12.5rem;
  filter: none;
}

.sidebar .kicker {
  color: #a8752d !important;
}

.sidebar .brand-serif {
  color: #24170f !important;
}

.sidebar .text-xs {
  color: #7f7166 !important;
}

.nav-link {
  color: #5b4f46 !important;
  border: 1px solid transparent !important;
  border-radius: .8rem !important;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  color: #24170f !important;
  background: #fbf7f1 !important;
  border-color: #eadccd !important;
}

.nav-link.active {
  box-shadow: inset 3px 0 0 #dca12f;
}

.app-shell {
  background: #ffffff !important;
  border-left: 0 !important;
}

.app-shell > div {
  max-width: 92rem !important;
}

.lux-card {
  background: #ffffff !important;
  border-color: #e9dfd4 !important;
  box-shadow: 0 14px 34px rgba(36, 23, 15, .055) !important;
}

.lux-table {
  background: #ffffff !important;
}

.lux-table thead {
  background: #fbf7f1 !important;
  color: #5a3824 !important;
  border-bottom: 1px solid #e8dccf;
}

.lux-table tbody tr {
  background: #ffffff !important;
}

.lux-table tbody tr:nth-child(even) {
  background: #fdfaf6 !important;
}

.lux-table tr {
  border-color: #eee5dc !important;
}

tbody tr:hover {
  background: #fff8ed !important;
}

.field {
  background: #ffffff !important;
  border-color: #ddd1c4 !important;
}

.btn-primary {
  background: #2b180f !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-dark {
  background: #f8f4ef !important;
  border: 1px solid #e6d8ca !important;
  color: #3a2419 !important;
}

@media (max-width: 900px) {
  .sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid #ece5dc !important;
  }

  .sidebar form {
    position: static !important;
    margin-top: 1rem;
  }

  .app-shell {
    padding: 1rem !important;
  }
}

/* Rediseno: estados con color semantico, paneles colapsables y tablero kanban. */
:root {
  --ok: #2e6b3e;
  --ok-bg: #eaf5ec;
  --ok-line: #cfe8d3;
  --warn: #8a5a12;
  --warn-bg: #fdf1de;
  --warn-line: #f0dcb6;
  --bad: #a53c30;
  --bad-bg: #fbeae7;
  --bad-line: #f0cec6;
  --info: #2f5f8a;
  --info-bg: #e9f1f8;
  --info-line: #cfe0ee;
  --muted: #6b6058;
  --muted-bg: #f2ede6;
  --muted-line: #e6ddd1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  padding: .32rem .65rem;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: currentColor;
}

.pill-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill-bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.pill-info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.pill-muted { color: var(--muted); background: var(--muted-bg); border-color: var(--muted-line); }

/* Paneles colapsables (formularios "crear nuevo" fuera del camino de la tabla) */
.gh-panel {
  border: 1px solid #e9dfd4;
  border-radius: .9rem;
  background: #ffffff;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.gh-panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1.15rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a3824;
  background: #fbf7f1;
}

.gh-panel > summary::-webkit-details-marker { display: none; }

.gh-panel > summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border-right: 2px solid #9a7a54;
  border-bottom: 2px solid #9a7a54;
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex: none;
}

.gh-panel[open] > summary::after {
  transform: rotate(-135deg);
}

.gh-panel > summary:hover {
  background: #f5efe4;
}

.gh-panel > .gh-panel-body {
  padding: 1.15rem;
  border-top: 1px solid #eee6dc;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #ddd1c4;
  color: #3a2419;
  font-weight: 700;
}

.btn-secondary:hover {
  background: #fbf7f1;
  border-color: #cbb89f;
}

/* Tablero kanban (Candidatos y similares) */
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: .9rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.kcol {
  display: flex;
  flex-direction: column;
  min-width: 230px;
  background: #fbf9f6;
  border: 1px solid #ece4d8;
  border-radius: .9rem;
  padding: .7rem;
}

.kcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
  padding: 0 .2rem;
}

.kcol-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5a3824;
}

.kcol-count {
  font-size: .72rem;
  font-weight: 800;
  color: #9a7a54;
  background: #f2e9db;
  border-radius: 999px;
  padding: .05rem .5rem;
}

.kcard {
  background: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: .7rem;
  padding: .65rem .75rem;
  margin-bottom: .6rem;
  box-shadow: 0 6px 16px rgba(36, 23, 15, .05);
}

.kcard-name {
  font-weight: 700;
  font-size: .86rem;
  color: #24170f;
}

.kcard-meta {
  font-size: .72rem;
  color: #8b7a6d;
  margin-top: .15rem;
}

.kcard-foot {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
}

.kcard-foot select {
  flex: 1;
  font-size: .72rem;
  padding: .3rem .4rem;
}

.kcard-foot a {
  font-size: .72rem;
  font-weight: 700;
  color: #7b4b2b;
  text-decoration: underline;
  white-space: nowrap;
}

.kcol-empty {
  font-size: .72rem;
  color: #a8987f;
  text-align: center;
  padding: .8rem 0;
}

/* ===================================================================
   Pasada 2 de modernizacion: radios mas amplios, sombras mas suaves,
   topbar con usuario, tarjetas con hover, navegacion tipo "pill".
   =================================================================== */

.gh-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #efe7db;
}

.gh-topbar-crumb {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #a8927a;
  text-transform: capitalize;
}

.gh-user-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem .9rem .35rem .35rem;
  border: 1px solid #ece2d3;
  border-radius: 999px;
  background: #ffffff;
}

.gh-avatar {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #2b180f, #4a2d1a);
  color: #f4dcae;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.gh-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gh-user-name {
  font-size: .82rem;
  font-weight: 700;
  color: #24170f;
}

.gh-user-role {
  font-size: .68rem;
  font-weight: 600;
  color: #a8792f;
  text-transform: capitalize;
}

/* Radios y sombras mas contemporaneos en tarjetas y contenedores */
.lux-card {
  border-radius: 1.1rem !important;
  box-shadow: 0 1px 2px rgba(36, 23, 15, .04), 0 12px 28px -8px rgba(36, 23, 15, .10) !important;
  transition: box-shadow .18s ease, transform .18s ease;
}

.lux-card.compact {
  border-radius: 1rem !important;
}

table.lux-table {
  border-radius: .85rem;
  overflow: hidden;
}

.lux-table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  letter-spacing: .09em;
}

.lux-table tbody tr {
  transition: background .12s ease;
}

/* Botones: radio amplio, transicion suave, foco visible */
.btn-primary,
.btn-dark,
.btn-secondary {
  border-radius: .85rem !important;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, filter .14s ease;
}

.btn-primary:active,
.btn-dark:active,
.btn-secondary:active {
  transform: scale(.98);
}

.btn-primary:focus-visible,
.btn-dark:focus-visible,
.btn-secondary:focus-visible,
.field:focus-visible {
  outline: 2px solid #dca12f;
  outline-offset: 2px;
}

.btn-primary {
  box-shadow: 0 10px 22px -6px rgba(43, 24, 15, .35) !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -6px rgba(43, 24, 15, .4) !important;
}

/* Campos: radio consistente con el resto del sistema */
.field {
  border-radius: .7rem !important;
  transition: border-color .14s ease, box-shadow .14s ease;
}

/* Navegacion: estado activo como "pill" solido en vez de solo barra lateral */
.nav-link {
  border-radius: .8rem !important;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.nav-link.active {
  background: #24170f !important;
  color: #fdf6ea !important;
  box-shadow: none !important;
  font-weight: 700;
}

.nav-link.active svg {
  color: #dca12f;
}

.nav-link:hover:not(.active) {
  transform: translateX(3px);
}

/* Pills de estatus: sombra sutil para que floten un poco sobre la fila */
.pill {
  box-shadow: 0 1px 2px rgba(36, 23, 15, .04);
}

/* Paneles colapsables con el mismo lenguaje de radio/sombra */
.gh-panel {
  border-radius: 1rem !important;
  box-shadow: 0 1px 2px rgba(36, 23, 15, .04), 0 10px 24px -10px rgba(36, 23, 15, .08);
}

.gh-panel > summary {
  border-radius: 1rem 1rem 0 0;
}

/* Tarjetas kanban con el mismo radio/sombra ampliados */
.kcol {
  border-radius: 1rem;
}

.kcard {
  border-radius: .85rem;
  box-shadow: 0 1px 2px rgba(36, 23, 15, .04), 0 8px 18px -8px rgba(36, 23, 15, .12);
  transition: box-shadow .14s ease, transform .14s ease;
}

.kcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(36, 23, 15, .05), 0 14px 26px -8px rgba(36, 23, 15, .16);
}

@media (max-width: 900px) {
  .gh-topbar {
    padding: .9rem 1rem;
  }

  .gh-user-meta {
    display: none;
  }
}
