
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02E0-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02E0-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02E0-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02E0-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02E0-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  --ink: #2c2d38;
  --ink-soft: #4a4b57;
  --gold: #c9a961;
  --gold-dark: #a8883e;
  --gold-soft: #f4ead0;
  --cream: #faf8f4;
  --cream-2: #f3efe6;
  --white: #ffffff;
  --muted: #6d6e79;
  --line: #e7e2d6;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --green: #2c7a56;
  --green-bg: #e6f5ee;
  --blue: #3a5a86;
  --blue-bg: #e8eef6;
  --amber: #8a6a1a;
  --amber-bg: #f8efd4;
  --red: #8f3a3a;
  --red-bg: #f7eaea;
  --shadow: 0 1px 2px rgba(44,45,56,.05), 0 6px 18px rgba(44,45,56,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100%;
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* ——— Sidebar ——— */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--ink);
  color: #f3efe6;
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px;
}

.brand {
  padding: 0 22px 18px;
  border-bottom: 1px solid rgba(201,169,97,.28);
}
.brand img {
  display: block;
  width: 204px;
  height: auto;
}
.brand .panel-label {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

nav {
  padding: 16px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #d9d4c8;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  padding-left: 9px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active {
  background: rgba(201,169,97,.16);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}
.nav-item.dim { opacity: .85; }
.nav-item.soon {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: auto;
}
.nav-item.soon:hover { background: transparent; color: #d9d4c8; }
.nav-item .soon-tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

.sidebar-foot {
  margin: 0 16px;
  padding: 12px 12px 2px;
  border-top: 1px solid rgba(201,169,97,.28);
}
.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  letter-spacing: .02em;
}
.user-mini .name { font-size: 13px; font-weight: 600; color: #faf8f4; line-height: 1.2; }
.user-mini .role { font-size: 11px; color: #b8b4aa; margin-top: 1px; }
.rnt {
  font-size: 10.5px;
  color: #9a968c;
  letter-spacing: .04em;
  padding-bottom: 4px;
}

/* ——— Main ——— */
.main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.greet { flex: 1; min-width: 0; }
.greet h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.greet p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.search {
  width: 260px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.search svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 15px; }

.badge-boceto {
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid rgba(201,169,97,.55);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .01em;
}

.bell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink);
}
.bell svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.bell .dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #c45c5c;
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.content {
  flex: 1;
  min-height: 0;
  padding: 22px 28px 28px;
  overflow: auto;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 40px;
  gap: 16px;
}
.page-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.page-head .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-sm {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 6px;
}
.btn-sm.disabled {
  opacity: .4;
}

/* ——— Cards / KPIs ——— */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 108px;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kpi-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.kpi-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 7px;
}
.kpi-hint.up { color: var(--green); }
.kpi-hint.warn { color: var(--amber); }

