

.mf-lista-pacientes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mf-lista-pacientes li {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mf-lista-pacientes strong {
  color: #111827;
}
.mf-form.oculto {
  display: none;
}

/* === Modal reserva funcional === */
.mf-modal {
  display: none; /* por defecto oculto */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000000000;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.25s ease;
  opacity: 0;
}

/* cuando se elimina la clase .oculto → se muestra */
.mf-modal:not(.oculto) {
  display: flex;
  opacity: 1;
}

/* Contenedor interno del modal */
.mf-modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-family: "Inter", system-ui, sans-serif;
  animation: popIn 0.25s ease forwards;
  overflow: auto;
}

@keyframes popIn {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botón cerrar */
.mf-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

.mf-modal-close:hover {
  color: #000;
}


/* === Modal Reserva (Disefix) === */

.mf-modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
}

.mf-modal h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
}



.mf-btn--primary { background:#2563eb; color:#fff; }
.mf-btn--secondary { background:#f3f4f6; color:#111; }


.mf-lista-pacientes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-paciente-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
}

.mf-paciente-item strong {
  color: #111;
  font-weight: 600;
}

.oculto {
  display: none !important;
}

.mf-paciente-seleccionado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: .5rem;
  padding: 10px 20px;
  margin-top: .75rem;
  margin-bottom: 20px;
}

.mf-paciente-seleccionado strong {
  color: #065f46;
}

.mf-btn--ghost {
  background: none;
  color: #374151;
  border: none;
  cursor: pointer;
}

.mf-btn--ghost:hover {
  text-decoration: underline;
}

  /* ===== Layout general ===== */

.mf-paciente-page {
  min-height: 100vh;
  padding: 32px 24px;
  background: #f3f4f8;
  box-sizing: border-box;
}


/* Sección principal de paneles */
.mf-paciente__panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 24px 24px 20px;
  box-sizing: border-box;
}

.mf-paciente__panel-title {
  margin-bottom: 18px;
  color: #111827;
}

/* ===== Header paciente ===== */

.mf-paciente__header {
  padding: 8px 24px 4px;
  box-sizing: border-box;
}

.mf-paciente__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4b5563;
  font-size: 16px;
}

.mf-paciente__nombre {
  color: #111827;
}

.mf-paciente__rut {
  margin: 4px 0 6px;
  color: #6b7280;
}

.mf-paciente__contacto {
  gap: 8px;
}

.mf-paciente__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #4b5563;
}

/* ===== Botones ===== */

.mf-paciente__btn {
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 0 16px;
  height: 40px;
  line-height: 1;
  font-size: 14px;
}

.mf-paciente__btn:hover {
  background: #f9fafb;
}

.mf-paciente__btn--primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.mf-paciente__btn--primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.mf-paciente__btn-block {
  width: 100%;
}

/* Ajuste tamaños heredados de bt-n / bt-s dentro del componente */
.mf-paciente .bt-n.mf-paciente__btn {
  height: 40px;
  line-height: 1;
  font-size: 14px;
  padding-inline: 18px;
}

.mf-paciente .bt-s.mf-paciente__btn {
  height: 34px;
  line-height: 1;
  font-size: 13px;
  padding-inline: 14px;
}

/* ===== Datos básicos ===== */

.mf-paciente__datos > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-paciente__label {
  color: #9ca3af;
}

.datos-paciente {
    border-radius: 10px;
    height: fit-content;
}

.datos-personales {
    max-width: 85%;
    margin: 0 auto;
}

.mf-paciente__value {
  color: #111827;
}

.acciones-paciente ul {
    list-style: none;
    padding: 0px;
}
.acciones-paciente {
    background: #4f47e6;
    max-width: 85%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    margin-top: 18px;
}
.acciones-paciente button, .acciones-paciente a {
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 0px;
    display: block;
    font-weight: 500;
    /* border: solid 1px #ccc; */
    width: 100%;
    text-align: left;
    /* padding: 5px; */
    box-sizing: border-box;
    /* border-radius: 5px; */
    margin-bottom: 10px;
    color: #fff;
}

