html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Lexend', sans-serif;
  background-color: #f8f9fa;
}

body,
#loadingOverlay {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

section.container-fluid {
  flex: 1;
}

#tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* xs o móvil */
@media (max-width: 576px) { 
  .no-border-xs {
    border: none !important;
  }
}

/* Solo para pantallas menores a 768px (Bootstrap md breakpoint) */
@media(max-width: 767.98px) {
  .dropdown-item-mobile {
    font-size: 1.1rem; /* más grande en móviles */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Campos requeridos con asterisco rojo */
label.required::after {
  content: ' *';
  color: #dc3545;
  font-weight: bold;
}

/* Selector de fondos */
body {
  transition: background-image 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.bg-option {
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.bg-option:hover {
  border-color: var(--bs-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bg-option img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

#backgroundModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.bg-palette {
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.bg-palette:hover {
  border-color: var(--bs-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.palette-swatch {
  display: block;
  width: 100%;
  height: 90px;
  border-radius: 0.5rem;
}