* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  background-color: #1a2a4b;
  padding: 20px;
  color: #333;
}

.contenedor-general {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contenedor-hijo {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  flex: 1;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
}

h1 {
  color: #1a2a4b; /* Azul marino oscuro */
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: "Poppins", sans-serif;
}

.tools-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tools-section h1::before {
  margin-right: 10px;
}

button {
  background-color: #1a2a4b; /* Color principal */
  color: white;
  border: none;
  padding: 10px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  max-width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 42, 75, 0.3);
  position: relative;
  overflow: hidden;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 42, 75, 0.4);
  background-color: #2c4d8e;
}

button:active {
  transform: translateY(0);
}

.btn-search::before {
  content: "🔍 ";
  margin-right: 8px;
}

.btn-add::before {
  content: "➕ ";
  margin-right: 8px;
}

.btn-appointment::before {
  content: "📅 ";
  margin-right: 8px;
}

.btn-professional {
  background: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  font-size: 1.1em;
  font-weight: 600;
  border: 1px solid black;
  color: black;
}

.btn-professional:hover {
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-professional::before {
  content: "👨‍⚕️ ";
  margin-right: 8px;
}

/* Estilos para el calendario */
.calendar-container {
  text-align: left;
}

.calendar-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.calendar-container h1::before {
  margin-right: 10px;
}

#calendar {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.5em;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
  position: sticky;
  top: 20px; /* Distancia desde la parte superior al 'pegarse' */
  z-index: 100; /* Asegura que se mantenga por encima de otros elementos */
  background-color: white; /* Fondo para que no se transparente el contenido de atrás */
  display: inline-block;
}

#calendar:hover {
  border-color: #4caf50;
}

/* Estilos para turnos pendientes */
.pending-appointments {
  text-align: left;
}

.pending-appointments h1 {
  text-align: center;
}

.pending-appointments h1::before {
  margin-right: 10px;
}

.appointment-item {
  background-color: #ffffff; /* Fondo blanco */
  border-left: 4px solid #1a2a4b; /* Color principal */
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Sombra sutil para un efecto "elevado" */
  border: 1px solid #e0e0e0; /* Un borde más suave */
}

