:root {
  /* Surface */
  --bg: #f0f2f5;
  --bg-soft: #f7f8fa;
  --panel: #ffffff;
  --border: #e2e5ea;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  /* Ink */
  --ink: #111827;
  --muted: #6b7280;
  /* Brand */
  --navy: #14348a;
  --navy-soft: #1f4ca8;
  --blue: #20c7ea;
  --blue-strong: #00b6e8;
  --blue-soft: #e8f7fc;
  --aqua: #79e4ea;
  /* Status */
  --green: #16a34a;
  --yellow: #b45309;
  --red: #dc2626;
  /* Sidebar */
  --sidebar-w: 220px;
  --sidebar-bg: #0c1c42;
  --sidebar-border: rgba(255,255,255,0.07);
  --sidebar-text: rgba(255,255,255,0.6);
  --sidebar-text-active: #ffffff;
  --sidebar-item-hover: rgba(255,255,255,0.06);
  --sidebar-item-active: rgba(255,255,255,0.1);
  --sidebar-accent: #5b9cf6;
  /* Layout */
  --topbar-h: 56px;
  --content-pad: 28px;
  /* Radii */
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  /* Type */
  --font-sans: "Inter", "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ─── Layout shell ───────────────────────────────────────────────────────── */

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

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.sidebar__brand-copy strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sidebar__brand-copy small {
  display: block;
  color: var(--sidebar-text);
  font-size: 0.7rem;
  margin-top: 1px;
}

.sidebar__nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  letter-spacing: -0.005em;
}

.sidebar__item:hover {
  background: var(--sidebar-item-hover);
  color: rgba(255,255,255,0.85);
}

.sidebar__item.is-active {
  background: var(--sidebar-item-active);
  color: var(--sidebar-text-active);
  border-left-color: var(--sidebar-accent);
  font-weight: 600;
}

.sidebar__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.1s;
}

.sidebar__item:hover svg,
.sidebar__item.is-active svg {
  opacity: 1;
}

.sidebar__divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 6px 16px;
}

.sidebar__footer {
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar .date-chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--sidebar-text);
  font-size: 0.72rem;
  padding: 6px 10px;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.4;
}

/* ─── Main wrap ──────────────────────────────────────────────────────────── */

.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--content-pad);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar__page-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 4px;
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ─── Content area ───────────────────────────────────────────────────────── */

.content {
  flex: 1;
  overflow-y: auto;
  padding: var(--content-pad);
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 0;
}

#modalRoot {
  position: relative;
  z-index: 1200;
}

/* Legacy topbar brand — no longer rendered, kept for safety */
.topbar__brand { display: none; }
.brand-lockup { display: none; }
.brand-mark { display: none; }
.topbar__copy { display: none; }

.eyebrow,
.section-tag {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-panel h2,
.panel h2,
.detail-hero h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.panel h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subtitle,
.muted {
  color: var(--muted);
}

.date-chip {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: filter 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.button:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.button--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.button--sm svg {
  width: 13px;
  height: 13px;
}

.button--secondary {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: var(--navy);
}

.button--ghost {
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--border);
}

.button--ghost:hover {
  background: var(--bg-soft);
  filter: none;
}

.topbar__search {
  position: relative;
  display: flex;
  align-items: center;
}

.topbar__search-icon {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.topbar__search-input {
  width: 200px;
  padding: 7px 12px 7px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.83rem;
  transition: border-color 0.12s, width 0.18s, background 0.12s;
}

.topbar__search-input:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: var(--navy);
  width: 250px;
  background: var(--panel);
}

.topbar__search-input::placeholder {
  color: var(--muted);
}

.button--danger {
  background: var(--red);
  color: #fff;
  border: none;
}

.button--danger:hover {
  filter: brightness(0.92);
}

.modal.modal--sm {
  max-width: 400px;
}

.confirm-dialog {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0;
}

.confirm-dialog__message {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.confirm-dialog__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* view-nav replaced by sidebar — hidden if still rendered */
.view-nav { display: none; }
.view-nav__item { display: none; }

.hero-panel,
.panel,
.detail-hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px 24px;
}

.hero-panel,
.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.hero-panel__main {
  max-width: 44rem;
}

.hero-panel__aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 300px;
}

