/* ID-TECH · Identidad OfficeTech. Capa visual sobre panel.css, sin dependencias. */
:root {
  --azul: #1a1a1a; --azul2: #303033; --naranja: #f5920c;
  --fondo: #f5f5f3; --texto: #202124; --suave: #626568; --linea: #e2e3df;
  --verde: #176448; --ambar: #8b5600; --rojo: #ae342c; --gris: #626568;
  --radio: 14px;
}
body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.55; }
a { text-underline-offset: 3px; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
h2 { letter-spacing: -.02em; font-weight: 650; }
.barra { padding: 12px 24px; gap: 24px; border-bottom: 3px solid var(--naranja); }
.marca { gap: 10px; flex-shrink: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.035em; }
.marca img { width: 32px; height: 32px; }
.marca small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .14em; color: #b7b7b4; line-height: 1.4; }
.barra nav { gap: 3px; align-items: center; }
.barra nav a { color: #d1d1cd; font-size: 13px; padding: 10px 11px; min-height: 42px; }
.barra nav a:hover { background: #303032; }
.barra nav a.act { background: var(--naranja); color: #1a1a1a; font-weight: 700; }
.barra nav a.salir { color: #ffc477; }
.hamb { width: 44px; min-height: 44px; border: 1px solid #555; border-radius: 9px; }
.empresa-actual { padding: 13px max(24px, calc((100% - 1152px) / 2)); font-size: 12px; gap: 12px; }
.empresa-actual > span { letter-spacing: .025em; overflow-wrap: anywhere; min-width: 0; }
.empresa-actual img { flex-shrink: 0; }
.empresa-actual .cambiar { color: #626568; font-size: 12px; flex-shrink: 0; padding: 8px 0; }
.contenido { max-width: 1200px; padding: 30px 24px 48px; min-width: 0; }
.encab { margin-bottom: 24px; }
.caja { padding: 24px; box-shadow: 0 2px 5px #20212403; }
.fila > *, .rejilla > * { min-width: 0; }
.btn { min-height: 44px; justify-content: center; padding: 10px 16px; border-radius: 9px; font-size: 13px; transition: background .15s, box-shadow .15s; }
.btn:hover { filter: none; box-shadow: 0 3px 9px #20212418; }
.btn.naranja { color: #1a1a1a; font-weight: 750; }
.btn.naranja:hover { background: #ffab39; border-color: #ffab39; }
.btn.sec { border-color: #d4d5cf; }
.btn.sec:hover { background: #f5f5f3; }
.btn.peq { min-height: 36px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b56500; outline-offset: 3px;
}
.barra a:focus-visible, .barra button:focus-visible { outline-color: #ffbe66; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea {
  border-color: #cccec7; min-height: 44px; border-radius: 9px;
}
input:focus, select:focus, textarea:focus { outline-color: #e5ae64; border-color: #a96100; }
.filtros { padding: 16px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); gap: 10px; margin-bottom: 18px; }
.lista th { background: #f8f8f5; font-size: 10px; letter-spacing: .07em; padding: 13px 14px; }
.lista td { padding: 14px; font-size: 13px; }
.lista td a { text-decoration: none; }
.lista td a:hover { text-decoration: underline; }
.lista tr:hover td { background: #faf9f6; }
.pill { font-size: 10px; letter-spacing: .035em; padding: 4px 8px; line-height: 1.35; }
.avatar, .avatar-g { background: #f1eee7; }
.cifras { gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.cifra { position: relative; min-width: 0; padding: 20px; transition: border-color .15s, box-shadow .15s; }
a.cifra:hover { border-color: #c18b45; box-shadow: 0 4px 12px #20212408; }
.cifra b { font-size: 2rem; font-weight: 650; letter-spacing: -.04em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.cifra span { font-size: 12px; }
.cifra.verde { border-top: 3px solid #327859; }
.cifra.ambar { border-top: 3px solid var(--naranja); }
.cifra.rojo { border-top: 3px solid #c65b50; }
.cifra:not(.verde):not(.ambar):not(.rojo) { border-top: 3px solid #8b8d86; }
.cifra:first-child { border-top-color: #202124; }
.pie { border-top: 1px solid var(--linea); background: #fff; font-size: 11px; padding: 20px 24px; }
.login { max-width: 420px; }
.login .caja { padding: 30px; border-top: 3px solid var(--naranja); }
.paginas a, .paginas span { min-width: 40px; min-height: 40px; text-align: center; padding: 8px; }
.datos dd { overflow-wrap: anywhere; }
.inicio-bienvenida { background: #1a1a1a; color: #fff; border-radius: 16px; padding: 28px; align-items: center; position: relative; border-left: 4px solid var(--naranja); }
.inicio-ceja { margin: 0 0 10px; color: #ffb855; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.inicio-bienvenida h1 { margin: 0; }
.inicio-descripcion { margin: 10px 0 0; color: #c8c8c3; font-size: 13px; }
.inicio-secciones { gap: 20px; }
.inicio-secciones > .caja { margin: 0; overflow: hidden; }
.inicio-secciones h2 { margin: 0; font-size: 17px; }
.seccion-descripcion { color: var(--suave); font-size: 12px; margin: 5px 0 20px; }
.inicio-secciones .vacio { background: #f7f8f4; border: 1px dashed #d9ddd2; border-radius: 12px; padding: 32px 20px; margin: 24px 0 0; font-size: 13px; }
.inicio-secciones .tabla-env { border: 0; border-radius: 0; }
.inicio-secciones .lista td:first-child { overflow-wrap: anywhere; }
.inicio-secciones .lista td:last-child { white-space: nowrap; color: var(--suave); font-size: 11px; }
@media (min-width: 1100px) {
  .cifras { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .inicio-secciones > .caja:first-child { flex: 1 1 340px; }
  .inicio-secciones > .caja:last-child { flex: 1.45 1 480px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .barra { flex-wrap: wrap; gap: 12px; }
  .barra nav { width: 100%; margin: 0; }
}
@media (max-width: 760px) {
  .barra { padding: 10px 16px; gap: 12px; }
  .barra nav { margin: 0; align-items: stretch; max-height: 65vh; overflow-y: auto; }
  .barra nav a { min-height: 44px; }
  .empresa-actual { padding: 10px 16px; flex-wrap: wrap; gap: 6px 10px; }
  .empresa-actual > span { flex: 1 1 220px; font-size: 11px; }
  .empresa-actual .cambiar { min-height: 36px; }
  .contenido { padding: 20px 16px 32px; }
  .inicio-bienvenida { padding: 22px 20px; gap: 20px; }
  .inicio-bienvenida .acciones { margin: 0; width: 100%; }
  .inicio-bienvenida .btn { width: 100%; }
  .inicio-descripcion { max-width: 34ch; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cifra { padding: 16px; }
  .cifra b { font-size: 1.8rem; }
  .caja { padding: 20px 16px; }
  .inicio-secciones { flex-direction: column; }
  .inicio-secciones > .caja { flex: auto; width: 100%; }
  .inicio-secciones .lista td, .inicio-secciones .lista th { padding: 12px 5px; }
  .inicio-secciones .lista td { font-size: 12px; }
  .inicio-secciones .pill { font-size: 9px; padding: 4px 6px; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea { font-size: 16px; }
  .filtros select { flex: 1 1 160px; max-width: 100%; }
  .rejilla { grid-template-columns: minmax(0, 1fr); }
  .datos { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .datos dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .cifra { transition: none; } }
