/* layout.css — header, barra-contexto, grid principal, cols, pill-*, ctrl-* */

header {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border-bottom: 1px solid #e0e0d8;
  padding: 10px 20px; flex-shrink: 0;
}
.header-nombre h1 { font-size: 15px; font-weight: 500; }
.header-nombre p  { font-size: 11px; color: #aaa; margin-top: 1px; }
.header-controles label { font-size: 11px; color: #888; }
.header-controles select, .header-controles button {
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  border: 0.5px solid #ddd; background: white; color: #333; cursor: pointer;
}
.header-controles button { padding: 4px 12px; }
.header-controles button:hover { background: #f0f0f0; }

.barra-contexto {
  background: transparent; border-bottom: none;
  padding: 0 0 8px 0; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.barra-izq { display: flex; align-items: center; gap: 8px; min-width: 0; }
#contexto-proceso {
  font-size: 11px; color: #555;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#btn-info {
  width: 20px; height: 20px; border-radius: 50%;
  border: 0.5px solid #ddd; background: white; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #555; flex-shrink: 0;
}
#btn-info:hover   { background: #f0f0f0; }
#btn-info.abierto { background: #1a1a1a; color: white; border-color: #1a1a1a; }

.barra-der { display: flex; align-items: flex-end; gap: 5px; flex: 1; }

.pill-select {
  position: relative;
  display: inline-flex; align-items: center;
  height: 26px;
  background: white;
  border: 0.5px solid #ddd;
  border-radius: 20px;
  padding: 0 10px 0 10px;
  cursor: pointer;
}
.pill-select:hover { border-color: #bbb; background: #fafafa; }
.pill-select select {
  appearance: none; -webkit-appearance: none;
  border: none; background: transparent;
  font-size: 11px; color: #333;
  cursor: pointer; outline: none;
  padding-right: 14px;
  min-width: 80px;
}

.pill-select::after {
  content: "▾";
  position: absolute; right: 8px;
  font-size: 9px; color: #aaa;
  pointer-events: none;
}

.ctrl-slider-wrap {
  display: flex; align-items: center;
  flex: 1;
  min-width: 80px;
  padding: 0 8px;
}

.pill-toggle {
  font-size: 11px; padding: 3px 10px;
  border: 0.5px solid #ddd; border-radius: 20px;
  background: transparent; color: #aaa;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.pill-toggle.activo {
  background: #1a1a1a; color: white; border-color: #1a1a1a;
}
.pill-toggle:hover:not(.activo) { border-color: #bbb; color: #555; }
.pill-reset {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: white; border: 0.5px solid #ddd;
  border-radius: 50%; cursor: pointer; color: #888;
  flex-shrink: 0;
  margin-left: auto;
}
.pill-reset:hover { background: #ffffff; color: #333; border-color: #bbb; }

.layout {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 10px; padding: 10px; flex: 1; overflow: hidden;
  transition: grid-template-columns .2s ease;
}
.layout.con-detalle {
  grid-template-columns: 32% 1fr 28%;
}

.col-detail {
  display: none; flex-direction: column; min-height: 0;
  overflow: hidden; border-left: 0.5px solid #ebebE6;
  padding-left: 10px;
}
.layout.con-detalle .col-detail { display: flex; }/* — overrides de refinamiento visual — */
header { background: transparent !important; border-bottom: none !important; padding: 8px 10px 0 !important; }
.header-nombre h1 { font-size: 10px !important; font-weight: 500 !important; color: #bbb !important; letter-spacing: .09em; text-transform: uppercase; }
.header-nombre p { display: none; }
.header-controles label { font-size: 10px; color: #ccc; }
.header-controles select { font-size: 10px !important; border: 0.5px solid #e0e0e0 !important; background: white !important; color: #888 !important; border-radius: 6px !important; }
.header-controles button { font-size: 10px !important; border: 0.5px solid #e0e0e0 !important; background: white !important; color: #888 !important; border-radius: 6px !important; }

.barra-contexto { background: transparent !important; border-bottom: none !important; padding: 0 0 6px 0 !important; }
#contexto-proceso { font-size: 17px !important; font-weight: 500 !important; color: #1a1a1a !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; line-height: 1.2 !important; }
#contexto-proceso:hover { color: #555 !important; }
#btn-info { display: none !important; }

.barra-der { align-items: flex-end !important; gap: 6px !important; }
.pill-select {
  border: none !important; background: transparent !important;
  border-radius: 0 !important; padding: 0 !important; height: auto !important;
  display: flex !important; flex-direction: column !important; gap: 3px !important;
}
.pill-select::after { display: none !important; }
.pill-select select {
  font-size: 11px !important; color: #1a1a1a !important;
  border: 0.5px solid #e0e0e0 !important; border-radius: 6px !important;
  padding: 4px 22px 4px 8px !important; width: 120px !important; max-width: 120px !important;
  background: white url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23bbb' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 7px center !important;
  -webkit-appearance: none !important; appearance: none !important;
}
.pill-select select:hover { border-color: #bbb !important; }

.pill-select-label {
  font-size: 10px; color: #999; font-weight: 500;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}

.ctrl-slider-wrap { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 200px; padding: 0 8px; }
#slider-container { width: 100%; }
#slider-container .sd-wrap { width: 100%; }

.pill-reset { border-radius: 7px !important; border: 0.5px solid #e0e0e0 !important; width: 28px !important; height: 28px !important; }
/* Título de panel: el mismo para «Línea de tiempo», «Mapa» y «Similitud entre casos». */
.panel-titulo {
  margin: 0; padding: 0;
  font-family: var(--sans, Seravek, "Avenir Next", -apple-system, system-ui, sans-serif);
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--tinta, #1B2638);
}