.traffic {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: grid;
  gap: 4px;
}

.traffic--verde {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.traffic--amarillo {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.traffic--rojo {
  background: #fff1f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.traffic__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.traffic__label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.traffic p {
  margin: 2px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.next-action {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.next-action strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.next-action p {
  margin: 0 0 12px;
  color: var(--muted);
}

.kpi-grid,
.panel-grid,
.metrics-grid,
.summary-grid,
.tech-pulse-grid,
.tech-sheet {
  display: grid;
  gap: 18px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card,
.metric-card,
.tech-pulse-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
}

.kpi-card span,
.metric-card span,
.summary-grid span,
.tech-pulse-card span,
.tech-sheet__item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-card strong,
.metric-card strong,
.tech-pulse-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
}

.tech-pulse-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-pulse-card {
  background: var(--panel);
}

.tech-pulse-card p {
  margin: 0;
  color: var(--muted);
}

.panel-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.flow-strip,
.stack-list,
.critical-list,
.timeline,
.alert-list,
.sources-list {
  display: grid;
  gap: 14px;
}

.flow-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card,
.alert-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.flow-card__count {
  font-size: 2rem;
  font-weight: 800;
}

.flow-card__label {
  margin: 8px 0 12px;
  font-weight: 700;
}

.meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 32, 44, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--navy-soft));
}

.meter--slim {
  width: 110px;
  height: 8px;
}

.stack-row,
.duration-row,
.critical-item,
.timeline__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.stack-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.duration-table {
  display: grid;
  gap: 10px;
}