form#form-nuevo-paciente input {
    margin-bottom: 15px;
}

button#btn-guardar-paciente {
    margin-top: 20px;
    height: 30px !important;
    padding: 20px;
}

.acciones-paciente button:hover, .acciones-paciente a:hover{
  text-decoration: underline;
  background: transparent !important;
} 
.paci {
    margin-left: 20px;
}

.mf-paciente__header-left.flex.ai-center.gap-20 {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.av-paciente {
    display: flex;
    align-items: center;
}

/* ===== Acciones lateral ===== */

.mf-paciente__acciones-lateral {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== Tabla atenciones ===== */

.mf-paciente__tabla-wrap {
  width: 100%;
  overflow-x: auto;
}

.mf-paciente__tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mf-paciente__tabla th,
.mf-paciente__tabla td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.mf-paciente__tabla thead th {
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
}

.mf-paciente__tabla tbody tr:last-child td {
  border-bottom: none;
}

.mf-paciente__tabla-acciones {
  display: flex;
  gap: 8px;
}

/* Estado badges */

.mf-paciente__estado {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.mf-paciente__estado--ok {
  background: #e0fbea;
  color: #16a34a;
}

.mf-paciente__estado--cancel {
  background: #e5e7eb;
  color: #4b5563;
}

/* ===== Notas rápidas ===== */

.mf-paciente__nota {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 140px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
}

.mf-paciente__nota::placeholder {
  color: #9ca3af;
}

.mf-paciente__nota-footer {
  margin-top: 16px;
  display: flex;
}

/* ===== Panel header (Atenciones) ===== */

.mf-paciente__panel-header {
  margin-bottom: 8px;
}

/* ===== Responsivo ===== */

@media (max-width: 992px) {
  .mf-paciente-page {
    padding: 16px;
  }

  .mf-paciente {
    border-radius: 18px;
  }

  .mf-paciente__header {
    padding-inline: 16px;
  }
}

@media (max-width: 768px) {
  .mf-paciente__tabla th,
  .mf-paciente__tabla td {
    padding: 8px 10px;
  }

  .mf-paciente__acciones-top {
    justify-content: flex-start;
  }
}

.mf-alta-item.pad-top-5.pad-bot-5 {
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: solid;
}

/* neu-timeline.css */

.neu-timeline__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neu-timeline__row {

  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px 24px;
  font-family: Inter, sans-serif;
}

.neu-timeline__row--focus {
  border: 3px solid #3b3bf5;
  background-color: #f6f8ff;
}

.neu-timeline__fecha,
.neu-timeline__estado,
.neu-timeline__info {
  font-size: 14px;
  color: #333;
}

.neu-timeline__estado {
  font-weight: 600;
}

.neu-timeline__acciones {
  display: flex;
  gap: 12px;
}

strong.neu-timeline__tag.deri {
    background: #e67878;
}

.neu-timeline__alerta {
    display: grid;
    gap: 16px;
    background-color: #fff5f5;
    border-radius: 12px;
    padding: 20px;
    align-items: center;
    font-family: Inter, sans-serif;
    /* justify-content: space-between; */
    grid-template-columns: 19% 44% 31%;
}

.neu-timeline__alerta--ingreso {
  background-color: #fff8e6;
  border-left-color: #f2a83a;
}

.neu-timeline__alerta--alta {
  background-color: #eef0fc;
  border-left-color: #8394d2;
}

.neu-timeline__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  min-width: 72px;
  text-align: center;
}

.neu-timeline__alerta--ingreso .neu-timeline__tag {
  background-color: #f2a83a;
}

.neu-timeline__alerta--alta .neu-timeline__tag {
  background-color: #8394d2;
}