.appointment-item:hover {
  background-color: #f7f9fc;
  transform: translateY(-3px); /* Se eleva más */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.appointment-patient {
  font-weight: 600;
  font-size: 1.2em;
  color: #1a2a4b;
  margin-top: 5px;
}

.appointment-type {
  color: #777;
  font-size: 0.9em;
  font-style: italic;
  margin-top: 3px;
}

.appointment-confirmed {
  border-left-color: #28a745; /* Verde para confirmado */
}
.appointment-pending {
  border-left-color: #ffc107; /* Amarillo para pendiente */
}
.appointment-canceled {
  border-left-color: #dc3545; /* Rojo para cancelado */
}

/* Responsivo */
@media (max-width: 768px) {
  .contenedor-general {
    flex-direction: column;
    gap: 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  button {
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

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

.div-boton-profesional {
  display: flex;
  justify-content: right;
  margin-bottom: 25px;
  flex-direction: row;
  flex: 1;
  align-items: flex-start;
  gap: 20px;
}

/* Estilos personalizados para Flatpickr */
.flatpickr-calendar {
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.flatpickr-day.selected {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
}

.flatpickr-day:hover {
  background: rgba(76, 175, 80, 0.3) !important;
}
.img-logo {
  display: flex;
  width: 150px;

  margin: auto;
  margin-bottom: 40px;
}
#agenda-container {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Espacio entre los slots de la agenda */
  padding-right: 10px; /* Espacio para que no se pegue la barra de scroll al contenido */
}

#agenda-container-reprogramar {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Espacio entre los slots de la agenda */
  max-height: 900px; /* Limita la altura del contenedor para que sea scrolleable */
  overflow-y: auto; /* Habilita el scroll vertical cuando el contenido excede la altura */
  padding-right: 10px; /* Espacio para que no se pegue la barra de scroll al contenido */
}

.agenda-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #a5a3a3;
  transition: all 0.3s ease;
  width: 100%;
}

.agenda-slot:hover {
  background-color: #eaf7ed;
  border-color: #4caf50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Estado del turno (ej. "Libre", "Ocupado") */
.estado-turno {
  font-size: 0.9em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
}

.estado-libre {
  background-color: #4caf50; /* Verde para turnos disponibles */
}

.estado-ocupado {
  background-color: #e74c3c; /* Rojo para turnos ocupados */
}

/* Estilo para el texto del horario */
.horario-texto {
  color: #2c3e50;
  font-size: 1.1em;
  font-weight: 500; /* Un poco menos grueso que bold */
}

/* Estilos para los botones de acción en la agenda (Agregar, Bloquear) */
.agenda-slot-actions {
  display: flex;
  gap: 10px;
  opacity: 0; /* Ocultos por defecto */
  transition: opacity 0.2s ease-in-out;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.agenda-slot:hover .agenda-slot-actions {
  opacity: 1; /* Se muestran al hacer hover en el slot */
}

.agenda-slot-actions button {
  background: transparent;
  border: none;
  color: #95a5a6; /* Un gris sutil */
  cursor: pointer;
  font-size: 1.2em; /* Tamaño del ícono */
  padding: 0 5px;
  margin: 0;
  width: auto;
  max-width: none;
  box-shadow: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.agenda-slot-actions button:hover {
  transform: scale(1.3);
  color: #2c3e50; /* Color oscuro al hacer hover */
  background-color: transparent;
  box-shadow: none;
}

.agenda-slot-bloqueado {
  background-color: #f5b7b1 !important; /* Un rojo claro */
  border-color: #e74c3c !important;
  cursor: pointer; /* Para indicar que se puede hacer clic para revertir */
  /* Centramos el contenido para que se vea mejor */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.agenda-slot-bloqueado:hover {
  background-color: #f1948a !important; /* Un rojo un poco más oscuro al hacer hover */
  transform: translateY(0); /* Quitamos el efecto de elevación */
}

.estado-bloqueo-texto {
  font-size: 0.8em;
  font-weight: bold;
  color: #c0392b; /* Un rojo más oscuro para el texto */
  margin-top: 4px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.agenda-slot-bloqueado:hover .estado-bloqueo-texto {
  color: #922b21; /* Aún más oscuro al hacer hover para destacar */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  text-align: center;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 500px; /* Añadimos un ancho mínimo */
  max-width: 90vw; /* Y un ancho máximo para pantallas grandes */
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #333;
}
.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacio entre cada campo del formulario */
  margin-bottom: 25px;
}

.modal-content label {
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  text-align: left;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.modal-content input::placeholder {
  color: #bbb;
}

.btn-submit {
  background: linear-gradient(145deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  background: linear-gradient(145deg, #45a049, #4caf50);
}

.btn-submit:active {
  transform: translateY(0);
}

.div-time {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}
.div-paciente {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: #f7f7f7;
}
.div-paciente:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-paciente {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.div-comentario-paciente {
  background-color: #f0f0f0; /* Un fondo gris muy claro */
  border-radius: 5px; /* Bordes redondeados */
  padding: 10px; /* Espaciado interno */
  margin-top: 8px; /* Espacio superior para separarlo */
  font-size: 0.85em; /* Tamaño de fuente ligeramente más pequeño */
  color: #555; /* Un color de texto más oscuro para mejor legibilidad */
  font-style: italic; /* Estilo en cursiva para diferenciarlo */
  text-align: left; /* Alinear el texto a la izquierda */
  width: 100%; /* Ocupar todo el ancho disponible */
  border-left: 3px solid #1a2a4b; /* Un borde izquierdo para destacar */
  position: relative; /* Necesario para posicionar el ícono de edición */
}

.icono-editar-comentario {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #95a5a6; /* Un gris sutil */
  font-size: 1em;
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.2s ease-in-out;
}

.div-comentario-paciente:hover .icono-editar-comentario {
  opacity: 1; /* Se muestra al hacer hover */
}

.div-botones-paciente {
  display: flex;
  flex-direction: row;
}

.div-botones-paciente button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #8c8c8c;
  transition: color 0.2s ease, transform 0.2s ease;
}
.div-botones-paciente button:hover {
  color: #2c3e50;
  transform: scale(1.1);
}

.div-botones-paciente button:active {
  transform: translateY(1px);
}

.estado-turno {
  font-size: 0.8em;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  color: white;
  transition: background-color 0.3s ease;
}
.estado-presente {
  background-color: #27ae60; /* Verde */
}
.estado-ausente {
  background-color: #e74c3c; /* Rojo */
}

.boton-paciente {
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left; /* Alinea el texto a la izquierda */
  width: 100%; /* El botón ocupa todo el ancho disponible */
}

.boton-paciente:hover {
  background-color: #34495e;
}

.contenedor-columna {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1; /* Esto hace que ocupe el mismo espacio que los otros contenedores */
}
#buscador-pacientes {
  margin-bottom: 35px;
  font-size: 20px;
}
/* Estilos para el modal de cargando */
.loading-content {
  background: rgba(139, 136, 136, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-left-color: #4caf50;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.div-turno {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.div-turno > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.div-turno label {
  font-weight: 600;
  color: #555;
  font-size: 1.1em;
}

.div-turno input,
.div-turno select,
.div-turno textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #fff;
}

.div-turno input:focus,
.div-turno select:focus,
.div-turno textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.grupo-cantidad-frecuencia {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.grupo-cantidad-frecuencia label {
  white-space: nowrap;
}

.grupo-cantidad-frecuencia input {
  flex: 1;
}

#paciente-seleccionado-turno {
  font-size: 1.2em;
  color: #2c3e50;
  font-weight: bold;
}

#nuevo-bloque-turno {
  font-size: 1.5em;
  color: #4caf50;
  cursor: pointer;
  transition: transform 0.2s;
}

#nuevo-bloque-turno:hover {
  transform: scale(1.1);
}

#turnosACargar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.img-modal {
  width: 25%;
}
#resultados-busqueda {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Estilos para el modal de reprogramar turno */
#modal-reprogramar-turno .modal-content {
  max-width: 600px;
  text-align: left;
  z-index: 2000;
}

#modal-reprogramar-turno h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
}

#modal-reprogramar-turno h3 {
  font-size: 1.2rem;
  color: #34495e;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-top: 25px;
  margin-bottom: 15px;
}

#modal-reprogramar-turno h4 {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#modal-reprogramar-turno h4 span {
  font-weight: 700;
  color: #2c3e50;
}

#modal-reprogramar-turno h4 .fa-solid {
  color: #4caf50;
}

