/* Shell visual de los paneles de staff — «Tarjetero de fichar».
   IDÉNTICO en hotelesarrecife y vanesagarciaweb; el color de cada empresa
   llega como --sh-marca desde shell.php (empresa.php).
   Convive con Tailwind (las pantallas antiguas lo siguen usando mientras se
   migran): todo va con prefijo sh- salvo el ajuste de body.sh. */

:root {
  --sh-pared: #E2E0DC;
  --sh-pared-2: #D7D4CF;
  --sh-pared-3: #C8C5BF;
  --sh-tarjeta: #FCFBF8;
  --sh-pauta: #E4DFD4;
  --sh-pauta-fuerte: #C9C2B3;
  --sh-tinta: #1A1D21;
  --sh-tinta-2: #474C54;
  --sh-tinta-3: #5E636B;
  --sh-sello: #2F2A78;
  --sh-tarde: #A61B1B;
  --sh-tarde-fondo: #FBE9E7;
  --sh-ok: #1D6A44;
  --sh-ok-fondo: #E3F1E8;
  --sh-aviso: #7A4F00;
  --sh-aviso-fondo: #FFF1CF;
  --sh-marca: #284B62;
  --sh-marca-hover: #1C3749;
  --sh-marca-tinte: #E1EAF0;
  --sh-radio-tarjeta: 6px;
  --sh-radio-control: 12px;
  --sh-sombra: 0 1px 0 rgba(26,29,33,.05), 0 10px 28px -14px rgba(40,32,18,.35);
  --sh-fuente: 'Archivo', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sh-tab-alto: 64px;
  --sh-seguro-abajo: env(safe-area-inset-bottom, 0px);
  --sh-rail: 272px;
}

/* ---------- Documento ---------- */
body.sh *, body.sh *::before, body.sh *::after { box-sizing: border-box; }
body.sh {
  background: var(--sh-pared) !important;
  color: var(--sh-tinta);
  font-family: var(--sh-fuente);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--sh-tab-alto) + var(--sh-seguro-abajo));
}
body.sh.sh-sin-pestanas { padding-bottom: 0; }
body.sh ::selection { background: var(--sh-marca); color: #fff; }
body.sh :focus-visible { outline: 3px solid var(--sh-marca); outline-offset: 2px; }
body.sh input, body.sh select, body.sh textarea { font-size: max(16px, 1em); }
.sh-i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sh-i.s { width: 20px; height: 20px; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior (móvil) ---------- */
.sh-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--sh-pared) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--sh-pared-3);
}
.sh-top-solo { position: static; justify-content: center; background: transparent; border: 0; padding-top: 28px; }
.sh-espacio { height: 16px; }
.sh-placa { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--sh-tinta); }
.sh-placa img { height: 30px; width: auto; display: block; }
.sh-placa span { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-top-solo .sh-placa img { height: 44px; }
.sh-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--sh-pauta-fuerte); background: var(--sh-tarjeta); color: var(--sh-tinta);
  display: grid; place-items: center; font: 700 14px/1 var(--sh-fuente); letter-spacing: .02em; cursor: pointer;
}

/* ---------- Barra lateral (PC) ---------- */
.sh-rail { display: none; }

/* ---------- Pestañas (móvil) ---------- */
.sh-pestanas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; height: calc(var(--sh-tab-alto) + var(--sh-seguro-abajo)); padding-bottom: var(--sh-seguro-abajo);
  background: var(--sh-tarjeta); border-top: 1px solid var(--sh-pauta-fuerte);
}
.sh-pestanas a {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font: 600 11.5px/1.1 var(--sh-fuente); color: var(--sh-tinta-3);
}
.sh-pestanas a[aria-current="page"] { color: var(--sh-marca); }
.sh-pestanas a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sh-marca);
}
.sh-insignia {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--sh-tinta); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Pie ---------- */
.sh-pie { display: flex; justify-content: center; padding: 28px 16px 20px; margin-top: auto; }
.sh-firma { display: inline-flex; align-items: center; gap: 8px; font: 400 13.5px/1.3 var(--sh-fuente); color: var(--sh-tinta-2); text-decoration: none; }
.sh-firma b { color: var(--sh-tinta); font-weight: 750; letter-spacing: -.01em; }
.sh-firma img { width: 18px; height: 18px; }
.sh-firma:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Alto útil para paneles que llenan la pantalla (tableta: barra superior +
   pestañas; PC: solo márgenes). */
