:root {
  /* palette minimal - LIGHT THEME (plata muerta / papel) */
  --pv-bg: #eaebedee; /* fondo app - gris plata */
  --pv-surface: #f5f5f4; /* superficies - papel cremoso */
  --pv-surface-2: #ebebea; /* paneles - plata suave */
  --pv-border: #d4d4d3; /* bordes - gris cálido */
  --pv-text: #1c1917; /* texto principal - casi negro cálido */
  --pv-text-dim: #78716c; /* texto secundario - stone */
  --pv-primary: #0546f8; /* acento */
  --pv-ok: #10b981;
  --pv-warn: #f59e0b;
  --pv-danger: #ef4444;
  /* spacing & radii */
  --pv-gap-xxs: 0.25rem;
  --pv-gap-xs: 0.5rem;
  --pv-gap-sm: 0.75rem;
  --pv-gap: 1rem;
  --pv-gap-lg: 1.25rem;
  --pv-gap-xl: 1.5rem;
  --pv-radius: 12px;
  --pv-radius-lg: 16px;
  /* sizes */
  --pv-header-h: 60px;
  --pv-topbar-h: 56px;
  --pv-ribbon-h: 80px;
  --pv-avatar-size: 28px;
  --pv-avatar-size-lg: 40px;
  --pv-avatar-size-sm: 20px;
  /* font */
  --pv-font: "Inter", system-ui, Segoe UI, Roboto, Arial;

  /* personalizados Sergio - INVERTED (plata muerta) */
  --pv-color-contraste-1: #f5f5f4;
  --pv-color-contraste-2: #1c1917;
  --pv-color-azul-1: #1202f1;
  --pv-color-azul-2: #e7e5e4;
  --pv-color-verde-1: #049c3c;
  --pv-color-rojo-1: #ff3b30;
  --pv-radius-ajustes: 2px;

  --pv-color-dis-gris-1: #d6d3d1; /* ribbon + iconos + toggle - stone */
  --pv-color-dis-gris-2: #e7e5e4; /* botones superiores */

  --pv-color-tobar: #f5f5f4; /* topbar - papel */
  --pv-color-boton: #e7e5e4; /* botones superiores */
  --pv-color-btn-seleccionado: #d6d3d1; /* botones seleccionado */
  --pv-color-ribbon: #ebebea; /* ribbon - plata suave */
  --pv-color-toggle: #ebebea; /* ribbon*/
  --pv-color-iconos: #e7e5e4; /* iconos - stone claro */
  --pv-color-bordes: #d4d4d3;
  --pv-color-relleno: #1c1917;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--pv-bg);
  color: var(--pv-text);
  font: 14px/1.45 var(--pv-font);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
}

/* Shell */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.app__top {
  height: var(--pv-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--pv-border);
  background: var(--pv-surface);
}
.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.brand__logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__name {
  font-weight: 700;
  font-size: 24px;
}

/* Views */
.view {
  flex: 1;
  overflow: hidden;
  display: block;
}
.hidden {
  display: none !important;
}

/* Login */
.login {
  width: min(460px, 92vw);
  margin: 6vh auto 0;
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  padding: var(--pv-gap-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.login__title {
  margin: 0 0 0.75rem;
}
.label {
  font-size: 0.9rem;
  color: var(--pv-text-dim);
}
.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--pv-border);
  background: var(--pv-surface);
  color: var(--pv-text);
}
.muted {
  color: var(--pv-text-dim);
}
.link {
  color: var(--pv-primary);
}

/* Components moved to components.css to avoid duplication */