.duration-row {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.summary-inline {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.summary-pill {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--panel);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: transparent;
}

.filters__actions,
.form-actions,
.action-row,
.quick-statuses {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters__actions {
  align-self: end;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 12px;
}

.table--matrix th,
.table--matrix td {
  white-space: nowrap;
}

.matrices-intro {
  background: var(--panel);
}

.matrix-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.matrix-summary-card {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
}

.matrix-summary-card.is-active {
  border-color: rgba(20, 52, 138, 0.18);
  box-shadow: 0 16px 28px rgba(20, 52, 138, 0.08);
}

.matrix-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.matrix-summary-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.matrix-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-link {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.source-link span {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.matrix-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.table td {
  padding: 16px 8px;
  border-top: 1px solid var(--border);
}

.table tr.is-overdue {
  background: rgba(202, 90, 77, 0.05);
  box-shadow: inset 3px 0 0 var(--red);
}

.table tbody tr:hover {
  background: rgba(20, 52, 138, 0.03);
}

.mono {
  font-family: var(--font-mono);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.chip--info {
  background: rgba(32, 199, 234, 0.16);
  color: #136e9f;
}

.chip--warning {
  background: rgba(201, 163, 58, 0.14);
  color: #8d6c13;
}

.chip--danger {
  background: rgba(202, 90, 77, 0.14);
  color: #aa4237;
}

.chip--success {
  background: rgba(79, 155, 97, 0.14);
  color: #357545;
}

.chip--neutral {
  background: rgba(20, 52, 138, 0.08);
  color: var(--navy);
}

.chip--priority {
  background: rgba(121, 228, 234, 0.18);
  color: var(--navy);
}

.date-stack {
  display: grid;
  gap: 4px;
}

.detail-hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-layout {
  align-items: start;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-grid div {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.summary-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.service-summary-grid,
.service-callouts {
  display: grid;
  gap: 18px;
}

.service-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-decision-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.service-decision-card--success {
  background: linear-gradient(180deg, rgba(79, 155, 97, 0.08), rgba(255, 255, 255, 0.98));
}

.service-decision-card--warning {
  background: linear-gradient(180deg, rgba(201, 163, 58, 0.12), rgba(255, 255, 255, 0.98));
}

.service-decision-card--danger {
  background: linear-gradient(180deg, rgba(202, 90, 77, 0.12), rgba(255, 255, 255, 0.98));
}

.service-decision-card--neutral {
  background: linear-gradient(180deg, rgba(20, 52, 138, 0.08), rgba(255, 255, 255, 0.98));
}

.service-decision-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.service-callouts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-callout {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.service-callout span,
.table-note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.service-callout p,
.table-note {
  margin: 8px 0 0;
}

.risk-flag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-source {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-history-list {
  display: grid;
  gap: 14px;
}

.service-history-item {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.service-history-item p,
.service-history-item small {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-history-item__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.service-history-item__actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.holding-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.holding-alert--warning {
  background: #fefce8;
  border-color: #ca8a04;
  color: #854d0e;
}

.holding-alert--critical {
  background: #fff7ed;
  border-color: #ea580c;
  color: #9a3412;
}

.holding-alert--expired {
  background: #fef2f2;
  border-color: var(--red);
  color: #991b1b;
}

.chip--holding-expired {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid var(--red);
}

.chip--holding-critical {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #ea580c;
}

.chip--holding-warning {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #ca8a04;
}

.chip--holding-ok {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

.chip--proceso {
  background: rgba(32, 199, 234, 0.14);
  color: #136e9f;
}

.chip--atrasada {
  background: rgba(202, 90, 77, 0.14);
  color: #aa4237;
}

.chip--lista {
  background: rgba(79, 155, 97, 0.14);
  color: #357545;
}

.holding-none {
  color: var(--muted);
  font-size: 0.84rem;
}

.service-checklist {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.service-check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
}

.service-check-item:hover {
  background: var(--panel);
}

.service-check-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--navy);
}

.service-check-item span {
  font-weight: 600;
}

.service-check-item small {
  color: var(--muted);
  font-size: 0.76rem;
}

.linked-services {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.linked-services li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.linked-services li span {
  color: var(--muted);
  font-size: 0.8rem;
}

.panel__section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.client-group {
  margin-bottom: 20px;
}

.client-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.client-group__header h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.client-group__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tech-sheet {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.tech-sheet__item {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.tech-sheet__item strong {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-form--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 18px 0;
}

.field--full {
  grid-column: 1 / -1;
}

.stage-rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stage-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.stage-pill.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.timeline__item {
  align-items: flex-start;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  flex: 0 0 auto;
}

.timeline p,
.timeline small,
.empty {
  margin: 6px 0 0;
  color: var(--muted);
}

.critical-item {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: left;
}

.alert-card__rank {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(202, 90, 77, 0.14);
  color: var(--red);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: rgba(24, 32, 44, 0.44);
  backdrop-filter: blur(8px);
  z-index: 1200;
  overflow: auto;
}

.modal {
  position: relative;
  z-index: 1201;
  width: min(820px, calc(100vw - 40px));
  max-height: 90vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.modal .detail-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(24, 32, 61, 0.92);
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  background: rgba(202, 90, 77, 0.96);
}

.empty-state {
  text-align: center;
  padding: 54px 24px;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid--two,
  .flow-strip,
  .filters,
  .tech-pulse-grid,
  .tech-sheet,
  .matrix-summary-grid,
  .service-summary-grid,
  .service-callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: none;
  }

  .main-wrap {
    margin-left: 0;
  }

  .hero-panel,
  .detail-hero,
  .panel__header,
  .stack-row,
  .duration-row,
  .critical-item,
  .detail-form--compact {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    height: auto;
  }

  .topbar__page-title {
    font-size: 0.88rem;
  }

  .topbar__actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .kpi-grid,
  .panel-grid--two,
  .flow-strip,
  .metrics-grid,
  .summary-grid,
  .detail-form,
  .filters,
  .tech-pulse-grid,
  .tech-sheet,
  .matrix-summary-grid,
  .service-summary-grid,
  .service-callouts {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel__aside {
    min-width: 0;
  }

  .modal .detail-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-backdrop {
    place-items: start center;
    padding-top: 16px;
  }

  .modal {
    max-height: calc(100vh - 32px);
  }
}

/* ─── Checklist de recepción ────────────────────────────────────────────── */

.checklist-progress {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.checklist-form {
  display: grid;
  gap: 8px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.12s ease;
}

.checklist-item.is-checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.checklist-item__main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}

.checklist-item__main input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.checklist-item__nota {
  width: 200px;
  padding: 5px 8px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--ink);
}

.checklist-item__nota:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
}

/* ─── Restore label (styled as button) ──────────────────────────────────── */

.topbar__restore-label {
  cursor: pointer;
}

/* ─── Print stylesheet ───────────────────────────────────────────────────── */

@media print {
  .sidebar,
  .topbar,
  .view-nav,
  .topbar__actions,
  .panel__header .button,
  .action-row,
  .quick-statuses,
  #observationForm,
  #analystForm,
  #editSampleForm,
  #assignResponsibleForm,
  #checklistForm .form-actions,
  .holding-alert,
  [data-print-detail],
  [data-close-modal],
  [data-advance-stage],
  [data-retreat-stage] {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .app-shell {
    width: 100%;
    margin: 0;
  }

  .main-wrap {
    margin-left: 0;
    height: auto;
  }

  .content {
    overflow-y: visible;
  }

  .panel,
  .detail-hero,
  .panel-grid {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .panel-grid--two {
    grid-template-columns: 1fr 1fr;
  }

  .checklist-item {
    break-inside: avoid;
  }

  .detail-hero {
    margin-bottom: 16px;
  }

  .sidebar {
    display: none;
  }

  .main-wrap {
    margin-left: 0;
  }
}

/* ─── Topbar dropdown menu ───────────────────────────────────────────────── */

.topbar__menu-wrap {
  position: relative;
}

.topbar__menu-trigger svg {
  width: 16px;
  height: 16px;
}

.topbar__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 500;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__dropdown[hidden] {
  display: none;
}

.topbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.topbar__dropdown-item:hover {
  background: var(--bg-soft);
}

.topbar__dropdown-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}

.topbar__dropdown-item--danger {
  color: var(--red);
}

.topbar__dropdown-item--danger svg {
  color: var(--red);
}

.topbar__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 3px 4px;
}

/* ─── Matrices editables ─────────────────────────────────────────────────── */

.table--editable td {
  padding: 6px 4px;
}

.matrix-cell-input {
  width: 100%;
  min-width: 80px;
  padding: 5px 8px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}

.matrix-cell-input:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: transparent;
  background: var(--panel);
}

.matrix-delete-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matrix-delete-btn:hover {
  background: #fef2f2;
  border-color: var(--red);
  color: var(--red);
}

.matrix-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.matrix-modified-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-soft);
  vertical-align: middle;
  margin-left: 4px;
}

.matrix-pill--modified {
  background: rgba(20, 52, 138, 0.08);
  color: var(--navy);
  border-color: rgba(20, 52, 138, 0.2);
  font-size: 0.76rem;
}

/* ─── ETFA panel ─────────────────────────────────────────────────────────── */

.etfa-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 4px;
}

.etfa-status-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
}

.etfa-status-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 8px;
}

.etfa-status-card__count {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 6px;
}

.etfa-status-card--activo .etfa-status-card__count { color: #166534; }
.etfa-status-card--parcial .etfa-status-card__count { color: #92400e; }
.etfa-status-card--brecha .etfa-status-card__count { color: #991b1b; }

.etfa-param-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.etfa-param-row__name {
  font-weight: 600;
}

.etfa-param-row__matrix {
  color: var(--muted);
  font-size: 0.82rem;
}

.etfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.etfa-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.etfa-badge--activo {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.etfa-badge--parcial {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.etfa-badge--no {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

.etfa-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.etfa-compliance-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .etfa-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .etfa-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .etfa-param-row,
  .etfa-compliance-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Cotizador ─────────────────────────────────────────────────────────────── */

.cotizador-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

/* Tabs */
.cot-tabs {
  display: flex;
  gap: 2px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cot-tab {
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.cot-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.cot-tab:hover:not(.is-active) {
  color: var(--ink);
}

/* Package grid */
.cot-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cot-pkg-card {
  position: relative;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cot-pkg-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.cot-pkg-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, white);
}

.cot-pkg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cot-pkg-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 2px 7px;
  border-radius: 4px;
}

.cot-pkg-uf {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.cot-pkg-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.cot-pkg-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.cot-pkg-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.cot-pkg-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.cot-pkg-footer svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.cot-pkg-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cot-pkg-check svg {
  width: 11px;
  height: 11px;
  stroke: white;
}

/* Summary bar */
.cot-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  flex-shrink: 0;
}

.cot-summary-text {
  font-size: 0.8125rem;
  color: var(--muted);
}

.cot-summary-text strong {
  color: var(--ink);
}

/* A la medida */
.cot-medida-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.cot-medida-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cot-search-input {
  flex: 1;
  max-width: 360px;
  height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
}

.cot-search-input:focus {
  border-color: var(--accent);
  background: white;
}

.cot-medida-count {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.cot-param-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.cot-param-header {
  display: grid;
  grid-template-columns: 1fr 160px 90px 80px;
  gap: 12px;
  padding: 8px 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.cot-param-row {
  display: grid;
  grid-template-columns: 1fr 160px 90px 80px;
  gap: 12px;
  padding: 9px 20px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  transition: background 0.1s;
}

.cot-param-row:hover {
  background: var(--bg-soft);
}

.cot-param-row.is-selected {
  background: color-mix(in srgb, var(--accent) 5%, white);
}

.cot-param-check {
  display: none;
}

.cot-param-name {
  color: var(--ink);
  font-weight: 500;
  padding-left: 4px;
}

.cot-param-row.is-selected .cot-param-name::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.cot-param-matrices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cot-param-tag {
  font-size: 0.68rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--muted);
  white-space: nowrap;
}

.cot-param-unit {
  font-size: 0.75rem;
  color: var(--muted);
}

.cot-param-uf {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cot-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Preview */
.cot-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cot-preview-doc {
  max-width: 760px;
  margin: 24px auto;
  padding: 32px 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-y: auto;
  font-size: 0.825rem;
  color: var(--ink);
  line-height: 1.5;
}

.cot-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cot-preview-lab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.cot-preview-lab strong {
  font-size: 0.875rem;
}

.cot-preview-ref {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.cot-preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.cot-preview-client-form h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}

.cot-client-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cot-client-fields label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.cot-field {
  height: 30px;
  padding: 0 8px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
}

.cot-field:focus {
  border-color: var(--accent);
  background: white;
}

.cot-preview-greeting {
  font-size: 0.8rem;
  line-height: 1.7;
}

.cot-preview-ensayo-table,
.cot-preview-params-table,
.cot-preview-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.cot-preview-ensayo-table th,
.cot-preview-params-table th {
  background: var(--bg-soft);
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

.cot-preview-ensayo-table td,
.cot-preview-params-table td,
.cot-preview-summary-table td {
  padding: 6px 10px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.cot-preview-summary-table {
  max-width: 300px;
  margin-left: auto;
}

.cot-total-row td {
  background: var(--bg-soft);
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.cot-preview-section {
  margin-bottom: 20px;
}

.cot-preview-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cot-preview-notes {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.cot-preview-conditions {
  font-size: 0.775rem;
  line-height: 1.6;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.cot-preview-signature {
  font-size: 0.8rem;
  padding-top: 12px;
}

/* Print */
@media print {
  .sidebar,
  .topbar,
  .cot-preview-toolbar,
  .cot-preview-client-form,
  .no-print {
    display: none !important;
  }

  .main-wrap {
    margin-left: 0 !important;
    height: auto !important;
  }

  .content {
    overflow-y: visible !important;
  }

  .cot-preview-doc {
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 20px;
    max-width: 100%;
    box-shadow: none;
  }

  .cot-preview-meta {
    grid-template-columns: 1fr;
  }

  .cotizador-wrap {
    height: auto;
  }
}

@media (max-width: 760px) {
  .cot-pkg-grid {
    grid-template-columns: 1fr;
  }

  .cot-param-header,
  .cot-param-row {
    grid-template-columns: 1fr 80px;
  }

  .cot-param-matrices,
  .cot-param-unit {
    display: none;
  }

  .cot-preview-meta {
    grid-template-columns: 1fr;
  }
}
