:root {
  --color-bg-base: #181b34;
  --color-bg-surface: #30324e;
  --color-bg-elevated: #383b58;
  --color-border: #4b4e69;
  --color-border-subtle: #3d3f5c;
  --color-accent: #0073ea;
  --color-accent-hover: #0060c0;
  --color-accent-light: #579bfc;
  --color-error: #e2445c;
  --color-text-primary: #d5d8df;
  --color-text-secondary: #9699a6;
  --color-text-muted: #9699a6;
  --color-text-dim: #676879;
  --font-inter: 'Inter', sans-serif;
  --font-playfair: 'Playfair Display', serif;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 100px;
  --topbar-h: 48px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }

button { cursor: pointer; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-dim); }

/* ——— Shell ——— */
.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-surface);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
  overflow: hidden;
  transition: width 0.2s ease;
}

.shell.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.sidebar-brand {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
}

.sidebar-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.sidebar-logo-corto { width: 64px; height: 64px; object-fit: contain; display: none; }
.shell.sidebar-collapsed .sidebar-logo { display: none; }
.shell.sidebar-collapsed .sidebar-logo-corto { display: block; }
.shell.sidebar-collapsed .sidebar-title { display: none; }

.sidebar-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--color-bg-elevated);
  color: #fff;
}

.nav-item.activo { color: #fff; }

.nav-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.nav-item.activo .nav-item-icon { background: rgb(19, 55, 116); }

.nav-item-label { font-size: 0.875rem; white-space: nowrap; }

.shell.sidebar-collapsed .nav-item {
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
}

.shell.sidebar-collapsed .nav-item-label {
  font-size: 0.7rem;
  letter-spacing: -0.02em;
}

.sidebar-footer {
  border-top: 1px solid var(--color-border);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-collapse {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.btn-collapse:hover {
  background: var(--color-bg-elevated);
  color: #fff;
}

.user-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.user-name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.user-rol {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 2px 8px;
}

.user-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 4px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.btn-icon:hover { color: #fff; }
.btn-icon.danger:hover { color: var(--color-error); }

.shell.sidebar-collapsed .user-block { display: none; }

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: var(--color-bg-surface);
}

.canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--color-border);
  border-top-left-radius: 16px;
  background: var(--color-bg-base);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 28px 32px;
}

.btn-menu-movil {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 40;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-surface);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
}

.vista { display: none; }
.vista.activo { display: block; }

