:root {
  --bs-body-font-family: 'Inter', Arial, sans-serif;
}

html, body {
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100%;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  background-color: #d7e1df;
  background-image: linear-gradient(180deg, #e6eeec 0%, #d5e0dd 52%, #c5d3d0 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1f2937;
}

.ticketera-navbar {
  background: #ffffff !important;
  border-bottom-color: rgba(7, 66, 90, 0.08) !important;
}

.navbar,
.nav-link {
  font-weight: 500;
}

h1, h2, h3 {
  font-weight: 600;
}

h1 {
  color: #07425A;
  font-size: 26px;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0.5px;
}

h2 {
  color: #8f8f8f;
  font-size: 18px;
  font-style: normal;
  line-height: 14px;
}

.brand-wrap {
  line-height: 1.1;
}

.brand-kicker {
  font-size: 10px;
  font-weight: 300;
  color: #7b8794;
  margin-bottom: 2px;
}

.brand-logo {
  display: block;
  max-width: 100%;
}

.nav-main .nav-link {
  color: #212529;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent !important;
}

.nav-main .nav-link:hover {
  color: #0a4b69;
  background: transparent !important;
}

.nav-main .nav-link.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #9cb1c7 !important;
  background: transparent !important;
}

.nav-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-icon-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-profile-toggle::after {
  margin-left: 8px;
}

.object-fit-cover {
  object-fit: cover;
}

.form-label,
.nav-link,
.btn,
.table th {
  font-weight: 500;
}

.card {
  border-radius: 22px !important;
  background: #ffffff;
}

.ticket-list-card .card-body {
  padding: 1.5rem;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid #c7d1d9;
  color: #334155;
  background-color: #ffffff;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #9fb4c5;
  box-shadow: 0 0 0 0.15rem rgba(53, 118, 183, 0.08);
}

.form-control.bg-light,
#infoTitulo,
#infoSolicitante,
#infoDescripcion,
#infoEstado {
  background-color: #f8fafb !important;
  color: #1f2937 !important;
  border-color: #dde5ec !important;
}

.text-muted {
  color: #5d6c7c !important;
}

.table-light th {
  background: #f5f7f8 !important;
}

.table th {
  color: #5d6c7c;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table td {
  color: #111827;
}

.btn-grow img {
  transition: transform 0.2s ease;
}

.btn-grow:hover img {
  transform: scale(1.2);
}

.btn-grow:active img {
  transform: scale(1.35);
}

.badge-estado {
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
}

.bg-abierto {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.bg-proceso {
  background-color: #fef3c7;
  color: #b45309;
}

.bg-cerrado {
  background-color: #dcfce7;
  color: #15803d;
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 24px;
  border-left: 2px solid #e9ecef;
  margin-left: 8px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #A9CF37;
  position: absolute;
  left: -7px;
  top: 6px;
}

.timeline-content {
  padding-left: 12px;
  color: #1f2937;
}

.btn-dark {
  background-color: #212529;
  border-color: #212529;
}

.btn-success {
  background-color: #19873e;
}

.btn-primary {
  background-color: #3576b7;
  border-color: #3576b7;
}

.ticket-derive-box {
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #f8fbff;
}

.ticket-derive-box .form-label {
  color: #4b5563;
}

.ticket-header-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #c8d5e2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 66, 90, 0.08);
}

.ticket-header-status-wrap {
  margin-left: auto;
  align-self: flex-start;
}

#tema-asunto,
#tema-asunto span,
#dTitulo {
  color: #07425A !important;
}

#dCodigo {
  color: #07425A !important;
  font-weight: 600;
}

.case-card {
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef5fb 100%);
}

.case-card-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #5f6f82;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-card-title {
  margin-bottom: 8px;
  color: #07425A;
  font-size: 20px;
  line-height: 1.2;
}

.case-card-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.ctx-empty {
  color: #5d6c7c;
}

.admin-summary-card {
  padding: 18px;
  border: 1px solid #cfd7df;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef3f7 0%, #dde5ec 100%);
}

.admin-summary-kicker {
  display: block;
  margin-bottom: 10px;
  color: #5f6f82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-summary-value {
  display: block;
  margin-bottom: 8px;
  color: #07425A;
  font-size: 28px;
  line-height: 1.1;
}

.admin-summary-text {
  color: #4b5563;
  font-size: 14px;
}

.admin-rule-card {
  padding: 16px;
  border: 1px solid #d6dce3;
  border-radius: 14px;
  background: #f6fa;
  color: #334155;
}

.admin-rule-step {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dbe5ef;
  color: #07425A;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-priority-list {
  display: grid;
  gap: 12px;
}

.admin-priority-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d7dee6;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-inline-input {
  min-width: 220px;
}

.admin-users-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1.4fr) auto;
  align-items: center;
  gap: 24px;
}

.admin-users-search .admin-inline-input {
  width: 100%;
  min-width: 0;
}

.admin-users-action {
  display: flex;
  justify-content: flex-end;
}

.admin-order-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 4px;
  border: 1px solid #d7dee6;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-order-label {
  display: block;
  margin-bottom: 4px;
  color: #07425A;
  font-size: 14px;
  font-weight: 700;
}

