/* ===== RESET Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de colores */
  --color-white: #fefffd;
  --color-gray: #9fa1a5;
  --color-yellow: #f5b509;
  --color-pink: #f3a3e4;
  --color-light-yellow: #fbe9a3;

  /* Colores adicionales */
  --color-dark: #2c3e50;
  --color-success: #27ae60;
  --color-danger: #e74c3c;
  --color-warning: #f39c12;
  --color-info: #3498db;

  /* Sombras */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  /* Bordes */
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 16px;

  /* Transiciones */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

body {
  font-family: "Quicksand", sans-serif;
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-light-yellow) 100%
  );
  min-height: 100vh;
  color: #333333;
  line-height: 1.6;
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Black Mango", "Quicksand", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #333333;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-small);
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-yellow) 0%,
    var(--color-pink) 100%
  );
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-gray);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-gray);
  color: var(--color-white);
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-warning {
  background: var(--color-warning);
  color: white;
}

.btn-info {
  background: var(--color-info);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  min-height: 52px;
}

/* ===== FORMULARIOS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gray);
  border-radius: var(--border-radius-small);
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--color-white);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(245, 181, 9, 0.1);
}

.form-control::placeholder {
  color: #555555;
  opacity: 0.7;
}

/* ===== FORMULARIO DE PERFIL ===== */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.profile-form .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Para campos específicos que pueden ser más pequeños en desktop */
.profile-form .form-control[type="tel"],
.profile-form .form-control[type="email"] {
  max-width: 100%;
}

.profile-form .form-control[type="date"] {
  max-width: 100%;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  max-width: 500px;
  width: 85%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
  margin: 0 auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-light-yellow);
}

.modal-header h3 {
  margin: 0;
  color: var(--color-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #555555;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--color-light-yellow);
  color: var(--color-yellow);
}

.modal-body {
  padding: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-light-yellow);
}

/* Estilos específicos para el modal de crear acceso */
.crear-acceso-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.crear-acceso-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crear-acceso-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.crear-acceso-form label {
  font-weight: 600;
  color: var(--color-gray);
  font-size: 0.95rem;
}

.crear-acceso-form .form-control {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: var(--border-radius-small);
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.crear-acceso-form .form-control:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(245, 181, 9, 0.1);
}

.crear-acceso-form select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%path stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.crear-acceso-form input[type="number"] {
  -moz-appearance: textfield;
}

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

.crear-acceso-form .form-text {
  color: var(--color-gray);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-style: italic;
  font-family: "Quicksand", sans-serif;
}

/* Responsive para el modal de crear acceso */
@media (max-width: 768px) {
  .crear-acceso-form .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== TARJETAS ===== */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 2px solid var(--color-light-yellow);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-title {
  margin: 0;
  color: var(--color-dark);
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  background: var(--color-white);
  box-shadow: var(--shadow-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Black Mango", "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: var(--color-yellow);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background: var(--color-gray);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-item {
  margin-left: 2rem;
}

.nav-item:first-child {
  margin-left: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--color-gray);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-yellow);
  background: var(--color-light-yellow);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--color-yellow);
  background: var(--color-light-yellow);
  box-shadow: var(--shadow-light);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--color-yellow);
  border-radius: 2px;
}

/* ===== MENÚ DE USUARIO ===== */
.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-dark);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
  white-space: nowrap;
}

.user-menu-btn:hover {
  background: var(--color-light-yellow);
  color: var(--color-yellow);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: 250px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  overflow: hidden;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 1rem;
  border-bottom: 1px solid var(--color-light-yellow);
}

.user-info strong {
  display: block;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.user-info small {
  color: var(--color-gray);
  font-size: 0.875rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-light-yellow);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-dark);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--color-light-yellow);
  color: var(--color-yellow);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

.col-1 {
  flex: 0 0 8.333333%;
}
.col-2 {
  flex: 0 0 16.666667%;
}
.col-3 {
  flex: 0 0 25%;
}
.col-4 {
  flex: 0 0 33.333333%;
}
.col-6 {
  flex: 0 0 50%;
}
.col-8 {
  flex: 0 0 66.666667%;
}
.col-9 {
  flex: 0 0 75%;
}
.col-12 {
  flex: 0 0 100%;
}