.modulo-vacio {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

#vista-catalogo .modulo-header,
#vista-proveedores .modulo-header { margin-bottom: 0; }

.submodulos {
  display: flex;
  gap: 4px;
  margin: 18px 0 20px;
  border-bottom: 1px solid var(--color-border);
}

.submodulo-tab {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px 10px;
  position: relative;
}

.submodulo-tab:hover { color: #fff; }

.submodulo-tab.activo {
  color: #fff;
}

.submodulo-tab.activo::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px 2px 0 0;
}

.catalogo-sub { display: none; }
.catalogo-sub.activo { display: block; }

.catalogo-acciones {
  justify-content: flex-end;
  margin-bottom: 16px;
}

.tabla-servicios {
  min-width: 1480px;
}

.tabla-servicios th,
.tabla-servicios td {
  white-space: nowrap;
  text-align: center;
}

.tabla-servicios .tabla-acciones {
  justify-content: center;
}

.tabla-servicios .celda-nombre {
  white-space: normal;
  min-width: 200px;
}

.tabla-servicios .celda-notas {
  white-space: normal;
  min-width: 260px;
  max-width: 340px;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tabla-servicios .celda-num {
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-grid .span-2 { grid-column: 1 / -1; }

.form-row textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  resize: vertical;
  font: inherit;
  text-align: center;
}

.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-row input[readonly] {
  color: var(--color-text-secondary);
}

/* ——— Gestión ——— */
.modulo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modulo-titulo {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.modulo-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-buscar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-buscar-icon {
  position: absolute;
  left: 12px;
  color: var(--color-text-dim);
  pointer-events: none;
}

.input-buscar {
  height: 36px;
  min-width: 240px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.input-buscar::placeholder {
  color: var(--color-text-dim);
}

.input-buscar:focus {
  outline: none;
  border-color: var(--color-accent);
}

.input-buscar::-webkit-search-decoration,
.input-buscar::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.btn {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover { background: var(--color-bg-elevated); }

.tabla-wrap {
  overflow: auto;
  background: #1c1f3a;
  border: 1px solid rgba(0, 115, 234, 0.35);
  border-radius: 12px;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tabla th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: 12px 14px;
}

.tabla td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
}

.tabla tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.tabla.tabla-servicios th,
.tabla.tabla-servicios td {
  text-align: center;
}

.tabla tr:last-child td { border-bottom: 0; }

.tabla-vacio {
  text-align: center;
  color: var(--color-text-dim);
  padding: 32px 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-rol { background: rgba(0, 115, 234, 0.18); color: var(--color-accent-light); }
.badge-activo { background: rgba(0, 200, 117, 0.16); color: #3dd68c; }
.badge-inactivo { background: rgba(226, 68, 92, 0.14); color: #e2445c; }

.tabla-acciones { display: flex; gap: 6px; }

.btn-mini {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
}

.btn-mini:hover { color: #fff; }
.btn-mini.danger:hover { color: var(--color-error); }

.fecha-dim { color: var(--color-text-secondary); font-size: 0.82rem; }

/* ——— Modal ——— */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 10, 24, 0.62);
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
}

.modal-overlay.abierto { display: flex; }

.modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 48px);
  margin-top: auto;
  margin-bottom: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.modal.modal-wide { max-width: 720px; }

.modal h3 {
  position: sticky;
  top: -24px;
  z-index: 1;
  margin: 0 0 18px;
  padding: 4px 0 12px;
  background: var(--color-bg-surface);
  font-size: 1.15rem;
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.form-row input,
.form-row select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  text-align: center;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.bt-dropdown {
  position: relative;
  width: 100%;
}

.bt-dropdown-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bt-dropdown-trigger {
  width: 100%;
  height: 40px;
  padding: 0 48px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: inherit;
  text-align: center;
}

.bt-dropdown-trigger:focus,
.bt-dropdown.abierto .bt-dropdown-trigger {
  outline: none;
  border-color: var(--color-accent);
}

.bt-dropdown .login-usuario-arrow {
  display: inline-flex;
}

.bt-dropdown.abierto .login-usuario-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
}

.modal:has(.bt-dropdown.abierto) {
  overflow: visible;
}

.filtro-dropdown {
  width: 180px;
}

.filtro-tipo-trigger {
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-elevated);
}

.ofertas-lista {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.oferta-grupo-nombre {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oferta-grupo-tipo {
  margin: 6px 0 18px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.oferta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 220px));
  gap: 16px;
}

.oferta-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-base);
}

.oferta-card-nombre {
  margin: 0 0 auto;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.oferta-card-meta,
.oferta-card-precio {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
}

.oferta-card-meta {
  margin-top: 18px;
  color: var(--color-text-secondary);
}

.oferta-card-precio {
  margin: 6px 0 18px;
  color: var(--color-text-primary);
}

.oferta-card .btn {
  align-self: center;
}

.modal-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(226, 68, 92, 0.12);
  border: 1px solid rgba(226, 68, 92, 0.3);
  color: var(--color-error);
  font-size: 0.85rem;
  text-align: center;
}

.modal-error.visible { display: block; }

.modal-acciones {
  position: sticky;
  bottom: -24px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 0 4px;
  background: var(--color-bg-surface);
}

/* ——— Login ——— */
body.login-page {
  min-height: 100vh;
  background-color: #080f1a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%230057D9' stroke-width='0.3' opacity='0.4'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 87, 217, 0.10) 0%, transparent 70%);
}

.login-layout {
  position: relative;
  min-height: 100vh;
  display: flex;
}

.login-grid-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.login-brand {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 64px 40px;
  z-index: 1;
}

.login-brand-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-brand-main [data-no-particles] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 32px; }

.login-brand h1 {
  margin: 0 0 12px;
  font-family: var(--font-playfair);
  font-size: 3rem;
  color: var(--color-text-primary);
  line-height: 1;
}

.login-underline {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

.login-tagline {
  margin: 0 0 48px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.625;
  white-space: nowrap;
}

.login-features {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.login-feature {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(0, 115, 234, 0.3);
  color: var(--color-accent);
}

.login-copy {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--color-text-dim);
}

.login-panel {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 64px 24px;
  z-index: 1;
}

.login-card-wrap { position: relative; width: 100%; max-width: 420px; display: flex; }

.login-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(0, 87, 217, 0.2);
  filter: blur(48px);
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  background: #0c1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-playfair);
  font-size: 1.9rem;
  text-align: center;
}

.login-card .login-sub {
  margin: 0 0 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.login-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(226, 68, 92, 0.12);
  border: 1px solid rgba(226, 68, 92, 0.3);
  color: var(--color-error);
  font-size: 0.9rem;
  text-align: center;
}

.login-error.visible { display: block; }

.login-field { margin-bottom: 12px; }

.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: 1rem;
}

