* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-gray-dark);
  background-color: var(--color-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  justify-content: center;
  align-content: center;
}

a,
span,
img {
  display: inline-block;
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none !important;
}

body a:hover {
  text-decoration: none;
}

body a:focus {
  outline: 0;
}

body ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

p,
ul .p,
ol .p {
  font-size: 14px;
  margin: 0;
}

/* =======================================
   BOTONES – transiciones globales
======================================= */
.btn:active,
.btn:active:focus,
.btn:active:hover,
.btn:focus,
.btn:hover,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
  transition: all 0.25s ease;
  outline: 0;
}

.btn {
  cursor: pointer;
}

/* =======================================
   BLOQUES / CARDS
======================================= */
.block_box {
  position: relative;
  background: var(--color-white);
  border-radius: 8px;
  padding: 28px;
  border: solid 1px rgba(0, 0, 0, 0.05) !important;
  border-bottom: solid 4px rgba(0, 0, 0, 0.05) !important;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: visible;
  margin-bottom: 1rem;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, background 0.18s ease-out;
}

.block_box:hover {
  box-shadow: 0 0 0 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.block_box_clean {
  position: relative;
  background: var(--color-white);
  border-radius: 8px;
  border: solid 1px rgba(0, 0, 0, 0.05) !important;
  border-bottom: solid 4px rgba(0, 0, 0, 0.05) !important;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: visible;
}

.block_box_clean:hover {
  background: var(--color-gray-light);
  border-bottom-color: rgba(0, 0, 0, 0.01) !important;
}

/* Animación opcional */
@keyframes fadeInUpSoft {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block_box-animated {
  animation: fadeInUpSoft 0.35s ease-out;
}

/* =======================================
   UTILIDADES GENERALES
======================================= */
.hidden {
  display: none !important;
}

.pointer {
  cursor: pointer !important;
}

.opacityBlack_20 {
  background-color: rgba(0, 0, 0, 0.2);
}
.opacityBlack_40 {
  background-color: rgba(0, 0, 0, 0.4);
}
.opacityBlack_60 {
  background-color: rgba(0, 0, 0, 0.6);
}
.opacityBlack_70 {
  background-color: rgba(0, 0, 0, 0.7);
}
.opacityBlack_80 {
  background-color: rgba(0, 0, 0, 0.8);
}
.opacityWhite_20 {
  background-color: rgba(255, 255, 255, 0.2);
}
.opacityWhite_40 {
  background-color: rgba(255, 255, 255, 0.4);
}
.opacityWhite_60 {
  background-color: rgba(255, 255, 255, 0.6);
}
.opacityWhite_80 {
  background-color: rgba(255, 255, 255, 0.8);
}



.background-primary {
  background: var(--color-primary);
}
.background-secondary {
  background: var(--color-secondary);
}
.background-secondary-blur {
  background: var(--color-secondary-blur) !important;
  color: var(--color-secondary) !important;
}
.background-tertiary {
  background: var(--color-tertiary);
}
.background-white {
  background: var(--color-white);
  box-shadow: 10px 2px 20px rgba(0, 0, 0, 0.1);
}

.uppercase,
.text-uppercase {
  text-transform: uppercase !important;
}

.start-90 {
  left: 90% !important;
}

.bold {
  font-weight: 600 !important;
}

i {
  margin-right: 2px !important;
}

.justify {
  text-align: justify !important;
}

.code {
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: monospace;
  color: #fff;
  background-color: #1a1a1a;
  font-size: 11px;
  font-weight: normal;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
}

.code-warning {
  color: #fff;
  background-color: #e5a000 !important;
}

/* =======================================
   LOADING OVERLAY
======================================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-icon {
  color: white;
  font-size: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =======================================
   NAV / TABS
======================================= */
.nav-link {
  font-size: 14px !important;
  font-weight: 400;
  color: var(--color-primary) !important;
}
.nav-link.active {
  font-weight: 600 !important;
}

/* =======================================
   RESPONSIVE TITLES
======================================= */
@media screen and (max-width: 767px) {
  h1 {
    font-size: 1rem !important;
  }
}
.row-atendido td {
    background-color: #eeffee !important; /* verde suave */
}
.row-atendido:hover td {
    background-color: #e6fbe6 !important;
}