/* Shared pieces of the eight app screens: the PJ rail (Nav / Sidebar),
   the floating Mateo bubble and the "Cómo funciona" pill. */

/* An inline "→": no Google Roboto file has U+2192, so a system font draws
   it; line-height 0 keeps that fallback glyph from stretching the line. */
.arr { line-height: 0; }

.app {
  height: 900px;
  padding-left: 56px;
  background: var(--gris-fondo);
  align-items: flex-start;
}
.app > .main { position: relative; flex: 1 0 0; height: 100%; min-width: 1px; overflow: hidden; background: var(--gris-fondo); }

/* ------------------------------------------------------------------ rail */
.rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0 16px;
  background: var(--azul-bandera);
  overflow: hidden;
  z-index: 2;
}
.rail .logo { position: relative; width: 22px; height: 30px; flex: none; }
.rail .logo .pj-emblem { position: absolute; left: 1px; top: 1px; width: 21px; height: 28px; }
.rail .logo .book { -webkit-mask-image: url(../assets/emblem-book-rail.png); mask-image: url(../assets/emblem-book-rail.png); }
.rail .logo .lance { -webkit-mask-image: url(../assets/emblem-lance-rail.png); mask-image: url(../assets/emblem-lance-rail.png); }
.rail .aire { width: 1px; flex: none; }
.rail .toggle { position: relative; width: 38px; height: 36px; border-radius: 9px; flex: none; }
.rail .toggle img { position: absolute; left: 12.91px; top: 12.84px; width: 12.18px; height: 10.32px; }
.rail .bell { position: relative; width: 32px; height: 32px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.rail .bell > img { width: 18px; height: 18px; }
.rail .badge {
  position: absolute;
  left: 18px;
  top: 1px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--azul-bandera);
  border-radius: 999px;
  background: #c8302b;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 10px/1.4 var(--sans);
  letter-spacing: 1.8px;
  color: #fff;
  overflow: hidden;
}
/* The digit sits a little right of centre in the frame (tracking adds space after it). */
.rail .badge span { margin-right: -1.8px; }
.rail .divisor { width: 24px; height: 1px; flex: none; background: rgba(242, 245, 249, 0.12); }
.rail .row {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.rail .row img { width: 18px; height: 18px; }
.rail .row img.glow { width: 26px; height: 26px; }  /* mateo/orbe: inset -22.22% */
.rail .row.is-active { background: rgba(0, 71, 186, 0.16); }
.rail a.row:hover { background: rgba(242, 245, 249, 0.08); }
.rail a.row.is-active:hover { background: rgba(0, 71, 186, 0.16); }
.rail .spacer { flex: 1 0 0; min-height: 1px; width: 1px; }
.rail .perfil {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  background: var(--azul-pj);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/14px var(--sans);
  color: #fff;
}

/* ------------------------------------------------- floating Mateo bubble */
.mateo-burbuja { position: absolute; width: 48px; height: 48px; z-index: 3; }
.mateo-burbuja img { position: absolute; left: -8px; top: -8px; width: 64px; height: 64px; }

/* ---------------------------------------------------- "Cómo funciona" pill */
.como-funciona {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font: 500 11px/13px var(--sans);
  color: #f2f5f9;
  white-space: nowrap;
  z-index: 3;
}
.como-funciona .q {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 9.5px/11px var(--sans);
}

/* Light variant on the grey page headers (Expedientes and others). */
.como-funciona.claro { background: #fff; border-color: rgba(0, 45, 98, 0.12); color: rgba(0, 45, 98, 0.8); }
.como-funciona.claro .q { background: rgba(0, 45, 98, 0.07); color: rgba(0, 45, 98, 0.65); }

/* Page header shared by the list screens. */
.page-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 1384px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 32px 16px;
  border-bottom: 1px solid var(--borde);
  background: var(--gris-fondo);
  overflow: hidden;
}
.page-header .titulos { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.page-header h2 { margin: 0; font: 600 24px/28px var(--sans); letter-spacing: -0.48px; color: var(--azul-bandera); }
.page-header .sub { font: 400 13px/15px var(--sans); color: var(--texto-2); }
.btn-primario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--azul-pj);
  font: 500 13px/15px var(--sans);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

/* -------------------------------------------------- common card pieces */
.ap-card { background: #fff; border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ap-title { font: 600 14px/16px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
.ap-kicker { font: 600 8.5px/10px var(--sans); letter-spacing: 0.7px; color: var(--rojo-bandera); text-transform: uppercase; white-space: nowrap; }
.ap-link { font: 500 12px/14px var(--sans); color: var(--azul-pj); white-space: nowrap; }
/* Two-stroke arrow/chevron icons drawn by Figma as separate vectors. */
.ico2 { position: relative; flex: none; overflow: hidden; }
.ico2 img { position: absolute; }