.login-field input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.login-usuario-dropdown { position: relative; width: 100%; }

.login-usuario-field { position: relative; display: flex; align-items: center; }

.login-usuario-field #usuario { padding-right: 48px; }

.login-usuario-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-usuario-arrow:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.login-usuario-dropdown.abierto .login-usuario-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
}

.login-usuario-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 12px;
  background: #0c1929;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.login-usuario-menu.abierto { display: block; }

.login-usuario-vacio {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

.login-usuario-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: calc(100% - 12px);
  margin: 0 6px;
  border-radius: 10px;
}

.login-usuario-row:hover,
.login-usuario-row.activo {
  background: rgba(0, 115, 234, 0.18);
}

.login-usuario-item {
  flex: 1;
  min-width: 0;
  padding: 12px 8px 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.login-usuario-row:hover .login-usuario-item,
.login-usuario-row.activo .login-usuario-item {
  color: #fff;
}

.login-usuario-borrar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-usuario-borrar:hover {
  color: var(--color-error);
  background: rgba(226, 68, 92, 0.14);
}

.login-pass-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.login-pass-wrap input { padding-right: 48px; }

.bt-pass-masked {
  -webkit-text-security: disc;
  text-security: disc;
}

.btn-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-pass:hover { color: var(--color-text-muted); }

.btn-toggle-pass.pass-visible .icon-ojo-cerrado { display: none; }
.btn-toggle-pass.pass-visible .icon-ojo-abierto { display: block; }
.btn-toggle-pass:not(.pass-visible) .icon-ojo-abierto { display: none; }

.btn-login {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.btn-login:hover { background: var(--color-accent-hover); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 1024px) {
  .login-brand { display: flex; }
  .login-panel {
    max-width: 520px;
    margin-right: 48px;
    padding: 80px 40px;
  }
}

@media (min-width: 1280px) {
  .login-brand { padding: 64px 56px; }
  .login-tagline { font-size: 18px; }
}

@media (max-width: 800px) {
  .btn-menu-movil { display: flex; align-items: center; justify-content: center; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease, width 0.2s ease;
  }

  .shell.sidebar-open .sidebar { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.45);
  }

  .shell.sidebar-open .sidebar-backdrop { display: block; }

  .canvas { padding: 20px 16px; }

  .modulo-header { flex-direction: column; align-items: stretch; }
  .input-buscar-wrap,
  .input-buscar { min-width: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}
