* { box-sizing: border-box; }
:root {
  --bicnet-navy: #0d3d67;
  --bicnet-blue: #087ebc;
  --bicnet-blue-dark: #066a9f;
  --bicnet-pale: #eaf4fa;
  --bicnet-pale-2: #f6fafc;
  --line: #d1e1eb;
  --text: #223542;
  --muted: #657785;
  --white: #fff;
}
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #eef3f6;
}
.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 30px) 28px;
}
.installations {
  background: var(--white);
  border-radius: 8px;
  padding: clamp(16px, 1.6vw, 24px);
  box-shadow: 0 8px 26px rgba(31, 62, 81, .08);
}
.section-heading { margin-bottom: 12px; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--bicnet-blue);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 12px;
}
h1 {
  margin: 0;
  color: var(--bicnet-navy);
  font-size: clamp(27px, 2.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
}
.intro { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  align-items: center;
  padding: 8px 14px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  background: #fbfdfe;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4e6574;
  font-size: 13px;
  font-weight: 500;
}
.legend-item img { width: 29px; height: 29px; object-fit: contain; }
.table-wrap { position: relative; }
.table-frame {
  height: min(720px, 72vh);
  min-height: 500px;
  overflow-y: scroll;
  overflow-x: hidden;
  border: 1px solid #bfd3e0;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #6e9fbb #e5eef3;
  position: relative;
  background: #fff;
}
.table-frame::-webkit-scrollbar { width: 16px; }
.table-frame::-webkit-scrollbar-track {
  background: #e5eef3;
  border-left: 1px solid #cadce7;
}
.table-frame::-webkit-scrollbar-thumb {
  background: #6e9fbb;
  border: 3px solid #e5eef3;
  border-radius: 10px;
}
.table-frame::-webkit-scrollbar-thumb:hover { background: #4e88aa; }
.scroll-hint {
  position: absolute;
  right: 26px;
  bottom: 13px;
  z-index: 9;
  padding: 7px 11px;
  border-radius: 18px;
  background: rgba(13, 61, 103, .90);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 3px 10px rgba(13, 61, 103, .22);
  pointer-events: none;
  transition: opacity .18s ease;
}
.scroll-hint.is-hidden { opacity: 0; }
.installations-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
}
.installations-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  color: #fff;
  background: var(--bicnet-blue);
  border-right: 1px solid rgba(255,255,255,.34);
  border-bottom: 1px solid #075d8b;
  padding: 11px 5px;
  line-height: 1.08;
  text-align: center;
  vertical-align: middle;
  font-size: 12.2px;
  font-weight: 700;
  hyphens: none;
  overflow-wrap: normal;
  box-shadow: 0 2px 4px rgba(26, 67, 93, .10);
}
.installations-table thead th:first-child {
  width: 28%;
  min-width: 0;
  background: var(--bicnet-navy);
  text-align: center;
  padding-left: 5px;
  font-size: 13px;
}
.installations-table thead th:not(:first-child) { width: 10.285714%; }
.installations-table tbody td {
  height: 86px;
  padding: 5px 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  background: #fff;
}
.installations-table tbody tr:nth-child(odd) td { background: var(--bicnet-pale); }
.installations-table tbody tr:hover td { background: #ddecf5; }
.installations-table tbody td:first-child { padding: 5px 9px; text-align: center; }
.hospital-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.hospital-logo {
  width: min(210px, 94%);
  height: 52px;
  object-fit: contain;
  object-position: center center;
  flex: 0 0 auto;
}
.hospital-name {
  width: 100%;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 700;
  color: #314c5d;
  min-width: 0;
  text-align: center;
}
.text-logo {
  color: #a82020;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
}
.tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 42px;
}
.tech-icon { width: 36px; height: 36px; object-fit: contain; }
/* El pictograma de PC tiene bastante margen transparente en el PNG original;
   necesita un cuadro mayor para tener el mismo peso visual que PDA/Robot. */
.tech-icon.tech-pc { width: 52px; height: 42px; }
.tech-stack .tech-icon:first-child:nth-last-child(2),
.tech-stack .tech-icon:first-child:nth-last-child(2) ~ .tech-icon {
  width: 31px;
  height: 31px;
}
.tech-stack .tech-icon.tech-pc:first-child:nth-last-child(2),
.tech-stack .tech-icon:first-child:nth-last-child(2) ~ .tech-icon.tech-pc {
  width: 43px;
  height: 35px;
}
.mobile-list { display: none; }
.load-error { color: #8d2323; font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Sin scroll horizontal: en pantallas estrechas cambia a tarjetas. */
@media (max-width: 900px) {
  .page-shell { padding: 16px 10px 24px; }
  .installations { padding: 16px 10px; }
  .table-wrap { display: none; }
  .mobile-list { display: grid; gap: 12px; }
  .hospital-card { border: 1px solid var(--line); background: #fff; }
  .hospital-card-head { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: var(--bicnet-pale); }
  .hospital-card-head .hospital-cell { flex-direction: row; justify-content: flex-start; gap: 12px; }
  .hospital-card-head .hospital-logo { width: 145px; max-width: 42%; height: 58px; }
  .hospital-card-name { font-weight: 700; color: var(--bicnet-navy); font-size: 14px; }
  .hospital-card-grid { display: grid; grid-template-columns: 1fr; }
  .mobile-installation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
  .mobile-area { font-size: 13px; color: #435966; }
  .mobile-installation .tech-icon { width: 30px; height: 30px; }
  .mobile-installation .tech-icon.tech-pc { width: 44px; height: 35px; }
  .legend { gap: 8px 13px; }
}
