.pantalla-centrada {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tarjeta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.75rem;
}

.tarjeta--login {
  width: 100%;
  max-width: 380px;
}

.tarjeta--paciente {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.campo-busqueda {
  width: 100%;
  font-family: var(--fuente-sans);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  margin-bottom: 1rem;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.formulario label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.formulario input,
.formulario textarea {
  font-family: var(--fuente-sans);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--ink);
}

.formulario textarea {
  min-height: 5rem;
  resize: vertical;
}

.boton {
  font-family: var(--fuente-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radio-boton);
  border: none;
  cursor: pointer;
  transition:
    transform 0.05s ease,
    background 0.15s ease;
}

.boton--primario {
  background: var(--gold);
  color: var(--ink);
}

.boton--primario:hover {
  background: var(--gold2);
  color: #fff;
}

.boton--secundario {
  background: var(--panel2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.boton--secundario:hover {
  background: var(--panel);
}

.boton:active {
  transform: scale(0.98);
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.barra-superior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.logo-barra {
  height: 40px;
  width: auto;
}

.logo-login {
  height: 240px;
  width: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.enlace-volver {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.contenido {
  padding: 1.75rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.encabezado-seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}

.lista-tarjetas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tarjeta-paciente {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tarjeta-paciente:hover {
  border-color: var(--gold);
  cursor: pointer;
}

.dialogo {
  border: none;
  border-radius: var(--radio);
  padding: 1.75rem;
  box-shadow: var(--sombra);
  background: var(--panel);
  max-width: 480px;
  width: 100%;
}

.dialogo::backdrop {
  background: rgba(26, 23, 20, 0.35);
}

.acciones-dialogo {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