#modal-reprogramar-turno input[type="date"],
#modal-reprogramar-turno select {
  width: auto;
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #f8f8f8;
  cursor: pointer;
}

#modal-reprogramar-turno input:focus,
#modal-reprogramar-turno select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

#modal-reprogramar-turno .btn-submit {
  margin-top: 30px;
}

#modal-reprogramar-turno .modal-body-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.div-numero-pacientes {
  margin-block: 30px;
}
.div-numero-pacientes p {
  font-weight: bolder;
}
/* Estilos para el contenedor principal de estadísticas */
.estadisticas-container {
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Estilos para las tarjetas de cada gráfico */
.card-container-sutil {
  background-color: #ffffff;
  border: 1px solid #e0e0e0; /* Un borde más suave */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Una sombra muy ligera */
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.2s ease-in-out; /* Transición suave al pasar el mouse */
}

/* Efecto al pasar el mouse (hover) para la tarjeta */
.card-container-sutil:hover {
  transform: translateY(-5px); /* Se eleva un poco para dar un efecto interactivo */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra un poco más visible al hacer hover */
}

/* Estilo para los títulos de los gráficos */
.card-container-sutil h2 {
  color: #333;
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 20px;
}

/* Estilos para el carrusel y sus controles */
.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%; /* Controles circulares */
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
}