.sh-alto-pantalla { height: calc(100dvh - 11.25rem - var(--sh-seguro-abajo)) !important; }
@media (min-width: 1024px) { .sh-alto-pantalla { height: calc(100dvh - 4.25rem) !important; } }

/* ---------- Submenú de área ---------- */
.sh-subnav {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 16px 4px; margin: -4px 0 16px; scroll-padding-inline: 16px;
}
.sh-subnav::-webkit-scrollbar { display: none; }
.sh-subnav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--sh-pauta-fuerte); background: var(--sh-tarjeta); color: var(--sh-tinta-2);
  font: 600 14.5px/1 var(--sh-fuente); text-decoration: none; white-space: nowrap;
}
.sh-subnav a:hover { border-color: var(--sh-tinta-3); color: var(--sh-tinta); }
.sh-subnav a[aria-current="page"] { background: var(--sh-tinta); border-color: var(--sh-tinta); color: #fff; }
.sh-subnav .sh-subnav-volver { padding: 0; width: 44px; justify-content: center; }
.sh-cuenta { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sh-tinta); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.sh-subnav a[aria-current="page"] .sh-cuenta { background: #fff; color: var(--sh-tinta); }

/* ---------- Contenido de las pantallas nuevas ---------- */
.sh-main { padding: 0 16px 24px; }
.sh-main.con-dock { padding-bottom: 108px; }
.sh-titulo { margin: 4px 0 16px; }
.sh-titulo h1 { font: 750 26px/1.1 var(--sh-fuente); letter-spacing: -.02em; font-stretch: 88%; margin: 0; text-wrap: balance; }
.sh-titulo p { margin: 4px 0 0; color: var(--sh-tinta-2); font-size: 15px; }
.sh-bloque { margin-top: 28px; }
.sh-bloque > h2 {
  font: 700 17px/1.3 var(--sh-fuente); margin: 0 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sh-bloque > h2 a { font-size: 15px; font-weight: 600; color: var(--sh-tinta); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; padding: 10px 0; }
.sh-bloque > h2 a:hover { text-decoration-thickness: 2px; }
.sh-vacio { color: var(--sh-tinta-2); font-size: 15px; margin: 0; }

.sh-aviso { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.sh-aviso.ok { background: var(--sh-ok-fondo); color: var(--sh-ok); }
.sh-aviso.alerta { background: var(--sh-aviso-fondo); color: var(--sh-aviso); }
.sh-aviso.error { background: var(--sh-tarde-fondo); color: var(--sh-tarde); }

/* Hoy: en el móvil una sola columna en orden de urgencia (tarjeta, lo que
   me espera, próximos días, casillero); en PC dos columnas. */
.sh-rejilla-hoy { display: flex; flex-direction: column; }
.sh-rejilla-hoy > aside { display: contents; }
.sh-rejilla-hoy .sh-hoy-esperando { order: 2; }
.sh-rejilla-hoy .sh-hoy-proximos { order: 3; }
.sh-rejilla-hoy .sh-hoy-casillero { order: 4; }

/* Tarjeta de jornada */
.sh-tarjeta {
  position: relative; background: var(--sh-tarjeta); border: 1px solid var(--sh-pauta-fuerte);
  border-radius: var(--sh-radio-tarjeta); box-shadow: var(--sh-sombra); overflow: hidden;
}
.sh-tarjeta-cab { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--sh-pauta-fuerte); }
.sh-celda { padding: 8px 12px 10px; min-width: 0; }
.sh-celda + .sh-celda { border-left: 1px solid var(--sh-pauta); }
.sh-rotulo { display: block; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--sh-tinta-3); }
.sh-valor { display: block; font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-centros { padding: 10px 12px 12px; border-bottom: 1px solid var(--sh-pauta); }
.sh-segmento { display: flex; width: 100%; background: var(--sh-pared-2); border-radius: 10px; padding: 3px; gap: 3px; }
.sh-segmento button, .sh-segmento label {
  flex: 1; min-height: 44px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font: 600 15px/1.2 var(--sh-fuente); color: var(--sh-tinta-2);
}
.sh-segmento [aria-pressed="true"], .sh-segmento input:checked + span { color: var(--sh-tinta); }
.sh-segmento [aria-pressed="true"], .sh-segmento label:has(input:checked) { background: var(--sh-tarjeta); color: var(--sh-tinta); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sh-segmento input { position: absolute; opacity: 0; pointer-events: none; }
.sh-casillas { display: grid; grid-template-columns: repeat(4, 1fr); }
.sh-casilla { padding: 10px 6px 14px; min-height: 92px; text-align: center; min-width: 0; }
.sh-casilla + .sh-casilla { border-left: 1px solid var(--sh-pauta); }
.sh-casilla .sh-rotulo { font-size: 10.5px; letter-spacing: .07em; }
.sh-hora { display: block; margin-top: 12px; font: 750 30px/1 var(--sh-fuente); font-stretch: 72%; letter-spacing: -.01em; }
.sh-hora.vacia { color: var(--sh-pauta-fuerte); font-weight: 500; }
.sh-hora.estampada { color: var(--sh-sello); transform: rotate(-3deg); text-shadow: 0 0 .7px rgba(47,42,120,.6), .4px .3px 0 rgba(47,42,120,.18); opacity: .94; }
.sh-hora.fuera { color: var(--sh-tarde); }
.sh-casilla .sh-nota { display: block; margin-top: 6px; font-size: 11.5px; color: var(--sh-tarde); font-weight: 600; }
.sh-estampar { animation: sh-estampar 260ms cubic-bezier(.16,1,.3,1) both; }
@keyframes sh-estampar {
  0% { opacity: 0; transform: scale(1.5) rotate(-6deg); filter: blur(3px); }
  60% { opacity: 1; transform: scale(.96) rotate(-2.6deg); filter: blur(0); }
  100% { opacity: .94; transform: scale(1) rotate(-3deg); }
}
.sh-estado { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--sh-pauta-fuerte); font-size: 15px; }
.sh-estado .sep { color: var(--sh-pauta-fuerte); }
.sh-marca-estado { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sh-marca-estado.dentro { color: var(--sh-ok); }
.sh-marca-estado.pausa { color: var(--sh-aviso); }
.sh-marca-estado.fuera { color: var(--sh-tinta-2); }
.sh-enlace-sutil {
  margin-left: auto; background: none; border: 0; padding: 0 2px; min-height: 44px; cursor: pointer;
  color: var(--sh-tinta-2); text-decoration: underline; text-underline-offset: 3px; font: 400 14px/1 var(--sh-fuente);
  display: inline-flex; align-items: center;
}
.sh-acciones-tarjeta { display: none; }
.sh-pie-imprenta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 12px 7px; border-top: 1px dashed var(--sh-pauta-fuerte);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-tinta-3); font-stretch: 85%;
}

/* Botones */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--sh-radio-control); cursor: pointer;
  font: 650 16px/1.15 var(--sh-fuente); border: 1px solid transparent; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.sh-btn:active { transform: translateY(1px) scale(.99); }
.sh-btn-primario { background: var(--sh-marca); color: #fff; }
.sh-btn-primario:hover { background: var(--sh-marca-hover); }
.sh-btn-secundario { background: var(--sh-tarjeta); border-color: var(--sh-pauta-fuerte); color: var(--sh-tinta); }
.sh-btn-secundario:hover { background: #fff; border-color: var(--sh-tinta-3); }
.sh-btn-plano { background: transparent; color: var(--sh-tinta-2); }
.sh-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sh-btn-grande { min-height: 64px; font-size: 18px; border-radius: 14px; }
.sh-btn-peq { min-height: 44px; padding: 0 14px; font-size: 15px; }
.sh-btn-ancho { width: 100%; }
.sh-btn.cargando { pointer-events: none; opacity: .75; }

.sh-dock {
  position: fixed; left: 0; right: 0; bottom: calc(var(--sh-tab-alto) + var(--sh-seguro-abajo)); z-index: 15;
  display: flex; gap: 10px; padding: 12px 16px;
  background: linear-gradient(to top, var(--sh-pared) 70%, color-mix(in srgb, var(--sh-pared) 0%, transparent));
}
.sh-dock form { display: contents; }
.sh-dock .sh-btn-secundario { flex: 0 0 38%; }
.sh-dock .sh-btn-primario { flex: 1; }
.sh-cerrada { flex: 1; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--sh-tinta-2); font-weight: 600; }

/* Listas y filas */
.sh-lista { container-type: inline-size; background: var(--sh-tarjeta); border: 1px solid var(--sh-pauta-fuerte); border-radius: var(--sh-radio-tarjeta); box-shadow: var(--sh-sombra); }
.sh-fila { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 64px; text-decoration: none; color: var(--sh-tinta); }
.sh-fila + .sh-fila { border-top: 1px solid var(--sh-pauta); }
a.sh-fila:hover, button.sh-fila:hover { background: #fff; }
button.sh-fila { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.sh-cuerpo { flex: 1; min-width: 0; }
.sh-t { display: block; font-weight: 650; font-size: 16px; }
.sh-d { display: block; color: var(--sh-tinta-2); font-size: 14px; margin-top: 1px; }
.sh-fila .sh-acciones { display: flex; gap: 8px; flex: none; }
.sh-fila .sh-acciones form { display: contents; }
.sh-chev { color: var(--sh-tinta-3); }
.sh-glifo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--sh-pared-2); color: var(--sh-tinta); }
.sh-glifo.alerta { background: var(--sh-aviso-fondo); color: var(--sh-aviso); }
.sh-glifo.ok { background: var(--sh-ok-fondo); color: var(--sh-ok); }
.sh-fila-decidir { flex-wrap: wrap; }
.sh-fila-decidir .sh-acciones { width: 100%; padding-left: 52px; }
.sh-fila-decidir .sh-acciones .sh-btn { flex: 1; }
@container (min-width: 560px) {
  .sh-fila-decidir { flex-wrap: nowrap; }
  .sh-fila-decidir .sh-acciones { width: auto; padding-left: 0; }
  .sh-fila-decidir .sh-acciones .sh-btn { flex: none; }
}
/* Ranura del casillero: hueco con profundidad y una boca oscura arriba.
   Si la herramienta tiene algo pendiente, una tarjeta pautada sale de la
   boca con el número estampado (sh-asoma). */
.sh-ranura {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: var(--sh-pared-2);
  box-shadow: inset 0 3px 5px rgba(40,32,18,.22), inset 0 -1px 0 rgba(255,255,255,.55), 0 1px 0 rgba(255,255,255,.6);
  display: grid; place-items: end center; padding-bottom: 6px; color: var(--sh-tinta);
}
.sh-ranura::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 8px; height: 4px; border-radius: 2px; z-index: 2;
  background: rgba(26,29,33,.62); box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.sh-ranura .sh-i { position: relative; z-index: 1; }
.sh-asoma {
  position: absolute; left: 50%; bottom: calc(100% - 10px); z-index: 1;
  min-width: 30px; height: 27px; padding: 2px 5px 0;
  transform: translateX(-50%) rotate(-4deg); transform-origin: 50% 100%;
  background: var(--sh-tarjeta) repeating-linear-gradient(to bottom, transparent 0 8px, var(--sh-pauta) 8px 9px);
  border: 1px solid var(--sh-pauta-fuerte); border-bottom: 0; border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 6px rgba(40,32,18,.16);
  font: 800 15px/19px var(--sh-fuente); font-stretch: 72%; color: var(--sh-sello); text-align: center;
  text-shadow: 0 0 .6px rgba(47,42,120,.5);
}
.sh-casillero .sh-fila { padding-top: 20px; padding-bottom: 14px; }
.sh-grupo + .sh-grupo { margin-top: 24px; }
.sh-grupo > h2 { font: 700 15px/1.3 var(--sh-fuente); color: var(--sh-tinta-2); margin: 0 0 8px; }
.sh-buscar { display: block; position: relative; margin-bottom: 20px; }
.sh-buscar input {
  width: 100%; min-height: 52px; padding: 0 14px 0 44px; font: 400 16px var(--sh-fuente);
  background: var(--sh-tarjeta); border: 1px solid var(--sh-pauta-fuerte); border-radius: var(--sh-radio-control); color: var(--sh-tinta);
}
.sh-buscar .sh-i { position: absolute; left: 12px; top: 16px; color: var(--sh-tinta-3); }

/* Turnos */
.sh-fecha { width: 52px; flex: none; text-align: center; }
.sh-fecha small { display: block; font-size: 12px; font-weight: 650; color: var(--sh-tinta-3); text-transform: uppercase; letter-spacing: .06em; }
.sh-fecha b { display: block; font: 750 24px/1 var(--sh-fuente); font-stretch: 72%; }
.sh-rango { display: block; font: 750 22px/1.15 var(--sh-fuente); font-stretch: 72%; color: var(--sh-sello); }
.sh-rango.libre { color: var(--sh-tinta-3); font-weight: 600; font-size: 18px; font-stretch: 90%; }

/* Sello de resolución (Gestión) */
.sh-sello {
  display: inline-block; padding: 4px 10px; border: 2px solid currentColor; border-radius: 6px;
  font: 800 14px/1.2 var(--sh-fuente); letter-spacing: .1em; text-transform: uppercase; font-stretch: 75%; transform: rotate(-3deg);
}
.sh-sello.aprobada { color: var(--sh-ok); }
.sh-sello.rechazada { color: var(--sh-tarde); }

/* Hojas (dialog) */
dialog.sh-hoja {
  margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88dvh; padding: 0; border: 0;
  border-radius: 18px 18px 0 0; background: var(--sh-tarjeta); color: var(--sh-tinta); font-family: var(--sh-fuente);
  box-shadow: 0 -10px 40px rgba(0,0,0,.25);
}
dialog.sh-hoja::backdrop { background: rgba(26,29,33,.45); }
dialog.sh-hoja[open] { animation: sh-subir 240ms cubic-bezier(.16,1,.3,1); }
@keyframes sh-subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-hoja-cuerpo { padding: 8px 16px calc(20px + var(--sh-seguro-abajo)); }
.sh-asa { width: 40px; height: 5px; border-radius: 3px; background: var(--sh-pauta-fuerte); margin: 8px auto 12px; }
.sh-hoja h2 { font: 750 20px/1.2 var(--sh-fuente); margin: 0 0 6px; }
.sh-hoja p.sh-ayuda { color: var(--sh-tinta-2); font-size: 15px; margin: 0 0 16px; }
.sh-cuenta-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.sh-cuenta-cab .sh-avatar { width: 52px; height: 52px; font-size: 16px; cursor: default; }
.sh-cuenta-cab b { display: block; font-size: 18px; }
.sh-cuenta-cab span:not(.sh-avatar) { color: var(--sh-tinta-2); font-size: 14.5px; }
.sh-cuenta-firma { display: flex; justify-content: center; margin-top: 18px; }

/* Formularios */
.sh-campo { display: block; margin-bottom: 14px; }
.sh-campo > span { display: block; font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.sh-campo input, .sh-campo select {
  width: 100%; min-height: 52px; padding: 0 14px; font: 400 16px var(--sh-fuente); color: var(--sh-tinta);
  border: 1px solid var(--sh-tinta-3); border-radius: 10px; background: #fff;
}
.sh-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Acceso: la tarjeta de fichar en blanco, con muesca de reloj arriba. */
.sh-login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 24px; gap: 24px; }
.sh-login .sh-tarjeta { width: 100%; max-width: 420px; overflow: visible; }
.sh-login .sh-tarjeta::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: 44px; height: 14px; transform: translateX(-50%);
  background: var(--sh-pared); border: 1px solid var(--sh-pauta-fuerte); border-top: 0; border-radius: 0 0 22px 22px;
}
.sh-celda-logo { display: flex; align-items: center; padding: 14px 12px; }
.sh-celda-logo img { height: 40px; width: auto; max-width: 100%; display: block; }
.sh-login-titulo { font: 750 22px/1.2 var(--sh-fuente); font-stretch: 88%; letter-spacing: -.01em; margin: 0; padding: 16px 16px 14px; border-bottom: 1px solid var(--sh-pauta-fuerte); }
.sh-login form { margin: 0; }
.sh-campo-celda { display: block; padding: 10px 16px 14px; border-bottom: 1px solid var(--sh-pauta); }
.sh-campo-celda .sh-rotulo { margin-bottom: 8px; }
.sh-campo-celda input {
  width: 100%; min-height: 52px; padding: 0 14px; font: 400 17px var(--sh-fuente); color: var(--sh-tinta);
  border: 1px solid var(--sh-tinta-3); border-radius: 10px; background: #fff;
}
.sh-login-accion { padding: 16px; }
.sh-login .sh-aviso { margin: 12px 16px 0; }

/* Textos dentro de la tarjeta de acceso / nueva contraseña. */
.sh-login-texto { padding: 14px 16px 0; font-size: 16px; line-height: 1.5; color: var(--sh-tinta-2); }
.sh-login-texto p { margin: 0 0 10px; }
.sh-login-texto .sh-aviso { margin: 0 0 12px; }
.sh-login-texto-compacto { padding-top: 10px; }
.sh-dato { display: block; font: 700 18px/1.3 var(--sh-fuente); color: var(--sh-tinta); word-break: break-all; }
.sh-login-texto .sh-dato { display: inline; }
.sh-mostrar { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--sh-tinta); cursor: pointer; }
.sh-mostrar input { width: 22px; height: 22px; accent-color: var(--sh-marca); }
.sh-nota { font-size: 14px; color: var(--sh-tinta-3); }
.sh-olvido { max-width: 420px; width: 100%; margin: -8px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--sh-tinta-2); }
.sh-olvido a { padding: 12px 0; color: var(--sh-tinta); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PC: pantalla completa con barra lateral ---------- */
@media (min-width: 1024px) {
  body.sh { padding-bottom: 0; }
  body.sh.sh-con-rail { padding-left: var(--sh-rail); }
  .sh-top:not(.sh-top-solo), .sh-pestanas, .sh-dock { display: none; }
  .sh-espacio { height: 28px; }
  .sh-rail {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: var(--sh-rail); z-index: 25;
    background: var(--sh-pared-2); border-right: 1px solid var(--sh-pared-3); padding: 20px 14px 14px;
  }
  .sh-rail .sh-placa { padding: 4px 8px 20px; }
  .sh-rail .sh-placa img { height: 36px; }
  .sh-rail-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
  .sh-rail-nav h3 { font: 650 12.5px/1.2 var(--sh-fuente); color: var(--sh-tinta-3); margin: 18px 10px 6px; }
  .sh-rail-nav a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; position: relative;
    text-decoration: none; font: 550 15px/1.2 var(--sh-fuente); color: var(--sh-tinta-2);
  }
  .sh-rail-nav a:hover { background: var(--sh-pared-3); color: var(--sh-tinta); }
  .sh-rail-nav a[aria-current="page"] { background: var(--sh-tarjeta); color: var(--sh-marca); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
  .sh-rail-nav .sh-cuenta { margin-left: auto; min-width: 22px; height: 22px; }
  .sh-subnav { padding: 0 40px 4px; }
  .sh-rail-pie { border-top: 1px solid var(--sh-pared-3); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
  .sh-rail-usuario { display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 6px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--sh-tinta); }
  .sh-rail-usuario:hover { background: var(--sh-pared-3); }
  .sh-rail-usuario b { display: block; font-size: 15px; }
  .sh-rail-usuario small { display: block; color: var(--sh-tinta-3); font-size: 13px; }
  .sh-rail .sh-firma { padding: 0 6px; font-size: 12.5px; }
  body.sh .sh-pie { display: none; }
  .sh-main, .sh-main.con-dock { padding: 0 40px 48px; }
  .sh-titulo h1 { font-size: 30px; }
  .sh-rejilla-hoy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); grid-template-rows: auto 1fr; column-gap: 32px; align-items: start; }
  .sh-rejilla-hoy > .sh-hoy-tarjeta { grid-column: 1; grid-row: 1; }
  .sh-rejilla-hoy > aside { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .sh-rejilla-hoy > .sh-hoy-proximos { grid-column: 1; grid-row: 2; }
  .sh-rejilla-hoy > aside > .sh-bloque:first-child { margin-top: 0; }
  .sh-rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .sh-rejilla-hoy > * > .sh-bloque:first-child, .sh-rejilla-2 > * > .sh-bloque:first-child, .sh-rejilla-2 > * > .sh-grupo:first-child { margin-top: 0; }
  .sh-columnas { columns: 2; column-gap: 32px; }
  .sh-columnas .sh-grupo { break-inside: avoid; margin: 0 0 24px; }
  .sh-acciones-tarjeta { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--sh-pauta); }
  .sh-acciones-tarjeta form { display: contents; }
  .sh-acciones-tarjeta .sh-btn-primario { flex: 1; }
  .sh-hora { font-size: 44px; margin-top: 16px; }
  .sh-casilla { min-height: 118px; }
  dialog.sh-hoja { margin: auto; border-radius: 16px; }
  .sh-asa { display: none; }
  .sh-hoja-cuerpo { padding-top: 20px; }
}
@media (max-width: 359px) {
  .sh-hora { font-size: 25px; }
  .sh-casilla .sh-rotulo { font-size: 9.5px; letter-spacing: .03em; }
  .sh-pestanas a { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-estampar, dialog.sh-hoja[open] { animation: none !important; }
  .sh-btn { transition: none; }
}