/* ===== UTILIDADES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}
.p-5 {
  padding: 3rem;
}

.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-inline-flex {
  display: inline-flex;
}

.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.align-end {
  align-items: flex-end;
}

/* ===== SPINNER ===== */
.spinner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spinner > div {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 100%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .navbar {
    padding: 1rem;
  }

  /* Formulario de perfil en móvil */
  .profile-form {
    gap: 1rem;
  }

  .profile-form .form-control {
    width: 100%;
    max-width: 100%;
  }

  /* Modal en móvil */
  .modal-content {
    width: 90%;
    max-width: 450px;
    margin: 1rem auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .navbar-content {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    overflow-y: auto;
  }

  .navbar-nav.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 0.5rem;
    justify-content: center;
    white-space: normal;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-light-yellow);
    color: var(--color-yellow);
    transform: none;
  }

  .nav-link.active::after {
    display: none;
  }

  .user-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .user-menu-btn {
    width: 100%;
    justify-content: center;
    padding: 1.5rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1.1rem;
    white-space: normal;
  }

  .user-dropdown {
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
    min-width: auto;
    width: calc(100% - 2rem);
    max-width: 300px;
    position: fixed;
    top: 70px;
    margin: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 1001;
    overflow: hidden;
  }

  .user-dropdown .dropdown-item {
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
  }

  .user-dropdown .user-info {
    padding: 1.5rem;
    text-align: center;
  }

  .row {
    flex-direction: column;
  }

  .col {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  /* Formulario de perfil en móvil */
  .profile-form {
    gap: 1rem;
  }

  .profile-form .form-control {
    width: 100%;
    max-width: 100%;
  }

  /* Modal en móvil pequeño */
  .modal-content {
    width: 92%;
    max-width: 400px;
    margin: 0.5rem auto;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1rem;
  }

  .navbar-content {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  .navbar-brand {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .nav-toggle {
    width: 28px;
    height: 22px;
  }

  .navbar-nav {
    padding: 1.5rem 0.75rem;
  }

  .nav-link {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .user-dropdown {
    right: 50%;
    left: 0%;
    transform: translateX(-50%);
    min-width: auto;
    width: calc(100% - 1rem);
    max-width: 280px;
    position: fixed;
    top: 70px;
    margin: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 1001;
    overflow: hidden;
  }

  .user-dropdown .dropdown-item {
    padding: 0.875rem;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
  }

  .user-dropdown .user-info {
    padding: 1.25rem;
    text-align: center;
  }

  .user-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .user-menu-btn {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 14px 20px;
  }

  .btn-small {
    min-height: 40px;
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .card {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

/* ===== ESTADOS ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.success {
  border-color: var(--color-success) !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* ===== TABLAS ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-light-yellow);
}

.table th {
  background: var(--color-light-yellow);
  font-weight: 600;
  color: var(--color-dark);
}

.table tr:hover {
  background: rgba(251, 233, 163, 0.1);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--color-success);
  color: white;
}

.badge-danger {
  background: var(--color-danger);
  color: white;
}

.badge-warning {
  background: var(--color-warning);
  color: white;
}

.badge-info {
  background: var(--color-info);
  color: white;
}

.badge-secondary {
  background: var(--color-gray);
  color: white;
}

/* ===== ALERTAS ===== */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius-small);
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.alert-info {
  background: rgba(52, 152, 219, 0.1);
  border-color: var(--color-info);
  color: var(--color-info);
}

/* ===== ESTILOS PARA MODAL DE DETALLES DE USUARIO ===== */
.user-details-content {
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
}

.user-details-container {
  padding: 1rem 0;
}

.user-details-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(245, 181, 9, 0.05);
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--color-yellow);
}

.user-details-section h4 {
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-details-section h4 i {
  color: var(--color-yellow);
  font-size: 1rem;
}

.user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.detail-item {
  padding: 0.75rem;
  background: var(--color-white);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(159, 161, 165, 0.2);
  transition: var(--transition);
}

.detail-item:hover {
  border-color: var(--color-yellow);
  box-shadow: var(--shadow-light);
}

.detail-item strong {
  color: var(--color-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item:not(:has(strong + .badge)) {
  color: var(--color-gray);
  font-size: 1rem;
}

/* Responsive para el modal de detalles */
@media (max-width: 768px) {
  .user-details-grid {
    grid-template-columns: 1fr;
  }

  .user-details-section {
    padding: 1rem;
  }

  .detail-item {
    padding: 0.5rem;
  }
}

/* Estilos para SweetAlert2 personalizado */
.swal-custom-popup {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.swal-custom-popup .swal2-title {
  color: var(--color-dark);
  font-family: "Black Mango", "Quicksand", sans-serif;
}

.swal-custom-popup .swal2-confirm {
  background: var(--color-yellow) !important;
  border-radius: var(--border-radius-small) !important;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}

.swal-custom-popup .swal2-confirm:hover {
  background: var(--color-yellow) !important;
  transform: translateY(-2px) !important;
}

/* SweetAlert2 Z-Index Fix - Asegurar que aparezcan por encima de todos los modales */
.swal2-container {
  z-index: 9999 !important;
}

.swal2-popup {
  z-index: 10000 !important;
}

.swal2-backdrop {
  z-index: 9998 !important;
}

/* Asegurar que las alertas aparezcan por encima del modal */
.swal2-container,
.swal2-popup,
.swal2-backdrop {
  position: relative;
}

.swal2-container {
  position: fixed !important;
}

/* Estilos personalizados para SweetAlert2 */
.swal2-popup {
  font-family: "Quicksand", sans-serif;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.swal2-title {
  font-family: "Black Mango", "Quicksand", sans-serif;
  color: var(--color-dark);
}

.swal2-confirm {
  background: var(--color-yellow) !important;
  border: none !important;
  border-radius: var(--border-radius-small) !important;
  font-family: "Quicksand", sans-serif !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: var(--transition) !important;
}

.swal2-confirm:hover {
  background: var(--color-light-yellow) !important;
  transform: translateY(-2px) !important;
}

.swal2-cancel {
  background: var(--color-gray) !important;
  border: none !important;
  border-radius: var(--border-radius-small) !important;
  font-family: "Quicksand", sans-serif !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: var(--transition) !important;
}

.swal2-cancel:hover {
  background: var(--color-dark) !important;
  transform: translateY(-2px) !important;
}