.columns {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.panel-h h3 {
  font-size: 14px;
  font-weight: 650;
  font-weight: 600;
}
.panel-h .meta {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.panel-body { flex: 1; min-height: 0; overflow: hidden; }

/* Travelers list */
.t-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0ebe1;
}
.t-row:last-child { border-bottom: 0; }
.t-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  letter-spacing: .02em;
}
.t-av.gold { background: var(--gold-soft); color: var(--gold-dark); }
.t-info { flex: 1; min-width: 0; }
.t-info .who { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.t-info .det {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .01em;
}
.chip-hoy { background: var(--gold-soft); color: var(--gold-dark); }
.chip-destino { background: var(--blue-bg); color: var(--blue); }
.chip-sale { background: var(--cream-2); color: var(--ink-soft); }
.chip-in { background: var(--green-bg); color: var(--green); }

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  padding: 13px 18px 14px;
  border-bottom: 1px solid #f0ebe1;
}
.alert:last-child { border-bottom: 0; }
.alert-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  margin-top: 1px;
}
.alert-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert-ico.red { background: var(--red-bg); color: var(--red); }
.alert-ico.amber { background: var(--amber-bg); color: var(--amber); }
.alert-ico.blue { background: var(--blue-bg); color: var(--blue); }
.alert h4 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.alert p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ——— Cotizaciones ——— */
.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.tab {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tab.active {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
}

.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7f4ee;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 6px 12px;
  border-bottom: 1px solid #f0ebe1;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
.code {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.client { font-weight: 600; }
.dest { color: var(--ink-soft); }
.dates {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  white-space: nowrap;
}
.dates .arrow { color: #b0aa9c; }
.asesor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.asesor .mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-2);
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asesor .mini.sa { background: var(--ink); color: var(--gold); }
.asesor .mini.vm { background: var(--gold-soft); color: var(--gold-dark); }

.status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.st-enviada { background: var(--blue-bg); color: var(--blue); }
.st-seguimiento { background: var(--amber-bg); color: var(--amber); }
.st-ganada { background: var(--green-bg); color: var(--green); }
.st-perdida { background: #eeeef0; color: #6a6a72; }
.st-confirmada { background: var(--green-bg); color: var(--green); }

.actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 168px;
}
.table-foot {
  margin-top: auto;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  background: #fbfaf7;
}

/* ——— Agenda ——— */
.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-nav .range {
  font-size: 14px;
  font-weight: 600;
  min-width: 280px;
  text-align: center;
}
.ico-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.ico-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.toggle {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 34px;
}
.toggle span {
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.toggle span.on {
  background: var(--ink);
  color: var(--gold);
}

.cal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: 674px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
}
.day {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.day:last-child { border-right: 0; }
.day-h {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
  text-align: center;
}
.day-h .wd {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-h .num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 1px;
  line-height: 1.1;
}
.day.today .day-h {
  background: var(--ink);
  color: var(--gold);
}
.day.today .day-h .wd { color: var(--gold); }
.day.today .day-h .num { color: #faf8f4; }
.day-b {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.evt {
  border-radius: 7px;
  padding: 7px 8px 6px;
  border: 1px solid transparent;
  min-width: 0;
}
.evt .k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.evt .n {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evt .d {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
}
.evt-vuelo { background: #f8f1dc; border-color: #ead9a8; }
.evt-vuelo .k { color: var(--gold-dark); }
.evt-in { background: #e9f4ee; border-color: #c8e2d4; }
.evt-in .k { color: var(--green); }
.evt-out { background: #f3f1ec; border-color: #e0dcd2; }
.evt-out .k { color: #6a6a72; }
.evt-stay { background: #eef2f8; border-color: #d4dce8; }
.evt-stay .k { color: var(--blue); }

.legend {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

/* ——— Reserva ——— */
.crumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.crumbs b { color: var(--ink); font-weight: 600; }
.reserva-head { margin-bottom: 12px; }
.reserva-head .page-head { margin-bottom: 6px; }
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btns { display: flex; gap: 8px; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf4e4;
  border: 1px solid #ead9a8;
  color: #6a5216;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.banner svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; fill: none; stroke-width: 1.8; margin-top: 1px; }
.banner strong { font-weight: 650; font-weight: 600; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px 12px;
}
.card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card h3 span.meta { font-weight: 500; color: var(--muted); font-size: 11.5px; }

.pax {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #f0ebe1;
}
.pax:first-of-type { border-top: 0; padding-top: 0; }
.pax .who { font-size: 13.5px; font-weight: 600; }
.pax .meta { font-size: 12px; color: var(--muted); margin-top: 1px; }

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 6px;
  font-size: 12.5px;
}
.kv dt { color: var(--muted); }
.kv dd { font-weight: 550; font-weight: 500; }

.money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

td.right, th.right { text-align: right; }
.tag-tipo {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.totals {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  padding: 8px 4px 0;
  font-size: 12.5px;
}
.totals div { color: var(--muted); }
.totals strong { color: var(--ink); font-weight: 700; margin-left: 6px; }
.totals .pend strong { color: var(--amber); }

.svc-table td, .pay-table td { padding: 8px 10px; font-size: 12.5px; }
.svc-table th, .pay-table th { padding: 8px 10px; }

.st-borrador { background: var(--cream-2); color: var(--ink-soft); }
.search { cursor: text; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.search input::placeholder { color: var(--muted); }

.btn { cursor: pointer; }
button.btn, a.btn { appearance: none; }
.btn:disabled, .btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-danger {
  background: var(--white);
  color: var(--red);
  border-color: #e4c8c8;
}

/* Login */
body.login-body { background: var(--ink); }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #3a3b48 0%, var(--ink) 55%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  border: 1px solid rgba(201,169,97,.35);
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.login-card img {
  display: block;
  width: 260px;
  max-width: 100%;
  margin: 0 auto 10px;
}
.login-card .panel-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 22px;
}
.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 6px;
}
.login-card .lead {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.login-card .btn { width: 100%; height: 40px; font-size: 14px; }
.login-error {
  background: var(--red-bg);
  color: var(--red);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.login-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* Forms */
label.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
label.fld span.req { color: #b45555; }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.22);
}
[hidden] { display: none !important; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card + .card { margin-top: 12px; }

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.check-item input { margin-top: 3px; accent-color: var(--gold-dark); }

.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: 240px;
  overflow: auto;
  margin-top: 4px;
}
.ac-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
}
.ac-item:hover { background: var(--gold-soft); }
.ac-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ac-item.create { color: var(--gold-dark); font-weight: 600; }

.option-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  margin-bottom: 12px;
}
.option-card .oh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f4ee;
  border-bottom: 1px solid var(--line);
}
.option-card .ob { padding: 14px 16px; }
.price-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.price-grid th, .price-grid td {
  border: 1px solid var(--line);
  padding: 6px;
  font-size: 12.5px;
}
.price-grid th {
  background: #f7f4ee;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-grid input { height: 34px; }

.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: #fbf8f1; }
.kpi.soon-kpi .kpi-value { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.filters { flex-wrap: wrap; }
.tab { cursor: pointer; }
select.filter-select {
  width: auto;
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.toast {
  background: var(--ink);
  color: #faf8f4;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  border-left: 3px solid var(--gold);
}
.toast.err { border-left-color: #c45c5c; }

.linkish { color: var(--gold-dark); cursor: pointer; font-weight: 600; }
.user-mini { cursor: default; }
.logout {
  margin-top: 6px;
  font-size: 11.5px;
  color: #cfc8b8;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdf-app { background: #1c1d24; min-height: 100vh; }
.pdf-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #2c2d38;
  color: #f3efe6;
  border-bottom: 1px solid rgba(201,169,97,.35);
}
.pdf-toolbar h1 { font-size: 15px; font-weight: 600; }
.pdf-sheet {
  width: 210mm;
  margin: 24px auto 40px;
  background: #faf8f2;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

code.mono, .code { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .form-grid, .form-grid.cols-4, .form-grid.cols-3, .check-list { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .app { display: block; }
  .main, .sidebar { height: auto; min-height: 0; position: static; }
}

@media print {
  .pdf-toolbar, .no-print, .sidebar, .topbar { display: none !important; }
  body, .pdf-app { background: white !important; }
  .pdf-sheet { margin: 0; box-shadow: none; width: auto; }
}