/* Oculta los iconos de navegación si no se desea */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Estilos para el modal de días no laborales */
#modal-dias-no-laborales .modal-content {
  max-width: 550px;
  text-align: center;
}

#modal-dias-no-laborales h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#modal-dias-no-laborales p {
  color: #7f8c8d;
  margin-bottom: 30px;
}

.modal-dias-no-laborales-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.modal-dias-no-laborales-actions button {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
}

/* Estilo específico para el botón de "Ver" */
#ver-dias-no-laborales {
  background: linear-gradient(145deg, #3498db, #2980b9); /* Gradiente azul */
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#ver-dias-no-laborales:hover {
  background: linear-gradient(145deg, #2980b9, #3498db);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

#loading-modal {
  position: fixed; /* O 'absolute', dependiendo del diseño */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Asegura que esté por encima de todos los demás modales */
  /* Otros estilos para el fondo, el contenido, etc. */
}

/* Estilos para la alerta temporal (Toast) */
.alerta-temporal-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.95); /* Empezar un poco más pequeño */
  background: linear-gradient(135deg, #1a2a4b, #2c4d8e); /* Gradiente azul oscuro */
  color: white;
  padding: 60px 60px; /* Aumentar padding */
  border-radius: 12px; /* Bordes más redondeados */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* Sombra más pronunciada */
  z-index: 10001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Transición más elástica */
  border-left: 5px solid #4caf50; /* Borde izquierdo verde para un toque de color */
  width: 80%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.alerta-temporal-overlay.show {
  display: block;
  opacity: 1;
  top: 50px; /* Bajarlo un poco más */
  transform: translateX(-50%) scale(1); /* Escala a tamaño normal */
}

.alerta-temporal-content p {
  font-size: 2.5em; /* Fuente más grande */
  font-weight: 600; /* Fuente más gruesa */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Sombra de texto para legibilidad */
  width: 100%;
}

/* Estilos para el botón de cierre de la alerta temporal */
.alerta-temporal-close-btn {
  position: absolute;
  top: 15px; /* Ajusta según sea necesario */
  right: 15px; /* Ajusta según sea necesario */
  font-size: 2em; /* Más grande para facilitar el clic */
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10002; /* Asegura que esté por encima del contenido de la alerta */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.alerta-temporal-close-btn:hover {
  color: #ccc;
}

/* Estilos para el modal de caja */
#modal-caja .modal-content {
  max-width: 550px;
  text-align: center;
}

#modal-caja h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#modal-caja p {
  color: #7f8c8d;
  margin-bottom: 30px;
}

#modal-caja .form-container {
  gap: 20px;
  justify-content: center;
  flex-direction: row;
  margin-bottom: 25px;
}

#modal-caja .btn-submit {
  margin: 0 auto; /* Centrar el botón */
}

/* Contenedor de resultados de la caja */
.caja-resultados-container {
  margin-top: 30px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.caja-resultado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1.1em;
  color: #343a40;
  border-bottom: 1px solid #dee2e6;
}

.caja-resultado-item:last-of-type {
  border-bottom: none;
}

.caja-resultado-item span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.caja-resultado-item .fa-solid {
  color: #495057;
  width: 20px; /* Ancho fijo para alinear iconos */
  text-align: center;
}

.caja-valor {
  font-weight: 700;
}

.caja-separador {
  margin: 15px 0;
}

.caja-resultado-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.4em;
  font-weight: 700;
  color: #28a745; /* Verde para el total */
  padding-top: 10px;
}

/* Estilos para el botón del panel de control del profesional */
.btn-control-panel {
  background: linear-gradient(145deg, #8e44ad, #9b59b6); /* Gradiente púrpura */
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-control-panel:hover {
  background: linear-gradient(145deg, #9b59b6, #8e44ad);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
  transform: translateY(-2px); /* Mantenemos la consistencia del hover */
  color: white;
}