.admin-order-options {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.admin-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.admin-pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-pager-info {
  min-width: 112px;
  padding: 0 8px;
  color: #07425A;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.admin-pager-button {
  min-width: 40px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #cfd8e2;
  border-radius: 999px;
  background: #ffffff;
  color: #07425A;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-pager-button:hover:not(:disabled) {
  border-color: #3576b7;
  background: #edf4fb;
  color: #1d4f7c;
}

.admin-pager-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.modal-inline-confirm {
  padding: 14px 16px;
  border: 1px solid #e5d1d1;
  border-radius: 12px;
  background: #fff7f7;
}

.admin-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.admin-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.priority-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3576b7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.priority-help-trigger:hover {
  background: #2c6296;
}

.admin-help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #07425A;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.btn-outline-primary {
  border-color: #3576b7;
  color: #3576b7;
}

.btn-outline-primary:hover {
  background-color: #3576b7;
  color: #fff;
}

.estado-ingresado {
  background-color: #e9f2ff;
  color: #1d4ed8;
}

.estado-clasificado {
  background-color: #eef2ff;
  color: #4f46e5;
}

.estado-priorizado {
  background-color: #fff7ed;
  color: #c2410c;
}

.estado-asignado {
  background-color: #ecfeff;
  color: #0891b2;
}

.estado-enproceso {
  background-color: #fef3c7;
  color: #b45309;
}

.estado-resuelto {
  background-color: #dcfce7;
  color: #15803d;
}

.estado-cerrado {
  background-color: #e5e7eb;
  color: #374151;
}

.badge-estado {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.priority-badge-high {
  background-color: #fee2e2;
  color: #b91c1c;
}

.priority-badge-mid {
  background-color: #ffedd5;
  color: #c2410c;
}

.priority-badge-low {
  background-color: #dcfce7;
  color: #15803d;
}

@media (min-width: 992px) {
  .admin-priority-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-priority-list-modal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-main .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0;
  }

  .navbar-brand {
    max-width: 180px;
  }

  .brand-logo {
    height: 22px;
  }

  .admin-users-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-users-action {
    justify-content: flex-start;
  }

  .admin-order-switch,
  .admin-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-order-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-pager {
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  .ticket-header-status-wrap {
    margin-left: 0;
    align-self: flex-start;
  }

  .ticket-header-status {
    justify-content: flex-start;
    align-self: flex-start;
    flex-wrap: wrap;
  }
}

.admin-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: #eef3f7;
}

.admin-tab-btn {
  border: 0;
  background: transparent;
  color: #5f6f82;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  background: #ffffff;
  color: #07425A;
  box-shadow: 0 6px 18px rgba(7, 66, 90, 0.08);
}

.admin-tab-btn:hover {
  color: #07425A;
}


.create-ticket-card {
  border-radius: 22px !important;
}

.create-ticket-card .card-body {
  padding: 2rem;
}

.create-ticket-card .form-control {
  min-height: 48px;
}

.create-ticket-card textarea.form-control {
  min-height: 160px;
}

.create-ticket-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-ticket-title-icon {
  width: 45px;
  height: auto;
}

.create-ticket-screen-card {
  border-radius: 18px !important;
}

.create-ticket-screen-card .card-body {
  padding: 1.5rem;
}

.ticket-adjunto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #d7dee6;
  border-radius: 14px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.ticket-adjunto-item:hover {
  background: #eef4f8;
  color: inherit;
}

.ticket-derivacion-item {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #d7dee6;
  border-radius: 14px;
  background: #f8fafc;
}

.ticket-inline-attachment-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 10px;
  color: #4b5c72;
  font-size: 15px;
  font-weight: 500;
}

.ticket-inline-attachment-icon {
  font-size: 18px;
  line-height: 1;
}

.ticket-inline-attachment-item {
  margin-bottom: 8px;
}

.timeline-dot-derivation {
  background: #8fa0bf;
}

.login-page {
  position: relative;
  min-height: 100vh;
  background-color: #ececeb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(236, 236, 235, 0.34) 100%),
    url("images/fondo-tec-neutro.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.5), transparent 42%);
  pointer-events: none;
}

.login-header {
  position: relative;
  z-index: 2;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(4px);
}

.login-header-toggle {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.login-header-toggle::after {
  margin-left: 8px;
  color: #1f2937;
}

.login-main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 24px 16px 80px;
}

.login-shell {
  width: min(100%, 360px);
  text-align: center;
}

.login-branding {
  margin-bottom: 26px;
}

.login-kicker {
  color: #8b8f91;
  font-size: 14px;
  font-weight: 600;
}

.login-logo {
  width: 160px;
  max-width: 100%;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-field {
  position: relative;
}

.login-input {
  height: 42px;
  border: 1px solid #d6d9de;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #2f3337;
  font-size: 15px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}

.login-input::placeholder {
  color: #4b5563;
  opacity: 1;
}

.login-input:focus {
  border-color: #b8c0c8;
  box-shadow: 0 0 0 0.2rem rgba(169, 207, 55, 0.12);
}

.login-input-password {
  padding-right: 42px;
}

.login-password-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303437;
}

.login-password-field .toggle-password:hover {
  color: #111827;
}

.login-submit {
  width: 100%;
  margin-top: 2px;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
}

.login-forgot-link {
  color: #9aa0a6;
  font-size: 14px;
  text-decoration: underline;
}

.login-error {
  margin-bottom: 2px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.login-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(63, 70, 76, 0.72);
  font-size: 12px;
  z-index: 2;
}

@media (max-width: 575.98px) {
  .login-footer {
    left: 0;
    right: 0;
    text-align: center;
  }
}
